refactor:查看 view,统一成详情 detail

This commit is contained in:
YunaiV
2025-04-07 19:48:28 +08:00
parent 64331fb4ac
commit 30a3157e7b
21 changed files with 62 additions and 44 deletions

View File

@@ -134,7 +134,7 @@ export function useGridColumns<T = SystemOperateLogApi.SystemOperateLog>(
name: 'CellOperation',
options: [
{
code: 'view',
code: 'detail',
text: '详情',
show: hasAccessByCodes(['system:operate-log:query']),
},

View File

@@ -32,7 +32,7 @@ async function onExport() {
}
/** 查看操作日志详情 */
function onView(row: SystemOperateLogApi.SystemOperateLog) {
function onDetail(row: SystemOperateLogApi.SystemOperateLog) {
detailModalApi.setData(row).open();
}
@@ -42,8 +42,8 @@ function onActionClick({
row,
}: OnActionClickParams<SystemOperateLogApi.SystemOperateLog>) {
switch (code) {
case 'view': {
onView(row);
case 'detail': {
onDetail(row);
break;
}
}