|
|
|
|
@ -448,17 +448,25 @@ export default {
|
|
|
|
|
this.getStatistic();
|
|
|
|
|
},
|
|
|
|
|
async getStatistic() {
|
|
|
|
|
const res = await statistic(this.select);
|
|
|
|
|
console.log(res);
|
|
|
|
|
this.statistic = res;
|
|
|
|
|
|
|
|
|
|
const res = await statistic(this.select);
|
|
|
|
|
console.log(res);
|
|
|
|
|
this.statistic = res;
|
|
|
|
|
let m2 = res.progress.money_total_2;
|
|
|
|
|
let m1 = res.progress.money_total_1;
|
|
|
|
|
var user_m = res.progress.use_money_total;
|
|
|
|
|
var m3=m1-user_m
|
|
|
|
|
if (m2 != 0) {
|
|
|
|
|
m3=m2-user_m;
|
|
|
|
|
} else if (m1 != 0) {
|
|
|
|
|
m3=m1-user_m;
|
|
|
|
|
}
|
|
|
|
|
this.rptChartData = {
|
|
|
|
|
xArr: ["预算合计金额", "预算已执行金额"],
|
|
|
|
|
xArr: ["预算未执行金额", "预算已执行金额"],
|
|
|
|
|
radiusArr: "50%",
|
|
|
|
|
yArr: [
|
|
|
|
|
{
|
|
|
|
|
value: res.progress.money_total_1,
|
|
|
|
|
name: "预算合计金额",
|
|
|
|
|
value: m3,
|
|
|
|
|
name: "预算未执行金额",
|
|
|
|
|
label: {
|
|
|
|
|
show: false, //这个数据高亮时不显示label,就不会显示替遮住第一个数据的label值了
|
|
|
|
|
},
|
|
|
|
|
@ -468,7 +476,7 @@ export default {
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
{ value: res.progress.use_money_total, name: "预算已执行金额" },
|
|
|
|
|
{ value: user_m, name: "预算已执行金额" },
|
|
|
|
|
],
|
|
|
|
|
};
|
|
|
|
|
},
|
|
|
|
|
|