#
luxiaotao1123
2024-03-18 c352df43ea5eea9a84e89867eb3b03ba3b2dbb83
#
2个文件已修改
46 ■■■■ 已修改文件
zy-asrs-flow/src/pages/map/drawer/agv/index.jsx 44 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
zy-asrs-flow/src/pages/map/drawer/shelf/index.jsx 2 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
zy-asrs-flow/src/pages/map/drawer/agv/index.jsx
@@ -1,9 +1,10 @@
import React, { useState, useRef, useEffect } from 'react';
import { Drawer, Space, Button } from 'antd';
import { Card, Form, Button } from 'antd';
import { FormattedMessage, useIntl, useModel } from '@umijs/max';
import { createStyles } from 'antd-style';
import * as Utils from '../../utils'
import Http from '@/utils/http';
import ShowJson from '../showJson';
const useStyles = createStyles(({ token, css }) => {
@@ -12,17 +13,46 @@
const AgvDrawer = (props) => {
    const intl = useIntl();
    const { styles } = useStyles();
    const [activeTabKey, setActiveTabKey] = useState('json');
    const handleCancel = () => {
        props.onCancel();
    const contentList = {
        json: (
            <ShowJson
                curSprite={props.curSprite}
            />
        ),
    };
    const handleOk = () => {
    }
    return (
        <>
        <h1>Agv</h1>
            <Card
                className='drawer-card'
                hoverable
                bordered={false}
                type='inner'
                tabList={[
                    {
                        key: 'json',
                        tab: intl.formatMessage({ id: 'map.drawer.json', defaultMessage: 'JSON' }),
                    },
                ]}
                activeTabKey={activeTabKey}
                onTabChange={(key) => {
                    setActiveTabKey(key)
                }}
                tabProps={{
                    centered: true,
                    size: 'large',
                    type: "card",
                    style: {
                    }
                }}
                style={{
                    height: '100%'
                }}
            >
                {contentList[activeTabKey]}
            </Card>
        </>
    )
}
zy-asrs-flow/src/pages/map/drawer/shelf/index.jsx
@@ -15,8 +15,6 @@
    const { styles } = useStyles();
    const [activeTabKey, setActiveTabKey] = useState('json');
    const { curSprite } = props;
    const contentList = {
        json: (
            <ShowJson