{"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\\warningRelease\\personWarn.vue?vue&type=script&lang=js&","dependencies":[{"path":"D:\\jenkins\\workspace\\bbsl-fvue\\src\\views\\warningRelease\\personWarn.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/es6.regexp.replace\";\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//\nimport personWarn from '@/api/warningRelease/personWarn';\nimport { TableMixin } from '@/mixins/tableMixin';\nimport personFormDialog from \"./components/personForm-dialog\";\nimport req from '@/request.js';\nexport default {\n mixins: [TableMixin],\n components: {\n personFormDialog: personFormDialog\n },\n data: function data() {\n return {\n queryParam: {\n params: {\n stcd: null,\n //测站代码\n warnGrade: null //预警等级\n\n },\n pageBean: {\n pageSize: 20,\n page: 1\n }\n },\n stnms: [],\n //测站名称\n yjdjs: [],\n //预警等级\n tableData: [],\n //展示的数据嘛\n sendDate: '',\n //预警时间\n total: 0,\n //总数据\n multipleSelection: [],\n // 删除复选框\n title: '',\n showFormDia: false,\n pId: ''\n };\n },\n created: function created() {\n var _this = this;\n\n this.getSysDict(); //获取字典数据\n\n this.getDateList(); //获取数据\n //获取测站下拉列表\n\n personWarn.getTree({}, function (response) {\n _this.stnms = response.value;\n\n _this.stnms.forEach(function (item) {\n if (item.children) {\n item.children = JSON.parse(JSON.stringify(item.children).replace(/stnm/g, 'name'));\n }\n });\n });\n },\n // watch: {\n // tableData: {\n // handler(newVal) {\n // this.stnms.forEach((item) => {\n // if (item.children) {\n // item.children.forEach((cc) => {\n // newVal.forEach((ii) => {\n // if (cc.parentId === ii['warnType'] && cc.stcd === ii['stcd']) {\n // ii['warnType'] = cc.name\n // }\n // })\n // })\n // }\n // })\n // },\n // },\n // },\n methods: {\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 _this2.yjdjs = response.data.yjdj;\n\n _this2.getDateList();\n }, function (error) {\n reject(error);\n });\n });\n },\n //获取数据\n getDateList: function getDateList() {\n var _this3 = this;\n\n this.loading = true;\n this.tableData = [];\n\n if (this.sendDate) {\n var starTime = new Date(this.sendDate[0]);\n var endTime = new Date(this.sendDate[1]);\n this.queryParam.params.startTime = starTime.getFullYear() + '-' + (starTime.getMonth() + 1) + '-' + starTime.getDate();\n this.queryParam.params.endTime = endTime.getFullYear() + '-' + (endTime.getMonth() + 1) + '-' + endTime.getDate();\n }\n\n if (!this.queryParam.params.stcd) {\n this.queryParam.params.stcd = null;\n }\n\n personWarn.getListTable(this.queryParam, function (res) {\n if (res.state) {\n // console.log(res.value.rows)\n if (res.value.rows) {\n res.value.rows.forEach(function (item) {\n item['warnGrade'].trim();\n\n _this3.yjdjs.forEach(function (ii) {\n if (ii.value == item['warnGrade'].trim()) {\n item['warnGrade'] = ii.name;\n }\n });\n });\n }\n\n _this3.tableData = res.value.rows; // console.log( this.tableData)\n\n _this3.$set(_this3.tableData, _this3.tableData);\n\n _this3.total = res.value.total;\n _this3.loading = false;\n } else {\n _this3.$message(res.message);\n }\n });\n },\n handleChange: function handleChange(children) {\n this.queryParam.params.stcd = children[1]; // console.log(this.queryParam.params.stcd)\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.sendDate = '';\n this.onClickSearch();\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 // // 批量删除\n deleteSelect: function deleteSelect() {\n var _this4 = this;\n\n this.$confirm('确定删除选中数据?', '提示', {\n confirmButtonText: '确 定',\n cancelButtonText: '取 消',\n type: 'warning'\n }).then(function () {\n personWarn.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 openFormDiao: function openFormDiao() {\n this.title = '新增';\n this.showFormDia = true;\n },\n // // 修改\n handleUpdate: function handleUpdate(row) {\n this.title = '修改';\n this.pId = row.id;\n this.showFormDia = true; // console.log(row)\n },\n closeFormDiao: function closeFormDiao() {\n this.showFormDia = false;\n this.getDateList();\n },\n // // 指定一个key标识这一行的数据\n getRowKey: function getRowKey(row) {\n return row.id;\n }\n }\n};",null]}