|
@@ -84,8 +84,7 @@
|
|
|
</div>
|
|
</div>
|
|
|
<div class="right">更多</div>
|
|
<div class="right">更多</div>
|
|
|
</div>
|
|
</div>
|
|
|
- <LineChart ref="vLineChart" style="height: 1.8rem" :option="swOption" v-if="chartShow && swActive" />
|
|
|
|
|
- <LineChart ref="vLineChart2" style="height: 1.8rem" :option="lOption" v-if="chartShow && !swActive" />
|
|
|
|
|
|
|
+ <LineChart ref="vLineChart" style="height: 1.8rem" :option="swOption" v-if="chartShow" />
|
|
|
</div>
|
|
</div>
|
|
|
</template>
|
|
</template>
|
|
|
</BaseMain>
|
|
</BaseMain>
|
|
@@ -126,7 +125,6 @@ export default {
|
|
|
val: '0'
|
|
val: '0'
|
|
|
}
|
|
}
|
|
|
],
|
|
],
|
|
|
- lOption: {},
|
|
|
|
|
chartShow: false,
|
|
chartShow: false,
|
|
|
selectedVal: '0',
|
|
selectedVal: '0',
|
|
|
selectedVal1: '0',
|
|
selectedVal1: '0',
|
|
@@ -472,7 +470,7 @@ export default {
|
|
|
}
|
|
}
|
|
|
]
|
|
]
|
|
|
}
|
|
}
|
|
|
- this.lOption = option
|
|
|
|
|
|
|
+ this.swOption = option
|
|
|
}
|
|
}
|
|
|
})
|
|
})
|
|
|
},
|
|
},
|
|
@@ -484,15 +482,10 @@ export default {
|
|
|
},
|
|
},
|
|
|
toChangeSwTab(a) {
|
|
toChangeSwTab(a) {
|
|
|
this.swActive = a
|
|
this.swActive = a
|
|
|
|
|
+ this.chartShow = false
|
|
|
if (this.swActive) {
|
|
if (this.swActive) {
|
|
|
- this.$nextTick(() => {
|
|
|
|
|
- this.$refs.vLineChart.initChart()
|
|
|
|
|
- })
|
|
|
|
|
this.getMonitoringStatistics(this.selectedVal2)
|
|
this.getMonitoringStatistics(this.selectedVal2)
|
|
|
} else {
|
|
} else {
|
|
|
- this.$nextTick(() => {
|
|
|
|
|
- this.$refs.vLineChart2.initChart()
|
|
|
|
|
- })
|
|
|
|
|
this.getMonitoringStatisticsByFlow(this.selectedVal2)
|
|
this.getMonitoringStatisticsByFlow(this.selectedVal2)
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|