| | |
| | | <ul class="tab"> |
| | | <li @click='tabTaggle("Echarts")'>实时数据</li> |
| | | <li @click='tabTaggle("EChartsHour")'>小时数据</li> |
| | | <li @click='tabTaggle("EChartsDate")'>日数据</li> |
| | | <li @click='tabTaggle("EChartsHourWasteWater")'>日数据</li> |
| | | <li @click='tabTaggle("ECharts")'>人工数据</li> |
| | | </ul> |
| | | <div class="legend" > |
| | |
| | | |
| | | <script> |
| | | import EChartsHour from './EChartsHour' |
| | | import EChartsDate from './EChartsDate' |
| | | // import EChartsDate from './EChartsDate' |
| | | import EChartsHourWasteWater from './EChartsHourWasteWater' |
| | | |
| | | export default { |
| | | name: 'PublicChart', |
| | | components: { |
| | | EChartsHour, |
| | | EChartsDate |
| | | // EChartsDate |
| | | EChartsHourWasteWater |
| | | }, |
| | | data () { |
| | | return { |
| | |
| | | methods: { |
| | | tabTaggle (taggleMenu) { |
| | | this.currentTab = taggleMenu |
| | | // debugger |
| | | } |
| | | } |
| | | } |
| | | |
| | | </script> |
| | | |
| | | <style scoped> |
| | | * { |
| | | margin: 0; |
| | | padding: 0; |
| | | list-style: none; |
| | | } |
| | | |
| | | <style scoped lang="less"> |
| | | .win { |
| | | position: relative; |
| | | /*margin-bottom: 13px;*/ |
| | | background-color: rgba(33, 41, 69, 0.9); |
| | | background:@background-color; |
| | | border: 0.8px solid #396d83; |
| | | /*height: 1.5rem;*/ |
| | | } |