| | |
| | | </div> |
| | | </div> |
| | | <div class="detailbtn">查询</div> |
| | | <div class="detailbtn">明细表</div> |
| | | <div class="detailbtn" @click="ScheduleShow">明细表</div> |
| | | </div> |
| | | <div style="width:5rem;height:1.5rem;" id="echarts" ref="wastegashour"></div> |
| | | </div> |
| | | <!-- 明细弹框 --> |
| | | <!-- <el-dialog :visible.sync="dialogVisible"--> |
| | | <!-- :append-to-body="true"--> |
| | | <!-- width="68%"--> |
| | | <!-- center--> |
| | | <!-- v-dialogDrag--> |
| | | <!-- >--> |
| | | <!-- <div class="el-dialog-div" style="height: 500px">--> |
| | | <!-- <public-detailed-list v-bind="$attrs"></public-detailed-list>--> |
| | | <!-- </div>--> |
| | | <!-- </el-dialog>--> |
| | | <!-- 明细弹框--> |
| | | <el-dialog :visible.sync="showSchedule" |
| | | :modal="false" |
| | | v-dialogDrag |
| | | > |
| | | <div class="el-dialog-div" style="height: 200px"> |
| | | <Scheduleof></Scheduleof> |
| | | </div> |
| | | </el-dialog> |
| | | </div> |
| | | </template> |
| | | |
| | | <script> |
| | | // import PublicDetailedList from '@components/BaseNav/PublicBounced/common/echarts/PublicDetailedList' |
| | | import Scheduleof from '@components/BaseNav/WasteGas/Scheduleof' |
| | | import PublicDataStandard from '../PublicDataStandard' |
| | | |
| | | import dayjs from 'dayjs' |
| | |
| | | name: 'HourData', |
| | | components: { |
| | | // PublicDetailedList |
| | | PublicDataStandard |
| | | PublicDataStandard, |
| | | Scheduleof |
| | | }, |
| | | data () { |
| | | return { |
| | |
| | | timeStart: null, |
| | | timeEnd: null |
| | | }, |
| | | showSchedule: false, |
| | | dataType: 2, |
| | | myChart: null, |
| | | exhbzz: null, |
| | |
| | | }) |
| | | }, |
| | | methods: { |
| | | ScheduleShow () { |
| | | this.showSchedule = !this.showSchedule |
| | | }, |
| | | async initnData () { |
| | | // 用于接口数据请求的参数 开始/结束时间 || 可选择查询的开始/结束时间 |
| | | this.formInline.timeEnd = dayjs().format('YYYY-MM-DD HH:mm:ss') |
| | |
| | | dataType: this.dataType |
| | | } |
| | | const result = (await mapApi.getWasteGasMonData(data)).Result.DataInfo |
| | | console.log(result) |
| | | // console.log(result) |
| | | this.get24HourDate(result) |
| | | }, |
| | | get24HourDate (res) { |
| | |
| | | iconurl = 'image://../assets/imgs/legend/grn.png' |
| | | } else if (nameList[l] === '温度') { |
| | | iconurl = 'image://../assets/imgs/legend/WenDu.png' |
| | | } else { |
| | | } else if (nameList[l] === '废气流量') { |
| | | iconurl = 'image://../assets/imgs/legend/VOCs.png' |
| | | } |
| | | |
| | |
| | | } else if (nameList[j] === '烟尘') { |
| | | zdcbcolor = 'red' |
| | | zxcolor = '#f48183' |
| | | } else if (nameList[j] === '温度') { |
| | | } else if (nameList[j] === '废气流量') { |
| | | zdcbcolor = 'red' |
| | | zxcolor = '#F206FF' |
| | | } else { |
| | | zdcbcolor = 'red' |
| | | zxcolor = '#9ACD32' |
| | | zxcolor = '#52ff3f' |
| | | } |
| | | const ydata = { |
| | | name: nameList[j], |
| | |
| | | maker = '<span style="display:inline-block;margin-right:5px;border-radius:10px;width:10px;height:10px;background-color:#f48183;"></span>' |
| | | } else if (seriesName === '温度') { |
| | | maker = '<span style="display:inline-block;margin-right:5px;border-radius:10px;width:10px;height:10px;background-color:#F206FF;"></span>' |
| | | } else { |
| | | } else if (seriesName === '废气流量') { |
| | | maker = '<span style="display:inline-block;margin-right:5px;border-radius:10px;width:10px;height:10px;background-color:#4ec99c;"></span>' |
| | | } |
| | | s += maker + seriesName + ':' + valueFliter + '<br />' |
| | |
| | | type: 'value', |
| | | name: dataUnit, |
| | | max: function (value) { |
| | | const ma = value.max > 120 ? value.max : 120 |
| | | const ma = value.max > 12 ? value.max : 12 |
| | | return parseInt(ma) |
| | | }, |
| | | axisLabel: { |