浏览代码

Merge branch 'develop5.0-tmd' of http://106.12.23.251:10000/TEAMMODEL/TEAMModelOS into develop5.0-tmd

XW 3 年之前
父节点
当前提交
eca8d1aac6
共有 1 个文件被更改,包括 4 次插入2 次删除
  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
                 })
             }
+
         },
 
         // 获取题号