zxr 3 年 前
コミット
cfc519eb81
1 ファイル変更7 行追加4 行削除
  1. 7 4
      src/views/taishi/index.vue

+ 7 - 4
src/views/taishi/index.vue

@@ -1231,10 +1231,13 @@ export default {
     //人员请销假
     //人员请销假
     getLeavlNumber().then(res => {
     getLeavlNumber().then(res => {
       // console.log(res.data)
       // console.log(res.data)
-      if (res.data[i] >= 0) {
-        res.data[i];
-      } else {
-        res.data[i] = 0;
+      for (var i in res.data) {
+        console.log(res.data[i])
+        if (res.data[i] >= 0) {
+          res.data[i];
+        } else {
+          res.data[i] = 0;
+        }
       }
       }
       this.qjlist = res.data;
       this.qjlist = res.data;
     });
     });