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

@@ -202,7 +202,7 @@ export function useGridColumns<T = InfraJobApi.InfraJob>(
},
// TODO @芋艿:增加一个“更多”选项
{
code: 'view',
code: 'detail',
text: '详细',
show: hasAccessByCodes(['infra:job:query']),
},

View File

@@ -53,7 +53,7 @@ function onEdit(row: InfraJobApi.InfraJob) {
}
/** 查看任务详情 */
function onView(row: InfraJobApi.InfraJob) {
function onDetail(row: InfraJobApi.InfraJob) {
detailModalApi.setData({ id: row.id }).open();
}
@@ -139,8 +139,8 @@ function onActionClick({
onTrigger(row);
break;
}
case 'view': {
onView(row);
case 'detail': {
onDetail(row);
break;
}
case 'log': {