Browse Source

批注流程

liqk 3 years ago
parent
commit
43b4ebdeef
1 changed files with 4 additions and 2 deletions
  1. 4 2
      TEAMModelOS/ClientApp/src/view/learnactivity/PaperScore.vue

+ 4 - 2
TEAMModelOS/ClientApp/src/view/learnactivity/PaperScore.vue

@@ -414,8 +414,9 @@ export default {
             let path = `exam/${this.examId}/${this.subjectId}/${this.studentAnswer.id}`
             blobTool.upload(markPng, path).then(
                 res => {
-                    console.log('保存成功', res)
-                    this.$set(this.studentAnswer.answers, this.curAnIndex, [img.outerHTML])
+                    this.studentAnswer.mark[this.curAnIndex].push({
+                        mark: path + '/' + fileName
+                    })
                     this.markStatus = false
                     //保存批注数据
                     this.$api.learnActivity.upsertAnswer({
@@ -473,6 +474,7 @@ export default {
                     this.markStatus = true
                 })
             }
+
         },
 
         // 获取题号