|
@@ -111,7 +111,7 @@ export default {
|
|
|
},
|
|
|
//查询选择期上报的学生,提供批次选择
|
|
|
async stuSearch({ skip = 0, limit = 10, ...info } = {}) {
|
|
|
- const res = await this.getStudentList({ termid: this.options.termid, skip, limit, type: this.classtype });
|
|
|
+ const res = await this.getStudentList({ termid: this.options.termid, skip, limit, type: this.classtype, batchid: this.selectInfo.batchid });
|
|
|
if (this.$checkRes(res)) {
|
|
|
this.$set(this, `list`, res.data);
|
|
|
this.$set(this, `total`, res.total);
|
|
@@ -136,6 +136,7 @@ export default {
|
|
|
if (r) res = r.class;
|
|
|
}
|
|
|
this.$set(this, `classList`, res);
|
|
|
+ this.stuSearch();
|
|
|
},
|
|
|
toEdit({ data }) {
|
|
|
this.$router.push({ path: '/dept/detail', query: { id: data.id } });
|
|
@@ -199,7 +200,6 @@ export default {
|
|
|
if (res) {
|
|
|
this.$set(this.selectInfo, `personReq`, res.number);
|
|
|
this.$set(this, `classtype`, res.type);
|
|
|
- this.stuSearch();
|
|
|
}
|
|
|
},
|
|
|
resetData() {
|
|
@@ -228,7 +228,7 @@ export default {
|
|
|
if (nplanid && !_.isEqual(nplanid, oplanid)) {
|
|
|
this.termList = [];
|
|
|
this.resetData();
|
|
|
- this.search();
|
|
|
+ // this.search();
|
|
|
}
|
|
|
let ntermid = _.get(val, 'termid');
|
|
|
let otermid = _.get(this.options, 'termid');
|
|
@@ -236,7 +236,7 @@ export default {
|
|
|
this.$set(this, `options`, _.cloneDeep(val));
|
|
|
this.resetData();
|
|
|
this.getBatch();
|
|
|
- this.stuSearch();
|
|
|
+ // this.stuSearch();
|
|
|
}
|
|
|
}
|
|
|
},
|