Quellcode durchsuchen

周报列表

master
风继续吹 vor 1 Jahr
Ursprung
Commit
1d427b1d6b
2 geänderte Dateien mit 7 neuen und 7 gelöschten Zeilen
  1. +1
    -1
      manifest.json
  2. +6
    -6
      pages/reportExcel/weekReport.vue

+ 1
- 1
manifest.json Datei anzeigen

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


+ 6
- 6
pages/reportExcel/weekReport.vue Datei anzeigen

@@ -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)
})


Laden…
Abbrechen
Speichern