|
|
@@ -109,9 +109,10 @@
|
|
|
dateMonth:new Date().getMonth() + 1,
|
|
|
arrayMonth:["1", "2","3", "4","5", "6","7", "8","9", "10","11", "12"],
|
|
|
chartData:{
|
|
|
- "categories": ["1月", "2月","3月", "4月","5月", "6月","7月", "8月","9月", "10月","11月", "12月"],
|
|
|
+ // "categories": ["1月", "2月","3月", "4月","5月", "6月","7月", "8月","9月", "10月","11月", "12月"],
|
|
|
+ "categories":[],
|
|
|
"series": [
|
|
|
- {name: "本年度",data: [15,10,16,23,21,36,25,7,18,29,33,12]},
|
|
|
+ {name: "本年度",data: [],textSize:'10'},
|
|
|
]
|
|
|
},
|
|
|
itemObj:{},
|
|
|
@@ -170,6 +171,16 @@
|
|
|
success: (res) => {
|
|
|
if (res.data.code === 200) {
|
|
|
this.itemObj = res.data.data;
|
|
|
+ let chartList = res.data.data.month_list;
|
|
|
+ let chartCategories = [], chartData = [];
|
|
|
+ if(chartList.length){
|
|
|
+ chartList.forEach((item)=>{
|
|
|
+ chartCategories.push(item.month + '月')
|
|
|
+ chartData.push(item.balance)
|
|
|
+ })
|
|
|
+ this.chartData.categories = chartCategories;
|
|
|
+ this.chartData.series[0].data = chartData;
|
|
|
+ }
|
|
|
}
|
|
|
},
|
|
|
fail: () => {
|