{"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\\monitor\\otherMonitor\\waterCompanyMonitor.vue?vue&type=script&lang=js&","dependencies":[{"path":"D:\\jenkins\\workspace\\bbsl-fvue\\src\\views\\monitor\\otherMonitor\\waterCompanyMonitor.vue","mtime":1684458239309},{"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":["//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\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 sdzQuery from '@/api/monitor/otherMonitor/waterCompanyMonitor.js';\nimport dictUtils from '@/components/dict/DictSelectUtils.js';\nimport req from '@/request.js';\nimport { TableMixin } from '@/mixins/tableMixin';\nexport default {\n name: 'sdzQuery',\n components: {// FormDialog,\n // hysRelation\n },\n mixins: [TableMixin],\n data: function data() {\n return {\n setKesLabel: {\n value: 'code',\n label: 'name',\n children: 'children'\n },\n basAdNames: [],\n //行政区\n loading: false,\n qslx: [],\n jkjb: [],\n timeValue: [],\n showMore: false,\n queryParam: {\n pageBean: {\n pageSize: 20,\n page: 1\n },\n params: {\n waterName: null,\n addvcd: null,\n industryType: null\n }\n },\n total: 0,\n tableData: []\n };\n },\n created: function created() {\n this.qslx = dictUtils.getDictItemsFromCache('qslx');\n this.jkjb = dictUtils.getDictItemsFromCache('jkjb');\n this.getSysDict();\n },\n methods: {\n onhouChange: function onhouChange(val) {\n if (val) {\n this.queryParam.params.addvcd = val[val.length - 1];\n } else {\n this.queryParam.params.addvcd = null;\n }\n },\n openMore: function openMore() {\n this.showMore = !this.showMore;\n },\n //获取字典数据\n getSysDict: function getSysDict() {\n var _this = 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 sdzQuery.getbasAdName({}, function (res) {\n _this.basAdNames = res.value;\n });\n _this.hystTypes = response.data.sdzlx; //水电站类型\n\n _this.engScals = response.data.gcgm; //工程规模\n\n _this.getDateList();\n }, function (error) {\n reject(error);\n });\n });\n },\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 getDateList: function getDateList() {\n var _this2 = this;\n\n this.loading = true;\n this.tableData = [];\n sdzQuery.ListGet(this.queryParam, function (res) {\n _this2.total = res.value.total;\n console.log(res);\n\n for (var index = 0; index < res.value.rows.length; index++) {\n if (res.value.rows[index].waterType == 1) {\n res.value.rows[index].waterType = \"既取又用\";\n }\n\n if (res.value.rows[index].waterType == 2) {\n res.value.rows[index].waterType = \"只取不用\";\n } else {\n res.value.rows[index].waterType = \"只用不取\";\n }\n\n if (res.value.rows[index].monitorLevel == 1) {\n res.value.rows[index].monitorLevel = \"国控级\";\n }\n\n if (res.value.rows[index].monitorLevel == 2) {\n res.value.rows[index].monitorLevel = \"省控级\";\n }\n\n if (res.value.rows[index].monitorLevel == 3) {\n res.value.rows[index].monitorLevel = \"地市级\";\n }\n\n if (res.value.rows[index].monitorLevel == 4) {\n res.value.rows[index].monitorLevel = \"区县级\";\n } else {\n res.value.rows[index].usfl = \"其他\";\n }\n }\n\n _this2.tableData = res.value.rows;\n _this2.loading = false;\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 onClickSearch: function onClickSearch() {\n this.queryParam.pageBean.page = 1;\n this.getDateList();\n },\n // 重置\n resetQuery: function resetQuery() {\n this.queryParam.params = {};\n this.getDateList();\n }\n }\n};",null]}