diff --git a/.eslintignore b/.eslintignore
index ba587c1..1214b3f 100644
--- a/.eslintignore
+++ b/.eslintignore
@@ -1,5 +1,4 @@
build/*.js
src/assets
public
-dist
-*vue
\ No newline at end of file
+dist
\ No newline at end of file
diff --git a/src/assets/styles/index.scss b/src/assets/styles/index.scss
index 21fbda1..ec8be31 100644
--- a/src/assets/styles/index.scss
+++ b/src/assets/styles/index.scss
@@ -32,7 +32,11 @@ html {
*:after {
box-sizing: inherit;
}
-
+ul,
+ol {
+ list-style: none;
+ padding: 0;
+}
.no-padding {
padding: 0 !important;
}
@@ -91,7 +95,7 @@ div:focus {
visibility: hidden;
display: block;
font-size: 0;
- content: " ";
+ content: ' ';
clear: both;
height: 0;
}
@@ -105,7 +109,7 @@ aside {
display: block;
line-height: 32px;
font-size: 16px;
- font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
+ font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif;
color: #2c3e50;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
@@ -135,7 +139,7 @@ aside {
}
.text-center {
- text-align: center
+ text-align: center;
}
.sub-navbar {
@@ -180,3 +184,21 @@ aside {
.multiselect--active {
z-index: 1000 !important;
}
+
+// start
+.page_add {
+ text-align: right;
+}
+.form_item {
+ margin: 0 10px;
+
+ span {
+ font-size: 14px;
+ margin-right: 10px;
+ color: #666;
+ }
+}
+.list_table {
+ margin-top: 20px;
+}
+// end
diff --git a/src/router/routers.js b/src/router/routers.js
index 950e007..0f818df 100644
--- a/src/router/routers.js
+++ b/src/router/routers.js
@@ -59,52 +59,84 @@ export const constantRouterMap = [
}]
},
{
- path: '/user',
+ path: '/system',
component: Layout,
- redirect: '/system/user',
+ hidden: true,
+ redirect: 'noredirect',
meta: {
- title: '用户管理',
+ title: '权限管理',
icon: 'documentation'
},
children: [{
- path: '/system/user',
+ path: '/user',
component: () => import('@/views/system/user/index'),
meta: {
title: '用户管理',
icon: 'edit'
}
- }]
- },
- {
- path: '/role',
- component: Layout,
- redirect: '/system/role',
- meta: {
- title: '角色管理',
- icon: 'documentation'
},
- children: [{
- path: '/system/role',
+ {
+ path: '/role',
component: () => import('@/views/system/role/index'),
meta: {
title: '角色管理',
icon: 'edit'
}
+ },
+ {
+ path: '/dept',
+ component: () => import('@/views/system/dept/index'),
+ meta: {
+ title: '机构管理',
+ icon: 'edit'
+ }
+ },
+ {
+ path: '/menu',
+ component: () => import('@/views/system/menu/index'),
+ meta: {
+ title: '权限管理',
+ icon: 'edit'
+ }
}]
},
+ // {
+ // path: '/role',
+ // component: Layout,
+ // redirect: '/system',
+ // meta: {
+ // title: '权限管理',
+ // icon: 'documentation'
+ // },
+ // children: [{
+ // path: '/system/role',
+ // component: () => import('@/views/system/role/index'),
+ // meta: {
+ // title: '角色管理',
+ // icon: 'edit'
+ // }
+ // }]
+ // },
{
- path: '/dept',
+ path: '/device',
component: Layout,
- redirect: '/system/dept',
meta: {
- title: '机构管理',
+ title: '设备管理',
icon: 'documentation'
},
children: [{
- path: '/system/dept',
- component: () => import('@/views/system/dept/index'),
+ path: '/device',
+ component: () => import('@/views/device/index'),
meta: {
- title: '机构管理',
+ title: '设备管理',
+ icon: 'edit'
+ }
+ },
+ {
+ path: '/config',
+ component: () => import('@/views/device/config'),
+ meta: {
+ title: '开关机配置',
icon: 'edit'
}
}]
diff --git a/src/views/device/config.vue b/src/views/device/config.vue
new file mode 100644
index 0000000..a1449b4
--- /dev/null
+++ b/src/views/device/config.vue
@@ -0,0 +1,171 @@
+
+