relation/entity 页面去除directActionAuth

This commit is contained in:
梁朝伟 2023-07-27 14:57:15 +08:00
parent b6908ef1aa
commit 87af19d5fd
2 changed files with 0 additions and 58 deletions

View File

@ -63,30 +63,6 @@ function render(props) {
children: ((0, jsx_runtime_1.jsx)(relationAuth_1.default, { entity: entity, oakPath: oakFullpath && "".concat(oakFullpath, ".relationAuths"), relationIds: relationIds }))
});
}
if (hasDirectRelationAuth) {
items.push({
label: 'directRelationAuth',
key: 'directRelationAuth',
children: ((0, jsx_runtime_1.jsx)(antd_1.Table, { columns: [
{
key: '2',
title: t('sourceEntity'),
width: 100,
render: function (value, record) {
return record[2];
},
},
{
key: '1',
title: t('path'),
width: 200,
render: function (value, record) {
return record[1];
},
},
], dataSource: daas, pagination: false }))
});
}
var ActionSelector = actions && ((0, jsx_runtime_1.jsxs)(antd_1.Row, tslib_1.__assign({ style: { width: '100%' }, justify: "center", align: "middle" }, { children: [(0, jsx_runtime_1.jsxs)(Text, tslib_1.__assign({ strong: true }, { children: [t('action'), ":"] })), (0, jsx_runtime_1.jsx)(antd_1.Row, tslib_1.__assign({ style: { flex: 1, marginLeft: 10 }, justify: "start", align: "middle", wrap: true }, { children: (0, jsx_runtime_1.jsx)(antd_1.Checkbox.Group, { options: actions, value: checkedActions, onChange: function (value) { return onActionsSelected(value); }, style: {
display: 'flex',
flexWrap: 'wrap',

View File

@ -113,40 +113,6 @@ export default function render(props: WebComponentProps<ED, keyof ED, false, {
);
}
if (hasDirectRelationAuth) {
items.push(
{
label: 'directRelationAuth',
key: 'directRelationAuth',
children: (
<Table
columns={[
{
key: '2',
title: t('sourceEntity'),
width: 100,
render: (value, record) => {
return record[2];
},
},
{
key: '1',
title: t('path'),
width: 200,
render: (value, record) => {
return record[1];
},
},
]}
dataSource={daas}
pagination={false}
/>
)
}
);
}
const ActionSelector = actions && (
<Row style={{ width: '100%' }} justify="center" align="middle">
<Text strong>{t('action')}:</Text>