From a4093814b51bba7eae9530cfa076f6242df3f5f8 Mon Sep 17 00:00:00 2001
From: zjj <3272660260@qq.com>
Date: 星期一, 17 二月 2025 14:59:43 +0800
Subject: [PATCH] #移库任务

---
 zy-asrs-flow/src/pages/map/components/device.jsx |   28 ++++++++++++++++------------
 1 files changed, 16 insertions(+), 12 deletions(-)

diff --git a/zy-asrs-flow/src/pages/map/components/device.jsx b/zy-asrs-flow/src/pages/map/components/device.jsx
index 8fed94e..53b09da 100644
--- a/zy-asrs-flow/src/pages/map/components/device.jsx
+++ b/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 { Util } from '@antv/g6';
+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,16 +112,18 @@
                             <FormattedMessage id='map.sensor.type.shelf' defaultMessage='璐ф灦' />
                         </div>
                     </Col>
-                    <Col className={styles.mapCol} span={8} >
+                    <Col className={styles.mapCol} span={8}>
                         <Image
-                            src={agv}
+                            src={point}
+                            style={{
+                            }}
                             width='50px'
                             preview={false}
                             draggable="true"
-                            onDragStart={(e) => onDragStart(e, Utils.SENSOR_TYPE.AGV)}
+                            onDragStart={(e) => onDragStart(e, Utils.SENSOR_TYPE.POINT)}
                         />
                         <div className={styles.title}>
-                            <FormattedMessage id='map.sensor.type.agv' defaultMessage='鏃犱汉灏忚溅' />
+                            <FormattedMessage id='map.sensor.type.point' defaultMessage='瀹氫綅鐐�' />
                         </div>
                     </Col>
                 </Row>
@@ -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} >

--
Gitblit v1.9.1