lrf402788946 há 4 anos atrás
pai
commit
83f156475c
1 ficheiros alterados com 2 adições e 2 exclusões
  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);