{"remainingRequest":"D:\\jenkins\\workspace\\bbsl-fvue\\node_modules\\vue-loader\\lib\\index.js??vue-loader-options!D:\\jenkins\\workspace\\bbsl-fvue\\src\\views\\stManager\\ecologicalFlowFacility.vue?vue&type=script&lang=js&","dependencies":[{"path":"D:\\jenkins\\workspace\\bbsl-fvue\\src\\views\\stManager\\ecologicalFlowFacility.vue","mtime":1684458239637},{"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//\n//\n//\n\nimport FormDialog from './components/ecologForm-dialog.vue'\nimport syqStation from '@/api/stManager/syqStation'\nimport dictUtils from '@/components/dict/DictSelectUtils.js'\nimport req from '@/request.js'\nimport {\n\tTableMixin\n} from '@/mixins/tableMixin'\nexport default {\n\tname: 'syqStation',\n\tcomponents: {\n\t\tFormDialog,\n\t},\n\tmixins: [TableMixin],\n\tdata() {\n\t\treturn {\n\t\t\tresTypes: [], //水库类型\n\t\t\tloading: false,\n\t\t\tmultipleSelection: [], // 复选框\n\t\t\tqueryParam: {\n\t\t\t\tpageBean: {\n\t\t\t\t\tpageSize: 20,\n\t\t\t\t\tpage: 1,\n\t\t\t\t},\n\t\t\t\tparams: {\n\t\t\t\t\trsnm: null, //测站名称\n\t\t\t\t\tsttp: 'SS', //测站类型\n\t\t\t\t\tappType: null, //测站应用分类\n\t\t\t\t\tsstp:null\n\t\t\t\t},\n\t\t\t},\n\t\t\ttotal: 0,\n\t\t\ttitle: '',\n\t\t\tshowFormDia: false,\n\t\t\ttableData: [],\n\t\t\tpId: '',\n\t\t\terrMessage: '',\n\t\t\terrorFileUrl: '',\n\t\t\tbasAdNames: [], //行政区\n\t\t\tsstpList:[],\n\t\t\tlookDetailDia: false, // 详情弹层\n\t\t\tcodes: {\n\t\t\t\tcodes: 'gkglbm'\n\t\t\t},\n\t\t\tsttps: [], //测站类型\n\t\t\tappTypes: [], //测站应用分类\n\t\t}\n\t},\n\tcreated() {\n\t\tthis.sstpList = dictUtils.getDictItemsFromCache('czlb-stzlx')\n\t\tthis.getDateList();\n\t\tthis.getSysDict();\n\t\t// 行政区查询\n\t\tsyqStation.getbasAdName({}, (res) => {\n\t\t\tthis.basAdNames = res.value\n\t\t})\n\t},\n\tmethods: {\n\t\topenMore() {\n\t\t\tthis.showMore = !this.showMore\n\t\t},\n\t\t//获取字典数据\n\t\tgetSysDict() {\n\t\t\tlet portal = window.context.portal\n\t\t\treturn new Promise((resolve, reject) => {\n\t\t\t\treq.post(portal + '/sys/sysDictionary/v1/queryAllDictItems').then(\n\t\t\t\t\t(response) => {\n\t\t\t\t\t\tresolve(response.data)\n\t\t\t\t\t\tthis.sttps = response.data.czzl;\n\t\t\t\t\t\tthis.appTypes = response.data.czyyfl;\n\t\t\t\t\t\tthis.getDateList()\n\t\t\t\t\t},\n\t\t\t\t\t(error) => {\n\t\t\t\t\t\treject(error)\n\t\t\t\t\t}\n\t\t\t\t)\n\t\t\t})\n\t\t},\n\t\tchangeResType(val) {\n\t\t\tif (val) {\n\t\t\t\tthis.queryParam.params.appType = val;\n\t\t\t} else {\n\t\t\t\tthis.queryParam.params.appType = null\n\t\t\t}\n\t\t},\n\t\tonhouChange(val) {\n\t\t\tif (val) {\n\t\t\t\tthis.queryParam.params.addvcd = val.pop()\n\t\t\t} else {\n\t\t\t\tthis.queryParam.params.addvcd = null\n\t\t\t}\n\t\t},\n\t\tgetDateList() {\n\t\t\tthis.loading = true;\n\t\t\tthis.tableData = [];\n\t\t\t//列表展示转换\n\t\t\tsyqStation.ListGet(this.queryParam, (res) => {\n\t\t\t\tthis.tableData = res.value.rows;\n\t\t\t\tthis.total = res.value.total;\n\t\t\t\tthis.tableData.forEach(e => {\n\t\t\t\t\tthis.sttps.forEach(i => {\n\t\t\t\t\t\tif (i.value === e.sttp) {\n\t\t\t\t\t\t\te.sttp = i.name;\n\t\t\t\t\t\t}\n\t\t\t\t\t\tthis.appTypes.forEach(j => {\n\t\t\t\t\t\t\tif (j.value === e.appType) {\n\t\t\t\t\t\t\t\te.appType = j.name;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t})\n\t\t\t\t\t})\n\t\t\t\t\tthis.sstpList.forEach(s=>{\n\t\t\t\t\t\tif(s.value==e.sstp){\n\t\t\t\t\t\t\te.sstpName=s.name\n\t\t\t\t\t\t}\n\t\t\t\t\t})\n\t\t\t\t})\n\t\t\t\tthis.loading = false;\n\t\t\t\tthis.$set(this.tableData)\n\t\t\t})\n\t\t},\n\t\topenFormDiao() {\n\t\t\tthis.title = '新增';\n\t\t\tthis.showFormDia = true;\n\t\t},\n\t\tcloseFormDiao() {\n\t\t\tthis.showFormDia = false;\n\t\t\tthis.getDateList();\n\t\t},\n\t\thandleSizeChange(val) {\n\t\t\tthis.queryParam.pageBean.pageSize = val\n\t\t\tthis.getDateList()\n\t\t},\n\t\thandleCurrentChange(val) {\n\t\t\tthis.queryParam.pageBean.page = val\n\t\t\tthis.getDateList()\n\t\t},\n\t\t//修改\n\t\thandleUpdate(row) {\n\t\t\tthis.title = '修改';\n\t\t\tthis.pId = row.id;\n\t\t\tthis.showFormDia = true;\n\t\t},\n\t\thandleSelectionChange(val) {\n\t\t\tthis.multipleSelection = val.map((item) => {\n\t\t\t\treturn item.id;\n\t\t\t})\n\t\t},\n\t\t// // 指定一个key标识这一行的数据\n\t\tgetRowKey(row) {\n\t\t\treturn row.id;\n\t\t},\n\t\t// // 批量删除\n\t\tdeleteSelect() {\n\t\t\tthis.$confirm('确定删除选中数据?', '提示', {\n\t\t\t\t\tconfirmButtonText: '确 定',\n\t\t\t\t\tcancelButtonText: '取 消',\n\t\t\t\t\ttype: 'warning',\n\t\t\t\t})\n\t\t\t\t.then(() => {\n\t\t\t\t\tsyqStation\n\t\t\t\t\t\t.remove(this.multipleSelection, (res) => {\n\t\t\t\t\t\t\tif (res.state) {\n\t\t\t\t\t\t\t\tthis.$notify({\n\t\t\t\t\t\t\t\t\ttype: 'success',\n\t\t\t\t\t\t\t\t\tmessage: '删除成功',\n\t\t\t\t\t\t\t\t\tduration: 2000,\n\t\t\t\t\t\t\t\t\t// offset: 80\n\t\t\t\t\t\t\t\t})\n\t\t\t\t\t\t\t\t// this.multipleSelection = [];\n\t\t\t\t\t\t\t\tthis.$refs.multipleSelection.clearSelection()\n\t\t\t\t\t\t\t\tthis.queryParam.pageBean.page = 1\n\t\t\t\t\t\t\t\tthis.getDateList()\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t})\n\t\t\t\t\t\t.catch((res) => {\n\t\t\t\t\t\t\tthis.$notify({\n\t\t\t\t\t\t\t\ttype: 'error',\n\t\t\t\t\t\t\t\tmessage: res.message,\n\t\t\t\t\t\t\t\tduration: 2000,\n\t\t\t\t\t\t\t\toffset: 80,\n\t\t\t\t\t\t\t})\n\t\t\t\t\t\t\tthis.getDateList()\n\t\t\t\t\t\t})\n\t\t\t\t})\n\t\t\t\t.catch(() => {})\n\t\t},\n\t\t/** 删除按钮操作 */\n\t\thandleDelete(row) {\n\t\t\tthis.$confirm('确定删除选中数据?', '提示', {\n\t\t\t\t\tconfirmButtonText: '确 定',\n\t\t\t\t\tcancelButtonText: '取 消',\n\t\t\t\t\ttype: 'warning',\n\t\t\t\t})\n\t\t\t\t.then(() => {\n\t\t\t\t\tsyqStation.remove(row.id, (res) => {\n\t\t\t\t\t\t\tif (res.state) {\n\t\t\t\t\t\t\t\tthis.$notify({\n\t\t\t\t\t\t\t\t\ttype: 'success',\n\t\t\t\t\t\t\t\t\tmessage: '删除成功',\n\t\t\t\t\t\t\t\t\tduration: 2000,\n\t\t\t\t\t\t\t\t\t// offset: 80\n\t\t\t\t\t\t\t\t})\n\t\t\t\t\t\t\t\tthis.queryParam.pageBean.page = 1\n\t\t\t\t\t\t\t\tthis.getDateList()\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t})\n\t\t\t\t\t\t.catch((res) => {\n\t\t\t\t\t\t\tthis.$notify({\n\t\t\t\t\t\t\t\ttype: 'error',\n\t\t\t\t\t\t\t\tmessage: res.message,\n\t\t\t\t\t\t\t\tduration: 2000,\n\t\t\t\t\t\t\t\toffset: 80,\n\t\t\t\t\t\t\t})\n\t\t\t\t\t\t\tthis.getDateList()\n\t\t\t\t\t\t})\n\t\t\t\t})\n\t\t\t\t.catch(() => {})\n\t\t},\n\t\t// // 点击查询\n\t\tonClickSearch() {\n\t\t\t// this.queryParam.basArea=this.queryParam.basArea;\n\t\t\t// if (this.queryParam.basArea) {\n\t\t\t// this.queryParam.basArea = this.queryParam.basArea + 'km2'\n\t\t\t// } else {\n\t\t\t// this.queryParam.basArea = null\n\t\t\t// }\n\t\t\tthis.queryParam.pageBean.page = 1\n\t\t\tthis.getDateList()\n\t\t},\n\t\t// 重置\n\t\tresetQuery() {\n\t\t\tthis.queryParam.params = {}\n\t\t\tthis.onClickSearch()\n\t\t},\n\t},\n}\n",null]}