{"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\\waterCompany.vue?vue&type=script&lang=js&","dependencies":[{"path":"D:\\jenkins\\workspace\\bbsl-fvue\\src\\views\\infoManagement\\waterCompany.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/es6.function.name\";\nimport \"core-js/modules/web.dom.iterable\";\nimport \"core-js/modules/es6.regexp.to-string\";\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\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/wtForm-dialog.vue\";\nimport waterCompany from '@/api/waterCompany.js';\nimport req from '@/request.js';\nimport { TableMixin } from '@/mixins/tableMixin';\nexport default {\n name: 'rvManager',\n components: {\n FormDialog: FormDialog\n },\n mixins: [TableMixin],\n data: function data() {\n return {\n scopeTime: '',\n loading: false,\n multipleSelection: [],\n // 复选框\n queryParam: {\n pageBean: {\n pageSize: 20,\n page: 1\n },\n params: {\n basAdCode: null,\n waterName: null,\n waterType: null,\n startTime: null,\n endTime: null\n }\n },\n total: 0,\n title: '',\n showFormDia: false,\n tableData: [],\n pId: '',\n errMessage: '',\n errorFileUrl: '',\n rvGrads: [],\n //河流级别数组\n rvTypes: [],\n //河流类型数组\n monitorLevels: [],\n //监控级别\n basAdNames: [],\n //行政区\n waterTypes: [],\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 waterCompany.getbasAdName({}, function (res) {\n _this.basAdNames = res.value;\n });\n },\n methods: {\n changeDate: function changeDate(val) {\n if (val) {\n this.queryParam.params.startTime = val[0];\n this.queryParam.params.endTime = val[1];\n } else {\n this.queryParam.params.startTime = '';\n this.queryParam.params.endTime = '';\n }\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 onhouChange: function onhouChange(val) {\n if (val.length > 0) {\n this.queryParam.params.basAdCode = val.pop().toString();\n } else {\n this.queryParam.params.basAdCode = 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.waterTypes = response.data.qslx;\n _this2.monitorLevels = response.data.jkjb;\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 waterCompany.ListGet(this.queryParam, function (res) {\n if (res.state) {\n _this3.total = res.value.total;\n res.value.rows.forEach(function (ii) {\n _this3.monitorLevels.forEach(function (ee) {\n if (ee.value == ii.monitorLevel) {\n ii['monitorLevelName'] = ee.name;\n }\n });\n\n _this3.waterTypes.forEach(function (ee) {\n if (ee.value == ii.waterType) {\n ii['waterTypeName'] = ee.name;\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 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 waterCompany.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 waterCompany.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.pageBean.page = 1;\n this.getDateList();\n },\n // 重置\n resetQuery: function resetQuery() {\n this.queryParam.params = {};\n this.scopeTime = '';\n this.onClickSearch();\n },\n toWaterPapers: function toWaterPapers(row) {\n console.log(row);\n this.$router.push({\n path: 'waterPaper',\n query: {\n id: row.id,\n waterName: row.waterName\n }\n });\n }\n }\n};",null]}