|
@@ -55,7 +55,9 @@ export default {
|
|
...classes({ classesquery: 'query' }),
|
|
...classes({ classesquery: 'query' }),
|
|
...student({ stuquery: 'query', findscore: 'findscore' }),
|
|
...student({ stuquery: 'query', findscore: 'findscore' }),
|
|
async search({ skip = 0, limit = 10, ...info } = {}) {
|
|
async search({ skip = 0, limit = 10, ...info } = {}) {
|
|
- const res = await this.findscore({ skip, limit, termid: this.form.termid, classid: this.form.classid, ...info });
|
|
|
|
|
|
+ let classid = _.get(this.defaultOption, 'classid');
|
|
|
|
+ let termid = _.get(this.defaultOption, 'termid');
|
|
|
|
+ const res = await this.findscore({ skip, limit, termid: termid, classid: classid, ...info });
|
|
if (this.$checkRes(res)) {
|
|
if (this.$checkRes(res)) {
|
|
this.$set(this, `total`, res.total);
|
|
this.$set(this, `total`, res.total);
|
|
this.$set(this, `list`, res.data);
|
|
this.$set(this, `list`, res.data);
|