|
|
@@ -2,7 +2,7 @@
|
|
|
<ArtTable ref="refereeTableRef" :loading="refereeLoading" :data="refereeData" :columns="refereeColumns" empty-height="360px">
|
|
|
<!-- 操作得分 -->
|
|
|
<template #operScore="{ row }">
|
|
|
- <el-slider v-model="row.operScore" range show-stops :max="row.evaScore" :min="Math.max(0, row.evaDeduction)" :input="saveRefereeRow(row, 'operScore', '操作得分已修改')" />
|
|
|
+ <el-slider v-model="row.operScore" :max="row.evaScore" :min="Math.max(0, row.evaDeduction)" @change="saveRefereeRow(row, 'operScore', '操作得分已修改')" />
|
|
|
</template>
|
|
|
<!-- 是否失格项 -->
|
|
|
<template #disqualificationItem="{ row }">
|
|
|
@@ -46,10 +46,10 @@
|
|
|
{ prop: 'evaSource', label: '评价来源', formatter: (row: RefereeData) => (row.evaSource === 0 ? '流程图' : row.evaSource === 1 ? '教员自定义' : '未知') },
|
|
|
{ prop: 'evaType', label: '评价类型', formatter: (row: RefereeData) => (row.evaType === 0 ? '主观评价' : row.evaType === 1 ? '客观评价' : '未知') },
|
|
|
{ prop: 'evaName', label: '节点名称', width: '250px' },
|
|
|
- { prop: 'operScore', label: '操作得分', useSlot: true },
|
|
|
{ prop: 'operTime', label: '操作时间', formatter: (row: RefereeData) => formatSecondsToHHMMSS(Number(row.operTime ?? 0)) },
|
|
|
- { prop: 'evaDeduction', label: '评价失分', width: 180 },
|
|
|
- { prop: 'evaScore', label: '评价赋分', width: 180 },
|
|
|
+ { prop: 'evaDeduction', label: '评价失分' },
|
|
|
+ { prop: 'evaScore', label: '评价赋分' },
|
|
|
+ { prop: 'operScore', label: '操作得分', width: 180, useSlot: true },
|
|
|
{ prop: 'disqualificationItem', label: '是否失格项', useSlot: true },
|
|
|
{ prop: 'isOperated', label: '是否操作', useSlot: true }
|
|
|
]
|
|
|
@@ -66,6 +66,7 @@
|
|
|
})
|
|
|
|
|
|
const saveRefereeRow = async (row: RefereeData, prop: string, tip: string = '修改成功') => {
|
|
|
+ console.log(row)
|
|
|
if (!row.runLogID || !row.runOperID || !prop) return
|
|
|
if (prop === 'operScore') {
|
|
|
await RefereeServer.setScore(row.runLogID, row.seqNo, Number(row.operScore))
|