+
+ } onClick={() => setIsModalOpen(true)}>
+ 设置
+
+
+
+
@@ -493,11 +507,24 @@ function Index (props) {
})
}
-
-
+ {
+ dispatch(push('/setup'));
+ }}
+ onCancel={() => {
+ setIsModalOpen(false)
+ }}
+ >
+
+
)
}
-export default Index
\ No newline at end of file
+function mapStateToProps (state) {
+ const { auth } = state;
+ return {}
+}
+
+export default connect(mapStateToProps)(Index);
\ No newline at end of file
diff --git a/console/client/src/sections/console/containers/setUp.js b/console/client/src/sections/console/containers/setUp.js
new file mode 100644
index 0000000..df598b6
--- /dev/null
+++ b/console/client/src/sections/console/containers/setUp.js
@@ -0,0 +1,69 @@
+import React, { useEffect, useState, useRef } from 'react'
+import { push } from 'react-router-redux';
+import { connect } from 'react-redux';
+import {
+ BorderlessTableOutlined, BlockOutlined, RollbackOutlined
+} from '@ant-design/icons';
+import { Col, Row, Button, Modal, Input } from 'antd';
+import '../style.less'
+
+function SetUp ({ dispatch }) {
+ const [renderMenu, setRenderMenu] = useState([])
+ const [levelOneMenu] = useState([{
+ n: '参数标定',
+ ic:
,
+ child: [
+ {
+ n: '塔机参数',
+ ic:
+ }, {
+ n: '返回',
+ ic:
,
+ click: () => {
+ dispatch(push('/'));
+ }
+ },
+ ]
+ }, {
+ n: '限位告警参数',
+ ic:
+ }, {
+ n: '返回',
+ ic:
,
+ click: () => {
+ dispatch(push('/'));
+ }
+ },])
+
+ useEffect(() => {
+ setRenderMenu(levelOneMenu)
+ }, [])
+
+
+ return (
+
+
+ {
+ renderMenu.map((item, index) => {
+ return (
+
+ {item.ic}
+
+ {item.n}
+
+
+ )
+ })
+ }
+
+
+
+ )
+}
+
+function mapStateToProps (state) {
+ const { auth } = state;
+ return {}
+}
+
+export default connect(mapStateToProps)(SetUp);
\ No newline at end of file
diff --git a/console/client/src/sections/console/routes.js b/console/client/src/sections/console/routes.js
index cbecec2..4bf8cef 100644
--- a/console/client/src/sections/console/routes.js
+++ b/console/client/src/sections/console/routes.js
@@ -1,5 +1,6 @@
'use strict';
import Console from './containers/index';
+import SetUp from './containers/setUp';
export default [{
type: 'outer',
@@ -8,6 +9,22 @@ export default [{
key: 'console',
breadcrumb: '控制台',
// 不设置 component 则面包屑禁止跳转
- component: Console
- }
+ component: Console,
+ childRoutes: [{
+ type: 'outer',
+ path: '/setup',
+ key: 'setup',
+ component: SetUp,
+ breadcrumb: '设置',
+ }]
+ },
+
+}, {
+ type: 'outer',
+ route: {
+ path: '/setup',
+ key: 'setup',
+ component: SetUp,
+ breadcrumb: '设置',
+ },
}];
\ No newline at end of file
diff --git a/console/client/src/sections/console/style.less b/console/client/src/sections/console/style.less
index 2a9f98d..ad39237 100644
--- a/console/client/src/sections/console/style.less
+++ b/console/client/src/sections/console/style.less
@@ -27,4 +27,10 @@
font-size: 14px;
text-transform: uppercase;
text-align: right;
+}
+
+//
+.setup-icon {
+ font-size: 128px;
+ display: block;
}
\ No newline at end of file
diff --git a/console/client/src/styles/antd.less b/console/client/src/styles/antd.less
deleted file mode 100644
index f4c73e8..0000000
--- a/console/client/src/styles/antd.less
+++ /dev/null
@@ -1,10 +0,0 @@
-
-@icon-url: "/assets/fonticon/iconfont";
-
-.tree-transfer .ant-transfer-list-body {
- overflow: auto !important;
-}
-
-.ant-pro-table-search {
- background-color: @component-background !important;
-}
\ No newline at end of file
diff --git a/console/client/src/styles/theme.less b/console/client/src/styles/theme.less
deleted file mode 100644
index 574643a..0000000
--- a/console/client/src/styles/theme.less
+++ /dev/null
@@ -1,16 +0,0 @@
-@import "~antd/lib/style/themes/default.less";
-@primary-color : @blue-6;
-@link-color : @primary-color;
-@secondary-color : fade(@primary-color, 20%);
-@btn-primary-bg : @primary-color;
-@select-item-selected-option-color: @primary-color;
-@processing-color : @primary-color;
-@select-item-selected-bg : @background-color-base;
-@skeleton-color : @primary-color;
-@btn-primary-bg : @primary-color;
-
-@component-background: transparent;
-
-:root {
- --PC: @primary-color;
-}
\ No newline at end of file