You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
53 lines
871 B
53 lines
871 B
import request from '@/utils/request'
|
|
|
|
/**
|
|
* 列表
|
|
* @param {*} data
|
|
*/
|
|
export function systemRoleQueryProjectRoleListAPI(data) {
|
|
return request({
|
|
url: 'admin/work/roles',
|
|
method: 'post',
|
|
data: data
|
|
})
|
|
}
|
|
|
|
/**
|
|
* 角色
|
|
* @param {*} data
|
|
*/
|
|
export function systemMenuGetWorkMenuListAPI(data) {
|
|
return request({
|
|
url: 'admin/work/rules',
|
|
method: 'post',
|
|
data: data
|
|
})
|
|
}
|
|
|
|
/**
|
|
* 设置
|
|
* @param {*} data
|
|
*/
|
|
export function systemRoleSetWorkRoleAPI(data) {
|
|
return request({
|
|
url: `admin/work/${data.id ? 'updateRole' : 'saveRole'}`,
|
|
method: 'post',
|
|
headers: {
|
|
'Content-Type': 'application/json;charset=UTF-8'
|
|
},
|
|
data: data
|
|
})
|
|
}
|
|
|
|
/**
|
|
* 删除项目角色
|
|
*/
|
|
export function systemRoleDeleteWorkRoleAPI(data) {
|
|
return request({
|
|
url: 'admin/work/deleteRole',
|
|
method: 'post',
|
|
data: data
|
|
})
|
|
}
|
|
|