Browse Source

2023-10-28

master
guoxing 2 years ago
parent
commit
603e95a34b
  1. 22
      supervise-report-ui/src/views/project/projectDaily.vue

22
supervise-report-ui/src/views/project/projectDaily.vue

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

Loading…
Cancel
Save