zy-asrs-flow/src/pages/map/drawer/index.jsx | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
zy-asrs-flow/src/pages/map/drawer/shelf/index.jsx | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
zy-asrs-flow/src/pages/map/drawer/shelf/json.jsx | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 |
zy-asrs-flow/src/pages/map/drawer/index.jsx
@@ -3,7 +3,6 @@ import { FormattedMessage, useIntl, useModel } from '@umijs/max'; import { createStyles } from 'antd-style'; import * as Utils from '../utils' import Http from '@/utils/http'; import ShelfDrawer from './shelf'; import AgvDrawer from './agv'; @@ -14,13 +13,11 @@ const MapDrawer = (props) => { const intl = useIntl(); const { styles } = useStyles(); const { curSprite } = props; const handleCancel = () => { props.onCancel(); }; const handleOk = () => { } return ( <> @@ -36,23 +33,20 @@ <Button onClick={handleCancel}> <FormattedMessage id='common.cancel' defaultMessage='取消' /> </Button> <Button hidden={true} onClick={handleOk} type="primary"> <FormattedMessage id='common.submit' defaultMessage='保存' /> </Button> </Space> } > {props.curSprite?.data?.type === Utils.SENSOR_TYPE.SHELF && ( <> <ShelfDrawer curSprite={curSprite} /> </> )} {props.curSprite?.data?.type === Utils.SENSOR_TYPE.AGV && ( <> <AgvDrawer curSprite={curSprite} /> </> )} zy-asrs-flow/src/pages/map/drawer/shelf/index.jsx
@@ -14,28 +14,16 @@ const intl = useIntl(); const { styles } = useStyles(); const [activeTabKey, setActiveTabKey] = useState('json'); const [jsonForm] = Form.useForm(); const { curSprite } = props; const contentList = { json: ( <JSON refCurr={props.refCurr} curSprite={props.curSprite} setSpriteBySettings={props.setSpriteBySettings} setDidClickSprite={props.setDidClickSprite} onSubmit={props.onSubmit} jsonForm={jsonForm} /> ), }; const handleCancel = () => { props.onCancel(); }; const handleOk = () => { } return ( <> @@ -47,13 +35,6 @@ { key: 'json', tab: intl.formatMessage({ id: 'map.drawer.json', defaultMessage: 'JSON' }), // icon: <BorderOuterOutlined /> }, { key: 'config', tab: intl.formatMessage({ id: 'map.settings.config.param', defaultMessage: '系统参数' }), // icon: <BranchesOutlined /> }, ]} activeTabKey={activeTabKey} zy-asrs-flow/src/pages/map/drawer/shelf/json.jsx
@@ -9,12 +9,13 @@ }) const JSON = () => { const JSON = (props) => { const { curSprite } = props; return ( <> <h1>JSON</h1> <h1>{curSprite.data.uuid}</h1> </> )