{"remainingRequest":"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\\components\\pressureEcharts.vue?vue&type=script&lang=js&","dependencies":[{"path":"D:\\jenkins\\workspace\\bbsl-fvue\\src\\views\\frontScreens\\components\\gisTabComponents\\module\\components\\pressureEcharts.vue","mtime":1684458238652},{"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\r\nimport * as echarts from 'echarts'\r\n\timport dictUtils from '@/components/dict/DictSelectUtils.js'\r\n\timport gisMap from '@/api/frontScreen/gisMap.js'\r\n\texport default{\r\n\t\tprops: {\r\n\t\t rscd: {\r\n\t\t type: String,\r\n\t\t },\r\n\t\t\tstcd: {\r\n\t\t\t type: String,\r\n\t\t\t},\r\n\t\t\tname: {\r\n\t\t\t type: String,\r\n\t\t\t},\r\n\t\t},\r\n\t\tdata(){\r\n\t\t\treturn{\r\n\t\t\t\tdamspprLists:[]\r\n\t\t\t}\r\n\t\t},\r\n\t\tmounted() {\r\n\t\t\tthis.$nextTick(()=>{\r\n\t\t\t\t\tthis.getDamspprList()\r\n\t\t\t})\r\n\t\t},\r\n\t\twatch: {\r\n\t\t\tstcd: {\r\n\t\t\t\thandler(newVal) {\r\n\t\t\t\t\tthis.getDamspprList()\r\n\t\t\t\t},\r\n\t\t\t}\r\n\t\t},\r\n\t\tmethods:{\r\n\t\t\t//渗压监测\r\n\t\t\tgetDamspprList() {\r\n\t\t\t\tlet param = {\r\n\t\t\t\t\tstartTime: \"\",\r\n\t\t\t\t\tendTime: \"\",\r\n\t\t\t\t\tmpcd: this.stcd,\r\n\t\t\t\t\trscd: this.rscd,\r\n\t\t\t\t\tmptp: \"4\"\r\n\t\t\t\t}\r\n\t\t\t\tgisMap.getDamspprList(param, res => {\r\n\t\t\t\t\tif (res.state) {\r\n\t\t\t\t\t\tthis.damspprLists=res.value\r\n\t\t\t\t\t\tthis.$nextTick(()=>{\r\n\t\t\t\t\t\t\tthis.initPressureChart()\r\n\t\t\t\t\t\t})\r\n\t\t\t\t\t}\r\n\t\t\t\t})\r\n\t\t\t},\r\n\t\t\tinitPressureChart() {\r\n\t\t\t\tlet times = []\r\n\t\t\t\tlet pztbwls = []\r\n\t\t\t\tlet jpztbwls = []\r\n\t\t\t\tlet dpztbwls = []\r\n\t\t\t\tthis.damspprLists.forEach(e => {\r\n\t\t\t\t\tpztbwls.push(e.pztbwl)\r\n\t\t\t\t\tjpztbwls.push(e.jpztbwl)\r\n\t\t\t\t\tdpztbwls.push(e.dpztbwl)\r\n\t\t\t\t\ttimes.push(e.mstm)\r\n\t\t\t\t\t// spprwlList.push(e.spprwl)\r\n\t\t\t\t})\r\n\t\t\t\t\r\n\t\t\t\tconst pressureChartDom = document.getElementById('pressureChart')\r\n\t\t\t\tthis.pressureChart = echarts.init(pressureChartDom)\r\n\t\t\t\tlet option = {\r\n\t\t\t\t\ttooltip: {\r\n\t\t\t\t\t\tappendToBody: true,\r\n\t\t\t\t\t\ttrigger: 'axis',\r\n\t\t\t\t\t\tbackgroundColor: 'rgba(0,0,0,0.7)',\r\n\t\t\t\t\t\ttextStyle: {\r\n\t\t\t\t\t\t\tcolor: '#dddee0',\r\n\t\t\t\t\t\t},\r\n\t\t\t\t\t\taxisPointer: {\r\n\t\t\t\t\t\t\ttype: 'cross',\r\n\t\t\t\t\t\t\tlabel: {\r\n\t\t\t\t\t\t\t\tbackgroundColor: '#6a7985',\r\n\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t},\r\n\t\t\t\t\t},\r\n\t\t\t\t\tlegend: {\r\n\t\t\t\t\t\tbottom: 0,\r\n\t\t\t\t\t\tright: 0,\r\n\t\t\t\t\t\tdata: ['测压管危险水位', '测压管警戒水位', '测压管水位'],\r\n\t\t\t\t\t\ttextStyle: {\r\n\t\t\t\t\t\t\tcolor: '#adb9ba',\r\n\t\t\t\t\t\t\tfontSize: 10,\r\n\t\t\t\t\t\t},\r\n\t\t\t\t\t},\r\n\t\t\t\t\tgrid: {\r\n\t\t\t\t\t\ttop: '4%',\r\n\t\t\t\t\t\tleft: '4%',\r\n\t\t\t\t\t\tright: '4%',\r\n\t\t\t\t\t\tbottom: '16%',\r\n\t\t\t\t\t\tcontainLabel: true,\r\n\t\t\t\t\t},\r\n\t\t\t\t\txAxis: [{\r\n\t\t\t\t\t\ttype: 'category',\r\n\t\t\t\t\t\tboundaryGap: false,\r\n\t\t\t\t\t\tdata: times,\r\n\t\t\t\t\t}, ],\r\n\t\t\t\t\tyAxis: [{\r\n\t\t\t\t\t\ttype: 'value',\r\n\t\t\t\t\t}, ],\r\n\t\t\t\t\tseries: [{\r\n\t\t\t\t\t\t\t\tname: '测压管危险水位',\r\n\t\t\t\t\t\t\t\ttype: 'line',\r\n\t\t\t\t\t\t\t\tsmooth: true,\r\n\t\t\t\t\t\t\t\temphasis: {\r\n\t\t\t\t\t\t\t\t\tfocus: 'series',\r\n\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\tdata: dpztbwls,\r\n\t\t\t\t\t\t\t\titemStyle: {\r\n\t\t\t\t\t\t\t\t\tnormal: {\r\n\t\t\t\t\t\t\t\t\t\tcolor: '#b22222',\r\n\t\t\t\t\t\t\t\t\t\tlineStyle: {\r\n\t\t\t\t\t\t\t\t\t\t\tcolor: '#b22222'\r\n\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\tname: '测压管警戒水位',\r\n\t\t\t\t\t\t\t\ttype: 'line',\r\n\t\t\t\t\t\t\t\tsmooth: true,\r\n\t\t\t\t\t\t\t\temphasis: {\r\n\t\t\t\t\t\t\t\t\tfocus: 'series',\r\n\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\tdata: jpztbwls,\r\n\t\t\t\t\t\t\t\titemStyle: {\r\n\t\t\t\t\t\t\t \tnormal: {\r\n\t\t\t\t\t\t\t\t\t\tcolor: '#ff6347',\r\n\t\t\t\t\t\t\t\t\t\tlineStyle: {\r\n\t\t\t\t\t\t\t\t\t\t\tcolor: '#ff6347'\r\n\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\tname: '测压管水位',\r\n\t\t\t\t\t\t\t\ttype: 'line',\r\n\t\t\t\t\t\t\t\tsmooth: true,\r\n\t\t\t\t\t\t\t\temphasis: {\r\n\t\t\t\t\t\t\t\t\tfocus: 'series',\r\n\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\tdata: pztbwls,\r\n\t\t\t\t\t\t\t\titemStyle: {\r\n\t\t\t\t\t\t\t\t\tcolor: '#6767ff',\r\n\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t],\r\n\t\t\t\t\t}\r\n\t\t\t\toption && this.pressureChart.setOption(option)\r\n\t\t\t},\r\n\t\t}\r\n\t}\r\n",null]}