template中增加了默认的relation管理页面
This commit is contained in:
parent
a916e2c304
commit
332f7fe352
|
|
@ -0,0 +1,3 @@
|
||||||
|
export default OakComponent({
|
||||||
|
isList: false,
|
||||||
|
});
|
||||||
|
|
@ -0,0 +1,4 @@
|
||||||
|
{
|
||||||
|
"pageTitle": "全局对象权限",
|
||||||
|
"tips": "请选择模式"
|
||||||
|
}
|
||||||
|
|
@ -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<EntityDict, 'relation', false>) {
|
||||||
|
const { navigateTo, t } = props.methods;
|
||||||
|
return (
|
||||||
|
<PageHeader
|
||||||
|
title={t('pageTitle')}
|
||||||
|
>
|
||||||
|
<EntityGraph
|
||||||
|
onClicked={(entity: string) => {
|
||||||
|
/* navigateTo({
|
||||||
|
url: '/relation/entity',
|
||||||
|
}, {
|
||||||
|
entity,
|
||||||
|
}) */
|
||||||
|
navigateTo({
|
||||||
|
url: '/relation/path/list',
|
||||||
|
entity
|
||||||
|
})
|
||||||
|
console.log(entity, '还未实现');
|
||||||
|
}}
|
||||||
|
/>
|
||||||
|
</PageHeader>
|
||||||
|
)
|
||||||
|
};
|
||||||
|
|
@ -0,0 +1,3 @@
|
||||||
|
export default OakComponent({
|
||||||
|
isList: false,
|
||||||
|
});
|
||||||
|
|
@ -0,0 +1,4 @@
|
||||||
|
{
|
||||||
|
"pageTitle": "对象关系路径",
|
||||||
|
"tips": "请选择模式"
|
||||||
|
}
|
||||||
|
|
@ -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<EntityDict, 'relation', false, { entity: string }>) {
|
||||||
|
const { t } = props.methods;
|
||||||
|
const { entity } = props.data;
|
||||||
|
return (
|
||||||
|
<PageHeader
|
||||||
|
title={t('pageTitle')}
|
||||||
|
>
|
||||||
|
<PathList
|
||||||
|
oakPath="$component-relation-path-list"
|
||||||
|
entity={entity}
|
||||||
|
/>
|
||||||
|
</PageHeader>
|
||||||
|
);
|
||||||
|
};
|
||||||
Loading…
Reference in New Issue