Browse Source

周报列表

master
风继续吹 1 year ago
parent
commit
1d427b1d6b
2 changed files with 7 additions and 7 deletions
  1. +1
    -1
      manifest.json
  2. +6
    -6
      pages/reportExcel/weekReport.vue

+ 1
- 1
manifest.json View File

@@ -91,7 +91,7 @@
},
"quickapp" : {},
"mp-weixin" : {
"appid" : "wx8f883dca5ecc5510",
"appid" : "wxe044603515ff2cb5",
"setting" : {
"urlCheck" : false,
"es6" : true,


+ 6
- 6
pages/reportExcel/weekReport.vue View File

@@ -582,10 +582,10 @@
},

methods: {
tofixed2(time){
if(time){
tofixed2(time) {
if (time) {
return time.toFixed(2)
}else{
} else {
return 0
}
},
@@ -712,7 +712,7 @@
...res.zkMessage,
}
}
if (this.weekObj.level1List && this.weekObj.level2List) {
if (this.weekObj.level1List[0] && this.weekObj.level1List[0].total) {
let max1 = this.weekObj.level1List[0].total || 1
@@ -724,10 +724,10 @@
item.percent = 0
})
}
if (this.weekObj.level2List[0] && this.weekObj.level2List[0].total) {
let max2 = this.weekObj.level2List[0].total || 1
this.weekObj.level2List.forEach(item => {
item.percent = Math.floor((item.total / max2) * 100)
})


Loading…
Cancel
Save