{"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\\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\\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//\nimport dictUtils from '@/components/dict/DictSelectUtils.js';\nimport digitalReservoir from '@/api/frontScreen/digitalReservoir.js';\nexport default {\n name: 'stationsModel',\n data: function data() {\n return {\n visible: false,\n title: '',\n data: [],\n column: [],\n Alarm: false,\n multipleSelection: [],\n params: {\n appTypeList: [],\n endTime: \"\",\n id: \"\",\n mpcd: \"\",\n periodTime: \"\",\n rscd: \"\",\n startTime: \"\",\n stcd: \"\",\n stlc: \"\",\n stnm: \"\",\n sttp: \"ZZ\",\n sttpList: [],\n usfl: \"\"\n },\n warningLevels: [],\n //预警等级\n warningTypes: [] //预警类型\n\n };\n },\n created: function created() {\n this.warningLevels = dictUtils.getDictItemsFromCache('yjdj'); //预警等级\n\n this.warningTypes = dictUtils.getDictItemsFromCache('yjlx'); //预警类型\n },\n watch: {\n Alarm: function Alarm(val) {\n console.log(val);\n }\n },\n methods: {\n open: function open(WarningData) {\n var _this = this;\n\n console.log(WarningData);\n\n if (!!WarningData) {\n this.Alarm = true;\n }\n\n this.data = WarningData;\n this.data.forEach(function (ee) {\n _this.warningLevels.forEach(function (el) {\n if (ee.warnGrade == el.sequence) {\n ee.warnGrade = el.name;\n }\n });\n\n _this.warningTypes.forEach(function (el) {\n if (ee.warnType == el.sequence) {\n ee.warnType = el.name;\n }\n });\n });\n this.title = \"\\u6240\\u6709\\u62A5\\u8B66\\u4FE1\\u606F\\u8BE6\\u60C5\";\n this.visible = true;\n },\n handleSelectionChange: function handleSelectionChange(val) {\n this.multipleSelection = this.multipleSelection = val.map(function (item) {\n return item.id;\n });\n },\n BatchProcess: function BatchProcess() {\n var _this2 = this;\n\n this.$confirm('此操作将关闭所选测站预警状态, 是否继续?', '提示', {\n confirmButtonText: '确定',\n cancelButtonText: '取消',\n type: 'warning'\n }).then(function () {\n digitalReservoir.updateStatus(_this2.multipleSelection, function (res) {\n if (res.state) {\n _this2.$message.success('处理成功');\n\n _this2.$emit(\"getAllWarning\");\n\n _this2.close();\n } else {\n _this2.$message.error(res.$message);\n }\n });\n }).catch(function () {\n _this2.$message({\n type: 'info',\n message: '已取消删除'\n });\n });\n },\n close: function close() {\n this.visible = false;\n this.$emit('close');\n\n if (this.Alarm) {\n this.$emit('Warning');\n }\n }\n }\n};",null]}