diff --git a/src/views/sevenLargeScreen/comprehensiveManage/smartPartyBuilding/leftTop.vue b/src/views/sevenLargeScreen/comprehensiveManage/smartPartyBuilding/leftTop.vue index c252826..570cdd1 100644 --- a/src/views/sevenLargeScreen/comprehensiveManage/smartPartyBuilding/leftTop.vue +++ b/src/views/sevenLargeScreen/comprehensiveManage/smartPartyBuilding/leftTop.vue @@ -29,7 +29,7 @@ const airTypeData = ref([18249, 17688, 16119, 13161]); const option = ref(null as any); function initOption() { - // const totalValue = airTypeData.value.reduce((acc, curr) => acc + curr, 0); + const totalValue = airTypeData.value.reduce((acc, curr) => acc + curr, 0); option.value = { grid: { left: "5%", @@ -42,7 +42,7 @@ function initOption() { xAxis: { show: false, type: "value", - max: 100 + max: totalValue }, yAxis: [ {