|
@@ -44,24 +44,24 @@
|
|
|
<div class="setting-content">
|
|
|
<Table :columns="subCol" :data="subData" class="sub-info-table">
|
|
|
<template slot-scope="{ row }" slot="scanPerc">
|
|
|
- {{ `${row.scanNum}/${row.num}` }}
|
|
|
+ {{ `${row.scanNum}/${row.count}` }}
|
|
|
</template>
|
|
|
<template slot-scope="{ row }" slot="markPerc">
|
|
|
- {{ `${row.markNum}/${row.num}` }}
|
|
|
+ {{ `${row.cs}/${row.count}` }}
|
|
|
</template>
|
|
|
<template slot-scope="{ row }" slot="err">
|
|
|
- {{ `${row.handleErr}/${row.err}` }}
|
|
|
+ {{ `${row.tqs}/${row.qs}` }}
|
|
|
</template>
|
|
|
<template slot-scope="{ row }" slot="arb">
|
|
|
- {{ `${row.handleArb}/${row.arb}` }}
|
|
|
+ {{ `${row.tarbs}/${row.arbs}` }}
|
|
|
</template>
|
|
|
<template slot-scope="{ row }" slot="status">
|
|
|
{{ row.status == 0 ? $t('learnActivity.mark.unassigned') : $t('learnActivity.mark.assigned')}}
|
|
|
</template>
|
|
|
<template slot-scope="{ row }" slot="progress">
|
|
|
<div style="display: flex;justify-content: center;">
|
|
|
- <i-circle :percent="20" :size="40" :stroke-width="8" :trail-width="7" stroke-color="#ff5500">
|
|
|
- <span style="font-size:12px">20%</span>
|
|
|
+ <i-circle :percent="row.percent" :size="40" :stroke-width="8" :trail-width="7" stroke-color="#ff5500">
|
|
|
+ <span style="font-size:12px">{{row.percent}}%</span>
|
|
|
</i-circle>
|
|
|
</div>
|
|
|
</template>
|
|
@@ -90,6 +90,9 @@
|
|
|
<template slot-scope="{ row }" slot="err">
|
|
|
{{ `${row.handleErr}/${row.err}` }}
|
|
|
</template>
|
|
|
+ <template slot-scope="{ row }" slot="mark">
|
|
|
+ {{ `${row.handleErr}/${row.err}` }}
|
|
|
+ </template>
|
|
|
<template slot-scope="{ row }" slot="arb">
|
|
|
{{ `${row.handleArb}/${row.arb}` }}
|
|
|
</template>
|
|
@@ -131,19 +134,9 @@ export default {
|
|
|
},
|
|
|
{
|
|
|
title: this.$t('learnActivity.mark.stuNum'),
|
|
|
- key: 'num',
|
|
|
+ key: 'count',
|
|
|
align: 'center'
|
|
|
},
|
|
|
- // {
|
|
|
- // title: this.$t('learnActivity.mark.scanProg'),
|
|
|
- // slot: 'scanPerc',
|
|
|
- // align: 'center'
|
|
|
- // },
|
|
|
- // {
|
|
|
- // title: this.$t('learnActivity.mark.assignStatus'),
|
|
|
- // slot: 'status',
|
|
|
- // align: 'center'
|
|
|
- // },
|
|
|
{
|
|
|
title: this.$t('learnActivity.mark.errDeclare'),
|
|
|
slot: 'err',
|
|
@@ -165,41 +158,7 @@ export default {
|
|
|
align: 'center'
|
|
|
}
|
|
|
],
|
|
|
- subData: [
|
|
|
- {
|
|
|
- name: '语文',
|
|
|
- num: 563,
|
|
|
- scanNum: 560,
|
|
|
- status: 0,
|
|
|
- markNum: 400,
|
|
|
- err: 1,
|
|
|
- handleErr: 1,
|
|
|
- arb: 0,
|
|
|
- handleArb: 0
|
|
|
- },
|
|
|
- {
|
|
|
- name: '数学',
|
|
|
- num: 563,
|
|
|
- scanNum: 560,
|
|
|
- status: 0,
|
|
|
- markNum: 400,
|
|
|
- err: 1,
|
|
|
- handleErr: 1,
|
|
|
- arb: 0,
|
|
|
- handleArb: 0
|
|
|
- },
|
|
|
- {
|
|
|
- name: '英语',
|
|
|
- num: 563,
|
|
|
- scanNum: 560,
|
|
|
- status: 0,
|
|
|
- markNum: 400,
|
|
|
- err: 1,
|
|
|
- handleErr: 1,
|
|
|
- arb: 0,
|
|
|
- handleArb: 0
|
|
|
- }
|
|
|
- ],
|
|
|
+ subData: [],
|
|
|
teaCol: [
|
|
|
{
|
|
|
title: ' ',
|
|
@@ -213,7 +172,7 @@ export default {
|
|
|
},
|
|
|
{
|
|
|
title: this.$t('learnActivity.mark.subject'),
|
|
|
- key: 'subject',
|
|
|
+ key: 'sName',
|
|
|
align: 'center'
|
|
|
},
|
|
|
|
|
@@ -222,9 +181,14 @@ export default {
|
|
|
slot: 'err',
|
|
|
align: 'center'
|
|
|
},
|
|
|
+ // {
|
|
|
+ // title: this.$t('learnActivity.mark.arbDeclare'),
|
|
|
+ // slot: 'arb',
|
|
|
+ // align: 'center'
|
|
|
+ // },
|
|
|
{
|
|
|
- title: this.$t('learnActivity.mark.arbDeclare'),
|
|
|
- slot: 'arb',
|
|
|
+ title: this.$t('learnActivity.mark.markProg'),
|
|
|
+ slot: 'mark',
|
|
|
align: 'center'
|
|
|
},
|
|
|
{
|
|
@@ -232,68 +196,52 @@ export default {
|
|
|
slot: 'progress',
|
|
|
align: 'center'
|
|
|
},
|
|
|
- {
|
|
|
- title: this.$t('learnActivity.mark.action'),
|
|
|
- slot: 'action',
|
|
|
- align: 'center'
|
|
|
- }
|
|
|
+ // {
|
|
|
+ // title: this.$t('learnActivity.mark.action'),
|
|
|
+ // slot: 'action',
|
|
|
+ // align: 'center'
|
|
|
+ // }
|
|
|
],
|
|
|
- teaData: [
|
|
|
- {
|
|
|
- name: '李芷萱',
|
|
|
- subject: '语文',
|
|
|
- compNum: 23,
|
|
|
- num: 50,
|
|
|
- err: 1,
|
|
|
- handleErr: 1,
|
|
|
- arb: 0,
|
|
|
- handleArb: 0
|
|
|
- },
|
|
|
- {
|
|
|
- name: '李芷萱',
|
|
|
- subject: '语文',
|
|
|
- compNum: 2,
|
|
|
- num: 50,
|
|
|
- err: 1,
|
|
|
- handleErr: 1,
|
|
|
- arb: 0,
|
|
|
- handleArb: 0
|
|
|
- },
|
|
|
- {
|
|
|
- name: '李芷萱',
|
|
|
- subject: '语文',
|
|
|
- compNum: 18,
|
|
|
- num: 50,
|
|
|
- err: 1,
|
|
|
- handleErr: 1,
|
|
|
- arb: 0,
|
|
|
- handleArb: 0
|
|
|
- },
|
|
|
- {
|
|
|
- name: '李芷萱',
|
|
|
- subject: '语文',
|
|
|
- compNum: 39,
|
|
|
- num: 50,
|
|
|
- err: 1,
|
|
|
- handleErr: 1,
|
|
|
- arb: 0,
|
|
|
- handleArb: 0
|
|
|
- },
|
|
|
- ]
|
|
|
+ teaData: []
|
|
|
}
|
|
|
},
|
|
|
methods: {
|
|
|
+ findMarkProgress() {
|
|
|
+ let params = {
|
|
|
+ id: this.markSetting.id,
|
|
|
+ code: this.$store.state.userInfo.schoolCode
|
|
|
+ }
|
|
|
+ this.$api.learnActivity.findMarkProgress(params).then(
|
|
|
+ res => {
|
|
|
+ if (!res.error) {
|
|
|
+ res.sc.forEach(item => {
|
|
|
+ item.percent = parseFloat((item.cs*100/item.count).toFixed(1))
|
|
|
+ })
|
|
|
+ this.subData = res.sc
|
|
|
|
|
|
+ this.teaData = res.teachers
|
|
|
+ } else {
|
|
|
+ this.$Message.error('API error')
|
|
|
+ }
|
|
|
+ },
|
|
|
+ err => {
|
|
|
+ this.$Message.error('API error')
|
|
|
+ }
|
|
|
+ )
|
|
|
+ }
|
|
|
},
|
|
|
created() {
|
|
|
|
|
|
},
|
|
|
watch: {
|
|
|
- markSetting: {
|
|
|
+ 'markSetting.id': {
|
|
|
handler(n, o) {
|
|
|
console.log('阅卷数据', n)
|
|
|
+ if (n) {
|
|
|
+ this.findMarkProgress()
|
|
|
+ }
|
|
|
},
|
|
|
- deep: true,
|
|
|
+ // deep: true,
|
|
|
immediate: true
|
|
|
}
|
|
|
}
|