From f0fb6d92ab5c405b0a4c1e86ce632d6b30171e3f Mon Sep 17 00:00:00 2001 From: liuqimichale <123456lq> Date: Tue, 8 Jan 2019 15:40:42 +0800 Subject: [PATCH] 收入 --- src/api/common.js | 5 ++--- src/components/chinaMap/index.vue | 2 +- src/components/incomeOverview/index.vue | 11 +++++++++++ 3 files changed, 14 insertions(+), 4 deletions(-) diff --git a/src/api/common.js b/src/api/common.js index edcf3bd..ab48d44 100644 --- a/src/api/common.js +++ b/src/api/common.js @@ -30,7 +30,6 @@ export default { * 格式化数字为单个字符 */ formatNumToStr:function(val){ - if (val){ const tmpVal=val.toString().split(""); let tmpHtml=""; for(let i=0;i{ + let data = response.data.data + console.log(data.totalPay) + this.incomeTotal = 0 + this.incomeTotal = common.formatNumToStr(this.incomeTotal) + }).catch((response)=>{ + console.log(response); + }) + //this.createLine(); //debugger; //总收入 -- libgit2 0.21.4