From b20fdb26e9d1d091fd7864de1edcc639e9da01b8 Mon Sep 17 00:00:00 2001
From: luxiaotao1123 <t1341870251@163.com>
Date: 星期三, 16 十月 2024 15:04:14 +0800
Subject: [PATCH] #
---
zy-acs-flow/src/map/insight/shelf/index.jsx | 22 ++++++++++++++--------
1 files changed, 14 insertions(+), 8 deletions(-)
diff --git a/zy-acs-flow/src/map/insight/shelf/index.jsx b/zy-acs-flow/src/map/insight/shelf/index.jsx
index 75f55fd..8652896 100644
--- a/zy-acs-flow/src/map/insight/shelf/index.jsx
+++ b/zy-acs-flow/src/map/insight/shelf/index.jsx
@@ -1,14 +1,17 @@
import React, { useState, useRef, useEffect } from 'react';
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);
@@ -30,16 +33,19 @@
<Divider />
- <Box p={3}>
+ <Box pt={1}>
{activeTab === 0 && (
- <Box>
- <h1>1</h1>
- </Box>
+ <ShelfMain
+ data={sprite?.data}
+ curLocNo={curLocNo}
+ setCurLocNo={setCurLocNo}
+ />
)}
{activeTab === 1 && (
- <Box>
- <h1>2</h1>
- </Box>
+ <JsonShow
+ data={sprite?.data}
+ height={550}
+ />
)}
</Box>
</>
--
Gitblit v1.9.1