|
|
@ -442,20 +442,20 @@ |
|
|
|
initData() { |
|
|
|
req.projectdailyistAll().then(res => { |
|
|
|
|
|
|
|
if (res.data.length > 0) { |
|
|
|
// if (res.data.length > 0) { |
|
|
|
this.projectList = res.data |
|
|
|
|
|
|
|
this.projectDaily.projectSid = this.projectList[0].sid |
|
|
|
this.projectDaily.projectName = this.projectList[0].entryName |
|
|
|
this.projectDaily.totalLoan = Number(this.projectList[0].creditLimit) |
|
|
|
this.projectDaily.useLimit = Number(this.projectList[0].useLimit) |
|
|
|
this.projectDaily.accountsBalance = this.projectList[0].balance |
|
|
|
// this.projectDaily.projectSid = this.projectList[0].sid |
|
|
|
// this.projectDaily.projectName = this.projectList[0].entryName |
|
|
|
// this.projectDaily.totalLoan = Number(this.projectList[0].creditLimit) |
|
|
|
// this.projectDaily.useLimit = Number(this.projectList[0].useLimit) |
|
|
|
// this.projectDaily.accountsBalance = this.projectList[0].balance |
|
|
|
|
|
|
|
console.log('projectList:', res) |
|
|
|
console.log('projectList:', this.projectList[0]) |
|
|
|
console.log('projectDaily:', this.projectDaily) |
|
|
|
// console.log('projectList:', res) |
|
|
|
// console.log('projectList:', this.projectList[0]) |
|
|
|
// console.log('projectDaily:', this.projectDaily) |
|
|
|
|
|
|
|
} |
|
|
|
// } |
|
|
|
|
|
|
|
|
|
|
|
}).catch(e => { |
|
|
@ -526,7 +526,9 @@ |
|
|
|
if (this.projectDaily.projectSid === this.projectList[i].sid) { |
|
|
|
this.projectDaily.totalLoan = Number(this.projectList[i].creditLimit) |
|
|
|
this.projectDaily.projectName = this.projectList[i].entryName |
|
|
|
this.projectDaily.useLimit = Number(this.projectList[i].useLimit) |
|
|
|
this.projectDaily.accountsBalance = this.projectList[i].balance |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|