#
luxiaotao1123
2024-03-19 819ffe3eeac0fc5c80e3e2a0ce662e3143120cd0
zy-asrs-flow/src/pages/map/drawer/index.jsx
@@ -3,9 +3,9 @@
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';
import PointDrawer from './point'
const useStyles = createStyles(({ token, css }) => {
@@ -14,13 +14,11 @@
const MapDrawer = (props) => {
    const intl = useIntl();
    const { styles } = useStyles();
    const { curSprite } = props;
    const handleCancel = () => {
        props.onCancel();
    };
    const handleOk = () => {
    }
    return (
        <>
@@ -31,13 +29,13 @@
                rootStyle={{ position: "absolute" }}
                mask={false}
                width={600}
                style={{
                    opacity: .8
                }}
                extra={
                    <Space>
                        <Button onClick={handleCancel}>
                            <FormattedMessage id='common.cancel' defaultMessage='取消' />
                        </Button>
                        <Button onClick={handleOk} type="primary">
                            <FormattedMessage id='common.submit' defaultMessage='保存' />
                        </Button>
                    </Space>
                }
@@ -45,14 +43,21 @@
                {props.curSprite?.data?.type === Utils.SENSOR_TYPE.SHELF && (
                    <>
                        <ShelfDrawer
                            curSprite={curSprite}
                        />
                    </>
                )}
                {props.curSprite?.data?.type === Utils.SENSOR_TYPE.POINT && (
                    <>
                        <PointDrawer
                            curSprite={curSprite}
                        />
                    </>
                )}
                {props.curSprite?.data?.type === Utils.SENSOR_TYPE.AGV && (
                    <>
                        <AgvDrawer
                            curSprite={curSprite}
                        />
                    </>
                )}