diff --git a/README.en.md b/README.en.md
new file mode 100644
index 0000000..71b754b
--- /dev/null
+++ b/README.en.md
@@ -0,0 +1,36 @@
+# 大娃-VUE
+
+#### Description
+大娃前端
+
+#### Software Architecture
+Software architecture description
+
+#### Installation
+
+1. xxxx
+2. xxxx
+3. xxxx
+
+#### Instructions
+
+1. xxxx
+2. xxxx
+3. xxxx
+
+#### Contribution
+
+1. Fork the repository
+2. Create Feat_xxx branch
+3. Commit your code
+4. Create Pull Request
+
+
+#### Gitee Feature
+
+1. You can use Readme\_XXX.md to support different languages, such as Readme\_en.md, Readme\_zh.md
+2. Gitee blog [blog.gitee.com](https://blog.gitee.com)
+3. Explore open source project [https://gitee.com/explore](https://gitee.com/explore)
+4. The most valuable open source project [GVP](https://gitee.com/gvp)
+5. The manual of Gitee [https://gitee.com/help](https://gitee.com/help)
+6. The most popular members [https://gitee.com/gitee-stars/](https://gitee.com/gitee-stars/)
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/config/router.config.js b/src/config/router.config.js
index ebbbd14..b128734 100644
--- a/src/config/router.config.js
+++ b/src/config/router.config.js
@@ -52,9 +52,9 @@ export const asyncRouterMap = [
meta: { title: '角色管理', keepAlive: true }
},
{
- path: '/security/resource',
- name: 'SecurityResource',
- component: () => import('@/views/security/resource/ResourceTree'),
+ path: '/security/menu',
+ name: 'SecurityMenu',
+ component: () => import('@/views/security/menu/MenuList'),
meta: { title: '菜单管理', keepAlive: true }
},
{
@@ -84,24 +84,24 @@ export const asyncRouterMap = [
component: () => import('@/views/project/ProjectList'),
meta: { title: '自主项目', keepAlive: true, permission: ['form'] },
},
+ // {
+ // path: '/project/add',
+ // name: 'ProjectForm',
+ // component: () => import('@/views/project/ProjectForm'),
+ // meta: { title: '新增项目', keepAlive: true, permission: ['form'], show: false }
+ // },
{
- path: '/project/add',
- name: 'ProjectForm',
- component: () => import('@/views/project/ProjectForm'),
- meta: { title: '新增项目', keepAlive: true, permission: ['form'], show: false }
- },
- {
- path: '/project/addClass',
- name: 'addClass',
- component: () => import('@/views/project/AddClass'),
- meta: { title: '新增种类', keepAlive: true, permission: ['form'] }
- },
- {
- path: '/project/unitSelect',
- name: 'unitSelect',
- component: () => import('@/views/project/ProjectUnitSelect'),
- meta: { title: '选择单位', keepAlive: true, permission: ['form'] }
+ path: '/project/projectStepForm',
+ name: 'projectStepForm',
+ component: () => import('@/views/project/form/ProjectStepForm'),
+ meta: { title: '新增项目-分布', keepAlive: true, permission: ['form'] }
},
+ // {
+ // path: '/project/unitSelect',
+ // name: 'unitSelect',
+ // component: () => import('@/views/project/ProjectUnitSelect'),
+ // meta: { title: '选择单位', keepAlive: true, permission: ['form'] }
+ // },
{
path: '/form/step-form',
name: 'StepForm',
diff --git a/src/core/lazy_use.js b/src/core/lazy_use.js
index 45c00e5..5dd1817 100644
--- a/src/core/lazy_use.js
+++ b/src/core/lazy_use.js
@@ -48,7 +48,8 @@ import {
space,
Transfer,
Tree,
- Empty
+ Empty,
+ TreeSelect
} from 'ant-design-vue'
import Viser from 'viser-vue'
@@ -105,6 +106,7 @@ Vue.use(space)
Vue.use(Tree)
Vue.use(Transfer)
Vue.use(Empty)
+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..aa5f63f 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.eyJsb2dpbl91c2VyX2tleSI6IjIwMzU2Nzg5LWYyOGEtNDYxYi1iNTRhLTM2MWYzZjdhZjg2NSJ9.4vGoaj9KK8aYp9gEz2cnRM8MBWPrqIo8O5wNgbYK4-JUE3naeEuejjr3JfZ57TLbMYWqG1MkJ0kAT-2GMgreGQ'
// 如果 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/project/ProjectForm.vue b/src/views/project/ProjectForm.vue
deleted file mode 100644
index 12eaf19..0000000
--- a/src/views/project/ProjectForm.vue
+++ /dev/null
@@ -1,131 +0,0 @@
-
-
-
-
-
-
-
-
- Zone one
- Zone two
-
-
-
-
- 必修课
- 选修课
-
-
-
-
- 培训
- 考试
- 培训-练习
- 培训-练习-考试
-
-
-
-
- {{ item.name }}
-
-
-
-
-
-
-
- -
-
-
-
-
-
-
-
-
-
- -
-
-
-
-
-
-
-
-
-
- -
-
-
-
-
-
-
-
-
-
-
- 补考次数:
-
-
-
-
- 随机补考
-
-
-
-
-
- 允许
- 不允许
-
-
-
-
-
-
- 下一步
- 取消
-
-
-
-
-
diff --git a/src/views/project/ProjectList.vue b/src/views/project/ProjectList.vue
index c8af6b3..d8bd0cc 100644
--- a/src/views/project/ProjectList.vue
+++ b/src/views/project/ProjectList.vue
@@ -75,7 +75,7 @@
import moment from 'moment'
import { STable } from '@/components'
import { getProjectList } from '@/api/project/project'
-import ProjectForm from '@/views/project/ProjectForm'
+import ProjectForm from '@/views/project/form/ProjectForm'
import router from '@/router/index.js'
export default {
@@ -107,7 +107,6 @@ export default {
{
title: '项目状态',
dataIndex: 'status',
- key: 'status',
customRender: (text, record, index) => {
//项目状态 1-未发布 2-未开始 3-进行中 4-已完成 5-已中止
if (text == 1) {
@@ -132,7 +131,6 @@ export default {
{
title: '操作',
width: 200,
- key: 'status',
align: 'center',
scopedSlots: { customRender: 'action' },
},
diff --git a/src/views/project/form/ProjectCourseSelect.vue b/src/views/project/form/ProjectCourseSelect.vue
new file mode 100644
index 0000000..f542728
--- /dev/null
+++ b/src/views/project/form/ProjectCourseSelect.vue
@@ -0,0 +1,38 @@
+
+
+
课程选择
+
+
+
+
+
\ No newline at end of file
diff --git a/src/views/project/form/ProjectForm.vue b/src/views/project/form/ProjectForm.vue
new file mode 100644
index 0000000..6a4c936
--- /dev/null
+++ b/src/views/project/form/ProjectForm.vue
@@ -0,0 +1,188 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Zone one
+
+ 新增种类
+
+
+
+
+
+ 必修课
+ 选修课
+
+
+
+
+
+
+ 培训
+ 考试
+ 培训-练习
+ 培训-练习-考试
+
+
+
+
+
+
+ {{ item.name }}
+
+
+
+
+
+
+
+
+
+ -
+
+
+
+
+
+
+
+
+
+
+
+ -
+
+
+
+
+
+
+
+
+
+
+
+ -
+
+
+
+
+
+
+
+
+
+
+
+
+ 补考次数:
+
+
+
+
+ 随机补考
+
+
+
+
+
+
+
+ 允许
+ 不允许
+
+
+
+
+
+
+
+
+
+
+ 下一步
+ 取消
+
+
+
+
+
+
+
diff --git a/src/views/project/form/ProjectStepForm.vue b/src/views/project/form/ProjectStepForm.vue
new file mode 100644
index 0000000..80df7b0
--- /dev/null
+++ b/src/views/project/form/ProjectStepForm.vue
@@ -0,0 +1,70 @@
+
+
+
+
+ 将一个冗长或用户不熟悉的表单任务分成多个步骤,指导用户完成。
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/views/project/ProjectUnitSelect.vue b/src/views/project/form/ProjectUnitSelect.vue
similarity index 92%
rename from src/views/project/ProjectUnitSelect.vue
rename to src/views/project/form/ProjectUnitSelect.vue
index 6c7318c..9101380 100644
--- a/src/views/project/ProjectUnitSelect.vue
+++ b/src/views/project/form/ProjectUnitSelect.vue
@@ -1,7 +1,7 @@
-
+
下一步
取消
@@ -111,7 +111,7 @@ function handleTreeData(data, targetKeys = []) {
export default {
data() {
return {
- form: {},
+ form: this.$form.createForm(this),
targetKeys: [],
dataSource: transferDataSource,
@@ -131,6 +131,18 @@ export default {
},
},
methods: {
+ toNext() {
+ console.log('toNext', this.form)
+ const {
+ form: { validateFields },
+ } = this
+ // 先校验,通过表单校验后,才进入下一步
+ validateFields((err, values) => {
+ if (!err) {
+ this.$emit('nextStep')
+ }
+ })
+ },
onChange(targetKeys) {
console.log('Target Keys:', targetKeys)
this.targetKeys = targetKeys
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': '启用'
-}