{"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\\EngineerStationModel.vue?vue&type=script&lang=js&","dependencies":[{"path":"D:\\jenkins\\workspace\\bbsl-fvue\\src\\views\\frontScreens\\components\\gisTabComponents\\module\\EngineerStationModel.vue","mtime":1684458238606},{"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//\nimport dictUtils from '@/components/dict/DictSelectUtils.js';\nimport gisMap from '@/api/frontScreen/gisMap.js';\nexport default {\n name: 'EngineerStationModel',\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 mptp: ''\n },\n // infoData: [\n // {\n // text: '测站名称',\n // content: 'XXX',\n // key: 1,\n // },\n // {\n // text: '测站代码',\n // content: '225522',\n // key: 2,\n // },\n // {\n // text: '所属水库',\n // content: 'XX水库',\n // key: 3,\n // },\n // {\n // text: '安装详细地址',\n // content: 'XXXXXXXXXXXXXXXXXXXXX',\n // key: 4,\n // },\n // ],\n tableData: [],\n column: [],\n // 位移\n column1: [{\n label: '时间',\n prop: 'tm',\n width: 135\n }, {\n label: '东方向',\n prop: 'dx',\n width: 70\n }, {\n label: '北方向',\n prop: 'dy',\n width: 70\n }, {\n label: '垂直方向',\n prop: 'dz',\n width: 80\n }, {\n label: '报警等级',\n prop: 'level'\n }],\n // 渗流\n column2: [{\n label: '时间',\n prop: 'mstm',\n width: 150\n }, // {\n // label: '温度',\n // prop: 'a',\n // },\n {\n label: '渗流量',\n prop: 'spqn'\n }, {\n label: '报警等级',\n prop: 'level'\n }],\n // 渗压_渗流压力\n column3: [{\n label: '时间',\n prop: 'mstm',\n width: 170\n }, // {\n // label: '温度',\n // prop: 'a',\n // },\n {\n label: '测压管水位(m)',\n prop: 'pztbwl'\n }, {\n label: '报警等级',\n prop: 'level',\n width: 130\n }],\n // 渗压_测压管\n column4: [{\n label: '时间',\n prop: 'time',\n width: 150\n }, {\n label: '测压管水位',\n prop: 'a'\n }, {\n label: '报警等级',\n prop: 'level'\n }],\n yjdj: []\n };\n },\n inject: ['mapData'],\n created: function created() {\n var mapData = this.mapData();\n this.districtData = this.originData;\n this.T = mapData.T;\n this.map = mapData.map;\n this.yjdj = dictUtils.getDictItemsFromCache('yjdj');\n },\n watch: {\n stationType: {\n handler: function handler(newVal, oldVal) {\n this.column = this[\"column\".concat(this.stationType)];\n },\n immediate: true // immediate选项可以开启首次赋值监听\n\n },\n currentPoint: {\n handler: function handler(newVal) {\n this.activeName = '测站详情';\n\n if (this.stationType == 1) {\n this.getDammvList();\n } else if (this.stationType == 2) {\n this.getDamspgList();\n } else if (this.stationType == 3) {\n this.getDamspprList();\n }\n }\n }\n },\n // computed: {\n // column() {\n // if (this.stationType == 3) {\n // return this[\n // `column${this.stationType}_${this.currentPoint.mptp}`\n // ]\n // } else {\n // return this[`column${this.stationType}`]\n // }\n // },\n // },\n mounted: function mounted() {},\n beforeDestroy: function beforeDestroy() {},\n methods: {\n getDammvList: function getDammvList() {\n var _this = this;\n\n this.params.stcd = this.currentPoint.mpcd;\n this.params.rscd = this.currentPoint.rscd;\n this.params.tmOrderAsc = true;\n gisMap.dammvData(this.params, function (res) {\n if (res.state) {\n _this.tableData = res.value;\n }\n });\n },\n getDamspgList: function getDamspgList() {\n var _this2 = this;\n\n gisMap.damspgData(this.params, function (res) {\n if (res.state) {\n _this2.tableData = res.value;\n }\n });\n },\n getDamspprList: function getDamspprList() {\n var _this3 = this;\n\n this.params.mpcd = this.currentPoint.mpcd;\n this.params.rscd = this.currentPoint.rscd;\n this.params.mptp = this.currentPoint.mptp;\n this.params.tmOrderASC = false;\n this.params.isSYJ = true;\n gisMap.damspprData(this.params, function (res) {\n if (res.state) {\n _this3.tableData = res.value;\n\n _this3.tableData.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 handleClick: function handleClick(tab, event) {\n if (tab.name == '测报数据') {\n if (this.stationType == 1) {\n this.getDammvList();\n } else if (this.stationType == 2) {\n this.getDamspgList();\n } else if (this.stationType == 3) {\n this.getDamspprList();\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]}