|
@@ -39,84 +39,7 @@
|
|
|
</span>
|
|
|
</div>
|
|
|
<vuescroll class="mark-info-content">
|
|
|
- <!-- 数据概览 -->
|
|
|
- <!-- <div class="setting-block" v-show="curBarIndex == 0">
|
|
|
- <p class="block-title">{{$t('learnActivity.mark.dataView')}}</p>
|
|
|
- <div class="setting-content count-content">
|
|
|
- <div class="count-wrap">
|
|
|
- <p class="count-num">13</p>
|
|
|
- <p class="count-label">
|
|
|
- <Icon type="ios-paper" class="count-icon" size="16" />
|
|
|
- {{$t('task.mLabel5')}}
|
|
|
- </p>
|
|
|
- </div>
|
|
|
- <div class="count-wrap">
|
|
|
- <p class="count-num">1</p>
|
|
|
- <p class="count-label">
|
|
|
- <Icon type="ios-star" class="count-icon" size="16" />
|
|
|
- {{$t('task.mLabel2')}}
|
|
|
- </p>
|
|
|
- </div>
|
|
|
- <div class="count-wrap">
|
|
|
- <p class="count-num">2</p>
|
|
|
- <p class="count-label">
|
|
|
- <Icon type="ios-star-outline" class="count-icon" size="16" />
|
|
|
- {{$t('task.mLabel3')}}
|
|
|
- </p>
|
|
|
- </div>
|
|
|
- <div class="count-wrap to-mark-view">
|
|
|
- <p class="count-num">
|
|
|
- 9
|
|
|
- </p>
|
|
|
- <p class="count-label">
|
|
|
- <Icon custom="iconfont icon-scanning" class="count-icon" size="16" />
|
|
|
- {{$t('task.mLabel4')}}
|
|
|
- </p>
|
|
|
- </div>
|
|
|
- </div>
|
|
|
- </div> -->
|
|
|
- <!--按人 学生信息 -->
|
|
|
- <div class="filter-tab-wrap" v-show="curBarIndex == 1">
|
|
|
- <span :class="['filter-tab-item', tabIndex == 0 ? 'filter-tab-item-active':'']" @click="tabIndex = 0">
|
|
|
- {{`${$t('task.mLabel3')} ( ${unmarked} )`}}
|
|
|
- </span>
|
|
|
- <span :class="['filter-tab-item', tabIndex == 1 ? 'filter-tab-item-active':'']" @click="tabIndex = 1">
|
|
|
- {{`${$t('task.mLabel4')} ( ${marking.length} )`}}
|
|
|
- </span>
|
|
|
- <span :class="['filter-tab-item', tabIndex == 2 ? 'filter-tab-item-active':'']" @click="tabIndex = 2">
|
|
|
- {{`${$t('task.mLabel2')} ( ${marked.length} )`}}
|
|
|
- </span>
|
|
|
- </div>
|
|
|
- <!-- 已阅、未阅、进行中学生 -->
|
|
|
- <div class="setting-block stu-name-wrap" v-show="curBarIndex == 1">
|
|
|
- <div class="setting-content stu-name-content">
|
|
|
- <div class="stu-wrap">
|
|
|
- <div class="stu-list-wrap no-stu-wrap" v-show="tabIndex == 0">
|
|
|
- <p class="no-mark-text" v-if="marking.length > 0 || marked.length > 0">
|
|
|
- 还剩
|
|
|
- <span class="no-mark-count">{{unmarked}}</span>
|
|
|
- 人未阅,
|
|
|
- <span class="continue-mark" @click="toByStuView()">继续阅卷</span>
|
|
|
- </p>
|
|
|
- <p class="no-mark-text" v-else-if="unmarked > 0">
|
|
|
- 阅卷总量
|
|
|
- <span class="no-mark-count">{{unmarked}}</span>
|
|
|
- 人,
|
|
|
- <span class="continue-mark" @click="toByStuView()">开始阅卷</span>
|
|
|
- </p>
|
|
|
- <p class="no-mark-text" v-else>
|
|
|
- 暂无未阅学生
|
|
|
- </p>
|
|
|
- </div>
|
|
|
- <div class="stu-list-wrap" v-show="tabIndex == 1">
|
|
|
- <span class="stu-name" v-for="(item,index) in marking" :key="index" @click="toByStuView(item.stuId)">{{item.stuId}}</span>
|
|
|
- </div>
|
|
|
- <div class="stu-list-wrap" v-show="tabIndex == 2">
|
|
|
- <span class="stu-name" v-for="(item,index) in marked" :key="index" @click="toByStuView(item.stuId)">{{item.stuId}}</span>
|
|
|
- </div>
|
|
|
- </div>
|
|
|
- </div>
|
|
|
- </div>
|
|
|
+ <StuProg v-show="curBarIndex == 1" @getStuId="toByStuView" :stusData="markData ? markData.attr : []" :total="markList[curTaskIndex] ? markList[curTaskIndex].count : 1"></StuProg>
|
|
|
<!-- 按题 批阅进度 -->
|
|
|
<div class="setting-block" v-show="curBarIndex == 0" style="margin-top:15px">
|
|
|
<p class="block-title">
|
|
@@ -163,9 +86,10 @@
|
|
|
import DataCompare from './mark/Compare.vue'
|
|
|
import ProgPie from './mark/ProgPie.vue'
|
|
|
import QuProg from './mark/QuProg.vue'
|
|
|
+import StuProg from './mark/StuProg.vue'
|
|
|
export default {
|
|
|
components: {
|
|
|
- DataCompare, ProgPie, QuProg
|
|
|
+ DataCompare, ProgPie, QuProg, StuProg
|
|
|
},
|
|
|
data() {
|
|
|
return {
|
|
@@ -319,6 +243,7 @@ export default {
|
|
|
task: this.markList[this.curTaskIndex],
|
|
|
stuId: sId,
|
|
|
fullPaper: this.fullPaper,
|
|
|
+ stusData:this.markData.attr,
|
|
|
answer,
|
|
|
score
|
|
|
}
|
|
@@ -331,7 +256,6 @@ export default {
|
|
|
*/
|
|
|
async toByQuView(data) {
|
|
|
let {quIndex, childIndex} = data
|
|
|
- console.log(data,quIndex, childIndex)
|
|
|
sessionStorage.setItem('markFrom', this.$route.name)
|
|
|
let sas = this.$store.state.user.schoolProfile.blob_sas //目前只有校本评测安排阅卷任务
|
|
|
let blobUrl = JSON.parse(decodeURIComponent(localStorage.school_profile, "utf-8")).blob_uri //目前只有校本评测安排阅卷任务
|
|
@@ -472,43 +396,6 @@ export default {
|
|
|
return []
|
|
|
}
|
|
|
},
|
|
|
- //试卷题目数量,包括小题
|
|
|
- quLength() {
|
|
|
- if (this.fullPaper && this.fullPaper.item) {
|
|
|
- let count = 0
|
|
|
- this.fullPaper.item.forEach(item => {
|
|
|
- if (item.children.length) {
|
|
|
- count += item.children.length
|
|
|
- } else {
|
|
|
- count++
|
|
|
- }
|
|
|
- })
|
|
|
- return count
|
|
|
- }
|
|
|
- return 0
|
|
|
- },
|
|
|
- //题目进度百分比
|
|
|
- byQuPct() {
|
|
|
- let total = this.markList[this.curTaskIndex] ? this.markList[this.curTaskIndex].count : 1
|
|
|
- return this.byQuCount.map(item => {
|
|
|
- return item * 100 / total
|
|
|
- })
|
|
|
- },
|
|
|
- //题目进度count
|
|
|
- byQuCount() {
|
|
|
- let res = new Array(this.quLength).fill(0)
|
|
|
- if (this.markData && this.markData.attr) {
|
|
|
- for (let i = 0; i < this.quLength; i++) {
|
|
|
- this.markData.attr.forEach(item => {
|
|
|
- if (item.info.score[i] > -1) {
|
|
|
- res[i]++
|
|
|
- }
|
|
|
- })
|
|
|
- }
|
|
|
-
|
|
|
- }
|
|
|
- return res
|
|
|
- },
|
|
|
}
|
|
|
}
|
|
|
</script>
|