liqk il y a 3 ans
Parent
commit
c353f78aa2

+ 1 - 0
TEAMModelOS/ClientApp/src/view/task/index.vue

@@ -228,6 +228,7 @@ export default {
                 let stuInfo = this.markData.objs.find(item => {
                     return item.stuId == stuId
                 })
+                stuData = stuInfo
                 let index = stuInfo.tIds.indexOf(this.$store.state.userInfo.TEAMModelId)
                 let ansBlob = index > -1 ? stuInfo.marks[index] || stuInfo.blob : stuInfo.blob
                 answer = ansBlob ? JSON.parse(await this.$tools.getFile(`${blobUrl}/exam/${ansBlob}?${sas}`)) : []

+ 1 - 1
TEAMModelOS/ClientApp/src/view/task/mark/ByQu.vue

@@ -413,7 +413,7 @@ export default {
             let index = this.quIndex
             let marked = 0
             this.stusInfo.forEach(item => {
-                if (item.scores[index] != -1) {
+                if (item.item[index].sc != -1) {
                     marked++
                 }
             })

+ 2 - 1
TEAMModelOS/ClientApp/src/view/task/mark/ByStu.vue

@@ -475,7 +475,7 @@ export default {
         this.stuId = routeData.stuId
         this.stuData = routeData.stuData
         console.log('路由数据',routeData)
-        if (this.paperData && this.stuAnswer && this.stuScore && this.quScore && this.stuData && this.taskInfo && this.stuId) {
+        if (this.paperData && this.stuAnswer && this.stuScore && this.quScore && this.taskInfo && this.stuId) {
             //初始化题目index
             if (this.taskInfo.qu && this.taskInfo.qu.length) {
                 this.quIndex = this.taskInfo.qu[0]
@@ -487,6 +487,7 @@ export default {
                 this.imgs.push(require('@/assets/mark/' + i + '.svg'))
             }
         } else {
+            this.$Message.error('数据错误')
             this.quit()
         }
     },

+ 0 - 1
TEAMModelOS/ClientApp/src/view/task/mark/MarkCanvas.vue

@@ -1,5 +1,4 @@
 <template>
-    <!-- 未做多语言 -->
     <div class="mark-stage">
         <vuescroll ref="canvasScroll">
             <!-- canvas部分 -->