|
@@ -248,11 +248,14 @@ export default {
|
|
|
let result = res.data
|
|
|
if(result.code == 200) {
|
|
|
let tempDate = result.data
|
|
|
- let scale = ((tempDate.firstDayPayNum / tempDate.payNum) * 100).toFixed(2)
|
|
|
+ let scale = 0
|
|
|
+ if(tempDate.payNum > 0) {
|
|
|
+ scale = ((tempDate.firstDayPayNum / tempDate.payNum) * 100)
|
|
|
+ }
|
|
|
this.config = {
|
|
|
regNum: tempDate.regNum,
|
|
|
firstDayPayNum: tempDate.firstDayPayNum,
|
|
|
- payScale: scale,
|
|
|
+ payScale: (scale).toFixed(2),
|
|
|
payNum: tempDate.payNum
|
|
|
}
|
|
|
this.countList = tempDate.rows
|