Merge pull request '合并' (#439) from dev-zw into dev-opt

This commit is contained in:
cp3hnu 2026-04-03 08:21:01 +08:00
commit b050c4253c
2 changed files with 23 additions and 0 deletions

View File

@ -153,6 +153,27 @@ function ApprovalModal({ record, onOk, ...rest }: ApprovalModalProps) {
},
];
break;
case ApprovalType.SKILL:
items = [
{
label: 'Skill 名称',
value: content.name,
},
{
label: 'Skill 描述',
value: content.description,
},
{
label: 'Skill 类型',
value: content.type,
},
{
label: '创建时间',
value: content.createTime,
format: formatDate,
},
];
break;
default:
items = [];
break;

View File

@ -47,6 +47,7 @@ export enum ApprovalType {
IMAGE = 'IMAGE',
CODE = 'CODE',
SERVICE = 'SERVICE',
SKILL = 'SKILL',
}
const approvalTypeOptions = [
@ -55,6 +56,7 @@ const approvalTypeOptions = [
{ label: '镜像', value: ApprovalType.IMAGE },
{ label: '代码配置', value: ApprovalType.CODE },
{ label: '应用', value: ApprovalType.SERVICE },
{ label: 'Skill', value: ApprovalType.SKILL },
];
const statusOptions = [{ label: '全部', value: '' }, ...approvalStatusOptions];