Šī revīzija ir iekļauta:
朱文强 2022-03-11 09:28:10 +08:00
vecāks 693366e60b
revīzija d8e72ee0d7
6 mainīti faili ar 39 papildinājumiem un 49 dzēšanām

Parādīt failu

@ -1,7 +1,7 @@
/*
* @Date: 2020-12-28 20:46:53
* @LastEditors: zwq
* @LastEditTime: 2021-04-25 14:52:11
* @LastEditTime: 2022-03-11 09:25:00
* @FilePath: \basic-admin\src\api\menu.js
* @Description: 菜单api接口定义
*/
@ -10,7 +10,7 @@ import request from '@/utils/request'
// 获取菜单列表
export function getMenuList(data) {
return request({
url: '/upms/menu/list',
url: '/api/upms/menu/list',
method: 'post',
data
})
@ -19,7 +19,7 @@ export function getMenuList(data) {
// 获取菜单详情
export function getMenuDetail(id) {
return request({
url: '/upms/menu/get',
url: '/api/upms/menu/get',
method: 'post',
data: { id }
})
@ -28,7 +28,7 @@ export function getMenuDetail(id) {
// 新增菜单
export function addMenu(data) {
return request({
url: '/upms/menu/add',
url: '/api/upms/menu/add',
method: 'post',
data
})
@ -37,7 +37,7 @@ export function addMenu(data) {
// 删除菜单
export function delMenu(id) {
return request({
url: '/upms/menu/delete',
url: '/api/upms/menu/delete',
method: 'post',
data: { id }
})
@ -46,7 +46,7 @@ export function delMenu(id) {
// 启停菜单
export function enableMenu(data) {
return request({
url: '/upms/menu/enabled',
url: '/api/upms/menu/enabled',
method: 'post',
data
})
@ -55,7 +55,7 @@ export function enableMenu(data) {
// 修改菜单
export function editMenu(data) {
return request({
url: '/upms/menu/update',
url: '/api/upms/menu/update',
method: 'post',
data
})
@ -64,7 +64,7 @@ export function editMenu(data) {
// 菜单-角色关联授权
export function saveRoleMenu(data) {
return request({
url: '/upms/menu/saveRoleMenu',
url: '/api/upms/menu/saveRoleMenu',
method: 'post',
data
})
@ -73,7 +73,7 @@ export function saveRoleMenu(data) {
// 菜单-角色关联获取
export function listByRole(id) {
return request({
url: '/upms/menu/listByRole',
url: '/api/upms/menu/listByRole',
method: 'post',
data: { id }
})

Parādīt failu

@ -1,7 +1,7 @@
/*
* @Date: 2021-01-04 17:34:38
* @LastEditors: zwq
* @LastEditTime: 2021-04-12 14:23:30
* @LastEditTime: 2022-03-11 09:25:05
* @FilePath: \basic-admin\src\api\org.js
* @Description: 框架基础模块组织结构
*/
@ -10,7 +10,7 @@ import request from '@/utils/request'
// 获取组织结构列表
export function getOrgList(data) {
return request({
url: '/upms/org/page',
url: '/api/upms/org/page',
method: 'post',
data
})
@ -18,7 +18,7 @@ export function getOrgList(data) {
export function getOrgDetail(id) { // 获取组织结构单条数据
return request({
url: '/upms/org/get',
url: '/api/upms/org/get',
method: 'post',
data: { id }
})
@ -26,7 +26,7 @@ export function getOrgDetail(id) { // 获取组织结构单条数据
// export function getOrgAllList(data) {
// return request({
// url: '/upms/org/list',
// url: '/api/upms/org/list',
// method: 'post',
// data
// })
@ -35,7 +35,7 @@ export function getOrgDetail(id) { // 获取组织结构单条数据
// 添加组织结构
export function addOrg(data) {
return request({
url: '/upms/org/add',
url: '/api/upms/org/add',
method: 'post',
data
})
@ -44,7 +44,7 @@ export function addOrg(data) {
// 修改组织
export function editOrg(data) {
return request({
url: '/upms/org/update',
url: '/api/upms/org/update',
method: 'post',
data
})
@ -53,7 +53,7 @@ export function editOrg(data) {
// 删除组织结构
export function delOrg(id) {
return request({
url: '/upms/org/delete',
url: '/api/upms/org/delete',
method: 'post',
data: { id }
})

Parādīt failu

@ -1,7 +1,7 @@
/*
* @Date: 2020-12-14 09:07:03
* @LastEditors: zwq
* @LastEditTime: 2021-07-21 15:48:05
* @LastEditTime: 2022-03-11 09:25:08
* @FilePath: \basic-admin\src\api\role.js
* @Description: 角色权限api接口定义
*/
@ -10,7 +10,7 @@ import request from '@/utils/request'
// 获取角色详细信息
export function getRoleInfo(data) {
return request({
url: `/upms/role/get`,
url: `/api/upms/role/get`,
method: 'post',
data
})
@ -18,7 +18,7 @@ export function getRoleInfo(data) {
export function RoleCode() { // 获取code
return request({
url: '/upms/role/get-code',
url: '/api/upms/role/get-code',
method: 'post'
})
}
@ -26,7 +26,7 @@ export function RoleCode() { // 获取code
// 获取角色列表
export function getRoleList(data) {
return request({
url: '/upms/role/list',
url: '/api/upms/role/list',
method: 'post',
data
})
@ -35,7 +35,7 @@ export function getRoleList(data) {
// 添加角色
export function addRole(data) {
return request({
url: '/upms/role/add',
url: '/api/upms/role/add',
method: 'post',
data
})
@ -44,7 +44,7 @@ export function addRole(data) {
// 修改角色
export function updateRole(data) {
return request({
url: '/upms/role/update',
url: '/api/upms/role/update',
method: 'post',
data
})
@ -53,7 +53,7 @@ export function updateRole(data) {
// 删除角色
export function deleteRole(data) {
return request({
url: `/upms/role/delete`,
url: `/api/upms/role/delete`,
method: 'post',
data
})
@ -62,7 +62,7 @@ export function deleteRole(data) {
// 启停角色
export function enableRole(data) {
return request({
url: `/upms/role/enabled`,
url: `/api/upms/role/enabled`,
method: 'post',
data
})
@ -71,7 +71,7 @@ export function enableRole(data) {
// 用户-角色关联授权
export function saveUserRole(data) {
return request({
url: '/upms/role/saveUserRole',
url: '/api/upms/role/saveUserRole',
method: 'post',
data
})
@ -80,7 +80,7 @@ export function saveUserRole(data) {
// 用户-角色关联获取
export function listByUser(id) {
return request({
url: '/upms/role/listByUser',
url: '/api/upms/role/listByUser',
method: 'post',
data: { id }
})

Parādīt failu

@ -1,7 +1,7 @@
/*
* @Date: 2020-12-14 09:07:03
* @LastEditors: zwq
* @LastEditTime: 2022-01-11 15:45:54
* @LastEditTime: 2022-03-11 09:25:19
* @FilePath: \basic-admin\src\api\user.js
* @Description: 用户管理 & 登录用户的相关api接口定义
*/
@ -38,7 +38,7 @@ export function getUserInfo(data) {
// 修改当前用户密码
export function editUserPW(data) {
return request({
url: '/upms/user/modifyPassword',
url: '/api/upms/user/modifyPassword',
method: 'post',
data
})
@ -47,17 +47,17 @@ export function editUserPW(data) {
// 当前用户 找回密码
export function findUserPW(data) {
return request({
url: '/upms/user/findPassword',
url: '/api/upms/user/findPassword',
method: 'post',
data
})
}
// 下面为:用户管理列表
// 获取用户列表 (根据需求可以考虑换成带分页的 /upms/user/page
// 获取用户列表 (根据需求可以考虑换成带分页的 /api/upms/user/page
export function getUserList(data) {
return request({
url: '/upms/user/page',
url: '/api/upms/user/page',
method: 'post',
data
})
@ -66,7 +66,7 @@ export function getUserList(data) {
// 新增用户
export function addUser(data) {
return request({
url: '/upms/user/add',
url: '/api/upms/user/add',
method: 'post',
data
})
@ -75,7 +75,7 @@ export function addUser(data) {
// 删除用户
export function delUser(data) {
return request({
url: '/upms/user/delete',
url: '/api/upms/user/delete',
method: 'post',
data
})
@ -84,7 +84,7 @@ export function delUser(data) {
// 修改用户信息
export function editUser(data) {
return request({
url: '/upms/user/update',
url: '/api/upms/user/update',
method: 'post',
data
})
@ -93,7 +93,7 @@ export function editUser(data) {
// 获取用户详细信息
export function getUserDetail(data) {
return request({
url: '/upms/user/get',
url: '/api/upms/user/get',
method: 'post',
data
})
@ -102,7 +102,7 @@ export function getUserDetail(data) {
// 管理员重置用户的密码
export function resetUserPW(data) {
return request({
url: '/upms/user/resetPassword',
url: '/api/upms/user/resetPassword',
method: 'post',
data
})
@ -111,7 +111,7 @@ export function resetUserPW(data) {
// 启停用户信息
export function enableUser(data) {
return request({
url: '/upms/user/enabled',
url: '/api/upms/user/enabled',
method: 'post',
data
})

Parādīt failu

@ -34,16 +34,6 @@
<!-- <i class="el-icon-caret-bottom" /> -->
</div>
<el-dropdown-menu slot="dropdown">
<router-link to="/profile/index">
<el-dropdown-item>
<svg-icon class="item-icon" icon-class="user" />
{{ 'navbar.profile' | i18nFilter }}
</el-dropdown-item>
</router-link>
<el-dropdown-item @click.native="toHome">
<svg-icon class="item-icon" icon-class="help" />
{{ 'navbar.help' | i18nFilter }}
</el-dropdown-item>
<el-dropdown-item @click.native="logout">
<svg-icon class="item-icon" icon-class="logout" />
{{ 'navbar.logOut' | i18nFilter }}

Parādīt failu

@ -2,7 +2,7 @@
* @Author: zwq
* @Date: 2021-04-06 19:33:11
* @LastEditors: zwq
* @LastEditTime: 2021-07-09 09:42:54
* @LastEditTime: 2022-03-11 09:27:18
* @Description:
-->
<template>
@ -257,7 +257,7 @@ export default {
if (res.code === 0) {
this.list = res.data.records
this.list.forEach(item => {
item.roleName = item.stringList.toString()
item.roleName = item.stringList?.toString()
})
this.total = res.data.total
this.listLoading = false