diff --git a/packages/ui/certd-client/src/layout/layout-basic.vue b/packages/ui/certd-client/src/layout/layout-basic.vue
index df15dbeac..5d79e9c69 100644
--- a/packages/ui/certd-client/src/layout/layout-basic.vue
+++ b/packages/ui/certd-client/src/layout/layout-basic.vue
@@ -94,7 +94,7 @@ provide("fn:ai.open", openChat);
-
+
diff --git a/packages/ui/certd-client/src/router/source/modules/sys.ts b/packages/ui/certd-client/src/router/source/modules/sys.ts
index 4cd71b0ce..83881c993 100644
--- a/packages/ui/certd-client/src/router/source/modules/sys.ts
+++ b/packages/ui/certd-client/src/router/source/modules/sys.ts
@@ -230,7 +230,7 @@ export const sysResources = [
title: "certd.sysResources.enterpriseSetting",
name: "EnterpriseSetting",
path: "/sys/enterprise/setting",
- redirect: "/sys/settings?tab=enterprise",
+ redirect: "/sys/settings?tab=mode",
meta: {
isMenu: true,
show: true,
diff --git a/packages/ui/certd-client/src/vben/layouts/basic/header/header.vue b/packages/ui/certd-client/src/vben/layouts/basic/header/header.vue
index 4ce85ea48..926a86929 100644
--- a/packages/ui/certd-client/src/vben/layouts/basic/header/header.vue
+++ b/packages/ui/certd-client/src/vben/layouts/basic/header/header.vue
@@ -111,7 +111,7 @@ function clearPreferencesAndLogout() {
-
+
@@ -131,7 +131,7 @@ function clearPreferencesAndLogout() {
-
+
@@ -144,7 +144,7 @@ function clearPreferencesAndLogout() {
-
+
diff --git a/packages/ui/certd-client/src/views/certd/dicts.ts b/packages/ui/certd-client/src/views/certd/dicts.ts
new file mode 100644
index 000000000..24c9e028b
--- /dev/null
+++ b/packages/ui/certd-client/src/views/certd/dicts.ts
@@ -0,0 +1,22 @@
+import { dict } from "@fast-crud/fast-crud";
+
+export const projectPermissionDict = dict({
+ data: [
+ {
+ label: "read",
+ value: "只读",
+ },
+ {
+ label: "write",
+ value: "读写",
+ },
+ {
+ label: "admin",
+ value: "管理员",
+ },
+ ],
+});
+
+export const projectDict = dict({
+ url: "/sys/enterprise/project/list",
+});
diff --git a/packages/ui/certd-client/src/views/certd/pipeline/crud.tsx b/packages/ui/certd-client/src/views/certd/pipeline/crud.tsx
index 812857aaf..871d79085 100644
--- a/packages/ui/certd-client/src/views/certd/pipeline/crud.tsx
+++ b/packages/ui/certd-client/src/views/certd/pipeline/crud.tsx
@@ -14,6 +14,7 @@ import GroupSelector from "/@/views/certd/pipeline/group/group-selector.vue";
import { statusUtil } from "/@/views/certd/pipeline/pipeline/utils/util.status";
import { useCertViewer } from "/@/views/certd/pipeline/use";
import { useI18n } from "/src/locales";
+import { projectDict } from "../dicts";
export default function ({ crudExpose, context: { selectedRowKeys, openCertApplyDialog } }: CreateCrudOptionsProps): CreateCrudOptionsRet {
const router = useRouter();
@@ -294,6 +295,11 @@ export default function ({ crudExpose, context: { selectedRowKeys, openCertApply
width: 100,
},
},
+ projectId: {
+ title: t("certd.fields.projectName"),
+ type: "number",
+ dict: projectDict,
+ },
title: {
title: t("certd.fields.pipelineName"),
type: "link",
diff --git a/packages/ui/certd-client/src/views/sys/enterprise/project/crud.tsx b/packages/ui/certd-client/src/views/sys/enterprise/project/crud.tsx
index e6d4dcb61..847f7481d 100644
--- a/packages/ui/certd-client/src/views/sys/enterprise/project/crud.tsx
+++ b/packages/ui/certd-client/src/views/sys/enterprise/project/crud.tsx
@@ -74,7 +74,7 @@ export default function ({ crudExpose, context }: CreateCrudOptionsProps): Creat
},
name: {
title: t("certd.ent.projectName"),
- type: "text",
+ type: "link",
search: {
show: true,
},
@@ -85,6 +85,13 @@ export default function ({ crudExpose, context }: CreateCrudOptionsProps): Creat
},
column: {
width: 200,
+ cellRender({ row }) {
+ return (
+
+ {row.name}
+
+ );
+ },
},
},
disabled: {
diff --git a/packages/ui/certd-client/src/views/sys/settings/tabs/mode.vue b/packages/ui/certd-client/src/views/sys/settings/tabs/mode.vue
index 4bd95d147..2001f5751 100644
--- a/packages/ui/certd-client/src/views/sys/settings/tabs/mode.vue
+++ b/packages/ui/certd-client/src/views/sys/settings/tabs/mode.vue
@@ -2,7 +2,7 @@