From dc737c6244f6411994db152b84465b63d6972d26 Mon Sep 17 00:00:00 2001
From: luxiaotao1123 <t1341870251@163.com>
Date: 星期一, 25 三月 2024 11:06:13 +0800
Subject: [PATCH] #

---
 zy-asrs-flow/src/pages/map/batch/index.jsx |   32 +++++++++++++++++++++++++++-----
 zy-asrs-flow/src/pages/map/index.jsx       |    2 ++
 2 files changed, 29 insertions(+), 5 deletions(-)

diff --git a/zy-asrs-flow/src/pages/map/batch/index.jsx b/zy-asrs-flow/src/pages/map/batch/index.jsx
index b49ae89..23b4e39 100644
--- a/zy-asrs-flow/src/pages/map/batch/index.jsx
+++ b/zy-asrs-flow/src/pages/map/batch/index.jsx
@@ -1,5 +1,5 @@
 import React, { useState, useRef, useEffect } from 'react';
-import { Drawer, Space, Button, Card} 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'
@@ -14,6 +14,11 @@
 const BatchDrawer = (props) => {
     const intl = useIntl();
     const { styles } = useStyles();
+    const {
+        batchSprites,
+        model,
+        ModelEnum,
+    } = props;
 
     useEffect(() => {
     }, [props]);
@@ -52,10 +57,27 @@
                         height: '100%'
                     }}
                 >
-                    <BatchModify
-                        batchSprites={props.batchSprites}
-                        handleCancel={handleCancel}
-                    />
+                    {model === ModelEnum.OBSERVER_MODEL && (
+                        <>
+                            <ShowJson
+                                data={
+                                    batchSprites?.map(item => {
+                                        return item.data?.no;
+                                    })
+                                }
+                            />
+                        </>
+                    )}
+
+                    {model === ModelEnum.SETTINGS_MODEL && (
+                        <>
+                            <BatchModify
+                                batchSprites={batchSprites}
+                                handleCancel={handleCancel}
+                            />
+                        </>
+                    )}
+
                 </Card >
             </Drawer >
         </>
diff --git a/zy-asrs-flow/src/pages/map/index.jsx b/zy-asrs-flow/src/pages/map/index.jsx
index 5632277..3da9f60 100644
--- a/zy-asrs-flow/src/pages/map/index.jsx
+++ b/zy-asrs-flow/src/pages/map/index.jsx
@@ -434,6 +434,8 @@
                 open={batchDrawerVisible}
                 batchSprites={batchSprites}
                 refCurr={mapRef.current}
+                model={model}
+                ModelEnum={MapModel}
                 onCancel={() => {
                     setBatchSprites([]);
                     setBatchDrawerVisible(false);

--
Gitblit v1.9.1