From 4005a7d18113fa6bce077f4f93597971d3ac606a Mon Sep 17 00:00:00 2001 From: "gao.zhiyuan" Date: Wed, 22 Mar 2023 09:31:35 +0800 Subject: [PATCH] form --- .../src/sections/console/containers/setUp.js | 46 +++++++++++++------ 1 file changed, 33 insertions(+), 13 deletions(-) diff --git a/console/client/src/sections/console/containers/setUp.js b/console/client/src/sections/console/containers/setUp.js index df598b6..dc32782 100644 --- a/console/client/src/sections/console/containers/setUp.js +++ b/console/client/src/sections/console/containers/setUp.js @@ -4,26 +4,33 @@ import { connect } from 'react-redux'; import { BorderlessTableOutlined, BlockOutlined, RollbackOutlined } from '@ant-design/icons'; -import { Col, Row, Button, Modal, Input } from 'antd'; +import { Col, Row, Button, Modal, Form, Input } from 'antd'; import '../style.less' function SetUp ({ dispatch }) { + const [form] = Form.useForm(); const [renderMenu, setRenderMenu] = useState([]) + const [renderForm, setRenderForm] = useState(false) const [levelOneMenu] = useState([{ n: '参数标定', ic: , - child: [ - { - n: '塔机参数', - ic: - }, { - n: '返回', - ic: , - click: () => { - dispatch(push('/')); - } - }, - ] + click: () => { + setRenderMenu([ + { + n: '塔机参数', + ic: , + click: () => { + setRenderForm(true) + } + }, { + n: '返回', + ic: , + click: () => { + setRenderMenu(levelOneMenu) + } + }, + ]) + } }, { n: '限位告警参数', ic: @@ -57,6 +64,19 @@ function SetUp ({ dispatch }) { } + {/*
+ + + +
*/} ) }