Browse Source

平衡表季节图fix

jwyu 5 months ago
parent
commit
101c27faa4
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/views/datasheet_manage/components/BalanceAddChart.vue

+ 1 - 1
src/views/datasheet_manage/components/BalanceAddChart.vue

@@ -514,7 +514,7 @@ export default {
         const temarr=arr.map(item=>{
         const temarr=arr.map(item=>{
           return {Name:item.Years,Value:item.ChartLegend}
           return {Name:item.Years,Value:item.ChartLegend}
         })
         })
-        this.SeasonExtraConfig.ChartLegend=temarr
+        this.SeasonExtraConfig.ChartLegend=this.SeasonExtraConfig.type==='公历'?temarr:temarr.filter((item,index)=>index>0)
         this.legendEditDiaShow=true
         this.legendEditDiaShow=true
       }
       }