派生自 wuyushui/SewerAndRainNetwork

chenzeping
2021-04-12 dbc1ed9ade5f26e77d2551dd2c79ece341b02cd8
src/components/BaseNav/PublicBounced/GasComponents/PublicChart.vue
@@ -5,34 +5,45 @@
        <div class="border_corner border_corner_left_bottom"></div>
        <div class="border_corner border_corner_right_bottom"></div>
        <ul class="tab">
            <li @click='tabTaggle("ECharts")'>实时数据</li>
            <li @click='tabTaggle("ECharts")'>小时数据</li>
            <li @click='tabTaggle("DateECharts")'>日数据</li>
            <li @click='tabTaggle("Echarts")'>实时数据</li>
            <li @click='tabTaggle("EChartsHour")'>小时数据</li>
            <li @click='tabTaggle("EChartsDate")'>日数据</li>
            <li @click='tabTaggle("ECharts")'>人工数据</li>
            <div id="title" >
                <span><strong> &nbsp; </strong></span>
                <span >正常</span>
                <span ></span>
                <span >预警</span>
                <span ></span>
                <span >超标</span>
                <span ></span>
            </div>
        </ul>
        <component :is="currentTab" v-bind="$attrs"></component>
    </div>
</template>
<script>
import ECharts from './ECharts'
import DateECharts from './DateECharts'
import EChartsHour from './EChartsHour'
import EChartsDate from './EChartsDate'
import Echarts from '@components/BaseNav/PublicBounced/GasComponents/Echarts'
export default {
  name: 'PublicChart',
  components: {
    ECharts,
    DateECharts
    EChartsHour,
    EChartsDate,
    Echarts
  },
  data () {
    return {
      currentTab: 'ECharts'
      currentTab: 'EChartsHour'
    }
  },
  methods: {
    tabTaggle (taggleMenu) {
      this.currentTab = taggleMenu
      debugger
      // debugger
    }
  }
}
@@ -48,10 +59,10 @@
.win {
  position: relative;
  margin-bottom: 13px;
  /*margin-bottom: 13px;*/
  background-color: rgba(33, 41, 69, 0.9);
  border: 0.8px solid #396d83;
  height: 1.5rem;
  /*height: 1.5rem;*/
}
.border_corner {
@@ -113,4 +124,47 @@
  color: #682000;
  cursor: pointer;
}
#title{
    height: 30px;
    /* margin-top: 30px; */
    color: #ffffff;
    margin-top: 5px;
}
#title span:nth-child(1){
    /*margin-left: 478px*/
}
#title span:nth-child(2){
    /*margin-left: 177px*/
}
#title span:nth-child(3){
    display: inline-block;
    background-color: #4ec99c;
    height: 15px;
    width: 35px;
    margin-left: 10px;
    border-radius: 5px;
}
#title span:nth-child(6){
    /*margin-left: 21px*/
}
#title span:nth-child(7){
    display: inline-block;
    background-color: red;
    height: 15px;
    width: 35px;
    margin-left: 7px;
    border-radius: 5px;
}
#title span:nth-child(4){
    margin-left: 17px;
}
#title span:nth-child(5){
    display: inline-block;
    background-color: orange;
    height: 15px;
    width: 35px;
    margin-left: 9px;
    border-radius: 5px;
}
</style>