{"remainingRequest":"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\\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":["//\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 import req from '@/request.js'\n import latitude from '@/mixins/latitude'\n\timport capacity from '@/api/reservoirManagement/resFrom.js'\n\timport {\n\t\tmapState\n\t} from 'vuex'\n\texport default {\n\t\tprops: {\n\t\t\tshowFormDia: {\n\t\t\t\ttype: Boolean,\n\t\t\t\tdefault: false,\n\t\t\t},\n\t\t\ttitle: {\n\t\t\t\ttype: String,\n\t\t\t\tdefault: '',\n\t\t\t},\n\t\t\twId: {\n\t\t\t\ttype: String,\n\t\t\t\tdefault: '',\n\t\t\t},\n\t\t\tplId: {\n\t\t\t\ttype: String,\n\t\t\t\tdefault: '',\n\t\t\t},\n\t\t},\n\t\tdata() {\n\t\t\treturn {\n\t\t\t\tparams: {\n rstpc: null,\n rslv:null,\n\t\t\t\t\trsnm:null\n },\n\t\t\t\twaterList: [],\n \n\t\t\t}\n\t\t},\n\t\tcreated() {\n this.getDetailInfo()\n this.getWaters()\n\t\t},\n\t\tmethods: {\n getWaters() {\n\t\t\t\tcapacity.getWater({}, (res) => {\n\t\t\t\t\tthis.waterList = res.value\n\t\t\t\t\tthis.waterList.forEach((ee) => {\n\t\t\t\t\t\tif (this.wId == ee.id) {\n\t\t\t\t\t\t\tthis.params.rscd = ee.rscd\n\t\t\t\t\t\t\tthis.params.rsnm = ee.rsnm\n\t\t\t\t\t\t}\n\t\t\t\t\t})\n\t\t\t\t})\n\t\t\t},\n deadLevs(val) {\n switch (val) {\n case '1':\n this.params.rstpc = latitude.SixTree(this.params.rstpc)\n break\n case '2':\n this.params.rslv = latitude.SixTree(this.params.rslv)\n break\n }\n },\n\t\t\thandleClose() {\n\t\t\t\tthis.params = {}\n\t\t\t\tthis.$emit('closeFormDiao')\n\t\t\t},\n\n\t\t\n\t\t\t//保存\n\t\t\tgoInfo(e) {\n\t\t\t\tthis.$refs.formInfo.validate((valid) => {\n\t\t\t\t\tif (valid) {\n\t\t\t\t\t\tif (this.title === '新增') {\n\t\t\t\t\t\t\tlet arr = JSON.parse(JSON.stringify(this.params))\n\t\t\t\t\t\t\tcapacity.addcapacity(this.params, (response) => {\n\t\t\t\t\t\t\t\tif (response.state) {\n\t\t\t\t\t\t\t\t\tthis.$notify({\n\t\t\t\t\t\t\t\t\t\ttype: 'success',\n\t\t\t\t\t\t\t\t\t\tmessage: '新增成功',\n\t\t\t\t\t\t\t\t\t\tduration: 2000,\n\t\t\t\t\t\t\t\t\t})\n\t\t\t\t\t\t\t\t\tthis.$emit('closeFormDiao')\n\t\t\t\t\t\t\t\t\tthis.$emit('refList')\n\t\t\t\t\t\t\t\t} else {}\n\t\t\t\t\t\t\t})\n\t\t\t\t\t\t}\n\t\t\t\t\t\tif (this.title === '修改') {\n\t\t\t\t\t\t\tcapacity.upDataConcapacity(this.params, (response) => {\n\t\t\t\t\t\t\t\tif (response.state) {\n\t\t\t\t\t\t\t\t\tthis.$notify({\n\t\t\t\t\t\t\t\t\t\ttype: 'success',\n\t\t\t\t\t\t\t\t\t\tmessage: '修改成功',\n\t\t\t\t\t\t\t\t\t\tduration: 2000,\n\t\t\t\t\t\t\t\t\t})\n\t\t\t\t\t\t\t\t\tthis.$emit('closeFormDiao')\n\t\t\t\t\t\t\t\t\tthis.$emit('refList')\n\t\t\t\t\t\t\t\t} else {}\n\t\t\t\t\t\t\t})\n\t\t\t\t\t\t}\n\t\t\t\t\t} else {\n\t\t\t\t\t\treturn false\n\t\t\t\t\t}\n\t\t\t\t})\n\t\t\t},\n\t\t\t//取消\n\t\t\thandleClose() {\n\t\t\t\tthis.params = {}\n\t\t\t\tthis.$emit('closeFormDiao')\n\t\t\t},\n\t\t\t//修改查询\n\t\t\tgetDetailInfo() {\n\t\t\t\tif (this.title === '修改') {\n\t\t\t\t\tcapacity.detailIdConcapacity(this.plId, (res) => {\n\t\t\t\t\t\tif (res.state) {\n\t\t\t\t\t\t\tthis.params.rstpc = res.value.rstpc\n\t\t\t\t\t\t\tthis.params.rslv = res.value.rslv\n\t\t\t\t\t\t\tthis.params.rsnm = res.value.rsnm\n\t\t\t\t\t\t\tthis.params.id = res.value.id\n\t\t\t\t\t\t\tthis.params.pkVal = res.value.pkVal\n\t\t\t\t\t\t}\n\t\t\t\t\t})\n\t\t\t\t} else {\n\n\t\t\t\t}\n\t\t\t},\n\t\t\n\t\t}\n\t}\n",null]}