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; //总收入