{"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\\stManager\\gqManager.vue?vue&type=script&lang=js&","dependencies":[{"path":"D:\\jenkins\\workspace\\bbsl-fvue\\src\\views\\stManager\\gqManager.vue","mtime":1684458239684},{"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//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\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/gqForm-dialog.vue\";\nimport gqManager from '@/api/stManager/gqManager.js';\nimport latitude from '@/mixins/latitude';\nimport req from '@/request.js';\nimport { TableMixin } from '@/mixins/tableMixin';\nexport default {\n name: 'FormManger',\n components: {\n FormDialog: FormDialog\n },\n mixins: [TableMixin],\n data: function data() {\n return {\n loading: false,\n multipleSelection: [],\n // 删除复选框\n queryParam: {\n pageBean: {\n pageSize: 20,\n page: 1\n },\n params: {\n mpcd: null,\n //测点编号\n mpnm: null,\n //测点名称\n mptp: null,\n //测点类型\n sttp: null,\n //工情设施类型\n addvcd: null,\n //所在行政区域\n rsnm: null,\n //水库名称\n deviceName: null //设备名称\n\n }\n },\n params: {\n id: null,\n status: null\n },\n status: null,\n total: 0,\n title: '',\n showFormDia: false,\n tableData: [],\n pId: '',\n mptpType: [],\n //测点类型\n sttpType: [],\n //工情设施类型\n basAdNames: [],\n //行政区域\n rscds: [],\n //水库名称\n objIds: []\n };\n },\n created: function created() {\n this.getSysDict();\n this.getTreets();\n },\n methods: {\n openMore: function openMore() {\n this.showMore = !this.showMore;\n },\n getTreets: function getTreets() {\n var _this = this;\n\n // 行政区查询\n gqManager.getbasAdName({}, function (res) {\n _this.basAdNames = res.value;\n }); //获取水库\n\n gqManager.getRscds({}, function (res) {\n _this.rscds = res.value;\n });\n },\n //获取字典数据\n getSysDict: function getSysDict() {\n var _this2 = 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 _this2.mptpType = response.data.cdlx; //测点类型\n\n _this2.sttpType = response.data.gqsslx; //工情设施类型\n\n _this2.getDateList();\n }, function (error) {\n reject(error);\n });\n });\n },\n getDateList: function getDateList() {\n var _this3 = this;\n\n this.loading = true;\n this.tableData = [];\n gqManager.ListGet(this.queryParam, function (res) {\n _this3.total = res.value.total;\n res.value.rows.forEach(function (ii) {\n //测点类型\n _this3.mptpType.forEach(function (item) {\n if (ii['mptp'] === item['value']) {\n ii['mptp'] = item['name'];\n }\n }); //工情设施类型\n\n\n _this3.sttpType.forEach(function (item) {\n if (ii['sttp'] === item['value']) ii['sttp'] = item['name'];\n }); //水库名称\n\n\n _this3.rscds.forEach(function (item) {\n if (ii['rscd'] === item['rscd']) {\n ii['rsnm'] = item['rsnm'];\n }\n });\n });\n _this3.tableData = JSON.parse(JSON.stringify(res.value.rows));\n\n _this3.$set(_this3.tableData);\n\n _this3.loading = false; // console.log(this.tableData, '列表')\n });\n },\n // changeStatus(val) {\n // if (val.status) {\n // this.params.status = '1'\n // this.params.id = val.id\n // gqManager.getStatus(this.params, (res) => {\n // if (res.state) {\n // this.$notify({\n // type: 'success',\n // message: '修改成功',\n // duration: 2000,\n // })\n // }\n // })\n // } else {\n // this.params.status = '0'\n // this.params.id = val.id\n // deviceManger.getStatus(this.params, (res) => {\n // if (res.state) {\n // this.$notify({\n // type: 'warning',\n // message: '修改成功',\n // duration: 2000,\n // })\n // }\n // })\n // }\n // },\n //获取行政区域\n onhouChange: function onhouChange(val) {\n this.queryParam.params.addvcd = val.pop(); // let arr = this.basAdNames.filter((ite) => ite.code === val[0])\n // this.calleArr(arr, val[val.length - 1])\n },\n openFormDiao: function openFormDiao() {\n this.title = '新增';\n this.showFormDia = true;\n },\n closeFormDiao: function closeFormDiao() {\n this.showFormDia = false;\n this.getDateList();\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 handleUpdate: function handleUpdate(row) {\n this.title = '修改';\n this.pId = row.id;\n this.showFormDia = true;\n console.log(row);\n },\n handleSelectionChange: function handleSelectionChange(val) {\n this.multipleSelection = val.map(function (item) {\n return item.id;\n });\n },\n // // 指定一个key标识这一行的数据\n getRowKey: function getRowKey(row) {\n return row.id;\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 gqManager.remove(_this4.multipleSelection, function (res) {\n if (res.state) {\n _this4.$notify({\n type: 'success',\n message: '删除成功',\n duration: 2000 // offset: 80\n\n }); // this.multipleSelection = [];\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 }).catch(function () {});\n },\n\n /** 删除按钮操作 */\n handleDelete: function handleDelete(row) {\n var _this5 = this;\n\n this.$confirm('确定删除选中数据?', '提示', {\n confirmButtonText: '确 定',\n cancelButtonText: '取 消',\n type: 'warning'\n }).then(function () {\n FormManger.remove(row.id, function (res) {\n if (res.state) {\n _this5.$notify({\n type: 'success',\n message: '删除成功',\n duration: 2000 // offset: 80\n\n });\n\n _this5.queryParam.pageBean.page = 1;\n\n _this5.getDateList();\n }\n }).catch(function (res) {\n _this5.$notify({\n type: 'error',\n message: res.message,\n duration: 2000,\n offset: 80\n });\n\n _this5.getDateList();\n });\n }).catch(function () {});\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.onClickSearch();\n }\n }\n};",null]}