{"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\\hystManager.vue?vue&type=script&lang=js&","dependencies":[{"path":"D:\\jenkins\\workspace\\bbsl-fvue\\src\\views\\reservoirManagement\\hystManager.vue","mtime":1684458239527},{"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/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//\nimport hysRelation from \"./components/hysRelation.vue\";\nimport FormDialog from \"./components/hystForm-dialog.vue\";\nimport hystManager from '@/api/reservoirManagement/hystManager.js';\nimport hysStresRelation from \"./components/hysStresRelation.vue\";\nimport req from '@/request.js';\nimport { TableMixin } from '@/mixins/tableMixin';\nexport default {\n name: 'hystManager',\n components: {\n FormDialog: FormDialog,\n hysRelation: hysRelation,\n hysStresRelation: hysStresRelation\n },\n mixins: [TableMixin],\n data: function data() {\n return {\n loading: false,\n relation: '',\n //关联参数\n reSets: [{\n name: '关联测站',\n value: 'relationStation',\n id: '1'\n }, {\n name: '关联监控点',\n value: 'relationUpdate',\n id: '2'\n }],\n rowId: '',\n multipleSelection: [],\n // 复选框\n queryParam: {\n pageBean: {\n pageSize: 20,\n page: 1\n },\n params: {\n hystCode: null,\n //水电站代码\n hystName: null,\n //水电站名称\n hystType: null,\n //水电站类型(参考字典)\n engScal: null //工程规模\n\n }\n },\n showFormDias: false,\n StshowFormDias: false,\n total: 0,\n title: '',\n showFormDia: false,\n tableData: [],\n pId: '',\n hystTypes: [],\n //水电站类型\n engScals: [] //工程规模\n\n };\n },\n created: function created() {\n this.getDateList();\n this.getSysDict();\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 relationStation: function relationStation(row) {\n //打开测站关联\n this.row = row;\n this.relation = this.row.hystCode;\n this.rowId = this.row.id;\n this.StshowFormDias = true;\n },\n closeFormDiaos: function closeFormDiaos() {\n //关闭监控关联\n this.showFormDias = false;\n this.getDateList();\n },\n closeStshowForm: function closeStshowForm() {\n //关闭测站关联\n this.StshowFormDias = false;\n this.getDateList();\n },\n changehyengScal: function changehyengScal(val) {\n if (val) {\n this.queryParam.params.engScal = val;\n this.getDateList();\n } else {\n this.queryParam.params.engScal = null;\n }\n },\n changehystType: function changehystType(val) {\n if (val) {\n this.queryParam.params.hystType = val;\n this.getDateList();\n } else {\n this.queryParam.params.hystType = null;\n }\n },\n //获取字典数据\n getSysDict: function getSysDict() {\n var _this = 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 _this.hystTypes = response.data.sdzlx; //水电站类型\n\n _this.engScals = response.data.gcgm; //工程规模\n\n _this.getDateList();\n }, function (error) {\n reject(error);\n });\n });\n },\n getDateList: function getDateList() {\n var _this2 = this;\n\n this.loading = true;\n this.tableData = [];\n hystManager.ListGet(this.queryParam, function (res) {\n _this2.total = res.value.total;\n\n for (var i = 0; i < _this2.hystTypes.length; i++) {\n for (var j = 0; j < res.value.rows.length; j++) {\n if (_this2.hystTypes[i].value === res.value.rows[j].hystType) {\n res.value.rows[j].hystTypeName = _this2.hystTypes[i].name;\n } else {}\n }\n }\n\n for (var _i = 0; _i < _this2.engScals.length; _i++) {\n for (var _j = 0; _j < res.value.rows.length; _j++) {\n if (_this2.engScals[_i].value === res.value.rows[_j].engScal) {\n res.value.rows[_j].engScalName = _this2.engScals[_i].name;\n } else {}\n }\n }\n\n _this2.tableData = res.value.rows;\n _this2.loading = false;\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 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 _this3 = this;\n\n this.$confirm('确定删除选中数据?', '提示', {\n confirmButtonText: '确 定',\n cancelButtonText: '取 消',\n type: 'warning'\n }).then(function () {\n hystManager.remove(_this3.multipleSelection, function (res) {\n if (res.state) {\n _this3.$notify({\n type: 'success',\n message: '删除成功',\n duration: 2000 // offset: 80\n\n }); // this.multipleSelection = [];\n\n\n _this3.$refs.multipleSelection.clearSelection();\n\n _this3.queryParam.pageBean.page = 1;\n\n _this3.getDateList();\n }\n }).catch(function (res) {\n _this3.$notify({\n type: 'error',\n message: res.message,\n duration: 2000,\n offset: 80\n });\n\n _this3.getDateList();\n });\n }).catch(function () {});\n },\n\n /** 删除按钮操作 */\n handleDelete: function handleDelete(row) {\n var _this4 = this;\n\n this.$confirm('确定删除选中数据?', '提示', {\n confirmButtonText: '确 定',\n cancelButtonText: '取 消',\n type: 'warning'\n }).then(function () {\n hystManager.remove(row.id, function (res) {\n if (res.state) {\n _this4.$notify({\n type: 'success',\n message: '删除成功',\n duration: 2000 // offset: 80\n\n });\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 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]}