|
@@ -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);
|
|
|
}
|
|
|
},
|