From db5f1831fe1a801a3a2ad5bbd85aecfaae17e425 Mon Sep 17 00:00:00 2001 From: yujialong <479214531@qq.com> Date: Thu, 11 Aug 2022 15:02:38 +0800 Subject: [PATCH] =?UTF-8?q?=E7=94=A8=E6=88=B7=E7=AD=89=E5=BC=80=E5=8F=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/index.js | 15 +- src/const/column.js | 26 +- src/layouts/navbar/index.vue | 2 +- src/pages/annex/list/index.vue | 67 +- src/pages/column/list/index.vue | 39 +- src/pages/role/list/index.vue | 253 ++-- src/pages/site/list/index.vue | 20 +- src/pages/system/list/index.vue | 62 - src/pages/system/list/logo.vue | 190 ---- src/pages/system/list/role.vue | 271 ----- src/pages/system/list/staff.vue | 585 ---------- src/pages/system/list/staffSide.vue | 391 ------- src/pages/user/list/index.vue | 1646 ++++++++++++--------------- src/pages/userGroup/list/index.vue | 131 +++ src/router/modules/role.js | 14 +- src/router/modules/system.js | 23 - src/router/modules/user.js | 30 +- src/router/modules/userGroup.js | 23 + src/styles/common.scss | 29 +- 19 files changed, 1116 insertions(+), 2701 deletions(-) delete mode 100644 src/pages/system/list/index.vue delete mode 100644 src/pages/system/list/logo.vue delete mode 100644 src/pages/system/list/role.vue delete mode 100644 src/pages/system/list/staff.vue delete mode 100644 src/pages/system/list/staffSide.vue create mode 100644 src/pages/userGroup/list/index.vue delete mode 100644 src/router/modules/system.js create mode 100644 src/router/modules/userGroup.js diff --git a/src/api/index.js b/src/api/index.js index b58cda7..5c05490 100644 --- a/src/api/index.js +++ b/src/api/index.js @@ -6,12 +6,21 @@ export default { logins: `iasf/sys/user/login`, verification: `${host}iasf/sys/getVerify`, upload: `${host}iasf/sysFiles/upload`, - listByPage: `${host}iasf/sysFiles/listByPage`, - delFile: `${host}iasf/sysFiles/delete`, + listByPage: `iasf/sysFiles/listByPage`, + delFile: `iasf/sysFiles/delete`, dept: `iasf/sys/dept`, deptTree: `iasf/sys/dept/tree`, - deptId: `iasf/sys/dept`, depts: `iasf/sys/depts`, + users: `iasf/sys/users`, + user: `iasf/sys/user`, + roles: `iasf/sys/roles`, + role: `iasf/sys/role`, + perTree: `iasf/sys/permission/tree/all`, + groupAdd: `iasf/sys/userGroup/add`, + groupDel: `iasf/sys/userGroup/delete`, + groupDel: `iasf/sys/userGroup/delete`, + groupList: `iasf/sys/userGroup/list`, + groupUpdate: `iasf/sys/userGroup/update`, listWithTree: `${host1}iasf/sysColumn/listWithTree`, saveColumn: `${host1}iasf/sysColumn/save`, updateColumn: `${host1}iasf/sysColumn/update`, diff --git a/src/const/column.js b/src/const/column.js index b1e5271..acd5a28 100644 --- a/src/const/column.js +++ b/src/const/column.js @@ -37,11 +37,33 @@ export default { sites: [ { id: 1, - name: 'EFL中文' + name: '粒子研究院英文站点', + domain: 'www.iasf.ac.cn' }, { id: 2, - name: 'SRL中文' + name: '粒子研究院中文站点', + domain: 'www.iasf.ac.cn' + }, + { + id: 3, + name: 'SFEL中文站点', + domain: 'www.iasf.ac.cn' + }, + { + id: 4, + name: 'SFEL英文站点', + domain: 'www.iasf.ac.cn' + }, + { + id: 5, + name: 'SRL中文站点', + domain: 'www.iasf.ac.cn' + }, + { + id: 6, + name: 'SRL英文站点', + domain: 'www.iasf.ac.cn' }, ], } \ No newline at end of file diff --git a/src/layouts/navbar/index.vue b/src/layouts/navbar/index.vue index 52dc542..107cf4d 100644 --- a/src/layouts/navbar/index.vue +++ b/src/layouts/navbar/index.vue @@ -124,7 +124,7 @@ export default { }, { icon: 'annex', - index: '/annex', + index: '/annex/list', title: '附件管理' } ], diff --git a/src/pages/annex/list/index.vue b/src/pages/annex/list/index.vue index 33b4322..d741e5e 100644 --- a/src/pages/annex/list/index.vue +++ b/src/pages/annex/list/index.vue @@ -1,8 +1,35 @@ - - \ No newline at end of file diff --git a/src/pages/system/list/logo.vue b/src/pages/system/list/logo.vue deleted file mode 100644 index 78cb6d4..0000000 --- a/src/pages/system/list/logo.vue +++ /dev/null @@ -1,190 +0,0 @@ - - - - - \ No newline at end of file diff --git a/src/pages/system/list/role.vue b/src/pages/system/list/role.vue deleted file mode 100644 index 1f96721..0000000 --- a/src/pages/system/list/role.vue +++ /dev/null @@ -1,271 +0,0 @@ - - - - \ No newline at end of file diff --git a/src/pages/system/list/staff.vue b/src/pages/system/list/staff.vue deleted file mode 100644 index 3063830..0000000 --- a/src/pages/system/list/staff.vue +++ /dev/null @@ -1,585 +0,0 @@ - - - \ No newline at end of file diff --git a/src/pages/system/list/staffSide.vue b/src/pages/system/list/staffSide.vue deleted file mode 100644 index 3c816bd..0000000 --- a/src/pages/system/list/staffSide.vue +++ /dev/null @@ -1,391 +0,0 @@ - - - diff --git a/src/pages/user/list/index.vue b/src/pages/user/list/index.vue index b98d45e..6b5880f 100644 --- a/src/pages/user/list/index.vue +++ b/src/pages/user/list/index.vue @@ -1,371 +1,346 @@ @@ -990,6 +755,9 @@ export default { display: inline-flex; align-items: center; } +.org-name { + margin-right: 20px; +} .name { display: inline-block; max-width: 160px; @@ -997,4 +765,8 @@ export default { overflow: hidden; text-overflow: ellipsis; } +.list-wrap { + width: calc(100% - 340px); + margin-left: 20px; +} \ No newline at end of file diff --git a/src/pages/userGroup/list/index.vue b/src/pages/userGroup/list/index.vue new file mode 100644 index 0000000..4552e8d --- /dev/null +++ b/src/pages/userGroup/list/index.vue @@ -0,0 +1,131 @@ + + + + + \ No newline at end of file diff --git a/src/router/modules/role.js b/src/router/modules/role.js index 5196475..266c198 100644 --- a/src/router/modules/role.js +++ b/src/router/modules/role.js @@ -8,16 +8,16 @@ export default { path: '/role', name: 'role', redirect: { - name: `${pre}list` + name: `${pre}list` }, meta, component: BasicLayout, children: [ - { - name: `${pre}list`, - path: `list`, - component: () => import('@/pages/role/list'), - meta: { title: '角色管理' } - } + { + name: `${pre}list`, + path: `list`, + component: () => import('@/pages/role/list'), + meta: { title: '角色管理' } + } ] } diff --git a/src/router/modules/system.js b/src/router/modules/system.js deleted file mode 100644 index d7753e6..0000000 --- a/src/router/modules/system.js +++ /dev/null @@ -1,23 +0,0 @@ -import BasicLayout from "@/layouts/home"; - -const meta = {}; - -const pre = "system-"; - -export default { - path: "/system", - name: "system", - redirect: { - name: `${pre}list` - }, - meta, - component: BasicLayout, - children: [ - { - name: `${pre}list`, - path: `list`, - component: () => import("@/pages/system/list"), - meta: { title: "系统设置" } - } - ] -}; diff --git a/src/router/modules/user.js b/src/router/modules/user.js index a816339..b9a0ebc 100644 --- a/src/router/modules/user.js +++ b/src/router/modules/user.js @@ -5,19 +5,19 @@ const meta = {}; const pre = "user-"; export default { - path: "/user", - name: "user", - redirect: { - name: `${pre}list` - }, - meta, - component: BasicLayout, - children: [ - { - name: `${pre}list`, - path: `list`, - component: () => import("@/pages/user/list"), - meta: { title: '组织与账号管理' } - } - ] + path: "/user", + name: "user", + redirect: { + name: `${pre}list` + }, + meta, + component: BasicLayout, + children: [ + { + name: `${pre}list`, + path: `list`, + component: () => import("@/pages/user/list"), + meta: { title: '组织与账号管理' } + } + ] }; diff --git a/src/router/modules/userGroup.js b/src/router/modules/userGroup.js new file mode 100644 index 0000000..a969149 --- /dev/null +++ b/src/router/modules/userGroup.js @@ -0,0 +1,23 @@ +import BasicLayout from '@/layouts/home' + +const meta = {} + +const pre = 'userGroup-' + +export default { + path: '/userGroup', + name: 'userGroup', + redirect: { + name: `${pre}list` + }, + meta, + component: BasicLayout, + children: [ + { + name: `${pre}list`, + path: `list`, + component: () => import('@/pages/userGroup/list'), + meta: { title: '用户组管理' } + } + ] +} diff --git a/src/styles/common.scss b/src/styles/common.scss index 17c7262..3407801 100644 --- a/src/styles/common.scss +++ b/src/styles/common.scss @@ -30,17 +30,9 @@ .el-input { .el-input__inner { border-color: #DCDEE0; + border-radius: 2px; } } -.p-title { - padding-left: 5px; - margin-bottom: 24px; - line-height: 1; - font-size: 14px; - color: #585858; - border-left: 3px solid $--color-primary; -} - .page { position: relative; padding: 16px 20px; @@ -65,22 +57,19 @@ display: inline-flex; align-items: center; margin-right: 30px; - label { - margin-right: 6px; + margin-right: 20px; font-size: 14px; - line-height: 14px; - color: rgba(0, 0, 0, .65); + line-height: 20px; + color: #333; white-space: nowrap; } } } &.mul { margin-bottom: 0; - .filter { width: 100vw; - li { margin-bottom: 24px; } @@ -91,7 +80,6 @@ .search-wrap { display: flex; .el-input__inner { - border-radius: 0; border-right: 0; } .el-button { @@ -323,24 +311,20 @@ justify-content: center; align-items: center; padding: 34px 0; - .el-button { span { display: flex; align-items: center; color: rgba(0, 0, 0, 0.65); font-size: 14px; - img { margin-right: 8px; } } } - & > .el-button { margin-right: 32px; } - .el-upload-list { position: absolute; bottom: 0; @@ -348,7 +332,6 @@ width: 100%; max-width: 400px; } - .link { position: absolute; bottom: -20px; @@ -356,16 +339,13 @@ width: 100%; text-align: center; } - &.lg { padding-bottom: 50px; } } - .el-tooltip__popper { width: 300px; } - @media(max-width: 1600px) { .el-table { .el-switch__label--right.is-active { @@ -373,7 +353,6 @@ } } } - .el-upload-list{ width: 100%; max-width: 400px;