Prechádzať zdrojové kódy

将ispass字段更改为status

reloaded 5 rokov pred
rodič
commit
0f1d34af60
2 zmenil súbory, kde vykonal 4 pridanie a 4 odobranie
  1. 3 3
      app/controller/.leave.js
  2. 1 1
      app/model/leave.js

+ 3 - 3
app/controller/.leave.js

@@ -5,7 +5,7 @@ module.exports = {
       '!starttime',
       '!endtime',
       'reason',
-      'ispass',
+      'status',
       'refcause'
     ]
   },
@@ -20,7 +20,7 @@ module.exports = {
       'starttime',
       'endtime',
       'reason',
-      'ispass',
+      'status',
       'refcause'
     ]
   },
@@ -37,7 +37,7 @@ module.exports = {
         starttime :'starttime',
         endtime :'endtime',
         reason :'reason',
-        ispass :'ispass',
+        status :'status',
         refcause :'refcause'
       }
     },

+ 1 - 1
app/model/leave.js

@@ -8,7 +8,7 @@ const LeaveSchema = {
   starttime: { type: String, required: true, maxLength: 200 }, // 开始时间
   endtime: { type: String, required: true, maxLength: 500 }, // 结束时间
   reason: { type: String, required: false, maxLength: 2000 }, // 请假理由
-  ispass: { type: String, required: false, maxLength: 200 }, // 是否通过,0-未通过,1-通过
+  status: { type: String, required: false, maxLength: 200 }, // 状态,0-审核中,1-通过,2-未通过
   refcause: { type: String, required: false, maxLength: 2000 }, // 拒绝原因
 };