Browse Source

更新请假修改接口

reloaded 5 năm trước cách đây
mục cha
commit
919d511e20
1 tập tin đã thay đổi với 1 bổ sung0 xóa
  1. 1 0
      app/service/leave.js

+ 1 - 0
app/service/leave.js

@@ -46,6 +46,7 @@ class LeaveService extends CrudService {
       leave.reason = reason;
       leave.reason = reason;
     }
     }
     if (status) {
     if (status) {
+      leave.status = status;
       const student = await this.smodel.findById(studentid);
       const student = await this.smodel.findById(studentid);
       const remark = '感谢您的使用';
       const remark = '感谢您的使用';
       const stuuser = await this.umodel.findOne({ uid: studentid, type: '4' });
       const stuuser = await this.umodel.findOne({ uid: studentid, type: '4' });