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 => {
       // 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;
     });