{"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\\waterStation.vue?vue&type=script&lang=js&","dependencies":[{"path":"D:\\jenkins\\workspace\\bbsl-fvue\\src\\views\\infoManagement\\components\\waterStation.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/es6.regexp.to-string\";\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//\nimport waterPaper from '@/api/waterPaper.js';\nimport req from '@/request.js';\nimport { TableMixin } from '@/mixins/tableMixin';\nimport dictUtils from '@/components/dict/DictSelectUtils.js';\nimport FormDialog from \"./wsForm-dialog.vue\";\nexport default {\n name: 'waterStation',\n mixins: [TableMixin],\n components: {\n FormDialog: FormDialog\n },\n data: function data() {\n return {\n loading: false,\n queryParam: {\n pageBean: {\n pageSize: 20,\n page: 1\n },\n params: {\n paperId: null,\n wpcSn: null // year:null\n\n }\n },\n title: '',\n total: 0,\n showFormDia: false,\n tableData: [],\n multipleSelection: [],\n //选中的表格数据\n basAdNames: [],\n //行政区\n waterCards: [],\n //取水证\n plId: null,\n id: null,\n czyxztList: []\n };\n },\n created: function created() {\n var _this = this;\n\n waterPaper.getbasAdName({}, function (res) {\n _this.basAdNames = res.value;\n });\n this.getwaterCard();\n this.queryParam.params.paperId = this.$route.query.plId;\n this.czyxztList = dictUtils.getDictItemsFromCache('czyxzt');\n this.plId = this.$route.query.plId;\n this.getDateList();\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 getwaterCard: function getwaterCard() {\n var _this2 = this;\n\n waterPaper.getwaterCard({}, function (res) {\n _this2.waterCards = res.value;\n\n _this2.waterCards.forEach(function (ee) {\n if (_this2.plId == ee.id) {\n _this2.queryParam.params.paperId = ee.id;\n }\n });\n });\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 paperId: this.$route.query.plId\n }; // this.queryParam.params.paperId=this.$route.query.plId,\n\n this.getDateList();\n },\n onhouChange: function onhouChange(val) {\n if (val.length > 0) {\n this.queryParam.params.addvcd = val.pop().toString();\n } else {\n this.queryParam.params.addvcd = null;\n }\n },\n selectChange: function selectChange() {\n this.$forceUpdate();\n },\n //获取数据\n getDateList: function getDateList() {\n var _this3 = this;\n\n this.loading = true;\n this.tableData = [];\n waterPaper.ListGetStation(this.queryParam, function (res) {\n if (res.state) {\n _this3.total = res.value.total;\n _this3.tableData = res.value.rows;\n\n _this3.tableData.forEach(function (e) {\n _this3.czyxztList.forEach(function (s) {\n if (e.usfl == s.value) {\n e.usflName = s.name;\n }\n });\n });\n\n _this3.loading = false;\n }\n });\n },\n //新增\n openFormDiao: function openFormDiao() {\n this.title = '新增';\n this.plId = this.queryParam.params.paperId;\n this.showFormDia = true;\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 waterPaper.removeStation(_this4.multipleSelection, function (res) {\n if (res.state) {\n _this4.$notify({\n type: 'success',\n message: '删除成功',\n duration: 2000 // offset: 80\n\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 });\n },\n // 指定一个key标识这一行的数据\n getRowKey: function getRowKey(row) {\n return row.id;\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 handleSelectionChange: function handleSelectionChange(val) {\n this.multipleSelection = val.map(function (item) {\n return item.id;\n });\n },\n closeFormDiao: function closeFormDiao() {\n this.showFormDia = false;\n this.getDateList();\n },\n handleUpdate: function handleUpdate(row) {\n this.title = '修改';\n this.id = row.id;\n this.showFormDia = true;\n }\n }\n};",null]}