{"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\\infoManagement\\rvManager.vue?vue&type=script&lang=js&","dependencies":[{"path":"D:\\jenkins\\workspace\\bbsl-fvue\\src\\views\\infoManagement\\rvManager.vue","mtime":1684458239246},{"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/web.dom.iterable\";\nimport \"core-js/modules/es6.function.name\";\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//\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/rmForm-dialog.vue\";\nimport StresRelation from \"./components/StresRelation.vue\";\nimport rvMonitorRelation from \"./components/rvMonitorRelation.vue\";\nimport rivers from '@/api/rivers.js';\nimport req from '@/request.js';\nimport { TableMixin } from '@/mixins/tableMixin';\nexport default {\n name: 'rvManager',\n components: {\n FormDialog: FormDialog,\n StresRelation: StresRelation,\n rvMonitorRelation: rvMonitorRelation\n },\n mixins: [TableMixin],\n data: function data() {\n return {\n rowId: '',\n rvCode: '',\n relation: '',\n //关联参数\n reSets: [{\n name: '关联测站',\n value: 'relationStation',\n id: '1'\n }, {\n name: '关联监控点',\n value: 'relationUpdate',\n id: '2'\n }],\n StshowFormDias: false,\n showFormDias: false,\n loading: false,\n multipleSelection: [],\n // 复选框\n queryParam: {\n pageBean: {\n pageSize: 20,\n page: 1\n },\n params: {\n code: null,\n //(河流代码 )\n rvGrad: null,\n //(河流级别)\n name: null,\n //(河流名称)\n crOverType: null,\n //(跨界类型\n rvType: null //(河流类型)\n\n }\n },\n total: 0,\n title: '',\n showFormDia: false,\n tableData: [],\n pId: '',\n errMessage: '',\n errorFileUrl: '',\n rvBelong: [],\n //所属水系\n rvGrads: [],\n //河流级别\n rvTypes: [],\n //河流类型数组\n basAdNames: [],\n //行政区\n lookDetailDia: false,\n // 详情弹层\n codes: {\n codes: 'gkglbm'\n },\n crOverTypes: [],\n //跨界类型\n basGrads: [],\n //流域级别\n banks: [],\n setKesLabel: {\n value: 'code',\n label: 'name',\n children: 'children'\n }\n };\n },\n computed: {},\n created: function created() {\n var _this = this;\n\n this.getSysDict();\n this.getDateList(); // 行政区查询\n\n rivers.getbasAdName({}, function (res) {\n _this.basAdNames = res.value;\n });\n },\n methods: {\n relationUpdate: function relationUpdate(row) {\n //打开监控关联\n this.row = row;\n this.rvCode = row.code;\n this.relation = this.row.hystCode;\n this.rowId = this.row.id;\n this.showFormDias = true;\n },\n relationStation: function relationStation(row) {\n //打开测站关联\n this.row = row;\n this.relation = this.row.code;\n this.rowId = this.row.id;\n this.StshowFormDias = true;\n },\n closeStshowForm: function closeStshowForm() {\n //关闭测站关联\n this.StshowFormDias = false;\n this.getDateList();\n },\n closeFormDiaos: function closeFormDiaos() {\n //关闭监控关联\n this.showFormDias = false;\n this.getDateList();\n },\n openMore: function openMore() {\n this.showMore = !this.showMore;\n },\n changecrOverType: function changecrOverType(val) {\n if (val) {\n this.queryParam.params.crOverType = val;\n } else {\n this.queryParam.params.crOverType = null;\n }\n },\n changervGrad: function changervGrad(val) {\n if (val) {\n this.queryParam.params.rvGrad = val;\n } else {\n this.queryParam.params.rvGrad = null;\n }\n },\n changervType: function changervType(val) {\n if (val) {\n this.queryParam.params.rvType = val;\n } else {\n this.queryParam.params.rvType = null;\n }\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.crOverTypes = response.data.kjlx;\n _this2.rvGrads = response.data.hljb;\n _this2.rvTypes = response.data.hllx;\n _this2.banks = response.data.hlab;\n _this2.rvBelong = response.data.sx;\n\n _this2.getDateList();\n }, function (error) {\n reject(error);\n });\n });\n },\n getDateList: function getDateList() {\n var _this3 = this;\n\n this.loading = true;\n this.tableData = [];\n rivers.ListGet(this.queryParam, function (res) {\n if (res.state) {\n _this3.total = res.value.total;\n\n for (var a = 0; a < _this3.crOverTypes.length; a++) {\n for (var b = 0; b < res.value.rows.length; b++) {\n if (_this3.crOverTypes[a].value === res.value.rows[b].crOverType) {\n res.value.rows[b].crOverTypesName = _this3.crOverTypes[a].name;\n } else {\n res.value.rows[b].crOverTypesName = '';\n }\n }\n }\n\n res.value.rows.forEach(function (ii) {\n _this3.crOverTypes.forEach(function (ee) {\n if (ee.value == ii.crOverType) {\n ii['crOverTypesName'] = ee.name;\n }\n });\n\n _this3.banks.forEach(function (e) {\n if (e.value == ii.bank) {\n ii['bankName'] = e.name;\n }\n });\n\n _this3.rvTypes.forEach(function (e) {\n if (e.value == ii.rvType) {\n ii['rvTypeName'] = e.name;\n }\n });\n\n _this3.rvGrads.forEach(function (e) {\n if (e.value == ii.rvGrad) {\n ii['rvGrad'] = e.name;\n }\n });\n\n _this3.rvBelong.forEach(function (e) {\n if (e.value == ii.rvSystem) {\n ii['rvSystem'] = e.name;\n }\n });\n }); // for (let i = 0; i < this.rvTypes.length; i++) {\n // for (let j = 0; j < res.value.rows.length; j++) {\n // if (this.rvTypes[i].value === res.value.rows[j].rvType) {\n // res.value.rows[j].rvTypeName = this.rvTypes[i].name\n // } else {\n // res.value.rows[j].rvTypeName = ''\n // }\n // }\n // }\n // for (let c = 0; c < this.banks.length; c++) {\n // for (let d = 0; d < res.value.rows.length; d++) {\n // if (this.banks[c].value === res.value.rows[b].bank) {\n // res.value.rows[b].bankName = this.banks[c].name\n // } else {\n // res.value.rows[b].bankName = ''\n // }\n // }\n // }\n\n _this3.tableData = res.value.rows;\n _this3.loading = false;\n }\n });\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 console.log(row);\n this.title = '修改';\n this.pId = row.id;\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 deleteSelect: function deleteSelect() {\n var _this4 = this;\n\n this.$confirm('确定删除选中数据?', '提示', {\n confirmButtonText: '确 定',\n cancelButtonText: '取 消',\n type: 'warning'\n }).then(function () {\n rivers.remove(_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 /** 删除按钮操作 */\n handleDelete: function handleDelete(row) {\n var _this5 = this;\n\n this.$confirm('确定删除选中数据?', '提示', {\n confirmButtonText: '确 定',\n cancelButtonText: '取 消',\n type: 'warning'\n }).then(function () {\n rivers.remove(row.id, function (res) {\n if (res.state) {\n _this5.$notify({\n type: 'success',\n message: '删除成功',\n duration: 2000 // offset: 80\n\n });\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 onClickSearch: function onClickSearch() {\n // this.queryParam.basArea=this.queryParam.basArea;\n // if (this.queryParam.basArea) {\n // this.queryParam.basArea = this.queryParam.basArea + 'km2'\n // } else {\n // this.queryParam.basArea = null\n // }\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]}