|
@@ -109,7 +109,7 @@
|
|
|
<Button type="error" size="small" @click="removeMarker(row,index)">{{$t('learnActivity.mark.remove')}}</Button>
|
|
|
</template>
|
|
|
<template slot-scope="{ row }" slot="count">
|
|
|
- <span>{{`${row.count}/${evInfo.stuCount}`}}</span>
|
|
|
+ <span>{{`${row.count}/${evInfo.stuCount * setting.num}`}}</span>
|
|
|
</template>
|
|
|
<template slot-scope="{ row }" slot="qu">
|
|
|
<span :style="{color:setting.mode == 'full' ? '#2db7f5' : row.qu.length ? '#FFFFFF' : '#ed4014'}">
|
|
@@ -405,12 +405,13 @@ export default {
|
|
|
})
|
|
|
}
|
|
|
})
|
|
|
- let more = this.evInfo.stuCount % subject.markers.length
|
|
|
+ let count = this.evInfo.stuCount * this.setting.num
|
|
|
+ let more = count % subject.markers.length
|
|
|
subject.markers.map((item, index) => {
|
|
|
if (index < more) {
|
|
|
- item.count = Math.ceil(this.evInfo.stuCount / subject.markers.length)
|
|
|
+ item.count = Math.ceil(count / subject.markers.length)
|
|
|
} else {
|
|
|
- item.count = Math.floor(this.evInfo.stuCount / subject.markers.length)
|
|
|
+ item.count = Math.floor(count / subject.markers.length)
|
|
|
}
|
|
|
|
|
|
})
|
|
@@ -493,6 +494,27 @@ export default {
|
|
|
this.$emit('statusChange', this.isSetting)
|
|
|
},
|
|
|
immediate: true
|
|
|
+ },
|
|
|
+ 'setting.num': {
|
|
|
+ handler(n, o) {
|
|
|
+ console.log(n, this.setting)
|
|
|
+ if (this.setting.subs) {
|
|
|
+ let count = this.evInfo.stuCount * this.setting.num
|
|
|
+ this.setting.subs.forEach((item, subIndex) => {
|
|
|
+ if (item.markers && item.markers.length) {
|
|
|
+ let more = count % item.markers.length
|
|
|
+ item.markers.map((m, index) => {
|
|
|
+ if (index < more) {
|
|
|
+ this.$set(this.setting.subs[subIndex].markers[index], 'count', Math.ceil(count / item.markers.length))
|
|
|
+ } else {
|
|
|
+ this.$set(this.setting.subs[subIndex].markers[index], 'count', Math.floor(count / item.markers.length))
|
|
|
+ // m.count = Math.floor(count / item.markers.length)
|
|
|
+ }
|
|
|
+ })
|
|
|
+ }
|
|
|
+ })
|
|
|
+ }
|
|
|
+ }
|
|
|
}
|
|
|
},
|
|
|
computed: {
|
|
@@ -515,15 +537,17 @@ export default {
|
|
|
},
|
|
|
//从基础信息获取当前学科阅卷老师
|
|
|
markers() {
|
|
|
+ console.log('变了')
|
|
|
let arr = []
|
|
|
- if (this.setting.subs && this.subjects && this.subjects[this.curSubIndex]) {
|
|
|
+ if (this.setting.num && this.setting.subs && this.subjects && this.subjects[this.curSubIndex]) {
|
|
|
let subject = this.setting.subs.find(item => {
|
|
|
return item.id == this.subjects[this.curSubIndex].id
|
|
|
})
|
|
|
if (subject) {
|
|
|
- arr = subject.markers
|
|
|
+ arr = [...subject.markers]
|
|
|
}
|
|
|
}
|
|
|
+ console.log(arr)
|
|
|
return arr
|
|
|
},
|
|
|
//当前评测科目
|