{"remainingRequest":"D:\\jenkins\\workspace\\bbsl-fvue\\node_modules\\thread-loader\\dist\\cjs.js!D:\\jenkins\\workspace\\bbsl-fvue\\node_modules\\babel-loader\\lib\\index.js!D:\\jenkins\\workspace\\bbsl-fvue\\node_modules\\cache-loader\\dist\\cjs.js??ref--0-0!D:\\jenkins\\workspace\\bbsl-fvue\\node_modules\\vue-loader\\lib\\index.js??vue-loader-options!D:\\jenkins\\workspace\\bbsl-fvue\\src\\views\\reservoirManagement\\components\\capacity-dialog.vue?vue&type=script&lang=js&","dependencies":[{"path":"D:\\jenkins\\workspace\\bbsl-fvue\\src\\views\\reservoirManagement\\components\\capacity-dialog.vue","mtime":1684458239465},{"path":"D:\\jenkins\\workspace\\bbsl-fvue\\node_modules\\cache-loader\\dist\\cjs.js","mtime":499162500000},{"path":"D:\\jenkins\\workspace\\bbsl-fvue\\node_modules\\thread-loader\\dist\\cjs.js","mtime":499162500000},{"path":"D:\\jenkins\\workspace\\bbsl-fvue\\node_modules\\babel-loader\\lib\\index.js","mtime":315532800000},{"path":"D:\\jenkins\\workspace\\bbsl-fvue\\node_modules\\cache-loader\\dist\\cjs.js","mtime":499162500000},{"path":"D:\\jenkins\\workspace\\bbsl-fvue\\node_modules\\vue-loader\\lib\\index.js","mtime":499162500000}],"contextDependencies":[],"result":["import _defineProperty from \"D:/jenkins/workspace/bbsl-fvue/node_modules/@babel/runtime/helpers/esm/defineProperty\";\nimport \"core-js/modules/web.dom.iterable\";\n\nvar _methods;\n\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\nimport req from '@/request.js';\nimport latitude from '@/mixins/latitude';\nimport capacity from '@/api/reservoirManagement/resFrom.js';\nimport { mapState } from 'vuex';\nexport default {\n props: {\n showFormDia: {\n type: Boolean,\n default: false\n },\n title: {\n type: String,\n default: ''\n },\n wId: {\n type: String,\n default: ''\n },\n plId: {\n type: String,\n default: ''\n }\n },\n data: function data() {\n return {\n params: {\n rstpc: null,\n rslv: null,\n rsnm: null\n },\n waterList: []\n };\n },\n created: function created() {\n this.getDetailInfo();\n this.getWaters();\n },\n methods: (_methods = {\n getWaters: function getWaters() {\n var _this = this;\n\n capacity.getWater({}, function (res) {\n _this.waterList = res.value;\n\n _this.waterList.forEach(function (ee) {\n if (_this.wId == ee.id) {\n _this.params.rscd = ee.rscd;\n _this.params.rsnm = ee.rsnm;\n }\n });\n });\n },\n deadLevs: function deadLevs(val) {\n switch (val) {\n case '1':\n this.params.rstpc = latitude.SixTree(this.params.rstpc);\n break;\n\n case '2':\n this.params.rslv = latitude.SixTree(this.params.rslv);\n break;\n }\n },\n handleClose: function handleClose() {\n this.params = {};\n this.$emit('closeFormDiao');\n },\n //保存\n goInfo: function goInfo(e) {\n var _this2 = this;\n\n this.$refs.formInfo.validate(function (valid) {\n if (valid) {\n if (_this2.title === '新增') {\n var arr = JSON.parse(JSON.stringify(_this2.params));\n capacity.addcapacity(_this2.params, function (response) {\n if (response.state) {\n _this2.$notify({\n type: 'success',\n message: '新增成功',\n duration: 2000\n });\n\n _this2.$emit('closeFormDiao');\n\n _this2.$emit('refList');\n } else {}\n });\n }\n\n if (_this2.title === '修改') {\n capacity.upDataConcapacity(_this2.params, function (response) {\n if (response.state) {\n _this2.$notify({\n type: 'success',\n message: '修改成功',\n duration: 2000\n });\n\n _this2.$emit('closeFormDiao');\n\n _this2.$emit('refList');\n } else {}\n });\n }\n } else {\n return false;\n }\n });\n }\n }, _defineProperty(_methods, \"handleClose\", function handleClose() {\n this.params = {};\n this.$emit('closeFormDiao');\n }), _defineProperty(_methods, \"getDetailInfo\", function getDetailInfo() {\n var _this3 = this;\n\n if (this.title === '修改') {\n capacity.detailIdConcapacity(this.plId, function (res) {\n if (res.state) {\n _this3.params.rstpc = res.value.rstpc;\n _this3.params.rslv = res.value.rslv;\n _this3.params.rsnm = res.value.rsnm;\n _this3.params.id = res.value.id;\n _this3.params.pkVal = res.value.pkVal;\n }\n });\n } else {}\n }), _methods)\n};",null]}