diff --git a/web/client/src/components/setup.jsx b/web/client/src/components/setup.jsx
index 8465bcf..324e82d 100644
--- a/web/client/src/components/setup.jsx
+++ b/web/client/src/components/setup.jsx
@@ -1,122 +1,124 @@
import React, { useState, useEffect } from "react";
import {
- Modal,
- CheckboxGroup,
- Checkbox,
+ Modal,
+ CheckboxGroup,
+ Checkbox,
} from "@douyinfe/semi-ui";
-function Setup(props) {
- const {
- close,
- tableType,
- tableList
- } = props;
+function Setup (props) {
+ const {
+ close,
+ tableType,
+ tableList,
+ layout, //格式
+ } = props;
- const [check, setCheck] = useState([]);
-
- const checkboxcss = { width: "25%", height: 16, margin: "0 0 20px 0" };
+ const [check, setCheck] = useState([]);
- useEffect(() => {
- //获取是否勾选信息
- const checkItem = localStorage.getItem(tableType);
- setCheck(checkItem?JSON.parse(checkItem) : [])
- ischeck();
- }, []);
- function ischeck(value) {
- if (check.length >= 8) {
- if (check.includes(value)) {
- return false;
- } else {
- return true;
+ const checkboxcss = { width: "25%", height: 16, margin: "0 0 20px 0" };
+
+ useEffect(() => {
+ //获取是否勾选信息
+ const checkItem = localStorage.getItem(tableType);
+ setCheck(checkItem ? JSON.parse(checkItem) : [])
+ ischeck();
+ }, []);
+ function ischeck (value) {
+ if (check.length >= 8) {
+ if (check.includes(value)) {
+ return false;
+ } else {
+ return true;
+ }
}
- }
- }
+ }
- return (
-
{
- setSetup(true)
- setTableType('statistical')
- attribute('statistical')
- }} />
+ {exhibition.current?.overall?.find(v => v.key == 'statistical') ? <>
+
{
+ setSetup(true)
+ setTableType('statistical')
+ attribute('statistical')
+ }} />
+
-
-
+
{
- setSetup(true)
- setTableType('analyse')
- attribute('analyse')
- }} />
+
+ {exhibition.current?.overall?.find(v => v.key == 'analyse') ?
+
{
+ setSetup(true)
+ setTableType('analyse')
+ attribute('analyse')
+ }} />
+
setSetup(true)} />
+
{
+ setSetup(true)
+ setTableType('dynamic')
+ attribute('dynamic')
+ setLong('long')
+ }} />