refactor: log add hover

--bug=1054088 --user=王孝刚 【操作日志】优化-操作详情建议一行展示,提供hover功能,hover后展示全部详情 https://www.tapd.cn/57709429/s/1678006
This commit is contained in:
wxg0103 2025-03-28 14:58:48 +08:00 committed by wxg
parent f69346f2bc
commit e7e4570aeb

View File

@ -131,12 +131,20 @@
</el-table-column>
<el-table-column prop="operate" :label="$t('views.operateLog.table.operate.detail')">
<template #default="{ row }">
{{
row.operate +
(row.operation_object && row.operation_object.name
? `${row.operation_object.name}`
: '')
}}
<el-tooltip
:content="
row.operate + (row.operation_object?.name ? `${row.operation_object.name}` : '')
"
effect="dark"
placement="top"
>
<span class="text-ellipsis">
{{
row.operate +
(row.operation_object?.name ? `${row.operation_object.name}` : '')
}}
</span>
</el-tooltip>
</template>
</el-table-column>
<el-table-column
@ -342,4 +350,11 @@ onMounted(() => {
.text-button {
font-size: 14px;
}
.text-ellipsis {
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
max-width: 100%;
display: block;
}
</style>