| | |
| | | <div class="border_corner border_corner_right_top"></div> |
| | | <div class="border_corner border_corner_left_bottom"></div> |
| | | <div class="border_corner border_corner_right_bottom"></div> |
| | | <ul class="tab"> |
| | | <ul class="tab" v-if="this.$attrs.value === 'feiqi'"> |
| | | <li @click='tabTaggle("ECharts")'>实时数据</li> |
| | | <li @click='tabTaggle("EChartsHour")'>小时数据</li> |
| | | <li @click='tabTaggle("EChartsDate")'>日数据</li> |
| | | <li @click='tabTaggle("EChartsDate")'>人工数据</li> |
| | | <li @click='tabTaggle("EChartsTable")'>人工数据</li> |
| | | </ul> |
| | | <ul class="tab" v-else> |
| | | <li @click='tabTaggle("EChartsRealWasteWater")'>实时数据</li> |
| | | <li @click='tabTaggle("EChartsHourWasteWater")'>小时数据</li> |
| | | <li @click='tabTaggle("EChartsDateWasteWater")'>日数据</li> |
| | | <li @click='tabTaggle("EChartsWasteWaterTable")'>人工数据</li> |
| | | </ul> |
| | | <div class="legend" > |
| | | <span >正常</span> |
| | |
| | | </template> |
| | | |
| | | <script> |
| | | import ECharts from './Echarts' |
| | | import EChartsHour from './EChartsHour' |
| | | import EChartsDate from './EChartsDate' |
| | | import ECharts from './Echarts' |
| | | import EChartsTable from './EChartsTable' |
| | | |
| | | import EChartsRealWasteWater from './EChartsRealWasteWater' |
| | | import EChartsHourWasteWater from './EChartsHourWasteWater' |
| | | import EChartsDateWasteWater from './EChartsDateWasteWater' |
| | | import EChartsWasteWaterTable from './EChartsWasteWaterTable' |
| | | |
| | | export default { |
| | | name: 'PublicChart', |
| | | components: { |
| | | EChartsHour, |
| | | EChartsDate, |
| | | ECharts |
| | | ECharts, |
| | | EChartsTable, |
| | | EChartsHourWasteWater, |
| | | EChartsDateWasteWater, |
| | | EChartsRealWasteWater, |
| | | EChartsWasteWaterTable |
| | | }, |
| | | data () { |
| | | return { |
| | | currentTab: 'EChartsHour' |
| | | currentTab: 'EChartsHourWasteWater' |
| | | } |
| | | }, |
| | | methods: { |
| | |
| | | // debugger |
| | | } |
| | | } |
| | | // created () { |
| | | // this.$refs.CreateChart |
| | | // } |
| | | } |
| | | |
| | | </script> |
| | |
| | | margin-right: 10px; |
| | | padding:0 15px |
| | | } |
| | | |
| | | .tab li.hover, |
| | | .tab li:hover { |
| | | background-color: #0e639e; |
| | | color: #682000; |
| | | color: #fff; |
| | | cursor: pointer; |
| | | } |
| | | .legend{ |