|
@@ -72,12 +72,16 @@ export default {
|
|
|
...mapStudent({ stuQuery: 'query', stuFetch: 'fetch' }),
|
|
|
// 查询问卷调查列表
|
|
|
async search() {
|
|
|
- let res = await this.query({ termid: this.user.termid });
|
|
|
- if (this.$checkRes(res)) {
|
|
|
- let ids = _.flattenDeep(res.data.map(i => i.questionnaireid));
|
|
|
- let quest = await this.getQuestMerge({ method: 'fetch', data: ids });
|
|
|
- this.$set(this, `questionnaireList`, quest);
|
|
|
- }
|
|
|
+ let res = await this.getQuestList({ type: 0 });
|
|
|
+ console.log(res.data);
|
|
|
+ this.$set(this, `questionnaireList`, res.data);
|
|
|
+ // if (this.$checkRes(res)) {
|
|
|
+ // let ids = _.flattenDeep(res.data.map(i => i.questionnaireid));
|
|
|
+ // console.log(ids);
|
|
|
+ // let quest = await this.getQuestMerge({ method: 'fetch', data: ids });
|
|
|
+ // console.log(quest);
|
|
|
+ // // this.$set(this, `questionnaireList`, quest);
|
|
|
+ // }
|
|
|
},
|
|
|
// 班主任查询管理班级列表
|
|
|
async searchInfo({ ...info } = {}) {
|