{"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\\frontScreens\\components\\stationsModel.vue?vue&type=script&lang=js&","dependencies":[{"path":"D:\\jenkins\\workspace\\bbsl-fvue\\src\\views\\frontScreens\\components\\stationsModel.vue","mtime":1684458238824},{"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//\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 types: 'station',\n //station 测站 // rain1(水库) rain2(山洪,水文) 雨量报警 //water1(水库) water2(河道) 水位报警\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 stationColumn: [{\n label: '监测站代码',\n prop: 'stcd',\n width: '18%'\n }, {\n label: '监测站名称',\n prop: 'stnm',\n width: '25%'\n }, {\n label: '位置',\n prop: 'stlc',\n width: '38%'\n }, {\n label: '测站运行状态',\n prop: 'usfl',\n width: '20%'\n }],\n rainColumn: [{\n label: '测站名称',\n prop: 'stationName'\n }, {\n label: '水库名称',\n prop: 'name'\n }, {\n label: '报警时段',\n prop: 'timeInterval'\n }, {\n label: '时段雨量',\n prop: 'rainfall'\n }, {\n label: '报警阈值',\n prop: 'threshold'\n }, {\n label: '报警级别',\n prop: 'level'\n }, {\n label: '报警时间',\n prop: 'time'\n }],\n // rain2Column: [{\n // \t\tlabel: '测站名称',\n // \t\tprop: 'stationName',\n // \t},\n // \t{\n // \t\tlabel: '报警时段',\n // \t\tprop: 'timeInterval',\n // \t},\n // \t{\n // \t\tlabel: '时段雨量',\n // \t\tprop: 'rainfall',\n // \t},\n // \t{\n // \t\tlabel: '报警阈值',\n // \t\tprop: 'threshold',\n // \t},\n // \t{\n // \t\tlabel: '报警级别',\n // \t\tprop: 'level',\n // \t},\n // \t{\n // \t\tlabel: '报警时间',\n // \t\tprop: 'time',\n // \t},\n // ],\n // rain3Column: [{\n // \t\tlabel: '测站名称',\n // \t\tprop: 'stationName',\n // \t},\n // \t{\n // \t\tlabel: '报警时段',\n // \t\tprop: 'timeInterval',\n // \t},\n // \t{\n // \t\tlabel: '时段雨量',\n // \t\tprop: 'rainfall',\n // \t},\n // \t{\n // \t\tlabel: '报警阈值',\n // \t\tprop: 'threshold',\n // \t},\n // \t{\n // \t\tlabel: '报警级别',\n // \t\tprop: 'level',\n // \t},\n // \t{\n // \t\tlabel: '报警时间',\n // \t\tprop: 'time',\n // \t},\n // ],\n waterColumn: [{\n label: '测站名称',\n prop: 'stnm',\n width: '25%'\n }, {\n label: '预警时间',\n prop: 'sendDate',\n width: '30%'\n }, {\n label: '预警等级',\n prop: 'warnGrade',\n width: '15%'\n }, {\n label: '当前水位',\n prop: 'currentValue',\n width: '15%'\n }, {\n label: '预警阈值',\n prop: 'warnVal',\n width: '15%'\n }],\n // water2Column: [\n // {\n // label: '测站名称',\n // prop: 'stationName',\n // },\n // {\n // label: '河流名称',\n // prop: 'name',\n // },\n // {\n // label: '当前水位',\n // prop: 'waterLevel',\n // },\n // {\n // label: '警戒水位',\n // prop: 'threshold',\n // },\n // {\n // label: '报警级别',\n // prop: 'level',\n // },\n // {\n // label: '报警时间',\n // prop: 'time',\n // },\n // ],\n stationData: [{\n code: '123123',\n name: 'xx测站',\n place: 'xxxxxxxxx',\n status: '正常'\n }, {\n code: '123123',\n name: 'xx测站',\n place: 'xxxxxxxxx',\n status: '正常'\n }, {\n code: '123123',\n name: 'xx测站',\n place: 'xxxxxxxxx',\n status: '正常'\n }, {\n code: '123123',\n name: 'xx测站',\n place: 'xxxxxxxxx',\n status: '正常'\n }, {\n code: '123123',\n name: 'xx测站',\n place: 'xxxxxxxxx',\n status: '正常'\n }, {\n code: '123123',\n name: 'xx测站',\n place: 'xxxxxxxxx',\n status: '正常'\n }, {\n code: '123123',\n name: 'xx测站',\n place: 'xxxxxxxxx',\n status: '正常'\n }, {\n code: '123123',\n name: 'xx测站',\n place: 'xxxxxxxxx',\n status: '正常'\n }, {\n code: '123123',\n name: 'xx测站',\n place: 'xxxxxxxxx',\n status: '正常'\n }, {\n code: '123123',\n name: 'xx测站',\n place: 'xxxxxxxxx',\n status: '正常'\n }],\n water1Data: [{\n stationName: 'xx测站',\n name: 'xx水库',\n waterLevel: '235M',\n threshold: '240M',\n level: 2,\n time: '2022-03-30 15:00:00'\n }],\n water2Data: [{\n stationName: 'xx测站',\n name: 'xx河',\n waterLevel: '123.5M',\n threshold: '122M',\n level: 2,\n time: '2022-03-30 15:00:00'\n }, {\n stationName: 'xx测站',\n name: 'xx河',\n waterLevel: '235M',\n threshold: '240M',\n level: 2,\n time: '2022-03-30 15:00:00'\n }],\n rain1Data: [],\n rain2Data: [],\n rain3Data: [{\n stationName: 'xx测站',\n timeInterval: '1小时',\n rainfall: '121',\n threshold: '120',\n level: 2,\n time: '2022-03-30 15:00:00'\n }, {\n stationName: 'xx测站',\n timeInterval: '2小时',\n rainfall: '143',\n threshold: '135',\n level: 2,\n time: '2022-03-30 14:00:00'\n }],\n queryData: null,\n warningLevels: [],\n //预警等级\n warningTypes: [{\n name: '自动',\n value: '1'\n }, {\n name: '人工',\n value: '2'\n }],\n stationApps: [],\n //测站应用分类\n stationClass: [],\n //测站站类\n tableType: null,\n rscd: '',\n warnSdList: [{\n name: '1小时雨量',\n value: 'p1'\n }, {\n name: '3小时雨量',\n value: 'p3'\n }, {\n name: '6小时雨量',\n value: 'p6'\n }, {\n name: '12小时雨量',\n value: 'p12'\n }, {\n name: '24小时雨量',\n value: 'p24'\n }]\n };\n },\n watch: {\n Alarm: function Alarm(val) {\n console.log(val);\n },\n tableType: function tableType(val) {\n console.log(val);\n },\n types: function types(val) {\n console.log(val);\n }\n },\n methods: {\n open: function open(title, type, data, rscd) {\n var _this = this;\n\n console.log(title, type, data, rscd);\n this.data = [];\n\n if (rscd == 'Alarm') {\n this.Alarm = true;\n } else {\n this.params.rscd = rscd;\n }\n\n this.types = type;\n this.queryData = data;\n\n if (type == 'rain') {\n if (this.queryData.tableData) {\n this.queryData.tableData.forEach(function (e) {\n if (e.warnDate) {\n var a = JSON.parse(e.warnDate);\n\n _this.warnSdList.forEach(function (w) {\n if (w.value == a.warnSd) {\n e.warnSdName = w.name;\n }\n });\n }\n });\n }\n }\n\n if (this.queryData.stationType == '生态流量站') {\n this.queryData.sttp = 'SS';\n }\n\n if (this.queryData.sttp == '1' || this.queryData.sttp == '2' || this.queryData.sttp == '3') {\n this.tableType = 1;\n } else if (this.queryData.sttp == 'PP' || this.queryData.sttp == 'RR' || this.queryData.sttp == 'SS') {\n this.tableType = 2;\n } else if (this.queryData.sttp == 'SP') {\n this.tableType = 3;\n }\n\n this.title = \"\".concat(title, \"\\u8BE6\\u60C5\");\n this.visible = true;\n this.matchType();\n },\n handleSelectionChange: function handleSelectionChange(val) {\n this.multipleSelection = this.multipleSelection = val.map(function (item) {\n return item.id;\n });\n },\n dblClick: function dblClick(val) {\n console.log(val);\n\n if (this.queryData.type == 'shuiku') {\n var routeData;\n\n switch (this.queryData.sttp) {\n case 'PP':\n window.sessionStorage.setItem(\"StationId\", val.stcd);\n routeData = this.$router.resolve({\n path: '/bizPlat/monitor/resMonitor/ylStQuery'\n });\n window.open(routeData.href, '_blank');\n break;\n\n case 'RR':\n // this.$store.commit(\"index/addressMap\", address);\n // this.$store.commit(\"index/cdPage\", page);\n window.sessionStorage.setItem(\"StationId\", val.stcd);\n window.sessionStorage.setItem(\"pages\", 'first');\n routeData = this.$router.resolve({\n path: '/bizPlat/monitor/sqMonitor/swStQuery'\n });\n window.open(routeData.href, '_blank');\n break;\n\n case '1':\n window.sessionStorage.setItem(\"StationId\", val.rscd);\n window.sessionStorage.setItem(\"StationRscd\", val.mpnm);\n routeData = this.$router.resolve({\n path: '/bizPlat/monitor/gqMonitor/wyQuery'\n });\n window.open(routeData.href, '_blank');\n break;\n\n case '3':\n window.sessionStorage.setItem(\"StationId\", val.mpnm);\n routeData = this.$router.resolve({\n path: '/bizPlat/monitor/gqMonitor/sygQuery'\n });\n window.open(routeData.href, '_blank');\n break;\n\n case 'SS':\n window.sessionStorage.setItem(\"StationId\", val.stnm);\n routeData = this.$router.resolve({\n path: '/bizPlat/monitor/sqMonitor/sdzQuery'\n });\n window.open(routeData.href, '_blank');\n break;\n }\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.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 matchType: function matchType() {\n var _this3 = this;\n\n this.column = this[\"\".concat(this.types, \"Column\")];\n\n if (this.queryData.sttp == '') {\n this.data = [];\n } else {\n if (this.types == 'water' || this.types == 'rain') {\n this.data = this.queryData.tableData || [];\n this.warningLevels = dictUtils.getDictItemsFromCache('yjdj'); //预警等级\n\n this.stationApps = dictUtils.getDictItemsFromCache('czyyfl'); //测站应用分类\n\n this.stationClass = dictUtils.getDictItemsFromCache('sblx'); //测站站类\n\n this.data.forEach(function (ee) {\n _this3.warningLevels.forEach(function (el) {\n if (ee.warnGrade == el.sequence) {\n ee.warnGrade = el.name;\n }\n });\n\n _this3.warningTypes.forEach(function (et) {\n if (ee.produceType == et.value) {\n ee.produceType = et.name;\n }\n });\n\n _this3.stationApps.forEach(function (ea) {\n if (ee.appType == ea.value) {\n ee.appType = ea.name;\n }\n });\n\n _this3.stationClass.forEach(function (ec) {\n if (ee.warnType == ec.value) {\n ee.warnType = ec.name;\n }\n });\n });\n } else if (this.types == 'station') {\n this.params.sttp = this.queryData.sttp;\n\n if (this.queryData.sttp == 'PP' || this.queryData.sttp == 'RR' || this.queryData.sttp == 'SS') {\n this.params.reType = \"1\";\n this.data = [];\n digitalReservoir.findStList(this.params, function (res) {\n if (res.state) {\n _this3.$nextTick(function () {\n _this3.data = res.value;\n });\n }\n });\n } else if (this.queryData.sttp == '1' || this.queryData.sttp == '2' || this.queryData.sttp == '3') {\n var paramm = {\n sttp: this.queryData.sttp,\n rscd: this.params.rscd\n };\n digitalReservoir.findGqStation(paramm, function (res) {\n if (res.state) {\n _this3.data = res.value;\n }\n });\n } else if (this.queryData.sttp == 'SP') {\n digitalReservoir.videoList({\n rscd: this.params.rscd,\n reType: 2\n }, function (res) {\n if (res.state) {\n _this3.data = res.value;\n }\n });\n }\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 downMusic: function downMusic() {\n this.$emit('noMusic');\n }\n }\n};",null]}