From cb30095aef44153b02b40e39844f22c554ce81da Mon Sep 17 00:00:00 2001
From: luxiaotao1123 <t1341870251@163.com>
Date: 星期三, 16 十月 2024 13:41:45 +0800
Subject: [PATCH] #

---
 zy-acs-flow/src/map/settings/index.jsx      |    2 +-
 zy-acs-flow/src/map/insight/shelf/index.jsx |   41 +++++++++++++++++++++++++++++++++++++++--
 2 files changed, 40 insertions(+), 3 deletions(-)

diff --git a/zy-acs-flow/src/map/insight/shelf/index.jsx b/zy-acs-flow/src/map/insight/shelf/index.jsx
index 49465ba..75f55fd 100644
--- a/zy-acs-flow/src/map/insight/shelf/index.jsx
+++ b/zy-acs-flow/src/map/insight/shelf/index.jsx
@@ -1,10 +1,47 @@
-
+import React, { useState, useRef, useEffect } from 'react';
+import { useTranslate } from "react-admin";
+import { Box, Typography, Tabs, Tab, Stack, useTheme, Divider } from '@mui/material';
 
 const ShelfInsight = (props) => {
+    const { } = props;
+    const theme = useTheme();
+    const themeMode = theme.palette.mode;
+    const translate = useTranslate();
+
+    const [activeTab, setActiveTab] = useState(0);
+
+    const handleTabChange = (event, newValue) => {
+        setActiveTab(newValue);
+    };
 
     return (
         <>
-            <h1>SHleft</h1>
+            <Tabs
+                value={activeTab}
+                onChange={handleTabChange}
+                indicatorColor="primary"
+                textColor="primary"
+                centered
+                sx={{ mb: 0 }}
+            >
+                <Tab label={translate('page.map.settings.map.title')} />
+                <Tab label={translate('page.map.settings.config.title')} />
+            </Tabs>
+
+            <Divider />
+
+            <Box p={3}>
+                {activeTab === 0 && (
+                    <Box>
+                        <h1>1</h1>
+                    </Box>
+                )}
+                {activeTab === 1 && (
+                    <Box>
+                        <h1>2</h1>
+                    </Box>
+                )}
+            </Box>
         </>
     )
 }
diff --git a/zy-acs-flow/src/map/settings/index.jsx b/zy-acs-flow/src/map/settings/index.jsx
index 7223bc3..f908153 100644
--- a/zy-acs-flow/src/map/settings/index.jsx
+++ b/zy-acs-flow/src/map/settings/index.jsx
@@ -67,7 +67,7 @@
                                         indicatorColor="primary"
                                         textColor="primary"
                                         variant="fullWidth"
-                                        sx={{ mb: 2 }}
+                                        sx={{ mb: 0 }}
                                     >
                                         <Tab label={translate('page.map.settings.map.title')} />
                                         <Tab label={translate('page.map.settings.config.title')} />

--
Gitblit v1.9.1