修复用户需求排行榜:使用dataIndex显示真实姓名,与设计师绩效榜单保持一致
This commit is contained in:
parent
3d4d18abf8
commit
073586c97f
@ -157,9 +157,6 @@
|
||||
<template v-if="column.key === 'rank'">
|
||||
<span class="rank-badge" :class="getRankClass(index + 1)">{{ index + 1 }}</span>
|
||||
</template>
|
||||
<template v-else-if="column.key === 'realName'">
|
||||
<span>{{ record.realName || record.userName }}</span>
|
||||
</template>
|
||||
<template v-else-if="column.key === 'completionRate'">
|
||||
<a-progress
|
||||
:percent="Math.round(record.completionRate)"
|
||||
@ -612,7 +609,7 @@ const efficiencyTableData = computed(() => [
|
||||
// 表格列定义
|
||||
const userColumns = [
|
||||
{ title: '排名', key: 'rank', width: 80, align: 'center' },
|
||||
{ title: '用户名', key: 'realName', width: 120 },
|
||||
{ title: '用户名', dataIndex: 'realName', key: 'realName', width: 120 },
|
||||
{ title: '部门', dataIndex: 'deptName', key: 'deptName' },
|
||||
{ title: '发起数', dataIndex: 'totalDemands', key: 'totalDemands', sorter: (a: any, b: any) => a.totalDemands - b.totalDemands, align: 'center' },
|
||||
{ title: '完成数', dataIndex: 'completedDemands', key: 'completedDemands', align: 'center' },
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user