一个低级bug
This commit is contained in:
parent
22e192d9ba
commit
c8e4b9c82c
|
|
@ -20,13 +20,12 @@ export function registerShipSettingComponent(entity: string, component: (props:
|
|||
ShipSettingComponentDict[entity] = component;
|
||||
}
|
||||
|
||||
function renderShipEntity(props: WebComponentProps<EntityDict, 'system', false, {
|
||||
executable: boolean;
|
||||
}>) {
|
||||
|
||||
const { oakId, oakFullpath } = props.data;
|
||||
const { t, execute, clean } = props.methods;
|
||||
|
||||
function RenderShipEntity(props: {
|
||||
oakId: string;
|
||||
oakFullpath: string;
|
||||
t: (k: string) => string;
|
||||
}) {
|
||||
const { oakId, oakFullpath, t } = props;
|
||||
const entities = Object.keys(ShipSettingComponentDict);
|
||||
if (oakId && oakFullpath && entities.length) {
|
||||
return (
|
||||
|
|
@ -103,7 +102,6 @@ export default function render(props: WebComponentProps<EntityDict, 'system', fa
|
|||
}>) {
|
||||
const { oakFullpath, oakId } = props.data;
|
||||
const { t } = props.methods;
|
||||
const E = renderShipEntity(props);
|
||||
|
||||
if (oakFullpath && oakId) {
|
||||
return (
|
||||
|
|
@ -112,12 +110,16 @@ export default function render(props: WebComponentProps<EntityDict, 'system', fa
|
|||
{
|
||||
key: '1',
|
||||
label: t('shipEntity'),
|
||||
children: E,
|
||||
children: <RenderShipEntity
|
||||
oakFullpath={oakFullpath}
|
||||
oakId={oakId}
|
||||
t={t}
|
||||
/>,
|
||||
},
|
||||
{
|
||||
key: '2',
|
||||
label: t('shipService'),
|
||||
children: <ShipServiceSystem
|
||||
children: <ShipServiceSystem
|
||||
oakPath={"$$opb-shipSystem-shipServices"}
|
||||
systemId={oakId!}
|
||||
/>
|
||||
|
|
|
|||
|
|
@ -13,7 +13,6 @@ export default OakComponent({
|
|||
name: 1,
|
||||
},
|
||||
},
|
||||
bizId: 1,
|
||||
sort: 1,
|
||||
},
|
||||
isList: false,
|
||||
|
|
|
|||
|
|
@ -33,7 +33,7 @@ export default function render(props: WebComponentProps<EntityDict, 'wechatMpShi
|
|||
}}
|
||||
/> : <Input
|
||||
disabled={true}
|
||||
value={wechatMpShip.wpProduct.application.name}
|
||||
value={wechatMpShip.wpProduct?.application?.name}
|
||||
/>
|
||||
}
|
||||
</Form.Item>
|
||||
|
|
|
|||
Loading…
Reference in New Issue