diff --git a/spug_web/src/menus.js b/spug_web/src/menus.js
index 8057e22..527397b 100644
--- a/spug_web/src/menus.js
+++ b/spug_web/src/menus.js
@@ -19,7 +19,7 @@ export default [
{
icon: 'setting', title: '系统管理', child: [
{title: '账户管理', path: '/system/account'},
- {title: '系统信息', path: '/system/info'},
+ {title: '系统设置', path: '/system/setting'},
]
},
]
\ No newline at end of file
diff --git a/spug_web/src/pages/system/routes.js b/spug_web/src/pages/system/routes.js
index dc01ff1..e2f74fd 100644
--- a/spug_web/src/pages/system/routes.js
+++ b/spug_web/src/pages/system/routes.js
@@ -1,6 +1,8 @@
import { makeRoute } from 'libs/router';
-import AccountIndex from './account/index';
+import Account from './account';
+import Setting from './setting';
export default [
- makeRoute('/account', AccountIndex)
+ makeRoute('/account', Account),
+ makeRoute('/setting', Setting),
]
\ No newline at end of file
diff --git a/spug_web/src/pages/system/setting/AlarmSetting.js b/spug_web/src/pages/system/setting/AlarmSetting.js
new file mode 100644
index 0000000..f0d80b3
--- /dev/null
+++ b/spug_web/src/pages/system/setting/AlarmSetting.js
@@ -0,0 +1,18 @@
+import React from 'react';
+import { Button, Form, Input } from 'antd';
+import styles from './index.module.css';
+
+
+export default function AlarmSetting(props) {
+ return (
+
+ 报警服务设置
+
+
+
+
+
+
+ )
+}
\ No newline at end of file
diff --git a/spug_web/src/pages/system/setting/BasicSetting.js b/spug_web/src/pages/system/setting/BasicSetting.js
new file mode 100644
index 0000000..6570f16
--- /dev/null
+++ b/spug_web/src/pages/system/setting/BasicSetting.js
@@ -0,0 +1,22 @@
+import React from 'react';
+import { Button, Form, Input } from 'antd';
+import styles from './index.module.css';
+
+
+export default function BasicSetting(props) {
+ return (
+
+ 基本设置
+
+
+
+
+
+
+
+
+
+
+ )
+}
\ No newline at end of file
diff --git a/spug_web/src/pages/system/setting/MailServer.js b/spug_web/src/pages/system/setting/MailServer.js
new file mode 100644
index 0000000..cbe6f0c
--- /dev/null
+++ b/spug_web/src/pages/system/setting/MailServer.js
@@ -0,0 +1,30 @@
+import React from 'react';
+import { Button, Form, Input } from 'antd';
+import styles from './index.module.css';
+
+
+export default function MailServer(props) {
+ return (
+
+ 邮件服务设置
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ )
+}
\ No newline at end of file
diff --git a/spug_web/src/pages/system/setting/index.js b/spug_web/src/pages/system/setting/index.js
new file mode 100644
index 0000000..a4fe55a
--- /dev/null
+++ b/spug_web/src/pages/system/setting/index.js
@@ -0,0 +1,42 @@
+import React from 'react';
+import { Menu } from 'antd';
+import BasicSetting from './BasicSetting';
+import AlarmSetting from './AlarmSetting';
+import MailServer from './MailServer';
+import styles from './index.module.css';
+
+
+class Index extends React.Component {
+ constructor(props) {
+ super(props);
+ this.state = {
+ selectedKeys: ['basic']
+ }
+ }
+
+ render() {
+ const {selectedKeys} = this.state;
+ return (
+
+
+
+
+
+ {selectedKeys[0] === 'basic' &&
}
+ {selectedKeys[0] === 'mail' &&
}
+ {selectedKeys[0] === 'alarm' &&
}
+
+
+ )
+ }
+}
+
+export default Index
\ No newline at end of file
diff --git a/spug_web/src/pages/system/setting/index.module.css b/spug_web/src/pages/system/setting/index.module.css
new file mode 100644
index 0000000..0f0a127
--- /dev/null
+++ b/spug_web/src/pages/system/setting/index.module.css
@@ -0,0 +1,25 @@
+.container {
+ display: flex;
+ background-color: #fff;
+ padding: 16px 0;
+}
+.left {
+ flex: 2;
+ border-right: 1px solid #e8e8e8;
+}
+.right {
+ flex: 7;
+ padding: 8px 40px;
+}
+
+.title {
+ margin-bottom: 12px;
+ color: rgba(0, 0, 0, .85);
+ font-weight: 500;
+ font-size: 20px;
+ line-height: 28px;
+}
+
+.form {
+ max-width: 320px;
+}
\ No newline at end of file