diff --git a/src/api/app/approle.ts b/src/api/app/approle.ts new file mode 100644 index 00000000..92d241e3 --- /dev/null +++ b/src/api/app/approle.ts @@ -0,0 +1,64 @@ +import request from "/@/utils/request"; + +export function fetchList(query: any) { + return request({ + url: '/admin/approle/page', + method: 'get', + params: query + }) +} + +export function list() { + return request({ + url: '/admin/approle/list', + method: 'get' + }) +} + +export function addObj(obj: any) { + return request({ + url: '/admin/approle', + method: 'post', + data: obj + }) +} + +export function getObj(id: string) { + return request({ + url: '/admin/approle/' + id, + method: 'get' + }) +} + +export function delObj(id: string) { + return request({ + url: '/admin/approle/' + id, + method: 'delete' + }) +} + +export function putObj(obj: any) { + return request({ + url: '/admin/approle', + method: 'put', + data: obj + }) +} + +export function fetchRoleTree(roleId: string) { + return request({ + url: '/admin/appmenu/tree/' + roleId, + method: 'get' + }) +} + +export function permissionUpd(roleId: string, menuIds: string) { + return request({ + url: '/admin/approle/menu', + method: 'put', + data: { + roleId: roleId, + menuIds: menuIds + } + }) +} diff --git a/src/api/app/approlemenu.ts b/src/api/app/approlemenu.ts new file mode 100644 index 00000000..44198478 --- /dev/null +++ b/src/api/app/approlemenu.ts @@ -0,0 +1,39 @@ +import request from "/@/utils/request"; + +export function fetchList(query: any) { + return request({ + url: '/admin/approlemenu/page', + method: 'get', + params: query + }) +} + +export function addObj(obj: any) { + return request({ + url: '/admin/approlemenu', + method: 'post', + data: obj + }) +} + +export function getObj(id:string) { + return request({ + url: '/admin/approlemenu/' + id, + method: 'get' + }) +} + +export function delObj(id:string) { + return request({ + url: '/admin/approlemenu/' + id, + method: 'delete' + }) +} + +export function putObj(obj: string) { + return request({ + url: '/admin/approlemenu', + method: 'put', + data: obj + }) +} diff --git a/src/api/app/appuser.ts b/src/api/app/appuser.ts new file mode 100644 index 00000000..aaa1ce38 --- /dev/null +++ b/src/api/app/appuser.ts @@ -0,0 +1,39 @@ +import request from "/@/utils/request" + +export function fetchList(query: any) { + return request({ + url: '/admin/appuser/page', + method: 'get', + params: query + }) +} + +export function addObj(obj: any) { + return request({ + url: '/admin/appuser', + method: 'post', + data: obj + }) +} + +export function getObj(id: string) { + return request({ + url: '/admin/appuser/' + id, + method: 'get' + }) +} + +export function delObj(id: string) { + return request({ + url: '/admin/appuser/' + id, + method: 'delete' + }) +} + +export function putObj(obj: any) { + return request({ + url: '/admin/appuser', + method: 'put', + data: obj + }) +} diff --git a/src/api/app/appuserrole.ts b/src/api/app/appuserrole.ts new file mode 100644 index 00000000..46b49fa7 --- /dev/null +++ b/src/api/app/appuserrole.ts @@ -0,0 +1,39 @@ +import request from "/@/utils/request" + +export function fetchList(query: any) { + return request({ + url: '/admin/appuserrole/page', + method: 'get', + params: query + }) +} + +export function addObj(obj: any) { + return request({ + url: '/admin/appuserrole', + method: 'post', + data: obj + }) +} + +export function getObj(id: string) { + return request({ + url: '/admin/appuserrole/' + id, + method: 'get' + }) +} + +export function delObj(id: string) { + return request({ + url: '/admin/appuserrole/' + id, + method: 'delete' + }) +} + +export function putObj(obj: any) { + return request({ + url: '/admin/appuserrole', + method: 'put', + data: obj + }) +} diff --git a/src/views/app/appmenu/form.vue b/src/views/app/appmenu/form.vue index 54998a55..b419c1d6 100644 --- a/src/views/app/appmenu/form.vue +++ b/src/views/app/appmenu/form.vue @@ -39,7 +39,7 @@ - + 显示 隐藏 diff --git a/src/views/app/appmenu/i18n/en.ts b/src/views/app/appmenu/i18n/en.ts index fb074e10..2ae2254e 100644 --- a/src/views/app/appmenu/i18n/en.ts +++ b/src/views/app/appmenu/i18n/en.ts @@ -5,7 +5,7 @@ export default { sortOrder: 'sortOrder', path: 'path', menuType: 'menuType', - keepAlive: 'keepAlive', + visible: 'visible', permission: 'permission', inputNameTip: 'input name', parentId: 'parent menu' diff --git a/src/views/app/appmenu/i18n/zh-cn.ts b/src/views/app/appmenu/i18n/zh-cn.ts index 08335e86..c5644cd4 100644 --- a/src/views/app/appmenu/i18n/zh-cn.ts +++ b/src/views/app/appmenu/i18n/zh-cn.ts @@ -5,7 +5,7 @@ export default { sortOrder: '排序', path: '路由路径', menuType: '菜单类型', - keepAlive: '缓冲', + visible: '显示状态', permission: '权限标识', inputNameTip: '请输入菜单名称', parentId: '上级菜单' diff --git a/src/views/app/appmenu/index.vue b/src/views/app/appmenu/index.vue index 8794b12a..d7a2ed16 100644 --- a/src/views/app/appmenu/index.vue +++ b/src/views/app/appmenu/index.vue @@ -19,15 +19,14 @@ - + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/src/views/app/approle/i18n/en.ts b/src/views/app/approle/i18n/en.ts new file mode 100644 index 00000000..bdd51ee5 --- /dev/null +++ b/src/views/app/approle/i18n/en.ts @@ -0,0 +1,8 @@ +export default { + approle: { + index: 'index', + roleName: 'roleName', + inputRoleNameTip: 'input roleName', + permissionTip: 'grant', + } +} diff --git a/src/views/app/approle/i18n/zh-cn.ts b/src/views/app/approle/i18n/zh-cn.ts new file mode 100644 index 00000000..7eec22ef --- /dev/null +++ b/src/views/app/approle/i18n/zh-cn.ts @@ -0,0 +1,8 @@ +export default { + approle: { + index: '序号', + roleName: '角色名', + inputRoleNameTip: '请输入角色名称', + permissionTip: '授权', + } +} diff --git a/src/views/app/approle/index.vue b/src/views/app/approle/index.vue new file mode 100644 index 00000000..9b4dc534 --- /dev/null +++ b/src/views/app/approle/index.vue @@ -0,0 +1,148 @@ + + + diff --git a/src/views/app/approle/permession.vue b/src/views/app/approle/permession.vue new file mode 100644 index 00000000..6a91a48c --- /dev/null +++ b/src/views/app/approle/permession.vue @@ -0,0 +1,112 @@ + + + + + diff --git a/src/views/app/appuser/form.vue b/src/views/app/appuser/form.vue new file mode 100644 index 00000000..41555eef --- /dev/null +++ b/src/views/app/appuser/form.vue @@ -0,0 +1,209 @@ + + + diff --git a/src/views/app/appuser/i18n/en.ts b/src/views/app/appuser/i18n/en.ts new file mode 100644 index 00000000..69a1a406 --- /dev/null +++ b/src/views/app/appuser/i18n/en.ts @@ -0,0 +1,20 @@ +export default { + appuser: { + index: 'index', + username: 'username', + name: 'name', + phone: 'phone', + post: 'post', + role: 'role', + lockFlag: 'lockFlag', + createTime: 'createTime', + password: 'password', + dept: 'dept', + email: 'email', + nickname: 'nickname', + inputUsernameTip: 'input username', + inputPhoneTip: 'input phone', + inputNameTip: 'input name', + importUserTip: 'user import' + } +} diff --git a/src/views/app/appuser/i18n/zh-cn.ts b/src/views/app/appuser/i18n/zh-cn.ts new file mode 100644 index 00000000..3d7691a4 --- /dev/null +++ b/src/views/app/appuser/i18n/zh-cn.ts @@ -0,0 +1,21 @@ +export default { + appuser: { + index: '序号', + username: '用户名', + name: '姓名', + phone: '手机号', + post: '岗位', + role: '角色', + lockFlag: '状态', + createTime: '创建时间', + password: '密码', + dept: '部门', + email: '邮箱', + nickname: '昵称', + inputUsernameTip: '请输入用户名', + inputPhoneTip: '请输入手机号', + inputNameTip: '请输入姓名', + importUserTip: '用户导入' + }, + +} diff --git a/src/views/app/appuser/index.vue b/src/views/app/appuser/index.vue new file mode 100644 index 00000000..194ea85b --- /dev/null +++ b/src/views/app/appuser/index.vue @@ -0,0 +1,166 @@ + + +