lrf402788946 il y a 4 ans
Parent
commit
a323b5b32c
1 fichiers modifiés avec 1 ajouts et 2 suppressions
  1. 1 2
      src/views/user/dati.vue

+ 1 - 2
src/views/user/dati.vue

@@ -81,7 +81,7 @@ export default {
       let num = _.cloneDeep(result);
       this.$set(this, `task`, result);
       //获取答过的作业
-      let taskAnswer = await this.modelFetch({ model: 'uploadtask', studentid: this.user.userid, taskid: this.task.id });
+      let taskAnswer = await this.modelFetch({ model: 'uploadtask', studentid: this.user.userid, lessonid: this.lessonid });
       if (!taskAnswer.data) return;
       this.$set(this, `taskAnswer`, taskAnswer.data);
       let { answers } = this.taskAnswer;
@@ -103,7 +103,6 @@ export default {
     async onsave() {
       let task = _.cloneDeep(this.task);
       let obj = {};
-      console.log(this.taskAnswer);
       if (!this.taskAnswer) {
         obj = {
           termid: this.user.termid,