From 71428c7587bba3b68752f66d6a8f09848e680fc5 Mon Sep 17 00:00:00 2001 From: zhangshuaibao <15731629597@163.com> Date: 星期二, 13 四月 2021 14:08:41 +0800 Subject: [PATCH] 增加图表切换 --- src/components/BaseNav/PublicBounced/PublicBounced.vue | 35 ++++++++++++++++++++--------------- 1 files changed, 20 insertions(+), 15 deletions(-) diff --git a/src/components/BaseNav/PublicBounced/PublicBounced.vue b/src/components/BaseNav/PublicBounced/PublicBounced.vue index 584a661..01c6da1 100644 --- a/src/components/BaseNav/PublicBounced/PublicBounced.vue +++ b/src/components/BaseNav/PublicBounced/PublicBounced.vue @@ -1,7 +1,6 @@ <template> - <div class="public-bounced" v-drag v-if="flag"> - <!-- <Echarts></Echarts>--> - <div class="public-bounced-title"> + <div class="public-bounced map-background" v-drag v-if="flag"> + <div class="public-bounced-title panel-title" ref="publicBounced"> <span>{{ displayContentTitle }}</span> <i class="el-icon-circle-close" @click="closePopup"></i> </div> @@ -16,7 +15,8 @@ :value="value" :getQueryOnlineMonData="getQueryOnlineMonData" :getWasteWaterMonitoringDetails='getWasteWaterMonitoringDetails' -> + ref="PublicChart" + > </public-chart> </div> </div> @@ -29,9 +29,7 @@ <script> -// import Echarts from '@components/BaseNav/PublicBounced/GasComponents/Echarts' - -import '@/components/BaseNav/SolidWaste/directive/dir' +import '@/utils/dragBoxes' import PublicTabs from '@components/BaseNav/PublicBounced/GasComponents/PublicTabs' import PublicTable from '@components/BaseNav/PublicBounced/GasComponents/PublicTable' import PublicVideo from '@components/BaseNav/PublicBounced/GasComponents/PublicVideo' @@ -40,7 +38,6 @@ export default { name: 'PublicBounced', components: { - // Echarts, PublicTabs, PublicTable, PublicChart, @@ -61,6 +58,12 @@ // getGasQueryOnlineMonData: [] } }, + mounted () { + // this.$nextTick(() => { + // console.log(this.$refs.publicBounced) + // console.log(this.$refs.PublicChart) + // }) + }, methods: { closePopup () { this.flag = false @@ -80,12 +83,12 @@ this.setWasteGasdata = data this.getWasteGasDetails = dataDetails this.getQueryOnlineMonData = GasHourData - // console.log(dataDetails) + console.log(this.getQueryOnlineMonData) this.displayContentTitle = data.Name this.flag = true this.value = value }, - setWaterData (dataWater, dataDetail, hourData, value) { + setWaterData (dataWater, dataDetail, hourData, dateData, value) { this.setWasteWaterdata = dataWater // console.log(data) this.getQueryOnlineMonData = hourData @@ -101,16 +104,14 @@ <style lang="less" scoped> .public-bounced { - z-index: 999; + z-index: 2000; position: absolute; top: 15%; left: 20%; - background-color: #002432; - border: 1px #9fc5c8 solid; .public-bounced-title { + cursor: move; height: 0.1rem; - border: 1px #a4c0d8 solid; padding: 10px 0; display: flex; align-items: center; @@ -123,11 +124,15 @@ } i { - color: white; + color: #C0C4CC; margin: 0 15px; font-size: 22px; cursor: pointer; } + + i:hover { + color: #00fff6; + } } .public-bounced-content { -- Gitblit v1.8.0