{"remainingRequest":"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\\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":["//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n\n\timport waterPaper from '@/api/waterPaper.js'\n\timport req from '@/request.js'\n\timport {\n\t\tTableMixin\n\t} from '@/mixins/tableMixin'\n\timport dictUtils from '@/components/dict/DictSelectUtils.js'\n\timport FormDialog from './wsForm-dialog.vue'\n\texport default {\n\t\tname: 'waterStation',\n\t\tmixins: [TableMixin],\n\t\tcomponents: {\n\t\t\tFormDialog\n\t\t},\n\t\tdata() {\n\t\t\treturn {\n\t\t\t\tloading: false,\n\t\t\t\tqueryParam: {\n\t\t\t\t\tpageBean: {\n\t\t\t\t\t\tpageSize: 20,\n\t\t\t\t\t\tpage: 1,\n\t\t\t\t\t},\n\t\t\t\t\tparams: {\n\t\t\t\t\t\tpaperId:null,\n\t\t\t\t\t\twpcSn:null,\n\t\t\t\t\t\t// year:null\n\t\t\t\t\t},\n\t\t\t\t},\n\t\t\t\ttitle: '',\n\t\t\t\ttotal: 0,\n\t\t\t\tshowFormDia: false,\n\t\t\t\ttableData: [],\n\t\t\t\tmultipleSelection: [], //选中的表格数据\n\t\t\t\tbasAdNames: [], //行政区\n\t\t\t\twaterCards: [], //取水证\n\t\t\t\tplId:null,\n\t\t\t\tid:null,\n\t\t\t\tczyxztList:[],\n\t\t\t\t\n\t\t\t}\n\t\t},\n\t\tcreated() {\n\t\t\twaterPaper.getbasAdName({}, (res) => {\n\t\t\t\tthis.basAdNames = res.value\n\t\t\t})\n\t\t\t\n\t\t\tthis.getwaterCard()\n\t\t\tthis.queryParam.params.paperId=this.$route.query.plId\n\t\t\tthis.czyxztList=dictUtils.getDictItemsFromCache('czyxzt')\n\t\t\tthis.plId=this.$route.query.plId\n\t\t\tthis.getDateList()\n\t\t},\n\t\tmethods: {\n\t\t\topenMore() {\n \t\t\tthis.showMore = !this.showMore\n \t\t\t },\n\t\t\tgoBack() {\n\t\t\t\tthis.$router.go(-1)\n\t\t\t},\n\t\t\t// 获取取水证\n\t\t\tgetwaterCard() {\n\t\t\t\twaterPaper.getwaterCard({}, (res) => {\n\t\t\t\t\tthis.waterCards = res.value\n\t\t\t\t\tthis.waterCards.forEach((ee)=>{\n\t\t\t\t\t\tif(this.plId==ee.id){\n\t\t\t\t\t\t\tthis.queryParam.params.paperId = ee.id\n\t\t\t\t\t\t}\n\t\t\t\t\t})\n\t\t\t\t})\n\t\t\t},\n\t\t\t//搜索\n\t\t\tonClickSearch() {\n\t\t\t\tthis.queryParam.pageBean.page = 1\n\t\t\t\tthis.getDateList()\n\t\t\t},\n\t\t\t//重置\n\t\t\tresetQuery() {\n\t\t\t\tthis.queryParam.params = {\n\t\t\t\t\tpaperId:this.$route.query.plId,\n\t\t\t\t}\n\t\t\t\t// this.queryParam.params.paperId=this.$route.query.plId,\n\t\t\t\tthis.getDateList()\n\t\t\t},\n\t\t\tonhouChange(val) {\n\t\t\t\tif (val.length > 0) {\n\t\t\t\t\tthis.queryParam.params.addvcd = val.pop().toString()\n\t\t\t\t} else {\n\t\t\t\t\tthis.queryParam.params.addvcd = null;\n\t\t\t\t}\n\t\t\t},\n\t\t\tselectChange() {\n\t\t\t\tthis.$forceUpdate()\n\t\t\t},\n\t\t\t//获取数据\n\t\t\tgetDateList() {\n\t\t\t\tthis.loading = true\n\t\t\t\tthis.tableData = []\n\t\t\t\twaterPaper.ListGetStation(this.queryParam, (res) => {\n\t\t\t\t\tif (res.state) {\n\t\t\t\t\t\tthis.total = res.value.total\n\t\t\t\t\t\tthis.tableData = res.value.rows\n\t\t\t\t\t\tthis.tableData.forEach(e=>{\n\t\t\t\t\t\t\tthis.czyxztList.forEach(s=>{\n\t\t\t\t\t\t\t\tif(e.usfl==s.value){\n\t\t\t\t\t\t\t\t\te.usflName=s.name\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t})\n\t\t\t\t\t\t})\n\t\t\t\t\t\tthis.loading = false\n\t\t\t\t\t}\n\t\t\t\t})\n\t\t\t},\n\t\t\t//新增\n\t\t\topenFormDiao() {\n\t\t\t\tthis.title = '新增'\n\t\t\t\tthis.plId=this.queryParam.params.paperId\n\t\t\t\tthis.showFormDia = true\n\t\t\t},\n\t\t\t//删除\n\t\t\tdeleteSelect() {\n\t\t\t\tthis.$confirm('确定删除选中数据?', '提示', {\n\t\t\t\t\t\tconfirmButtonText: '确 定',\n\t\t\t\t\t\tcancelButtonText: '取 消',\n\t\t\t\t\t\ttype: 'warning',\n\t\t\t\t\t})\n\t\t\t\t\t.then(() => {\n\t\t\t\t\t\twaterPaper.removeStation(this.multipleSelection, (res) => {\n\t\t\t\t\t\t\t\tif (res.state) {\n\t\t\t\t\t\t\t\t\tthis.$notify({\n\t\t\t\t\t\t\t\t\t\ttype: 'success',\n\t\t\t\t\t\t\t\t\t\tmessage: '删除成功',\n\t\t\t\t\t\t\t\t\t\tduration: 2000,\n\t\t\t\t\t\t\t\t\t\t// offset: 80\n\t\t\t\t\t\t\t\t\t})\n\t\t\t\t\t\t\t\t\tthis.$refs.multipleSelection.clearSelection()\n\t\t\t\t\t\t\t\t\tthis.queryParam.pageBean.page = 1\n\t\t\t\t\t\t\t\t\tthis.getDateList()\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t})\n\t\t\t\t\t\t\t.catch((res) => {\n\t\t\t\t\t\t\t\tthis.$notify({\n\t\t\t\t\t\t\t\t\ttype: 'error',\n\t\t\t\t\t\t\t\t\tmessage: res.message,\n\t\t\t\t\t\t\t\t\tduration: 2000,\n\t\t\t\t\t\t\t\t\toffset: 80,\n\t\t\t\t\t\t\t\t})\n\t\t\t\t\t\t\t\tthis.getDateList()\n\t\t\t\t\t\t\t})\n\t\t\t\t\t})\n\t\t\t},\n\t\t\t// 指定一个key标识这一行的数据\n\t\t\tgetRowKey(row) {\n\t\t\t\treturn row.id\n\t\t\t},\n\t\t\thandleSizeChange(val) {\n\t\t\t\tthis.queryParam.pageBean.pageSize = val\n\t\t\t\tthis.getDateList()\n\t\t\t},\n\t\t\thandleCurrentChange(val) {\n\t\t\t\tthis.queryParam.pageBean.page = val\n\t\t\t\tthis.getDateList()\n\t\t\t},\n\t\t\thandleSelectionChange(val) {\n\t\t\t\tthis.multipleSelection = val.map((item) => {\n\t\t\t\t\treturn item.id\n\t\t\t\t})\n\t\t\t},\n\t\t\tcloseFormDiao() {\n\t\t\t\tthis.showFormDia = false\n\t\t\t\tthis.getDateList()\n\t\t\t},\n\t\t\thandleUpdate(row) {\n\t\t\t\tthis.title = '修改';\n\t\t\t\tthis.id=row.id\n\t\t\t\tthis.showFormDia = true;\n\t\t\t},\n\t\t}\n\t}\n",null]}