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