From 7c32ab19d3bf4c601212314a1617bbb51c5fdd2a Mon Sep 17 00:00:00 2001
From: luxiaotao1123 <t1341870251@163.com>
Date: 星期五, 29 三月 2024 16:01:36 +0800
Subject: [PATCH] #

---
 zy-asrs-flow/src/pages/map/batch/index.jsx |   32 +++++++++++++++++++++++++++-----
 1 files changed, 27 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 >
         </>

--
Gitblit v1.9.1