|
@@ -102,7 +102,7 @@ export default {
|
|
|
created() {
|
|
|
this.searchinfo();
|
|
|
},
|
|
|
- computed: { ...mapState(['user']) },
|
|
|
+ computed: { ...mapState(['user', 'defaultOption']) },
|
|
|
methods: {
|
|
|
...mapActions(['query', 'delete']),
|
|
|
...student({ stuquery: 'query' }),
|
|
@@ -110,7 +110,7 @@ export default {
|
|
|
...util({ fetchUtil: 'fetch' }),
|
|
|
...classes({ classesquery: 'query' }),
|
|
|
async searchinfo() {
|
|
|
- // let stuid = this.user.id;
|
|
|
+ let stuid = this.user.id;
|
|
|
const res = await this.schPlanquery();
|
|
|
this.$set(this, `planList`, res.data);
|
|
|
},
|
|
@@ -135,9 +135,6 @@ export default {
|
|
|
|
|
|
async onsearch({ skip = 0, limit = 10, ...info } = {}) {
|
|
|
const res = await this.query({ skip, termid: this.form.termid, classid: this.form.classid, limit, ...info });
|
|
|
-
|
|
|
- console.log(res.data);
|
|
|
-
|
|
|
if (this.$checkRes(res)) {
|
|
|
this.$set(this, `list`, res.data);
|
|
|
this.$set(this, `total`, res.total);
|