fix: 修复风险扫描去重key不匹配导致大量重复数据,Dashboard风险提醒按员工聚合
This commit is contained in:
@@ -978,8 +978,14 @@ export default function Dashboard() {
|
||||
<Link to={todo.actionUrl} className="flex items-center gap-2.5 flex-1">
|
||||
<TodoIcon type={todo.type} level={todo.level} />
|
||||
<div className="flex flex-col">
|
||||
<div className="flex items-center gap-1.5">
|
||||
<span className="text-xs text-gray-800">{todo.title}</span>
|
||||
<div className="flex items-center gap-1.5 flex-wrap">
|
||||
{todo.employeeName && (
|
||||
<span className="text-xs font-bold text-gray-900">{todo.employeeName}</span>
|
||||
)}
|
||||
{todo.employeeDepartment && (
|
||||
<span className="text-xs text-gray-400">{todo.employeeDepartment}</span>
|
||||
)}
|
||||
<span className="text-xs text-gray-700">{todo.title}</span>
|
||||
{todo.priority && priorityConfig[todo.priority] && (
|
||||
<span className={`px-1 py-0.5 rounded text-xs font-medium ${priorityConfig[todo.priority].bg} ${priorityConfig[todo.priority].color}`}>
|
||||
{priorityConfig[todo.priority].label}
|
||||
|
||||
Reference in New Issue
Block a user