{"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\\reservoirManager.vue?vue&type=script&lang=js&","dependencies":[{"path":"D:\\jenkins\\workspace\\bbsl-fvue\\src\\views\\reservoirManagement\\reservoirManager.vue","mtime":1684458239559},{"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 \"core-js/modules/es7.array.includes\";\nimport \"core-js/modules/es6.string.includes\";\nimport \"core-js/modules/es6.regexp.split\";\nimport \"core-js/modules/es6.function.name\";\nimport \"core-js/modules/web.dom.iterable\";\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//\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//\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 FormDialog from \"./components/resForm-dialog.vue\";\nimport reservoirManager from '@/api/reservoirManagement/reservoirManager.js';\nimport resRelation from \"./components/resRelation.vue\";\nimport dictUtils from '@/components/dict/DictSelectUtils.js';\nimport StresRelation from \"./components/StresRelation.vue\";\nimport LiftRelation from \"./components/LiftRelation.vue\";\nimport req from '@/request.js';\nimport { TableMixin } from '@/mixins/tableMixin';\nexport default {\n name: 'reservoirManager',\n components: {\n FormDialog: FormDialog,\n resRelation: resRelation,\n StresRelation: StresRelation,\n LiftRelation: LiftRelation\n },\n mixins: [TableMixin],\n data: function data() {\n return {\n relation: '',\n //关联参数\n reSets: [{\n name: '关联测站',\n value: 'relationStation',\n id: '1'\n }, {\n name: '关联监控点',\n value: 'relationUpdate',\n id: '2'\n }],\n waterSources: [{\n name: '非水源',\n value: '0'\n }, {\n name: '饮用水源',\n value: '1'\n }, {\n name: '备用水源',\n value: '2'\n }],\n //水源地\n prsts: [{\n name: '在建',\n value: '1'\n }, {\n name: '已建',\n value: '2'\n }, {\n name: '其他',\n value: '9'\n }],\n //工程状态\n rowId: '',\n showMore: false,\n prscs: [],\n rsrs: [{}],\n //水库功能\n resTypes: [],\n //水库类型\n damGrads: [],\n //大坝级别\n damTypeMats: [],\n //大坝材料类型\n loading: false,\n multipleSelection: [],\n // 复选框\n queryParam: {\n pageBean: {\n pageSize: 20,\n page: 1\n },\n params: {\n rsnm: null,\n //水库名称\n resType: null,\n //水库类型\n addvcd: null //行政区\n\n }\n },\n damGrad: null,\n // 大坝级别\n damTypeMat: null,\n //大坝材料类型\n total: 0,\n title: '',\n showFormDia: false,\n showFormDias: false,\n StshowFormDias: false,\n tableData: [],\n pId: '',\n rscd: '',\n errMessage: '',\n errorFileUrl: '',\n basAdNames: [],\n //行政区\n lookDetailDia: false,\n // 详情弹层\n codes: {\n codes: 'gkglbm'\n },\n crOverTypes: [],\n //跨界类型\n basGrads: [],\n //流域级别\n Station: '',\n reset: '',\n row: {},\n arr: [],\n LiftShow: false\n };\n },\n created: function created() {\n var _this = this;\n\n this.gcgm = dictUtils.getDictItemsFromCache('gcgm');\n this.getDateList();\n this.getSysDict(); // 行政区查询\n\n reservoirManager.getbasAdName({}, function (res) {\n _this.basAdNames = res.value;\n });\n },\n methods: {\n relationUpdate: function relationUpdate(row) {\n //打开监控关联\n this.row = row;\n this.relation = this.row.hystCode;\n this.rowId = this.row.id;\n this.showFormDias = true;\n },\n relationLift: function relationLift(row) {\n console.log(row);\n this.row = row; // this.relation = this.row.hystCode\n\n this.rowId = this.row.id;\n this.rscd = this.row.rscd;\n this.LiftShow = true;\n console.log(this.LiftShow);\n },\n relationStation: function relationStation(row) {\n //打开测站关联\n this.row = row;\n this.relation = this.row.hystCode;\n this.rowId = this.row.id;\n this.rscd = this.row.rscd;\n this.StshowFormDias = true;\n },\n closeFormDiaos: function closeFormDiaos() {\n //关闭监控关联\n this.showFormDias = false;\n this.getDateList();\n },\n LiftRelations: function LiftRelations() {\n //关闭监控关联\n this.LiftShow = false;\n this.getDateList();\n },\n closeStshowForm: function closeStshowForm() {\n //关闭测站关联\n this.StshowFormDias = false;\n this.getDateList();\n },\n openMore: function openMore() {\n this.showMore = !this.showMore;\n },\n //获取字典数据\n getSysDict: function getSysDict() {\n var _this2 = this;\n\n var portal = window.context.portal;\n return new Promise(function (resolve, reject) {\n req.post(portal + '/sys/sysDictionary/v1/queryAllDictItems').then(function (response) {\n resolve(response.data);\n _this2.resTypes = response.data.sklx;\n _this2.prscs = response.data.gcgm; //工程规模\n\n _this2.rsrs = response.data.skgn; //水库功能\n\n _this2.damGrads = response.data.dbjb; //大坝级别\n\n _this2.damTypeMats = response.data.dbcl; //大坝材料类型\n\n _this2.getDateList();\n }, function (error) {\n reject(error);\n });\n });\n },\n changeResType: function changeResType(val) {\n if (val) {\n this.queryParam.params.resType = val;\n } else {\n this.queryParam.params.resType = null;\n }\n },\n onhouChange: function onhouChange(val) {\n if (val) {\n this.queryParam.params.addvcd = val.pop();\n } else {\n this.queryParam.params.addvcd = null;\n }\n },\n RemoveValByIndex: function RemoveValByIndex(arr, index) {\n arr.splice(index, 1);\n },\n getDateList: function getDateList() {\n var _this3 = this;\n\n this.loading = true;\n this.tableData = [];\n reservoirManager.ListGet(this.queryParam, function (res) {\n _this3.tableData = res.value.rows;\n _this3.total = res.value.total;\n _this3.loading = false;\n\n _this3.resTypes.forEach(function (e) {\n _this3.tableData.forEach(function (i) {\n if (i.resType === e.value) {\n i.resType = e.name;\n }\n });\n });\n\n _this3.waterSources.forEach(function (e) {\n _this3.tableData.forEach(function (i) {\n if (i.waterSource === e.value) {\n i.waterSource = e.name;\n }\n });\n });\n\n _this3.prscs.forEach(function (e) {\n _this3.tableData.forEach(function (i) {\n if (i.prsc === e.value) {\n i.prsc = e.name;\n }\n });\n });\n\n _this3.prsts.forEach(function (e) {\n _this3.tableData.forEach(function (i) {\n if (i.prst === e.value) {\n i.prst = e.name;\n }\n });\n });\n\n _this3.damGrads.forEach(function (e) {\n _this3.tableData.forEach(function (i) {\n if (i.damGrad === e.value) {\n i.damGrad = e.name;\n }\n });\n });\n\n _this3.damTypeMats.forEach(function (e) {\n _this3.tableData.forEach(function (i) {\n if (i.damTypeMat === e.value) {\n i.damTypeMat = e.name;\n }\n });\n });\n\n _this3.tableData.forEach(function (e) {\n e.rsfn = _this3.handleName(e.rsfn);\n\n if (e.token != undefined) {\n e.token = 1;\n } else {\n e['token'] = 0;\n }\n });\n\n _this3.$set(_this3.tableData);\n });\n },\n handleName: function handleName(row, column) {\n var name = \"\";\n var rsfn = row.split(',');\n this.rsrs.forEach(function (e) {\n if (rsfn.includes(e.value)) {\n name += e.name + ',';\n }\n });\n return name.substring(0, name.lastIndexOf(','));\n },\n openFormDiao: function openFormDiao() {\n this.title = '新增';\n this.showFormDia = true;\n },\n closeFormDiao: function closeFormDiao() {\n this.showFormDia = false;\n this.getDateList();\n },\n handleSizeChange: function handleSizeChange(val) {\n this.queryParam.pageBean.pageSize = val;\n this.getDateList();\n },\n handleCurrentChange: function handleCurrentChange(val) {\n this.queryParam.pageBean.page = val;\n this.getDateList();\n },\n // // 修改\n handleUpdate: function handleUpdate(row) {\n this.title = '修改';\n this.pId = row.id;\n this.rscd = row.rscd;\n this.showFormDia = true;\n },\n handleSelectionChange: function handleSelectionChange(val) {\n this.multipleSelection = val.map(function (item) {\n return item.id;\n });\n },\n // // 指定一个key标识这一行的数据\n getRowKey: function getRowKey(row) {\n return row.id;\n },\n // 注册水库\n registerRes: function registerRes() {\n var _this4 = this;\n\n this.$confirm('确定注册选中数据?', '提示', {\n confirmButtonText: '确 定',\n cancelButtonText: '取 消',\n type: 'warning'\n }).then(function () {\n reservoirManager.register(_this4.multipleSelection, function (res) {\n if (res.state) {\n _this4.$notify({\n type: 'success',\n message: '注册成功',\n duration: 2000 // offset: 80\n\n }); // this.multipleSelection = [];\n\n\n _this4.$refs.multipleSelection.clearSelection();\n\n _this4.queryParam.pageBean.page = 1;\n\n _this4.getDateList();\n }\n }).catch(function (res) {\n _this4.$notify({\n type: 'error',\n message: res.message,\n duration: 2000,\n offset: 80\n });\n\n _this4.getDateList();\n });\n }).catch(function () {});\n },\n // // 批量删除\n deleteSelect: function deleteSelect() {\n var _this5 = this;\n\n this.$confirm('确定删除选中数据?', '提示', {\n confirmButtonText: '确 定',\n cancelButtonText: '取 消',\n type: 'warning'\n }).then(function () {\n reservoirManager.remove(_this5.multipleSelection, function (res) {\n if (res.state) {\n _this5.$notify({\n type: 'success',\n message: '删除成功',\n duration: 2000 // offset: 80\n\n }); // this.multipleSelection = [];\n\n\n _this5.$refs.multipleSelection.clearSelection();\n\n _this5.queryParam.pageBean.page = 1;\n\n _this5.getDateList();\n }\n }).catch(function (res) {\n _this5.$notify({\n type: 'error',\n message: res.message,\n duration: 2000,\n offset: 80\n });\n\n _this5.getDateList();\n });\n }).catch(function () {});\n },\n\n /** 删除按钮操作 */\n handleDelete: function handleDelete(row) {\n var _this6 = this;\n\n this.$confirm('确定删除选中数据?', '提示', {\n confirmButtonText: '确 定',\n cancelButtonText: '取 消',\n type: 'warning'\n }).then(function () {\n reservoirManager.remove(row.id, function (res) {\n if (res.state) {\n _this6.$notify({\n type: 'success',\n message: '删除成功',\n duration: 2000 // offset: 80\n\n });\n\n _this6.queryParam.pageBean.page = 1;\n\n _this6.getDateList();\n }\n }).catch(function (res) {\n _this6.$notify({\n type: 'error',\n message: res.message,\n duration: 2000,\n offset: 80\n });\n\n _this6.getDateList();\n });\n }).catch(function () {});\n },\n // // 点击查询\n onClickSearch: function onClickSearch() {\n this.queryParam.pageBean.page = 1;\n this.getDateList();\n },\n // 重置\n resetQuery: function resetQuery() {\n this.queryParam.params = {};\n this.onClickSearch();\n }\n }\n};",null]}