diff --git a/frontend/src/pages/Deploy/Environment/List/index.tsx b/frontend/src/pages/Deploy/Environment/List/index.tsx index 4f2b2596..29aa93cc 100644 --- a/frontend/src/pages/Deploy/Environment/List/index.tsx +++ b/frontend/src/pages/Deploy/Environment/List/index.tsx @@ -163,15 +163,15 @@ const EnvironmentList: React.FC = () => {
- +
- 环境编码 - 环境名称 - 环境描述 - 排序 - 状态 - 操作 + 环境编码 + 环境名称 + 环境描述 + 排序 + 状态 + 操作 @@ -185,16 +185,16 @@ const EnvironmentList: React.FC = () => { list.map((item) => { return ( - {item.envCode} - {item.envName} - {item.envDesc || '-'} - {item.sort} - + {item.envCode} + {item.envName} + {item.envDesc || '-'} + {item.sort} + {item.enabled ? '启用' : '禁用'} - +
+
- 系统名称 - 系统类型 - 系统地址 - 认证方式 - 最后连接时间 - 状态 - 操作 + 系统名称 + 系统类型 + 系统地址 + 认证方式 + 最后连接时间 + 状态 + 操作 @@ -251,13 +251,13 @@ const ExternalPage: React.FC = () => { ) : ( list.map((item) => ( - {item.name} - + {item.name} + {getSystemTypeLabel(item.type).label} - + { {item.url} - {getAuthTypeLabel(item.authType)} - + {getAuthTypeLabel(item.authType)} + {item.lastConnectTime || '-'} - + handleStatusChange(item.id, checked)} /> - +
) : ( -
+
- 名称 - 路径 - 可见性 - 描述 - 操作 + 名称 + 路径 + 可见性 + 描述 + 操作 {filteredGroups.map((group) => ( - + - +
{group.path} @@ -499,13 +499,13 @@ const GitManager: React.FC = () => {
- + {renderVisibilityBadge(group.visibility)} - + {group.description || '-'} - +
) : ( -
+
- 名称 - 路径 - 可见性 - 默认分支 - 最后活动时间 - 操作 + 名称 + 路径 + 可见性 + 默认分支 + 最后活动时间 + 操作 {filteredProjects.map((project) => ( - {project.name} - + {project.name} +
{project.path} @@ -627,19 +627,19 @@ const GitManager: React.FC = () => {
- + {renderVisibilityBadge(project.visibility)} - + {project.isDefaultBranch} - + {formatTime(project.lastActivityAt)} - +
+
- Job 名称 - 描述 - 最后构建 - 状态 - 健康度 - 构建时间 - 操作 + Job 名称 + 描述 + 最后构建 + 状态 + 健康度 + 构建时间 + 操作 @@ -478,24 +478,24 @@ const JenkinsManagerList: React.FC = () => { const statusInfo = getBuildStatusInfo(job.lastBuildStatus); return ( - +
{job.jobName}
- + {job.description || '-'} - + #{job.lastBuildNumber} - + {statusInfo.icon} {statusInfo.label} - +
{ {job.healthReportScore}%
- + {formatTime(job.lastBuildTime)} - +
+
- 表单标识 - 分类 - 业务类型 - 业务标识 - 提交人 - 提交时间 - 状态 - 操作 + 表单标识 + 分类 + 业务类型 + 业务标识 + 提交人 + 提交时间 + 状态 + 操作 @@ -319,12 +319,12 @@ const FormDataList: React.FC = () => { const categoryInfo = getCategoryInfo(record.categoryId); return ( - + {record.formKey} - + {categoryInfo ? ( {categoryInfo.icon && } @@ -334,20 +334,20 @@ const FormDataList: React.FC = () => { 未分类 )} - {getBusinessTypeBadge(record.businessType)} - + {getBusinessTypeBadge(record.businessType)} + {record.businessKey || '-'} - + {record.submitter || '匿名'} - + {record.submitTime ? dayjs(record.submitTime).format('YYYY-MM-DD HH:mm:ss') : '-'} - {getStatusBadge(record.status)} - + {getStatusBadge(record.status)} +
{/* 表格 */} -
-
+
+
- 分类名称 - 分类代码 - 图标 - 排序 - 状态 - 描述 - 操作 + 分类名称 + 分类代码 + 图标 + 排序 + 状态 + 描述 + 操作 @@ -286,15 +286,15 @@ const CategoryManageDialog: React.FC = ({ ) : data?.content && data.content.length > 0 ? ( data.content.map((record) => ( - + {record.name} - + {record.code} - + {record.icon ? (
@@ -303,18 +303,18 @@ const CategoryManageDialog: React.FC = ({ - )} - {record.sort} - + {record.sort} + {record.enabled ? ( ) : ( )} - + {record.description || '-'} - +
+
- 表单名称 - 表单标识 - 分类 - 版本 - 状态 - 更新时间 - 操作 + 表单名称 + 表单标识 + 分类 + 版本 + 状态 + 更新时间 + 操作 @@ -396,7 +396,7 @@ const FormDefinitionList: React.FC = () => { const categoryInfo = getCategoryInfo(record.categoryId); return ( - +
{record.name}
{record.description && ( @@ -406,10 +406,10 @@ const FormDefinitionList: React.FC = () => { )}
- + {record.key} - + {categoryInfo ? (
@@ -419,16 +419,16 @@ const FormDefinitionList: React.FC = () => { - )} - + v{record.formVersion} - {getStatusBadge(record.status)} - + {getStatusBadge(record.status)} + {record.updateTime || record.createTime} - +
- + {dept.code} - + {dept.description || '-'} - {dept.sort} - {dept.leaderName || '-'} - {getStatusBadge(dept.enabled)} - + {dept.sort} + {dept.leaderName || '-'} + {getStatusBadge(dept.enabled)} +
+
- 部门名称 - 部门编码 - 部门描述 - 排序 - 负责人 - 状态 - 操作 + 部门名称 + 部门编码 + 部门描述 + 排序 + 负责人 + 状态 + 操作 diff --git a/frontend/src/pages/System/Menu/index.tsx b/frontend/src/pages/System/Menu/index.tsx index 91a345bb..d3c078da 100644 --- a/frontend/src/pages/System/Menu/index.tsx +++ b/frontend/src/pages/System/Menu/index.tsx @@ -147,7 +147,7 @@ const MenuPage: React.FC = () => { // 当前菜单行 rows.push( - +
{hasChildren ? (
- + {menu.icon && (
{getIconComponent(menu.icon)}
)}
- {menu.path || '-'} - + {menu.path || '-'} + {menu.component || '-'} - {getTypeBadge(menu.type)} - {menu.sort} - + {getTypeBadge(menu.type)} + {menu.sort} +
+
- 菜单名称 - 图标 - 路由地址 - 组件路径 - 菜单类型 - 显示排序 - 操作 + 菜单名称 + 图标 + 路由地址 + 组件路径 + 菜单类型 + 显示排序 + 操作 diff --git a/frontend/src/pages/System/Role/components/TagDialog.tsx b/frontend/src/pages/System/Role/components/TagDialog.tsx index beed6aa7..bd0df939 100644 --- a/frontend/src/pages/System/Role/components/TagDialog.tsx +++ b/frontend/src/pages/System/Role/components/TagDialog.tsx @@ -161,12 +161,12 @@ const TagDialog: React.FC = ({
-
+
- 标签名称 - 描述 - 操作 + 标签名称 + 描述 + 操作 @@ -182,7 +182,7 @@ const TagDialog: React.FC = ({ ) : tags.length > 0 ? ( tags.map((tag) => ( - + = ({ {tag.name} - + {tag.description || '-'} - +
+
- 角色编码 - 角色名称 - 标签 - 排序 - 描述 - 创建时间 - 操作 + 角色编码 + 角色名称 + 标签 + 排序 + 描述 + 创建时间 + 操作 @@ -273,11 +273,11 @@ const RolePage: React.FC = () => { const isAdmin = record.code === 'admin'; return ( - + {record.code} - {record.name} - + {record.name} +
{record.tags && record.tags.length > 0 ? ( record.tags.map(tag => ( @@ -295,14 +295,14 @@ const RolePage: React.FC = () => { )}
- {record.sort} - + {record.sort} + {record.description || '-'} - + {record.createTime ? dayjs(record.createTime).format('YYYY-MM-DD HH:mm') : '-'} - +
+
- 用户名 - 昵称 - 邮箱 - 手机号 - 部门 - 角色 - 状态 - 创建时间 - 操作 + 用户名 + 昵称 + 邮箱 + 手机号 + 部门 + 角色 + 状态 + 创建时间 + 操作 @@ -344,14 +344,14 @@ const UserPage: React.FC = () => { const isAdmin = record.username === 'admin'; return ( - + {record.username} - {record.nickname || '-'} - {record.email || '-'} - {record.phone || '-'} - {record.departmentName || '-'} - + {record.nickname || '-'} + {record.email || '-'} + {record.phone || '-'} + {record.departmentName || '-'} +
{record.roles && record.roles.length > 0 ? ( record.roles.map(role => ( @@ -364,11 +364,11 @@ const UserPage: React.FC = () => { )}
- {getStatusBadge(record.enabled)} - + {getStatusBadge(record.enabled)} + {record.createTime ? dayjs(record.createTime).format('YYYY-MM-DD HH:mm') : '-'} - +
{/* 分类列表 */} -
-
+
+
- 分类名称 - 分类代码 - 图标 - 支持触发方式 - 排序 - 状态 - 描述 - 操作 + 分类名称 + 分类代码 + 图标 + 支持触发方式 + 排序 + 状态 + 描述 + 操作 @@ -323,13 +323,13 @@ const CategoryManageDialog: React.FC = ({ ) : data?.content && data.content.length > 0 ? ( data.content.map((record) => ( - {record.name} - + {record.name} + {record.code} - + {record.icon ? (
@@ -338,11 +338,11 @@ const CategoryManageDialog: React.FC = ({ - )} - + {renderTriggers(record.supportedTriggers)} - {record.sort} - + {record.sort} + = ({ )} - + {record.description || '-'} - +
+
- 流程名称 - 流程标识 - 分类 - 版本 - 状态 - 描述 - 操作 + 流程名称 + 流程标识 + 分类 + 版本 + 状态 + 描述 + 操作 @@ -420,27 +420,27 @@ const WorkflowDefinitionList: React.FC = () => { const isDraft = record.status === 'DRAFT'; return ( - {record.name} - + {record.name} + {record.key} - + {categoryInfo ? ( {categoryInfo.name} ) : ( 未分类 )} - + {record.flowVersion || 1} - {getStatusBadge(record.status || 'DRAFT')} - + {getStatusBadge(record.status || 'DRAFT')} + {record.description || '-'} - +
{isDraft ? ( <> diff --git a/frontend/src/pages/Workflow/Instance/components/HistoryModal.tsx b/frontend/src/pages/Workflow/Instance/components/HistoryModal.tsx index 14ecf781..7fcaec00 100644 --- a/frontend/src/pages/Workflow/Instance/components/HistoryModal.tsx +++ b/frontend/src/pages/Workflow/Instance/components/HistoryModal.tsx @@ -90,24 +90,24 @@ const HistoryModal: React.FC = ({ visible, onCancel, workflow ) : ( <>
-
+
- 业务标识 - 状态 - 开始时间 - 结束时间 - 操作 + 业务标识 + 状态 + 开始时间 + 结束时间 + 操作 {data.map((record) => ( - {record.businessKey} - {getStatusBadge(record.status)} - {record.startTime} - {record.endTime || '暂无'} - + {record.businessKey} + {getStatusBadge(record.status)} + {record.startTime} + {record.endTime || '暂无'} +
+
- 流程名称 - 业务标识 - 最后执行时间 - 执行状态 - 操作 + 流程名称 + 业务标识 + 最后执行时间 + 执行状态 + 操作 @@ -236,8 +236,8 @@ const WorkflowInstanceList: React.FC = () => { ) : data?.content && data.content.length > 0 ? ( data.content.map((record) => ( - {record.name} - + {record.name} + {record.businessKey ? ( {record.businessKey} @@ -246,15 +246,15 @@ const WorkflowInstanceList: React.FC = () => { - )} - + {record.lastExecutionTime ? dayjs(record.lastExecutionTime).format('YYYY-MM-DD HH:mm:ss') : '-'} - {getStatusBadge(record.lastExecutionStatus)} - + {getStatusBadge(record.lastExecutionStatus)} +
+
{columns.map((column) => ( {column.header} @@ -274,6 +275,8 @@ const NodeDesignList: React.FC = () => { {columns.map((column) => ( {column.cell ? column.cell({row: {original: item}})