|
@@ -173,7 +173,7 @@ export default {
|
|
|
...room(['lookuserFetch', 'fetch', 'lookusercount', 'lookquery', 'lookupdate', 'lookrecord']),
|
|
|
...chat(['query', 'create']),
|
|
|
...quest(['questfetch']),
|
|
|
- ...uploadquestion({ upcreate: 'create' }),
|
|
|
+ ...uploadquestion({ upcreate: 'create', upquery: 'query' }),
|
|
|
async recordSave() {
|
|
|
console.log(2121);
|
|
|
let data = {};
|
|
@@ -295,9 +295,17 @@ export default {
|
|
|
this.$set(this, `roomInfos`, result.data);
|
|
|
// 根据房间信息判断是否回答问卷
|
|
|
if (result.data.isque === '1') {
|
|
|
- this.showQuest = true;
|
|
|
- this.queid = result.data.queid;
|
|
|
- this.questSearch();
|
|
|
+ const info = { roomid: this.id, userid: this.user.uid, questionnaireid: result.data.queid };
|
|
|
+ const skip = 0;
|
|
|
+ const limit = 10;
|
|
|
+ const upres = await this.upquery({ skip, limit, ...info });
|
|
|
+ if (this.$checkRes(upres)) {
|
|
|
+ if (upres.data.length === 0) {
|
|
|
+ this.showQuest = true;
|
|
|
+ this.queid = result.data.queid;
|
|
|
+ this.questSearch();
|
|
|
+ }
|
|
|
+ }
|
|
|
}
|
|
|
}
|
|
|
},
|