-
-
+
+
+
+
+
+
+ 详情保存
+ 删除
+
+
+
+
+
+
+
+
@@ -41,6 +56,7 @@ export default {
selectedPlaneIdArr: this.$store.state.app.toFlyDataIdArr,
dateRange: [start, end],
radioClass: '作业架次',
+ typeClass: '柱状图',
boxShow: true
}
},
@@ -176,6 +192,11 @@ export default {
this.onMapReady()
}
},
+ typeClass () {
+ this.$nextTick(() => {
+ this.initChart()
+ })
+ },
dateRange: {
handler () {
this.loadFlyData()
@@ -325,7 +346,7 @@ export default {
grid: { top: '55%' },
series: [
...this.source.slice(1).map(() => ({
- type: 'line',
+ type: this.typeClass === '柱状图' ? 'bar' : 'line',
smooth: true,
seriesLayoutBy: 'row',
emphasis: { focus: 'series' }