{"remainingRequest":"D:\\jenkins\\workspace\\bbsl-fvue\\node_modules\\vue-loader\\lib\\index.js??vue-loader-options!D:\\jenkins\\workspace\\bbsl-fvue\\src\\components\\layout\\warning\\WarningDialog.vue?vue&type=script&lang=js&","dependencies":[{"path":"D:\\jenkins\\workspace\\bbsl-fvue\\src\\components\\layout\\warning\\WarningDialog.vue","mtime":1684458238106},{"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\r\nimport dictUtils from '@/components/dict/DictSelectUtils.js'\r\nimport digitalReservoir from '@/api/frontScreen/digitalReservoir.js'\r\nexport default {\r\n name: 'stationsModel',\r\n data() {\r\n return {\r\n visible: false,\r\n title: '',\r\n data: [],\r\n column: [],\r\n Alarm: false,\r\n multipleSelection: [],\r\n params: {\r\n appTypeList: [],\r\n endTime: \"\",\r\n id: \"\",\r\n mpcd: \"\",\r\n periodTime: \"\",\r\n rscd: \"\",\r\n startTime: \"\",\r\n stcd: \"\",\r\n stlc: \"\",\r\n stnm: \"\",\r\n sttp: \"ZZ\",\r\n sttpList: [],\r\n usfl: \"\"\r\n },\r\n warningLevels: [], //预警等级\r\n warningTypes: []//预警类型\r\n }\r\n },\r\n created() {\r\n this.warningLevels = dictUtils.getDictItemsFromCache('yjdj') //预警等级\r\n this.warningTypes = dictUtils.getDictItemsFromCache('yjlx') //预警类型\r\n },\r\n watch: {\r\n Alarm(val) {\r\n console.log(val)\r\n },\r\n },\r\n\r\n methods: {\r\n open(WarningData) {\r\n console.log(WarningData);\r\n if (!!WarningData) {\r\n this.Alarm = true\r\n }\r\n this.data = WarningData\r\n this.data.forEach(ee => {\r\n this.warningLevels.forEach(el => {\r\n if (ee.warnGrade == el.sequence) {\r\n ee.warnGrade = el.name\r\n }\r\n })\r\n this.warningTypes.forEach(el => {\r\n if (ee.warnType == el.sequence) {\r\n ee.warnType = el.name\r\n }\r\n })\r\n\r\n })\r\n this.title = `所有报警信息详情`\r\n this.visible = true\r\n\r\n },\r\n handleSelectionChange(val) {\r\n this.multipleSelection = this.multipleSelection = val.map(item => {\r\n return item.id\r\n })\r\n },\r\n BatchProcess() {\r\n this.$confirm('此操作将关闭所选测站预警状态, 是否继续?', '提示', {\r\n confirmButtonText: '确定',\r\n cancelButtonText: '取消',\r\n type: 'warning'\r\n }).then(() => {\r\n digitalReservoir.updateStatus(this.multipleSelection, res => {\r\n if (res.state) {\r\n this.$message.success('处理成功')\r\n this.$emit(\"getAllWarning\")\r\n this.close()\r\n } else {\r\n this.$message.error(res.$message)\r\n }\r\n })\r\n }).catch(() => {\r\n this.$message({\r\n type: 'info',\r\n message: '已取消删除'\r\n });\r\n });\r\n },\r\n close() {\r\n this.visible = false\r\n this.$emit('close')\r\n if (this.Alarm) {\r\n this.$emit('Warning');\r\n }\r\n },\r\n },\r\n}\r\n",null]}