| | |
| | | <div id="Tab"> |
| | | <div class="infomation"> |
| | | <div> |
| | | <span class="grid-content">COD :<i>6.039</i> 标准 : 100</span> |
| | | <span class="grid-content">氨氮 : <i>0.38</i> 标准 : 50</span> |
| | | <span class="grid-content">废水流量 : <i>254.643997</i></span> |
| | | <span class="grid-content">COD : <i style="color: #e8ee0b">6.039</i> 标准 : 10</span> |
| | | <span class="grid-content">氨氮 : <i style="color: #e8ee0b">0.38</i> 标准 : 5</span> |
| | | <span class="grid-content">废水流量 : <i style="color: #e8ee0b">254.643997</i></span> |
| | | </div> |
| | | </div> |
| | | <div class="form-echrts"> |
| | |
| | | </span> |
| | | </div> |
| | | </div> |
| | | <div> |
| | | 采样点数: |
| | | <el-select v-model="formInline.region"> |
| | | <el-option label="0" value="0"></el-option> |
| | | <el-option label="25" value="25"></el-option> |
| | | <el-option label="50" value="50"></el-option> |
| | | <el-option label="75" value="75"></el-option> |
| | | <el-option label="100" value="100"></el-option> |
| | | </el-select> |
| | | </div> |
| | | <!-- <div>--> |
| | | <!-- 采样点数:--> |
| | | <!-- <el-select v-model="formInline.region">--> |
| | | <!-- <el-option label="0" value="0"></el-option>--> |
| | | <!-- <el-option label="25" value="25"></el-option>--> |
| | | <!-- <el-option label="50" value="50"></el-option>--> |
| | | <!-- <el-option label="75" value="75"></el-option>--> |
| | | <!-- <el-option label="100" value="100"></el-option>--> |
| | | <!-- </el-select>--> |
| | | <!-- </div>--> |
| | | <div class="detailbtn" @click="onSubmit">查询</div> |
| | | <div class="detailbtn" @click="dialogVisible = true" >明细表</div> |
| | | </div> |
| | | <div style="width:5rem;height:2rem;" id="echarts" ref="main"> |
| | | <div class="boxChart" style="height: 260px"> |
| | | <div style="width: 100%;height: 100%;" id="popChart" ref="main"> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | <!-- 明细弹框 --> |
| | |
| | | } |
| | | } |
| | | }, |
| | | mounted () { |
| | | this.onSubmit() |
| | | }, |
| | | methods: { |
| | | onSubmit () { |
| | | this.effChartShow(this.JsonHourWater.id, this.JsonHourWater.title, this.JsonHourWater.legend, this.JsonHourWater.xdata, this.JsonHourWater.ydatas, this.JsonHourWater.yname, this.JsonHourWater.id, this.JsonHourWater.datatype) |
| | | this.effChartShow() |
| | | }, |
| | | effChartShow: function (id, title, legend, xdata, ydatas, yname, jcdID, datatype) { |
| | | effChartShow: function () { |
| | | // var id = this.JsonHourWater.id |
| | | // var title = this.JsonHourWater.title |
| | | var legend = this.JsonHourWater.legend |
| | | var xdata = this.JsonHourWater.xdata |
| | | var ydatas = this.JsonHourWater.ydatas |
| | | var yname = this.JsonHourWater.yname |
| | | // var jcdId = this.JsonHourWater.jcdID |
| | | var datatype = this.JsonHourWater.datatype |
| | | |
| | | this.myChart = this.$echarts.init(this.$refs.main) |
| | | this.myChart.clear() |
| | | var dataUnit = '' |
| | |
| | | ydatas[j].data[k] = it2 |
| | | } |
| | | } |
| | | |
| | | for (var i = 0; i < ydatas.length; i++) { |
| | | // var zdcbcolor = ydatas[i].zdcbcolor |
| | | var bz = ydatas[i].bzz |
| | |
| | | }, |
| | | lineStyle: { // 折线的颜色 |
| | | color: ydatas[i].zxcolor, |
| | | width: 4 |
| | | width: 5 |
| | | }, |
| | | borderColor: 'black', // 折点边框的颜色 |
| | | label: { // 显示值 |
| | | show: false |
| | | } |
| | | } |
| | | |
| | | }, |
| | | type: 'line', |
| | | data: ydatas[i].data, |
| | | markLine: { // 平均值 , 和 指标上限 |
| | | markLine: { // 平均值 和 指标上限 |
| | | symbol: 'none', |
| | | data: [{ |
| | | label: { |
| | |
| | | } |
| | | // createDivByMouse("s",params.event); |
| | | }) */ |
| | | }, |
| | | drawChart: function () { |
| | | window.onresize = function () { |
| | | var h1 = document.documentElement.clientHeight// 获取屏幕的高度 |
| | | if (h1 > 700) { |
| | | this.myChart.getDom().style.height = 3 + 'rem' |
| | | this.myChart.getDom().style.width = 6 + 'rem' |
| | | } else { |
| | | this.myChart.getDom().style.height = 3 + 'rem' |
| | | this.myChart.getDom().style.width = 6 + 'rem' |
| | | } |
| | | this.myChart.resize() |
| | | } |
| | | } |
| | | // drawChart: function () { |
| | | // window.onresize = function () { |
| | | // var h1 = document.documentElement.clientHeight// 获取屏幕的高度 |
| | | // if (h1 > 700) { |
| | | // this.myChart.getDom().style.height = 3 + 'rem' |
| | | // this.myChart.getDom().style.width = 6 + 'rem' |
| | | // } else { |
| | | // this.myChart.getDom().style.height = 3 + 'rem' |
| | | // this.myChart.getDom().style.width = 6 + 'rem' |
| | | // } |
| | | // this.myChart.resize() |
| | | // } |
| | | // } |
| | | |
| | | } |
| | | |