From 9c8f7230aa46005ae1386725f66b05ea325e09c5 Mon Sep 17 00:00:00 2001
From: luxiaotao1123 <t1341870251@163.com>
Date: 星期四, 17 十月 2024 08:02:42 +0800
Subject: [PATCH] #
---
zy-acs-flow/src/map/insight/shelf/index.jsx | 26 +++++++++++++++-----------
1 files changed, 15 insertions(+), 11 deletions(-)
diff --git a/zy-acs-flow/src/map/insight/shelf/index.jsx b/zy-acs-flow/src/map/insight/shelf/index.jsx
index fe7f02d..b4e05b5 100644
--- a/zy-acs-flow/src/map/insight/shelf/index.jsx
+++ b/zy-acs-flow/src/map/insight/shelf/index.jsx
@@ -2,47 +2,51 @@
import { useTranslate } from "react-admin";
import { Box, Typography, Tabs, Tab, Stack, useTheme, Divider } from '@mui/material';
import ShelfMain from './ShelfMain';
+import JsonShow from '../../JsonShow';
const ShelfInsight = (props) => {
- const { } = props;
+ const { sprite } = props;
const theme = useTheme();
const themeMode = theme.palette.mode;
const translate = useTranslate();
const [activeTab, setActiveTab] = useState(0);
+ const [curLocNo, setCurLocNo] = useState(null);
const handleTabChange = (event, newValue) => {
setActiveTab(newValue);
};
return (
- <>
+ <Box sx={{ height: '100%', display: 'flex', flexDirection: 'column' }}>
<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')} />
+ <Tab label={translate('page.map.insight.title')} />
+ <Tab label={'JSON'} />
</Tabs>
<Divider />
- <Box p={3}>
+ <Box flex={1} pt={2}>
{activeTab === 0 && (
<ShelfMain
+ data={sprite?.data}
+ curLocNo={curLocNo}
+ setCurLocNo={setCurLocNo}
/>
)}
{activeTab === 1 && (
- <Box>
- <h1>2</h1>
- </Box>
+ <JsonShow
+ data={sprite?.data}
+ height={550}
+ />
)}
</Box>
- </>
+ </Box>
)
}
--
Gitblit v1.9.1