From ec4d5c1827487f4c901b69bd9eae58e111e82b32 Mon Sep 17 00:00:00 2001 From: 徐旺旺 <11530253@qq.com> Date: 星期四, 20 五月 2021 18:05:25 +0800 Subject: [PATCH] Merge branch 'develop' of http://xearth.cn:6600/r/wuyushui/SewerAndRainNetwork into develop --- src/components/BaseNav/WasteGas/WasteGasIndex.vue | 111 ++++++++++++++++++++++++++++++++++++++++++++++--------- 1 files changed, 93 insertions(+), 18 deletions(-) diff --git a/src/components/BaseNav/WasteGas/WasteGasIndex.vue b/src/components/BaseNav/WasteGas/WasteGasIndex.vue index ff50e1f..d86efc6 100644 --- a/src/components/BaseNav/WasteGas/WasteGasIndex.vue +++ b/src/components/BaseNav/WasteGas/WasteGasIndex.vue @@ -9,20 +9,23 @@ <span></span> <span></span> <span></span> - <el-tabs v-model="activeName" @tab-click="handleClick"> - <el-tab-pane label="瀹炴椂鏁版嵁" name="first"> - <RealData></RealData> - </el-tab-pane> - <el-tab-pane label="灏忔椂鏁板眳" name="second"> - <HourData></HourData> - </el-tab-pane> - <el-tab-pane label="鏃ユ暟鎹�" name="third"> - <DayData></DayData> - </el-tab-pane> - <el-tab-pane label="浜哄伐鐩戞祴鏁版嵁" name="fourth"> - <Detail></Detail> - </el-tab-pane> - </el-tabs> + <div class="navigation"> + <div class="navigation-left"> + <div :class="active===0?'hover':''" class="uncheck" @click='tabTaggle("RealData",0)'>瀹炴椂鏁版嵁</div> + <div :class="active===1?'hover':''" class="uncheck" @click='tabTaggle("HourData",1)'>灏忔椂鏁版嵁</div> + <div :class="active===2?'hover':''" class="uncheck" @click='tabTaggle("DayData",2)'>鏃ユ暟鎹�</div> + <div :class="active===3?'hover':''" class="uncheck" @click='tabTaggle("Detail",3)'>浜哄伐鐩戞祴鏁版嵁</div> + </div> + <div class="navigation-right" v-if="active !== 3"> + <p>姝e父</p> + <i style=" background: #4ec99c;"></i> + <p>棰勮</p> + <i style=" background: #fc9303;"></i> + <p>瓒呮爣</p> + <i style=" background: #fc1d04;"></i> + </div> + </div> + <component :is="currentTab" ref="RealData"></component> </div> </template> <template v-slot:video> @@ -37,13 +40,13 @@ import PublicVideo from '../PublicVideo' import PublicSector from '../PublicSector' // 鍥捐〃缁勪欢 -import RealData from './RealData' +import RealData from './WasteGasRealChart' import HourData from './HourData' import DayData from './DayData' import Detail from './Detail' export default { - name: 'WasteWaterIndex', + name: 'WasteGasIndex', props: ['storagePlaceId'], components: { PublicSector, @@ -56,10 +59,19 @@ }, data () { return { - activeName: 'first' + activeName: 'first', + currentTab: RealData, + active: 0 } }, methods: { + tabTaggle (taggleMenu, num) { + this.currentTab = taggleMenu + this.active = num + }, + current (currentTab) { + currentTab = RealData + }, handleClick (tab, event) { console.log(tab, event) } @@ -68,10 +80,73 @@ </script> <style lang="less" scoped> +.navigation { + display: flex; + align-items: center; + justify-content: space-between; + padding: 5px 0; + border-bottom: 1px #243a55 solid; + + .navigation-left { + display: flex; + align-items: center; + + .uncheck { + margin: 0 10px; + cursor: pointer; + padding: 5px; + border: 1px solid #2b87c8; + border-radius: 4px; + text-align: center; + color: #fff; + } + + .default-uncheck { + background-color: #0e639e; + color: #fff; + cursor: pointer; + } + + .hover { + background-color: #0e639e; + color: #fff; + cursor: pointer; + } + + .hover:hover { + cursor: pointer; + padding: 5px; + border: 1px solid #2b87c8; + border-radius: 4px; + text-align: center; + color: #fff; + } + } + + .navigation-left :hover { + background-color: #0e639e; + color: #fff; + cursor: pointer; + } + + .navigation-right { + display: flex; + align-items: center; + + i { + display: block; + width: 0.1rem; + height: 0.1rem; + margin: 0 0.1rem 0 0.05rem; + border-radius: 50%; + border: 2px #ffffff solid; + } + } +} .public-part { position: relative; - margin-bottom: 0.1rem; + background-color: @background-color; font-size: 0.06rem; font-weight: normal; -- Gitblit v1.8.0