{"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\\components\\waterPaper.vue?vue&type=script&lang=js&","dependencies":[{"path":"D:\\jenkins\\workspace\\bbsl-fvue\\src\\views\\infoManagement\\components\\waterPaper.vue","mtime":1684458239215},{"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\";\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\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 waterPaper from '@/api/waterPaper.js';\nimport req from '@/request.js';\nimport { TableMixin } from '@/mixins/tableMixin';\nimport FormDialog from \"./wpForm-dialog.vue\";\nexport default {\n name: \"waterPaper\",\n components: {\n FormDialog: FormDialog\n },\n mixins: [TableMixin],\n data: function data() {\n return {\n loading: false,\n queryParam: {\n pageBean: {\n pageSize: 20,\n page: 1\n },\n params: {}\n },\n multipleSelection: [],\n //选中的表格数据\n tableData: [],\n total: 0,\n waterTypes: [],\n //取水类型\n monitorLevels: [],\n //监控级别\n certificates: [],\n //证件状态\n headwatersTypes: [],\n //水源类型\n waterPurposes: [],\n //取水用途\n waterModes: [],\n //取水方式\n showFormDia: false,\n title: '',\n pId: '',\n waterName: ''\n };\n },\n created: function created() {\n this.queryParam.params.waterId = this.$route.query.id;\n this.waterName = this.$route.query.waterName;\n this.getDateList();\n this.getSysDict();\n },\n methods: {\n openMore: function openMore() {\n this.showMore = !this.showMore;\n },\n goBack: function goBack() {\n this.$router.go(-1);\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.queryParam.params.waterId = this.$route.query.id;\n this.onClickSearch();\n },\n //新增\n openFormDiao: function openFormDiao() {\n this.title = '新增';\n this.pId = this.$route.query.id;\n this.showFormDia = true;\n },\n handleUpdate: function handleUpdate(row) {\n this.title = '修改';\n this.pId = row.id;\n this.showFormDia = true;\n },\n closeFormDiao: function closeFormDiao() {\n this.showFormDia = false;\n this.getDateList();\n },\n //删除\n deleteSelect: function deleteSelect() {\n var _this = this;\n\n this.$confirm('确定删除选中数据?', '提示', {\n confirmButtonText: '确 定',\n cancelButtonText: '取 消',\n type: 'warning'\n }).then(function () {\n waterPaper.remove(_this.multipleSelection, function (res) {\n if (res.state) {\n _this.$notify({\n type: 'success',\n message: '删除成功',\n duration: 2000 // offset: 80\n\n }); // this.multipleSelection = [];\n\n\n _this.$refs.multipleSelection.clearSelection();\n\n _this.queryParam.pageBean.page = 1;\n\n _this.getDateList();\n }\n }).catch(function (res) {\n _this.$notify({\n type: 'error',\n message: res.message,\n duration: 2000,\n offset: 80\n });\n\n _this.getDateList();\n });\n }).catch(function () {});\n },\n //获取数据\n getDateList: function getDateList() {\n var _this2 = this;\n\n this.loading = true;\n this.tableData = [];\n waterPaper.ListGet(this.queryParam, function (res) {\n if (res.state) {\n _this2.total = res.value.total;\n res.value.rows.forEach(function (ii) {\n _this2.headwatersTypes.forEach(function (ee) {\n if (ee.value == ii.waterSource) {\n ii['waterSourceName'] = ee.name;\n }\n });\n\n _this2.waterPurposes.forEach(function (ee) {\n if (ee.value == ii.waterPurpose) {\n ii['waterPurposeName'] = ee.name;\n }\n });\n\n _this2.waterModes.forEach(function (ee) {\n if (ee.value == ii.waterFetch) {\n ii['waterFetchName'] = ee.name;\n }\n });\n\n _this2.certificates.forEach(function (ee) {\n if (ee.value == ii.status) {\n ii['statusName'] = ee.name;\n }\n });\n });\n _this2.tableData = res.value.rows;\n _this2.loading = false;\n }\n });\n },\n // 指定一个key标识这一行的数据\n getRowKey: function getRowKey(row) {\n return row.id;\n },\n handleSelectionChange: function handleSelectionChange(val) {\n this.multipleSelection = val.map(function (item) {\n return item.id;\n });\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 towaterPlan: function towaterPlan(row) {\n this.$router.push({\n path: 'waterPlan',\n query: {\n plId: row.id\n }\n });\n this.$route.query.id = \"\";\n },\n towaterStation: function towaterStation(row) {\n this.$router.push({\n path: 'waterStation',\n query: {\n plId: row.id\n }\n });\n },\n //获取字典数据\n getSysDict: function getSysDict() {\n var _this3 = 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 _this3.waterTypes = response.data.qslx; //取水类型\n\n _this3.monitorLevels = response.data.jkjb; //监控级别\n\n _this3.certificates = response.data.zjzt; //证件状态\n\n _this3.headwatersTypes = response.data.sylx; //水源类型\n\n _this3.waterPurposes = response.data.qsyt; //取水用途\n\n _this3.waterModes = response.data.qsfs; //取水方式\n\n _this3.getDateList();\n }, function (error) {\n reject(error);\n });\n });\n }\n }\n};",null]}