作为组件时 隐藏返回键
This commit is contained in:
parent
de18772e7b
commit
ed6f35194a
|
|
@ -9,7 +9,7 @@ function render(props) {
|
|||
var _a = props.data, relations = _a.relations, userEntityGrant = _a.userEntityGrant, userEntityGrantId = _a.userEntityGrantId, period = _a.period;
|
||||
var _b = userEntityGrant || {}, relation = _b.relation, type = _b.type, number = _b.number, entity = _b.entity;
|
||||
var _c = props.methods, update = _c.update, t = _c.t, onBack = _c.onBack, confirm = _c.confirm, setInit = _c.setInit, setPeriod = _c.setPeriod;
|
||||
var P = !!userEntityGrantId ? ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsx)(antd_1.Alert, { showIcon: true, message: "\u8BF7\u5C06\u4E8C\u7EF4\u7801\u53D1\u7ED9\u5F85\u5206\u4EAB\u6743\u9650\u7684\u7528\u6237\u626B\u63CF", type: "info", style: { marginBottom: 16 } }), (0, jsx_runtime_1.jsx)(detail_1.default, { oakId: userEntityGrantId, oakAutoUnmount: true, oakPath: "$userRelation/upsert/byUserEntityGrant-userEntityGrant/detail" }), (0, jsx_runtime_1.jsx)("div", tslib_1.__assign({ style: {
|
||||
var P = !!userEntityGrantId ? ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsx)(antd_1.Alert, { showIcon: true, message: "\u8BF7\u5C06\u4E8C\u7EF4\u7801\u53D1\u7ED9\u5F85\u5206\u4EAB\u6743\u9650\u7684\u7528\u6237\u626B\u63CF", type: "info", style: { marginBottom: 16 } }), (0, jsx_runtime_1.jsx)(detail_1.default, { showBack: false, oakId: userEntityGrantId, oakAutoUnmount: true, oakPath: "$userRelation/upsert/byUserEntityGrant-userEntityGrant/detail" }), (0, jsx_runtime_1.jsx)("div", tslib_1.__assign({ style: {
|
||||
width: '100%',
|
||||
display: 'flex',
|
||||
justifyContent: 'flex-end',
|
||||
|
|
|
|||
|
|
@ -5,7 +5,6 @@ import { WebComponentProps } from 'oak-frontend-base';
|
|||
import { EntityDict } from '../../../../general-app-domain';
|
||||
|
||||
import Style from './web.module.less';
|
||||
import display from '../../../../components/extraFile/display';
|
||||
|
||||
export default function render(props: WebComponentProps<EntityDict, 'userEntityGrant', false, {
|
||||
relations: string[];
|
||||
|
|
@ -31,19 +30,19 @@ export default function render(props: WebComponentProps<EntityDict, 'userEntityG
|
|||
style={{ marginBottom: 16 }}
|
||||
/>
|
||||
<UserEntityGrantDetail
|
||||
showBack={false}
|
||||
oakId={userEntityGrantId}
|
||||
oakAutoUnmount={true}
|
||||
oakPath="$userRelation/upsert/byUserEntityGrant-userEntityGrant/detail"
|
||||
></UserEntityGrantDetail>
|
||||
<div style={{
|
||||
width: '100%',
|
||||
display: 'flex',
|
||||
justifyContent: 'flex-end',
|
||||
}}>
|
||||
<Button
|
||||
type="primary"
|
||||
onClick={() => setInit()}
|
||||
>
|
||||
<div
|
||||
style={{
|
||||
width: '100%',
|
||||
display: 'flex',
|
||||
justifyContent: 'flex-end',
|
||||
}}
|
||||
>
|
||||
<Button type="primary" onClick={() => setInit()}>
|
||||
重新生成
|
||||
</Button>
|
||||
</div>
|
||||
|
|
@ -66,8 +65,7 @@ export default function render(props: WebComponentProps<EntityDict, 'userEntityG
|
|||
}}
|
||||
options={relations?.map((ele: string) => ({
|
||||
value: ele,
|
||||
label:
|
||||
(t(entity + ':r.' + ele)) || ele,
|
||||
label: t(entity + ':r.' + ele) || ele,
|
||||
}))}
|
||||
/>
|
||||
</Form.Item>
|
||||
|
|
@ -113,21 +111,14 @@ export default function render(props: WebComponentProps<EntityDict, 'userEntityG
|
|||
</Form.Item>
|
||||
<Form.Item wrapperCol={{ offset: 4 }}>
|
||||
<Space>
|
||||
<Button
|
||||
type="primary"
|
||||
onClick={() => confirm()}
|
||||
>
|
||||
<Button type="primary" onClick={() => confirm()}>
|
||||
提交
|
||||
</Button>
|
||||
<Button
|
||||
onClick={() => onBack()}
|
||||
>
|
||||
返回
|
||||
</Button>
|
||||
<Button onClick={() => onBack()}>返回</Button>
|
||||
</Space>
|
||||
</Form.Item>
|
||||
</Form>
|
||||
)
|
||||
);
|
||||
return (
|
||||
<div className={Style.container}>
|
||||
{P}
|
||||
|
|
|
|||
Loading…
Reference in New Issue