lrf402788946 4 rokov pred
rodič
commit
83f156475c
1 zmenil súbory, kde vykonal 2 pridanie a 2 odobranie
  1. 2 2
      src/views/question/question.vue

+ 2 - 2
src/views/question/question.vue

@@ -90,13 +90,13 @@ export default {
     // 提交答案
     async submit(task) {
       let { answerid } = task;
-      let { termid, batchid, classid, userid: studentid } = this.user;
+      let { termid, batchid, classid, userid: studentid, planid } = this.user;
       let answers = task.question.map(i => {
         let { answer, _id: questionid } = i;
         answer ? (answer = JSON.stringify(answer)) : '';
         return { answer, questionid };
       });
-      let object = { termid, batchid, classid, studentid, questionnaireid: this.id, answers };
+      let object = { termid, batchid, classid, studentid, planid, questionnaireid: this.id, answers };
       let res;
 
       console.log(object);