{"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\\gisTabComponents\\module\\WRStationModel.vue?vue&type=script&lang=js&","dependencies":[{"path":"D:\\jenkins\\workspace\\bbsl-fvue\\src\\views\\frontScreens\\components\\gisTabComponents\\module\\WRStationModel.vue","mtime":1684458238652},{"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//\nimport dictUtils from '@/components/dict/DictSelectUtils.js';\nimport gisMap from '@/api/frontScreen/gisMap.js';\nexport default {\n name: 'WRStationModel',\n props: {\n currentPoint: {\n type: Object,\n default: function _default() {\n return {};\n }\n },\n stationType: {\n type: String,\n default: ''\n }\n },\n data: function data() {\n return {\n activeName: '测站详情',\n params: {\n appTypeList: [],\n endTime: \"\",\n id: \"\",\n mpcd: \"\",\n periodTime: \"\",\n rscd: \"\",\n startTime: \"\",\n stcd: \"\",\n stlc: \"\",\n stnm: \"\",\n sttp: \"\",\n sttpList: [],\n usfl: \"\"\n },\n tableData: [],\n tableData1: [],\n column: [],\n yjdj: [],\n // 雨量站\n columnPP: [{\n label: '报警等级',\n prop: 'warnGrade'\n }, {\n label: '时间',\n prop: 'tm',\n width: 160\n }, {\n label: '时段雨量',\n prop: 'drp'\n }, {\n label: '日累计雨量',\n prop: 'dyp',\n width: 90\n }],\n // 河道水位站\n columnZZ: [{\n label: '报警等级',\n prop: 'level'\n }, {\n label: '时间',\n prop: 'time',\n width: 160\n }, {\n label: '水位',\n prop: 'a'\n }, {\n label: '流量',\n prop: 'b'\n }],\n // 水库水文站\n columnRR: [{\n label: '报警等级',\n prop: 'level'\n }, {\n label: '时间',\n prop: 'time',\n width: 160\n }, {\n label: '水位',\n prop: 'a'\n }, {\n label: '流量',\n prop: 'b'\n }]\n };\n },\n inject: ['mapData'],\n created: function created() {\n var mapData = this.mapData();\n this.districtData = this.originData;\n this.L = mapData.L;\n this.map = mapData.map; // this.getGisPptnLatestList()\n\n this.yjdj = dictUtils.getDictItemsFromCache('yjdj');\n },\n watch: {\n stationType: {\n handler: function handler(newVal, oldVal) {\n if (newVal) {\n this.column = this[\"column\".concat(this.stationType)];\n }\n },\n immediate: true // immediate选项可以开启首次赋值监听\n\n },\n currentPoint: {\n handler: function handler(newVal) {// if (this.stationType == 'RR') {\n // \tthis.getWaterRegimesk()\n // \tthis.getGisPptnLatestList()\n // } else if (this.stationType == 'PP') {\n // \tthis.getGisPptnLatestList()\n // } else {\n // \tthis.getHdswLatestList()\n // }\n // this.activeName = '测站详情'\n }\n }\n },\n mounted: function mounted() {},\n beforeDestroy: function beforeDestroy() {},\n methods: {\n handleClick: function handleClick(tab, event) {},\n getHdswLatestList: function getHdswLatestList() {\n var _this = this;\n\n this.params.stcd = this.currentPoint.stcd;\n this.params.sttp = this.currentPoint.sttp;\n gisMap.hdswLatestList(this.params, function (res) {\n if (res.state) {\n _this.tableData1 = res.value;\n\n _this.tableData1.forEach(function (e) {\n _this.yjdj.forEach(function (c) {\n if (e.warnGrade == c.value) {\n e.level = c.name;\n }\n });\n });\n }\n });\n },\n getGisPptnLatestList: function getGisPptnLatestList() {\n var _this2 = this;\n\n this.params.stcd = this.currentPoint.stcd;\n this.params.sttp = this.currentPoint.sttp;\n this.params.tmOrderASC = false;\n gisMap.gisPptnLatestList(this.params, function (res) {\n if (res.state) {\n _this2.tableData = res.value;\n\n _this2.tableData.forEach(function (e) {\n _this2.yjdj.forEach(function (c) {\n if (e.warnGrade == c.value) {\n e.level = c.name;\n }\n });\n });\n }\n });\n },\n getWaterRegimesk: function getWaterRegimesk() {\n var _this3 = this;\n\n this.params.stcd = this.currentPoint.stcd;\n this.params.sttp = this.currentPoint.sttp;\n gisMap.waterRegimesk(this.params, function (res) {\n if (res.state) {\n _this3.tableData1 = res.value;\n\n _this3.tableData1.forEach(function (e) {\n _this3.yjdj.forEach(function (c) {\n if (e.warnGrade == c.value) {\n e.level = c.name;\n }\n });\n });\n }\n });\n },\n tableRowClassName: function tableRowClassName(_ref) {\n var row = _ref.row,\n rowIndex = _ref.rowIndex;\n\n if (row.warnGrade == 2) {\n return 'orange-row';\n } else if (row.warnGrade == 1) {\n return 'alert-row';\n } else if (row.warnGrade == 3) {\n return 'warning-row';\n }\n }\n }\n};",null]}