lex-xin il y a 3 ans
Parent
commit
b6321876ba

Fichier diff supprimé car celui-ci est trop grand
+ 0 - 0
dist/app.86ab19f970ef30951fa6.js


Fichier diff supprimé car celui-ci est trop grand
+ 0 - 0
dist/css/order.a66a1652.css


Fichier diff supprimé car celui-ci est trop grand
+ 0 - 0
dist/css/order.fc71f6c2.css


Fichier diff supprimé car celui-ci est trop grand
+ 0 - 0
dist/index.html


Fichier diff supprimé car celui-ci est trop grand
+ 0 - 0
dist/js/order.5ba89c67.js


Fichier diff supprimé car celui-ci est trop grand
+ 0 - 0
dist/js/order.e6adf878.js


+ 5 - 2
src/views/teacher/order.vue

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

Certains fichiers n'ont pas été affichés car il y a eu trop de fichiers modifiés dans ce diff