diff --git a/src/pages/businesszcmx/businesszcmx.vue b/src/pages/businesszcmx/businesszcmx.vue index f612cb7..ada306f 100644 --- a/src/pages/businesszcmx/businesszcmx.vue +++ b/src/pages/businesszcmx/businesszcmx.vue @@ -1388,28 +1388,24 @@ export default { }) }).then(({data}) => { if (data && data.code == 0) { - data.page.forEach((item) => { - this.dateSTBZList.push(item); - this.pjMoney += item.money; - this.pjDay += item.day; - this.pjStDay += item.stday; - }) - // this.dateSTBZListCommons = []; - // if(this.dateSTBZList.length>10){ - // this.dateSTBZListCommons = this.dateSTBZList.slice(0,10) - // }else { - // this.dateSTBZList.forEach(e =>{ - // this.dateSTBZListCommons.push(e) - // }) + // data.page.forEach((item) => { + // this.dateSTBZList.push(item); + // this.pjMoney += item.money; + // this.pjDay += item.day; + // this.pjStDay += item.stday; + // }) + // if(this.pjDay !== 0 || this.pjStDay !== 0){ + // this.bzJz = (this.pjMoney / (this.pjDay+this.pjStDay)).toFixed(2) + // } else { + // this.bzJz = 0 // } - // console.log(this.pjDay); - if(this.pjDay !== 0 || this.pjStDay !== 0){ - this.bzJz = (this.pjMoney / (this.pjDay+this.pjStDay)).toFixed(2) - } else { - this.bzJz = 0 - } - this.pjMoney = this.pjMoney.toFixed(2); - this.pjDay = this.pjDay.toFixed(2); + // this.pjMoney = this.pjMoney.toFixed(2); + // this.pjDay = this.pjDay.toFixed(2); + this.dateSTBZList = data.page.list; + this.pjMoney = data.page.pjMoney; + this.pjDay = data.page.pjDay; + this.pjStDay = data.page.pjStDay; + this.bzJz = data.page.bzJz; } }) }, diff --git a/src/pages/pageworker/businessworker/workerCQ/workerCQ.vue b/src/pages/pageworker/businessworker/workerCQ/workerCQ.vue index 3e6a932..a2ab91c 100644 --- a/src/pages/pageworker/businessworker/workerCQ/workerCQ.vue +++ b/src/pages/pageworker/businessworker/workerCQ/workerCQ.vue @@ -34,7 +34,7 @@