From 7b45f175c2309d3b439831796582ac5f7ef5c8ab Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9B=B9=E7=A3=8A?= <45566618@qq.com> Date: Fri, 12 Apr 2024 15:33:53 +0800 Subject: [PATCH] =?UTF-8?q?=E5=87=BA=E5=8B=A4=E6=A0=B7=E5=BC=8F=E8=B0=83?= =?UTF-8?q?=E6=95=B4=EF=BC=8C=E9=A3=9F=E5=A0=82=E6=A0=87=E5=87=86=E5=8F=96?= =?UTF-8?q?=E6=95=B0=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/pages/businesszcmx/businesszcmx.vue | 38 +++++++++---------- .../businessworker/workerCQ/workerCQ.vue | 2 +- 2 files changed, 18 insertions(+), 22 deletions(-) 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 @@