#
luxiaotao1123
2024-03-24 0c48163d11195a61c808015a6cd4f235fcc4f9d3
#
5个文件已修改
31 ■■■■ 已修改文件
zy-asrs-flow/src/pages/map/batch/index.jsx 19 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
zy-asrs-flow/src/pages/map/drawer/agv/index.jsx 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
zy-asrs-flow/src/pages/map/drawer/point/index.jsx 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
zy-asrs-flow/src/pages/map/drawer/shelf/index.jsx 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
zy-asrs-flow/src/pages/map/drawer/showJson.jsx 6 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
zy-asrs-flow/src/pages/map/batch/index.jsx
@@ -1,8 +1,9 @@
import React, { useState, useRef, useEffect } from 'react';
import { Drawer, Space, Button } from 'antd';
import { Drawer, Space, Button, Card } from 'antd';
import { FormattedMessage, useIntl, useModel } from '@umijs/max';
import { createStyles } from 'antd-style';
import * as Utils from '../utils'
import ShowJson from '../drawer/showJson';
const useStyles = createStyles(({ token, css }) => {
    return {
@@ -42,7 +43,21 @@
                    </Space>
                }
            >
                {batchSprites?.length}
                <Card
                    className='drawer-card'
                    hoverable
                    bordered={false}
                    type='inner'
                    style={{
                        height: '100%'
                    }}
                >
                    <ShowJson
                        data={batchSprites?.length}
                        height='30%'
                    />
                </Card>
            </Drawer>
        </>
    )
zy-asrs-flow/src/pages/map/drawer/agv/index.jsx
@@ -18,7 +18,7 @@
    const contentList = {
        json: (
            <ShowJson
                curSprite={props.curSprite}
                data={props.curSprite.data}
            />
        ),
    };
zy-asrs-flow/src/pages/map/drawer/point/index.jsx
@@ -18,7 +18,7 @@
    const contentList = {
        json: (
            <ShowJson
                curSprite={props.curSprite}
                data={props.curSprite.data}
            />
        ),
    };
zy-asrs-flow/src/pages/map/drawer/shelf/index.jsx
@@ -18,7 +18,7 @@
    const contentList = {
        json: (
            <ShowJson
                curSprite={props.curSprite}
                data={props.curSprite.data}
            />
        ),
    };
zy-asrs-flow/src/pages/map/drawer/showJson.jsx
@@ -36,13 +36,13 @@
const ShowJSON = (props) => {
    const { styles } = useStyles();
    const { curSprite } = props;
    const { data } = props;
    const formattedJSON = JSON.stringify(curSprite.data, null, 2);
    const formattedJSON = JSON.stringify(data, null, 2);
    return (
        <>
            <div className={styles.jsonBox}>
            <div className={styles.jsonBox} style={{height: props.height}}>
                <textarea
                    readOnly
                    className={styles.jsonContent}