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.
69 lines
1.5 KiB
69 lines
1.5 KiB
import request from '@/utils/request'
|
|
import qs from 'qs'
|
|
let tokens = window.sessionStorage.getItem('token');
|
|
// 单位用户列表
|
|
export function orgUserList(data){
|
|
return request({
|
|
url: '/system/user/userListByOrg',
|
|
method: 'post',
|
|
data: data,
|
|
headers: {'Content-Type': 'application/json'}
|
|
})
|
|
}
|
|
|
|
|
|
// 设置角色
|
|
export function psotUserRole(data){
|
|
return request({
|
|
url: '/system/v1/userrole',
|
|
method: 'post',
|
|
data: qs.stringify(data)
|
|
})
|
|
}
|
|
|
|
/**
|
|
* 获取角色列表
|
|
* orgSid 用户SID
|
|
* roleName 角色名称
|
|
* */
|
|
export function orgrolesList(data){
|
|
return request({
|
|
url: '/system/v1/orgroles/list',
|
|
method: 'post',
|
|
headers: {'Content-Type': 'application/json'},
|
|
data
|
|
})
|
|
}
|
|
/**
|
|
* 保存 设置角色 /system/v1/orguserroles
|
|
* */
|
|
export function saveOrgRole(data){
|
|
return request({
|
|
url: '/system/v1/orguserroles',
|
|
method: 'post',
|
|
headers: {'Content-Type': 'application/json'},
|
|
data
|
|
})
|
|
}
|
|
|
|
/**
|
|
* 部门机构列表 /system/v1/departments/departmentOrgList/{organizationSid}
|
|
* */
|
|
export function getOrgList(organizationSid){
|
|
return request({
|
|
url: '/system/v1/departments/departmentOrgList/' + organizationSid,
|
|
method: 'get'
|
|
})
|
|
}
|
|
/**
|
|
* 保存 设置部门 /system/v1/orguserroles
|
|
* */
|
|
export function saveDepartment(data){
|
|
return request({
|
|
url: '/system/v1/departmentStaffs/setUpDepartment',
|
|
method: 'post',
|
|
headers: {'Content-Type': 'application/json'},
|
|
data
|
|
})
|
|
}
|
|
|
|
|