zs 11 달 전
부모
커밋
6c07db85ca
1개의 변경된 파일2개의 추가작업 그리고 3개의 파일을 삭제
  1. 2 3
      src/views/home.vue

+ 2 - 3
src/views/home.vue

@@ -122,9 +122,8 @@ export default {
     // 查询请假人数未处理多少
     async getleave() {
       let classid = _.get(this.defaultOption, 'classid');
-      let termid = _.get(this.defaultOption, 'termid');
-      if (classid && termid) {
-        let res = await this.lQuery({ status: 0, termid, classid, skip: 0, limit: 1 });
+      if (classid) {
+        let res = await this.lQuery({ status: 0, classid, skip: 0, limit: 1 });
         if (this.$checkRes(res)) this.$set(this, `leaveNum`, res.total);
       }
     },