zjj
2025-02-17 a4093814b51bba7eae9530cfa076f6242df3f5f8
zy-asrs-flow/src/pages/map/components/device.jsx
@@ -35,9 +35,11 @@
    };
});
import shuttle from '/public/img/map/shuttle.svg'
import agv from '/public/img/map/agv.svg'
import shelf from '/public/img/map/shelf.png'
import point from '/public/img/map/point.png'
import conveyor from '/public/img/map/conveyor.png'
import point from '/public/img/map/point.svg'
const Device = (props) => {
    const intl = useIntl();
@@ -49,7 +51,7 @@
    const onDragStart = (e, type) => {
        setDragging(true);
        setDragSpriteType(type);
        const sprite = PIXI.Sprite.from(e.target);
        const sprite = Utils.generateSprite(type);
        setDragSprite(sprite);
    };
@@ -88,14 +90,14 @@
                <Row className={styles.mapRow}>
                    <Col className={styles.mapCol} span={8} >
                        <Image
                            src={agv}
                            src={shuttle}
                            width='50px'
                            preview={false}
                            draggable="true"
                            onDragStart={(e) => onDragStart(e, Utils.SENSOR_TYPE.AGV)}
                            onDragStart={(e) => onDragStart(e, Utils.SENSOR_TYPE.SHUTTLE)}
                        />
                        <div className={styles.title}>
                            <FormattedMessage id='map.sensor.type.agv' defaultMessage='无人小车' />
                            <FormattedMessage id='map.sensor.type.shuttle' defaultMessage='穿梭车' />
                        </div>
                    </Col>
                    <Col className={styles.mapCol} span={8} >
@@ -110,9 +112,11 @@
                            <FormattedMessage id='map.sensor.type.shelf' defaultMessage='货架' />
                        </div>
                    </Col>
                    <Col className={styles.mapCol} span={8} >
                    <Col className={styles.mapCol} span={8}>
                        <Image
                            src={point}
                            style={{
                            }}
                            width='50px'
                            preview={false}
                            draggable="true"
@@ -138,14 +142,14 @@
                    </Col>
                    <Col className={styles.mapCol} span={8} >
                        <Image
                            src={shelf}
                            src={conveyor}
                            width='35px'
                            preview={false}
                            draggable="true"
                            onDragStart={(e) => onDragStart(e, Utils.SENSOR_TYPE.SHELF)}
                            onDragStart={(e) => onDragStart(e, Utils.SENSOR_TYPE.CONVEYOR)}
                        />
                        <div className={styles.title}>
                            <FormattedMessage id='map.sensor.type.shelf' defaultMessage='货架' />
                            <FormattedMessage id='map.sensor.type.conveyor' defaultMessage='输送线' />
                        </div>
                    </Col>
                    <Col className={styles.mapCol} span={8} >