mirror of
https://github.com/1Panel-dev/MaxKB.git
synced 2025-12-26 01:33:05 +00:00
refactor: log add hover
--bug=1054088 --user=王孝刚 【操作日志】优化-操作详情建议一行展示,提供hover功能,hover后展示全部详情 https://www.tapd.cn/57709429/s/1678006
This commit is contained in:
parent
f69346f2bc
commit
e7e4570aeb
|
|
@ -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>
|
||||
|
|
|
|||
Loading…
Reference in New Issue