{"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\\dikeManager.vue?vue&type=script&lang=js&","dependencies":[{"path":"D:\\jenkins\\workspace\\bbsl-fvue\\src\\views\\reservoirManagement\\dikeManager.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/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//\nimport FormDialog from \"./components/dikeForm-dialog.vue\";\nimport dikeManager from '@/api/reservoirManagement/dikeManager.js';\nimport StresRelation from \"./components/StresRelationdike.vue\";\nimport req from '@/request.js';\nimport { TableMixin } from '@/mixins/tableMixin';\nexport default {\n name: 'dikeManager',\n components: {\n FormDialog: FormDialog,\n StresRelation: StresRelation\n },\n mixins: [TableMixin],\n data: function data() {\n return {\n reSets: [{\n name: '关联测站',\n value: 'relationStation',\n id: '1'\n }],\n loading: false,\n relation: '',\n //关联参数\n StshowFormDias: false,\n rowId: '',\n multipleSelection: [],\n // 复选框\n queryParam: {\n pageBean: {\n pageSize: 20,\n page: 1\n },\n params: {\n dikeName: null,\n //堤防名称\n dikeType: null,\n //堤防类型(参考字典)\n dikeGrad: null //堤防级别(参考字典\n\n }\n },\n total: 0,\n title: '',\n showFormDia: false,\n tableData: [],\n pId: '',\n dikeTypes: [],\n //堤防类型\n dikeGrads: [],\n //堤防级别\n dikePatts: [] //堤防形式\n\n };\n },\n created: function created() {\n this.getDateList();\n this.getSysDict();\n },\n methods: {\n relationStation: function relationStation(row) {\n //打开测站关联\n this.row = row;\n this.relation = this.row.dikeCode;\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 // openMore() {\n // this.showMore = !this.showMore\n // },\n changedikeGrad: function changedikeGrad(val) {\n if (val) {\n this.queryParam.params.dikeGrad = val;\n } else {\n this.queryParam.params.dikeGrad = null;\n }\n },\n changedikeType: function changedikeType(val) {\n if (val) {\n this.queryParam.params.dikeType = val;\n } else {\n this.queryParam.params.dikeType = 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.dikePatts = response.data.dfxs; //堤防形式\n\n _this.dikeTypes = response.data.dflx; //堤防类型\n\n _this.dikeGrads = response.data.dfjb; //堤防级别\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 dikeManager.ListGet(this.queryParam, function (res) {\n _this2.tableData = res.value.rows;\n _this2.total = res.value.total;\n\n for (var i = 0; i < _this2.dikeTypes.length; i++) {\n for (var j = 0; j < _this2.tableData.length; j++) {\n if (_this2.dikeTypes[i].value === _this2.tableData[j].dikeType) {\n _this2.tableData[j].dikeTypeName = _this2.dikeTypes[i].name;\n } else {// this.tableData[j].dikeTypeName='';\n }\n }\n }\n\n _this2.dikePatts.forEach(function (e) {\n _this2.tableData.forEach(function (i) {\n if (i.dikePatt === e.value) {\n i.dikePatt = e.name;\n }\n });\n });\n\n _this2.dikeGrads.forEach(function (e) {\n _this2.tableData.forEach(function (i) {\n if (i.dikeGrad === e.value) {\n i.dikeGrad = e.name;\n }\n });\n });\n\n _this2.$set(_this2.tableData, _this2.tableData);\n\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 dikeManager.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 dikeManager.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]}