|
|
@@ -6,7 +6,7 @@
|
|
|
</el-select>
|
|
|
</el-form-item>
|
|
|
</el-form>
|
|
|
- <Table :data="filterList" :columns="columns" :actions="actions" @action="handleAction">
|
|
|
+ <Table :data="filterList" :columns="columns" :actions="actions" action-width="100" @action="handleAction">
|
|
|
<template #rate="{row}">
|
|
|
<el-text v-if="[undefined, null, NaN].includes(row.rate)">-</el-text>
|
|
|
<el-text v-else :type="row.rate>90?'success':row.rate>70?'primary':'danger'">{{row.rate}}%</el-text>
|
|
|
@@ -49,13 +49,13 @@ const filterList = computed(() => {
|
|
|
})
|
|
|
|
|
|
const columns = [
|
|
|
- {label: '姓名', prop: 'studentName'},
|
|
|
- {label: '班级', prop: 'className'},
|
|
|
- {label: '考试批次', prop: 'batchName'},
|
|
|
+ {label: '姓名', prop: 'studentName', width: 120},
|
|
|
+ // {label: '班级', prop: 'className'},
|
|
|
+ // {label: '考试批次', prop: 'batchName'},
|
|
|
{label: '试卷名称', prop: 'paperName'},
|
|
|
- {label: '发送情况', prop: 'state'},
|
|
|
- {label: '得分率', prop: 'rate', type: 'slot', slotName: 'rate'},
|
|
|
- {label: '手机号', prop: 'mobile', minWidth: 120}
|
|
|
+ {label: '发送情况', prop: 'state', width: 120},
|
|
|
+ {label: '得分率', prop: 'rate', type: 'slot', slotName: 'rate', width: 80},
|
|
|
+ {label: '手机号', prop: 'mobile', width: 120}
|
|
|
]
|
|
|
const actions = [
|
|
|
{key: 'rate', label: '考试详情', permission: [''], disabled: r => [null, undefined, NaN].includes(r.rate)}
|