| | |
| | | <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>正常</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> |
| | |
| | | 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, |
| | |
| | | }, |
| | | 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) |
| | | } |
| | |
| | | </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; |
| | | vertical-align: middle !important; |
| | | color: #fff; |
| | | -webkit-transform: skew(30deg); |
| | | -moz-transform: skew(30deg); |
| | | -o-transform: skew(30deg); |
| | | transform: skew(15deg); |
| | | } |
| | | |
| | | .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; |