瀏覽代碼

重新打包

lex-xin 3 年之前
父節點
當前提交
b6321876ba

文件差異過大導致無法顯示
+ 0 - 0
dist/app.86ab19f970ef30951fa6.js


文件差異過大導致無法顯示
+ 0 - 0
dist/css/order.a66a1652.css


文件差異過大導致無法顯示
+ 0 - 0
dist/css/order.fc71f6c2.css


文件差異過大導致無法顯示
+ 0 - 0
dist/index.html


文件差異過大導致無法顯示
+ 0 - 0
dist/js/order.5ba89c67.js


文件差異過大導致無法顯示
+ 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

部分文件因文件數量過多而無法顯示