From 332f7fe352c944ddf8cca4bf94ae030d1c3ac6b0 Mon Sep 17 00:00:00 2001 From: "Xc@centOs" Date: Sun, 29 Sep 2024 19:34:29 +0800 Subject: [PATCH] =?UTF-8?q?template=E4=B8=AD=E5=A2=9E=E5=8A=A0=E4=BA=86?= =?UTF-8?q?=E9=BB=98=E8=AE=A4=E7=9A=84relation=E7=AE=A1=E7=90=86=E9=A1=B5?= =?UTF-8?q?=E9=9D=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../console/relation/entityList/index.ts | 3 ++ .../relation/entityList/locales/zh_CN.json | 4 +++ .../console/relation/entityList/web.pc.tsx | 29 +++++++++++++++++++ .../pages/console/relation/path/list/index.ts | 3 ++ .../relation/path/list/locales/zh_CN.json | 4 +++ .../console/relation/path/list/web.pc.tsx | 20 +++++++++++++ 6 files changed, 63 insertions(+) create mode 100644 template/src/pages/console/relation/entityList/index.ts create mode 100644 template/src/pages/console/relation/entityList/locales/zh_CN.json create mode 100644 template/src/pages/console/relation/entityList/web.pc.tsx create mode 100644 template/src/pages/console/relation/path/list/index.ts create mode 100644 template/src/pages/console/relation/path/list/locales/zh_CN.json create mode 100644 template/src/pages/console/relation/path/list/web.pc.tsx diff --git a/template/src/pages/console/relation/entityList/index.ts b/template/src/pages/console/relation/entityList/index.ts new file mode 100644 index 0000000..19d50b8 --- /dev/null +++ b/template/src/pages/console/relation/entityList/index.ts @@ -0,0 +1,3 @@ +export default OakComponent({ + isList: false, +}); \ No newline at end of file diff --git a/template/src/pages/console/relation/entityList/locales/zh_CN.json b/template/src/pages/console/relation/entityList/locales/zh_CN.json new file mode 100644 index 0000000..051944d --- /dev/null +++ b/template/src/pages/console/relation/entityList/locales/zh_CN.json @@ -0,0 +1,4 @@ +{ + "pageTitle": "全局对象权限", + "tips": "请选择模式" +} \ No newline at end of file diff --git a/template/src/pages/console/relation/entityList/web.pc.tsx b/template/src/pages/console/relation/entityList/web.pc.tsx new file mode 100644 index 0000000..d00be84 --- /dev/null +++ b/template/src/pages/console/relation/entityList/web.pc.tsx @@ -0,0 +1,29 @@ +import React from 'react'; +import EntityGraph from 'oak-frontend-base/es/components/entity/graph'; +import { WebComponentProps } from 'oak-frontend-base'; +import PageHeader from 'oak-frontend-base/es/components/pageHeader2'; +import { EntityDict } from '@project/oak-app-domain'; + +export default function Render(props: WebComponentProps) { + const { navigateTo, t } = props.methods; + return ( + + { + /* navigateTo({ + url: '/relation/entity', + }, { + entity, + }) */ + navigateTo({ + url: '/relation/path/list', + entity + }) + console.log(entity, '还未实现'); + }} + /> + + ) +}; \ No newline at end of file diff --git a/template/src/pages/console/relation/path/list/index.ts b/template/src/pages/console/relation/path/list/index.ts new file mode 100644 index 0000000..19d50b8 --- /dev/null +++ b/template/src/pages/console/relation/path/list/index.ts @@ -0,0 +1,3 @@ +export default OakComponent({ + isList: false, +}); \ No newline at end of file diff --git a/template/src/pages/console/relation/path/list/locales/zh_CN.json b/template/src/pages/console/relation/path/list/locales/zh_CN.json new file mode 100644 index 0000000..10bc7c8 --- /dev/null +++ b/template/src/pages/console/relation/path/list/locales/zh_CN.json @@ -0,0 +1,4 @@ +{ + "pageTitle": "对象关系路径", + "tips": "请选择模式" +} \ No newline at end of file diff --git a/template/src/pages/console/relation/path/list/web.pc.tsx b/template/src/pages/console/relation/path/list/web.pc.tsx new file mode 100644 index 0000000..cf729e8 --- /dev/null +++ b/template/src/pages/console/relation/path/list/web.pc.tsx @@ -0,0 +1,20 @@ +import React from 'react'; +import PathList from 'oak-frontend-base/es/components/relation/path/list'; +import { WebComponentProps } from 'oak-frontend-base'; +import PageHeader from 'oak-frontend-base/es/components/pageHeader2'; +import { EntityDict } from '@project/oak-app-domain'; + +export default function Render(props: WebComponentProps) { + const { t } = props.methods; + const { entity } = props.data; + return ( + + + + ); +}; \ No newline at end of file