From 7339321e5fbeebb49ad9ef6a8b677d506fcea489 Mon Sep 17 00:00:00 2001
From: "aoli.qu" <408346101@qq.com>
Date: Tue, 31 Aug 2021 09:26:31 +0800
Subject: [PATCH] =?UTF-8?q?=E7=94=A8=E6=88=B7=E7=AE=A1=E7=90=86=E3=80=81?=
=?UTF-8?q?=E8=8F=9C=E5=8D=95=E7=AE=A1=E7=90=86=E3=80=81=E8=A7=92=E8=89=B2?=
=?UTF-8?q?=E7=AE=A1=E7=90=86=E5=8A=9F=E8=83=BD=E9=A1=B5=E9=9D=A2=E5=BC=80?=
=?UTF-8?q?=E5=8F=91?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/api/security/menu.js | 44 +-
src/api/security/role.js | 48 ++-
src/api/security/user.js | 62 +--
src/components/Table/index.js | 12 +-
src/core/lazy_use.js | 6 +-
src/utils/request.js | 2 +-
src/utils/util.js | 20 +
src/views/filterMap/menuTypeMap.js | 5 +
src/views/filterMap/sexMap.js | 5 +
src/views/list/TableList.vue | 1 +
src/views/security/maps/map.js | 5 -
src/views/security/menu/MenuForm.vue | 388 ++++++++++++++++++
src/views/security/menu/MenuForm2.vue | 372 +++++++++++++++++
src/views/security/menu/MenuList.vue | 159 +++++++
src/views/security/modules/CreateForm.vue | 83 ----
src/views/security/modules/UserDetail.vue | 48 ---
src/views/security/resource/ResourceTree.vue | 186 ---------
.../security/resource/modules/OrgModal.vue | 100 -----
.../security/resource/modules/RoleModal.vue | 147 -------
src/views/security/role/RoleForm.vue | 117 ++++++
src/views/security/role/RoleList.vue | 225 +++++-----
src/views/security/role/RoleMenuForm.vue | 186 +++++++++
.../security/role/modules/CreateForm.vue | 116 ------
.../security/role/modules/RoleDetail.vue | 46 ---
src/views/security/user/UserForm.vue | 282 +++++++++++++
src/views/security/user/UserList.vue | 230 ++++++-----
src/views/security/user/UserRoleForm.vue | 114 +++++
.../security/user/modules/CreateForm.vue | 127 ------
.../security/user/modules/UserDetail.vue | 56 ---
src/views/status/enabledMap.js | 4 -
src/views/status/statusMap.js | 4 -
31 files changed, 1978 insertions(+), 1222 deletions(-)
create mode 100644 src/views/filterMap/menuTypeMap.js
create mode 100644 src/views/filterMap/sexMap.js
delete mode 100644 src/views/security/maps/map.js
create mode 100644 src/views/security/menu/MenuForm.vue
create mode 100644 src/views/security/menu/MenuForm2.vue
create mode 100644 src/views/security/menu/MenuList.vue
delete mode 100644 src/views/security/modules/CreateForm.vue
delete mode 100644 src/views/security/modules/UserDetail.vue
delete mode 100644 src/views/security/resource/ResourceTree.vue
delete mode 100644 src/views/security/resource/modules/OrgModal.vue
delete mode 100644 src/views/security/resource/modules/RoleModal.vue
create mode 100644 src/views/security/role/RoleForm.vue
create mode 100644 src/views/security/role/RoleMenuForm.vue
delete mode 100644 src/views/security/role/modules/CreateForm.vue
delete mode 100644 src/views/security/role/modules/RoleDetail.vue
create mode 100644 src/views/security/user/UserForm.vue
create mode 100644 src/views/security/user/UserRoleForm.vue
delete mode 100644 src/views/security/user/modules/CreateForm.vue
delete mode 100644 src/views/security/user/modules/UserDetail.vue
delete mode 100644 src/views/status/enabledMap.js
delete mode 100644 src/views/status/statusMap.js
diff --git a/src/api/security/menu.js b/src/api/security/menu.js
index 709bf2a..055e38b 100644
--- a/src/api/security/menu.js
+++ b/src/api/security/menu.js
@@ -2,11 +2,11 @@ import request from '@/utils/request'
const menuApi = {
add: 'sys/menu/add',
- get: 'sys/menu/get',
- update: 'sys/menu/update',
- del: 'sys/menu/delete',
- updateStatus: 'sys/menu/updateStatus',
- list: 'sys/menu/listByParentId'
+ edit: 'sys/menu/edit',
+ del: 'sys/menu/del',
+ list: 'sys/menu/list',
+ tree: 'sys/menu/tree',
+ treeForGrant: 'sys/menu/treeForGrant'
}
export function menuAdd (params) {
@@ -16,38 +16,38 @@ export function menuAdd (params) {
data: params
})
}
-export function menuGet (params) {
+export function menuEdit (params) {
return request({
- url: menuApi.get,
+ url: menuApi.edit,
method: 'post',
data: params
})
}
-export function menuUpdate (params) {
- return request({
- url: menuApi.update,
- method: 'post',
- data: params
- })
-}
-export function menuDelete (params) {
+export function menuDel (params) {
return request({
url: menuApi.del,
method: 'post',
- data: params
+ params: params
})
}
export function menuList (params) {
return request({
url: menuApi.list,
- method: 'post',
- data: params
+ method: 'get',
+ params: params
})
}
-export function menuUpdateStatus (params) {
+export function menuTree (params) {
return request({
- url: menuApi.updateStatus,
- method: 'post',
- data: params
+ url: menuApi.tree,
+ method: 'get',
+ params: params
+ })
+}
+export function menuTreeForGrant (params) {
+ return request({
+ url: menuApi.treeForGrant,
+ method: 'get',
+ params: params
})
}
diff --git a/src/api/security/role.js b/src/api/security/role.js
index 037d981..e219e51 100644
--- a/src/api/security/role.js
+++ b/src/api/security/role.js
@@ -2,11 +2,12 @@ import request from '@/utils/request'
const roleApi = {
add: '/sys/role/add',
- get: '/sys/role/getById',
- update: '/sys/role/update',
- del: '/sys/role/delete',
- page: '/sys/role/page',
- updateStatus: '/sys/role/updateStatus'
+ edit: '/sys/role/edit',
+ del: '/sys/role/del',
+ page: '/sys/role/pageList',
+ list: '/sys/role/list',
+ ownMenu: '/sys/role/ownMenu',
+ grantMenu: '/sys/role/grantMenu'
}
export function roleAdd (params) {
@@ -16,37 +17,44 @@ export function roleAdd (params) {
data: params
})
}
-export function roleGet (params) {
+export function roleEdit (params) {
return request({
- url: roleApi.get,
+ url: roleApi.edit,
method: 'post',
data: params
})
}
-export function roleUpdate (params) {
- return request({
- url: roleApi.update,
- method: 'post',
- data: params
- })
-}
-export function roleDelete (params) {
+export function roleDel (params) {
return request({
url: roleApi.del,
method: 'post',
- data: params
+ params: params
})
}
export function rolePage (params) {
return request({
url: roleApi.page,
- method: 'post',
- data: params
+ method: 'get',
+ params: params
})
}
-export function roleUpdateStatus (params) {
+export function roleList (params) {
return request({
- url: roleApi.updateStatus,
+ url: roleApi.list,
+ method: 'get',
+ params: params
+ })
+}
+export function roleOwnMenu (params) {
+ return request({
+ url: roleApi.ownMenu,
+ method: 'post',
+ params: params
+ })
+}
+export function roleGrantMenu (params) {
+ return request({
+ url: roleApi.grantMenu,
method: 'post',
data: params
})
diff --git a/src/api/security/user.js b/src/api/security/user.js
index 7ef02bc..659b2b5 100644
--- a/src/api/security/user.js
+++ b/src/api/security/user.js
@@ -4,16 +4,17 @@ const userApi = {
login: '/login',
logout: '/logout',
add: '/sys/user/add',
- get: '/sys/user/get',
- update: '/sys/user/update',
- del: '/sys/user/delete',
- page: '/sys/user/page',
- updateEnabled: '/sys/user/updateEnabled',
- getInfo: '/sys/user/getInfo'
+ edit: '/sys/user/edit',
+ del: '/sys/user/del',
+ page: '/sys/user/pageList',
+ getInfo: '/sys/user/getInfo',
+ ownRole: '/sys/user/ownRole',
+ grantRole: '/sys/user/grantRole'
}
const userPasswordApi = {
update: '/sys/user/passwordUpdate',
+ reset: '/sys/user/passwordReset'
}
export function userLogin (params) {
@@ -24,48 +25,35 @@ export function userLogin (params) {
})
}
-export function userAdd (params) {
+export function userAdd (params,password) {
return request({
url: userApi.add,
method: 'post',
- data: params
+ data: params,
+ params: password
})
}
-export function userGet (params) {
+export function userEdit (params) {
return request({
- url: userApi.get,
+ url: userApi.edit,
method: 'post',
data: params
})
}
-export function userUpdate (params) {
- return request({
- url: userApi.update,
- method: 'post',
- data: params
- })
-}
-export function userDelete (params) {
+export function userDel (params) {
return request({
url: userApi.del,
method: 'post',
- data: params
+ params: params
})
}
export function userPage (params) {
return request({
url: userApi.page,
- method: 'post',
- data: params
+ method: 'get',
+ params: params
})
}
-export function userLogout (params) {
- // return request({
- // url: userApi.logout,
- // method: 'post',
- // data: params
- // })
-}
export function getInfo (params) {
return request({
url: userApi.getInfo,
@@ -73,9 +61,16 @@ export function getInfo (params) {
data: params
})
}
-export function userUpdateEnabled (params) {
+export function userOwnRole (params) {
return request({
- url: userApi.updateEnabled,
+ url: userApi.ownRole,
+ method: 'post',
+ params: params
+ })
+}
+export function userGrantRole (params) {
+ return request({
+ url: userApi.grantRole,
method: 'post',
data: params
})
@@ -87,3 +82,10 @@ export function passwordUpdate (params) {
data: params
})
}
+export function passwordReset (params) {
+ return request({
+ url: userPasswordApi.reset,
+ method: 'post',
+ data: params
+ })
+}
diff --git a/src/components/Table/index.js b/src/components/Table/index.js
index 7b1b717..94494c2 100644
--- a/src/components/Table/index.js
+++ b/src/components/Table/index.js
@@ -162,6 +162,10 @@ export default {
pageSize: (pagination && pagination.pageSize) ||
this.localPagination.pageSize
}) || false
+ // 后端数据rows为null保存修复
+ if (r.rows == null) {
+ r.rows = []
+ }
// 为防止删除数据后导致页面当前页面数据长度为 0 ,自动翻页到上一页
if (r.rows.length === 0 && this.showPagination && this.localPagination.current > 1) {
this.localPagination.current--
@@ -178,7 +182,13 @@ export default {
// } catch (e) {
// this.localPagination = false
// }
- this.localDataSource = r.rows // 返回结果中的数组数据
+ // 返回结果中的数组数据
+ if (this.showPagination === false) {
+ // 不分页的直接是在data中,我们在界面中直接就是返回了data
+ this.localDataSource = r
+ } else {
+ this.localDataSource = r.rows
+ }
this.localLoading = false
})
}
diff --git a/src/core/lazy_use.js b/src/core/lazy_use.js
index 709faa4..8bdd5a7 100644
--- a/src/core/lazy_use.js
+++ b/src/core/lazy_use.js
@@ -45,7 +45,9 @@ import {
Descriptions,
message,
notification,
- space
+ space,
+ Tree,
+ TreeSelect
} from 'ant-design-vue'
import Viser from 'viser-vue'
@@ -99,6 +101,8 @@ Vue.use(Result)
Vue.use(Statistic)
Vue.use(Descriptions)
Vue.use(space)
+Vue.use(Tree)
+Vue.use(TreeSelect)
Vue.prototype.$confirm = Modal.confirm
Vue.prototype.$message = message
diff --git a/src/utils/request.js b/src/utils/request.js
index 1150477..69201e9 100644
--- a/src/utils/request.js
+++ b/src/utils/request.js
@@ -49,7 +49,7 @@ const errorHandler = (error) => {
request.interceptors.request.use(config => {
// const token = storage.get(ACCESS_TOKEN)
// 由于登录接口待联调,token使用默认值
- const token = 'eyJhbGciOiJIUzUxMiJ9.eyJsb2dpbl91c2VyX2tleSI6ImU1MmNhNTQ4LThmYmMtNGUyNC1iZjZjLWEzZjgwNDAwMDNiMCJ9._j_AHCd4I_PTWk4mt9euUzlABBoiqsNAIjVGrFJPWv8ZyoqgH9JPs2QFHtoj1Vly8cgtOri8X0ylbttglCcUQQ'
+ const token = 'eyJhbGciOiJIUzUxMiJ9.eyJsb2dpbl91c2VyX2tleSI6ImY1ODZhMzc5LWQ3MjYtNDYxZS04MmFiLTUyNWRhNzI1ZjBhZCJ9.4AsSbHaR9W7dz1wBJ-u6-dL8VS5Su12eoXPnFriX-nn-CIiOMtSctMciECijN4F7uYrzUU8KP8jwkCJbPlMaQA'
// 如果 token 存在,让每个请求携带自定义 token 请根据实际情况自行修改
if (token) {
config.headers[ACCESS_TOKEN] = token
diff --git a/src/utils/util.js b/src/utils/util.js
index 274ff18..b801bce 100644
--- a/src/utils/util.js
+++ b/src/utils/util.js
@@ -65,3 +65,23 @@ export function removeLoadingAnimate (id = '', timeout = 1500) {
document.body.removeChild(document.getElementById(id))
}, timeout)
}
+
+export function listToTree (list, tree, parentId) {
+ list.forEach(item => {
+ if (item.pid === parentId) {
+ const child = {
+ ...item,
+ scopedSlots: {
+ icon: 'icon'
+ },
+ children: []
+ }
+ listToTree(list, child.children, item.id)
+ if (child.children.length <= 0) {
+ delete child.children
+ }
+ tree.push(child)
+ }
+ })
+ return tree
+}
diff --git a/src/views/filterMap/menuTypeMap.js b/src/views/filterMap/menuTypeMap.js
new file mode 100644
index 0000000..93bbc91
--- /dev/null
+++ b/src/views/filterMap/menuTypeMap.js
@@ -0,0 +1,5 @@
+export const menuTypeMap = {
+ 0: '目录',
+ 1: '菜单',
+ 2: '按钮'
+}
diff --git a/src/views/filterMap/sexMap.js b/src/views/filterMap/sexMap.js
new file mode 100644
index 0000000..7cfea1e
--- /dev/null
+++ b/src/views/filterMap/sexMap.js
@@ -0,0 +1,5 @@
+export const sexMap = {
+ 0: '未知',
+ 1: '男',
+ 2: '女'
+}
diff --git a/src/views/list/TableList.vue b/src/views/list/TableList.vue
index 986eb2b..ba58a04 100644
--- a/src/views/list/TableList.vue
+++ b/src/views/list/TableList.vue
@@ -303,6 +303,7 @@ export default {
},
onSelectChange (selectedRowKeys, selectedRows) {
this.selectedRowKeys = selectedRowKeys
+ console.log(this.selectedRowKeys.length)
this.selectedRows = selectedRows
},
toggleAdvanced () {
diff --git a/src/views/security/maps/map.js b/src/views/security/maps/map.js
deleted file mode 100644
index d270ca6..0000000
--- a/src/views/security/maps/map.js
+++ /dev/null
@@ -1,5 +0,0 @@
-export const typeMap = {
- 'CORPORATION': '公司',
- 'MALL': '门店',
- 'STORE': '店铺'
-}
diff --git a/src/views/security/menu/MenuForm.vue b/src/views/security/menu/MenuForm.vue
new file mode 100644
index 0000000..d75067d
--- /dev/null
+++ b/src/views/security/menu/MenuForm.vue
@@ -0,0 +1,388 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 目录
+ 菜单
+ 按钮
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/views/security/menu/MenuForm2.vue b/src/views/security/menu/MenuForm2.vue
new file mode 100644
index 0000000..54417f7
--- /dev/null
+++ b/src/views/security/menu/MenuForm2.vue
@@ -0,0 +1,372 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 目录
+ 菜单
+ 按钮
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/views/security/menu/MenuList.vue b/src/views/security/menu/MenuList.vue
new file mode 100644
index 0000000..0fe4157
--- /dev/null
+++ b/src/views/security/menu/MenuList.vue
@@ -0,0 +1,159 @@
+
+
+
+
+
+
+
+
+
+
+
+
+ 查询
+ {queryParam = {}, this.loadData()}">重置
+
+
+
+
+
+
+
+
+
+
+ {{ record.type | typeFilter }}
+
+
+ {{ record.type | typeFilter }}
+
+
+ {{ record.type | typeFilter }}
+
+
+
+
+ 编辑
+
+ handleDel(record)">
+ 删除
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/views/security/modules/CreateForm.vue b/src/views/security/modules/CreateForm.vue
deleted file mode 100644
index f5e76a5..0000000
--- a/src/views/security/modules/CreateForm.vue
+++ /dev/null
@@ -1,83 +0,0 @@
-
-
-
- 取消
- 保存
-
-
-
-
-
-
-
-
-
-
diff --git a/src/views/security/modules/UserDetail.vue b/src/views/security/modules/UserDetail.vue
deleted file mode 100644
index 35c351b..0000000
--- a/src/views/security/modules/UserDetail.vue
+++ /dev/null
@@ -1,48 +0,0 @@
-
-
-
- {{ model.name }}
- {{ model.code }}
- {{ model.createdAt | moment('YYYY-MM-DD') }}
- {{ model.updatedAt }}
- {{ model.status | statusFilter }}
- {{ model.sortOrder }}
-
-
-
-
-
diff --git a/src/views/security/resource/ResourceTree.vue b/src/views/security/resource/ResourceTree.vue
deleted file mode 100644
index 46fb64a..0000000
--- a/src/views/security/resource/ResourceTree.vue
+++ /dev/null
@@ -1,186 +0,0 @@
-
-
-
-
-
-
-
-
-
-
- 编辑
-
-
-
-
- 更多
-
-
-
- 详情
-
-
- 禁用
-
-
- 删除
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/src/views/security/resource/modules/OrgModal.vue b/src/views/security/resource/modules/OrgModal.vue
deleted file mode 100644
index d83955c..0000000
--- a/src/views/security/resource/modules/OrgModal.vue
+++ /dev/null
@@ -1,100 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/src/views/security/resource/modules/RoleModal.vue b/src/views/security/resource/modules/RoleModal.vue
deleted file mode 100644
index 37bcd2a..0000000
--- a/src/views/security/resource/modules/RoleModal.vue
+++ /dev/null
@@ -1,147 +0,0 @@
-
-
-
-
-
-
- Finished
-
- This is a description.
-
-
-
-
-
-
-
-
-
-
diff --git a/src/views/security/role/RoleForm.vue b/src/views/security/role/RoleForm.vue
new file mode 100644
index 0000000..a5783e2
--- /dev/null
+++ b/src/views/security/role/RoleForm.vue
@@ -0,0 +1,117 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/views/security/role/RoleList.vue b/src/views/security/role/RoleList.vue
index 5901776..f82e0db 100644
--- a/src/views/security/role/RoleList.vue
+++ b/src/views/security/role/RoleList.vue
@@ -1,168 +1,129 @@
-
-
-
-
-
-
-
-
-
-
-
-
- 全部
- {{ item }}
-
-
-
-
- 查询
- {queryParam = {}, handleFefresh()}">重置
-
-
- 新增
-
-
-
-
-
- {{record.createdAt | moment}}
-
-
-
-
- 修改
-
- handleDelete(record)">
- 删除
-
-
- 详情
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+ 查询
+ {queryParam = {}, this.loadData()}">重置
+
+
+
+
+
+
+
+
+
+ 编辑
+
+
+
+ 更多
+
+
+
+ 授权菜单
+
+
+ handleDel(record)">
+ 删除
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/views/security/role/RoleMenuForm.vue b/src/views/security/role/RoleMenuForm.vue
new file mode 100644
index 0000000..c5735c6
--- /dev/null
+++ b/src/views/security/role/RoleMenuForm.vue
@@ -0,0 +1,186 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/views/security/role/modules/CreateForm.vue b/src/views/security/role/modules/CreateForm.vue
deleted file mode 100644
index e6ce643..0000000
--- a/src/views/security/role/modules/CreateForm.vue
+++ /dev/null
@@ -1,116 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/src/views/security/role/modules/RoleDetail.vue b/src/views/security/role/modules/RoleDetail.vue
deleted file mode 100644
index 28a7e89..0000000
--- a/src/views/security/role/modules/RoleDetail.vue
+++ /dev/null
@@ -1,46 +0,0 @@
-
-
-
- {{ model.name }}
- {{ model.description }}
- {{ model.createdAt | moment }}
- {{ model.updatedAt | moment }}
-
-
-
-
-
diff --git a/src/views/security/user/UserForm.vue b/src/views/security/user/UserForm.vue
new file mode 100644
index 0000000..62b05f3
--- /dev/null
+++ b/src/views/security/user/UserForm.vue
@@ -0,0 +1,282 @@
+
+
+
+ 基本信息
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 男
+ 女
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/views/security/user/UserList.vue b/src/views/security/user/UserList.vue
index 1d7379a..7f86219 100644
--- a/src/views/security/user/UserList.vue
+++ b/src/views/security/user/UserList.vue
@@ -1,152 +1,188 @@
-
+
-
+
-
-
+
+
-
-
- 全部
- {{ item }}
-
+
+
- 查询
- {queryParam = {}, handleFefresh()}">重置
+
+
+
-
- 新增
+
+ 查询
+ queryParam = {}">重置
+
+
+
-
-
-
-
- 修改
+
+ {{ record.sex | sexFilter }}
+
+
+ 编辑
- 详情
-
- 修改密码
-
+
+
+ 更多
+
+
+
+ resetPwd(record)">
+ 重置密码
+
+
+
+ 授权角色
+
+
+ singleDelete(record)">
+ 删除
+
+
+
+
+
-
-
+
+
-
+
-
+
diff --git a/src/views/security/user/UserRoleForm.vue b/src/views/security/user/UserRoleForm.vue
new file mode 100644
index 0000000..2e26f9c
--- /dev/null
+++ b/src/views/security/user/UserRoleForm.vue
@@ -0,0 +1,114 @@
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/views/security/user/modules/CreateForm.vue b/src/views/security/user/modules/CreateForm.vue
deleted file mode 100644
index 3de5390..0000000
--- a/src/views/security/user/modules/CreateForm.vue
+++ /dev/null
@@ -1,127 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/src/views/security/user/modules/UserDetail.vue b/src/views/security/user/modules/UserDetail.vue
deleted file mode 100644
index 851792f..0000000
--- a/src/views/security/user/modules/UserDetail.vue
+++ /dev/null
@@ -1,56 +0,0 @@
-
-
-
- {{ model.username }}
- {{ model.realName }}
- {{ model.createdAt | moment }}
- {{ model.updatedAt | moment }}
- {{ model.enabled | statusFilter }}
- {{ model.mobile }}
- {{ model.orgName }}
- {{ model.type | typeFilter}}
- {{ model.address }}
- {{ model.email }}
-
-
-
-
-
diff --git a/src/views/status/enabledMap.js b/src/views/status/enabledMap.js
deleted file mode 100644
index 0c46776..0000000
--- a/src/views/status/enabledMap.js
+++ /dev/null
@@ -1,4 +0,0 @@
-export const enabledMap = {
- 'false': '停用',
- 'true': '启用'
-}
diff --git a/src/views/status/statusMap.js b/src/views/status/statusMap.js
deleted file mode 100644
index 5ce705e..0000000
--- a/src/views/status/statusMap.js
+++ /dev/null
@@ -1,4 +0,0 @@
-export const statusMap = {
- '0': '停用',
- '1': '启用'
-}