From ddf7bafdc51befaa108a3d9475706821983e680a Mon Sep 17 00:00:00 2001
From: luxiaotao1123 <t1341870251@163.com>
Date: 星期六, 19 十月 2024 13:56:01 +0800
Subject: [PATCH] #
---
zy-acs-flow/src/map/batch/BatchInsight.jsx | 51 +++++++++++++++++++++++++++++++++++++++++++++++++++
zy-acs-flow/src/map/batch/index.jsx | 3 ++-
2 files changed, 53 insertions(+), 1 deletions(-)
diff --git a/zy-acs-flow/src/map/batch/BatchInsight.jsx b/zy-acs-flow/src/map/batch/BatchInsight.jsx
new file mode 100644
index 0000000..1047054
--- /dev/null
+++ b/zy-acs-flow/src/map/batch/BatchInsight.jsx
@@ -0,0 +1,51 @@
+import React, { useState, useRef, useEffect } from 'react';
+import { useTranslate } from "react-admin";
+import { Box, Typography, Toolbar, Stack, useTheme, Card, Divider, Button } from '@mui/material';
+import JsonShow from '../JsonShow';
+import CheckOutlinedIcon from '@mui/icons-material/CheckOutlined';
+import ClearOutlinedIcon from '@mui/icons-material/ClearOutlined';
+import * as Tool from '../tool';
+
+const BatchInsight = (props) => {
+ const theme = useTheme();
+ const themeMode = theme.palette.mode;
+ const translate = useTranslate();
+ const { batchSprites, drawerClose } = props;
+
+ return (
+ <Box>
+ <JsonShow
+ data={
+ batchSprites?.map(item => {
+ return item.data?.type + '-' + item.data?.no;
+ })
+ }
+ height={550}
+ />
+ <Box mt={2}>
+ <Divider sx={{
+ marginBottom: '16px'
+ }} />
+ <Toolbar sx={{
+ display: 'flex',
+ justifyContent: 'space-between',
+ minHeight: { sm: 0 },
+ }}>
+ <Button
+ variant="outlined"
+ color="primary"
+ onClick={drawerClose}
+ sx={{ borderColor: theme => theme.palette.success.main }}
+ startIcon={
+ <CheckOutlinedIcon sx={{ color: theme => theme.palette.success.main }} />
+ }
+ >
+ {translate('ra.action.confirm')}
+ </Button>
+ </Toolbar>
+ </Box>
+ </Box>
+ )
+}
+
+export default BatchInsight;
\ No newline at end of file
diff --git a/zy-acs-flow/src/map/batch/index.jsx b/zy-acs-flow/src/map/batch/index.jsx
index 35c945f..afe72d9 100644
--- a/zy-acs-flow/src/map/batch/index.jsx
+++ b/zy-acs-flow/src/map/batch/index.jsx
@@ -5,6 +5,7 @@
import { PAGE_DRAWER_WIDTH } from '@/config/setting';
import { MAP_MODE } from "../constants";
import BatchSettings from './BatchSettings';
+import BatchInsight from './BatchInsight';
const Batch = (props) => {
const { open, onCancel, mode, batchSprites, width = PAGE_DRAWER_WIDTH } = props;
@@ -42,7 +43,7 @@
<Box p={3}>
{mode === MAP_MODE.OBSERVER_MODE && (
<>
- <BatchSettings
+ <BatchInsight
batchSprites={batchSprites}
drawerClose={handleClose}
/>
--
Gitblit v1.9.1