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.
152 lines
3.2 KiB
152 lines
3.2 KiB
import request from '@/utils/request';
|
|
import { AxiosPromise } from 'axios';
|
|
import { getOrgTree,submintPostPower,setupPage,submintRolePower,getSystemOrgTree,systemMenusTypeTree,getSystemMenusForRole } from './types'
|
|
/**
|
|
* 获取行政组织
|
|
*/
|
|
export function listRoutesOld(data: getOrgTree){
|
|
return request({
|
|
url: '/hrapi/org/get_organdpost_three',
|
|
method: 'post',
|
|
data:data
|
|
});
|
|
}
|
|
/**
|
|
* 获取系统类型
|
|
*/
|
|
export function getSystemType(data: setupPage){
|
|
return request({
|
|
url: '/kpiapi/powerpc/system_list',
|
|
method: 'post',
|
|
data:data
|
|
});
|
|
}
|
|
/**
|
|
* 获取各系统权限菜单
|
|
*/
|
|
export function getSystemPoewrTree(data: getSystemOrgTree): AxiosPromise<systemMenusTypeTree[]>{
|
|
return request({
|
|
url: '/kpiapi/powerpc/system_about_power_menu',
|
|
method: 'post',
|
|
data:data
|
|
});
|
|
}
|
|
/**
|
|
* 给指定岗位授权
|
|
*/
|
|
export function grantSystemPostPoewr(data: submintPostPower){
|
|
return request({
|
|
url: '/kpiapi/powerpc/grant_post_system_powers',
|
|
method: 'post',
|
|
data:data
|
|
});
|
|
}
|
|
/**
|
|
* 给指定岗位授权
|
|
*/
|
|
export function getGrantPowers(data: getSystemOrgTree): AxiosPromise<string[]>{
|
|
return request({
|
|
url: '/systemapi/grant/get_post_grant_powers',
|
|
method: 'post',
|
|
data:data
|
|
});
|
|
}
|
|
/**
|
|
* 根据角色获取各系统权限菜单
|
|
*/
|
|
export function getSystemPoewrTreeForRole(data: getSystemMenusForRole): AxiosPromise<systemMenusTypeTree[]>{
|
|
return request({
|
|
url: '/kpiapi/powerpc/system_about_power_menurole',
|
|
method: 'post',
|
|
data:data
|
|
});
|
|
}
|
|
/**
|
|
* 获取指定角色授权
|
|
*/
|
|
export function getGrantRolePowers(data: getSystemMenusForRole): AxiosPromise{
|
|
return request({
|
|
url: '/systemapi/grant/get_role_grant_powers',
|
|
method: 'post',
|
|
data:data
|
|
});
|
|
}
|
|
/**
|
|
* 给指定角色授权
|
|
*/
|
|
export function grantSystemRolePoewr(data: submintRolePower){
|
|
return request({
|
|
url: '/kpiapi/powerpc/grant_role_system_powers',
|
|
method: 'post',
|
|
data:data
|
|
});
|
|
}
|
|
|
|
/**
|
|
* 不分类别的自定义App列表
|
|
*/
|
|
export function gainAppList(data?: any){
|
|
return request({
|
|
url: '/systemapi/grant/gainAppList',
|
|
method: 'post',
|
|
data:data
|
|
});
|
|
}
|
|
|
|
/**
|
|
* 获取指定角色授权
|
|
*/
|
|
export function gainAppTableList(data?: any){
|
|
return request({
|
|
url: '/systemapi/grant/gainAppTableList',
|
|
method: 'post',
|
|
data:data
|
|
});
|
|
}
|
|
export function gainAppTableListNew(data?: any){
|
|
return request({
|
|
url: '/systemapi/grant/gainAppTableListNew',
|
|
method: 'post',
|
|
data:data
|
|
});
|
|
}
|
|
/**
|
|
* 获取指定角色授权
|
|
*/
|
|
export function setpAppTableForms(data?: any){
|
|
return request({
|
|
url: '/systemapi/grant/setpAppTableForms',
|
|
method: 'post',
|
|
data:data
|
|
});
|
|
}
|
|
/**
|
|
* 获取首层子行政组织和本组织下的人员
|
|
*/
|
|
export function getMyPeoplceAndSunOrg(data?: any){
|
|
return request({
|
|
url: '/systemapi/authorize/getMyPeoplceAndSunOrg',
|
|
method: 'post',
|
|
data:data
|
|
});
|
|
}
|
|
/**
|
|
* 获取首层子行政组织和本组织下的岗位及人员
|
|
*/
|
|
export function getMyPeopleAndSunOrgPost(data?: any){
|
|
return request({
|
|
url: '/systemapi/authorize/getMyPeopleAndSunOrgPost',
|
|
method: 'post',
|
|
data:data
|
|
});
|
|
}
|
|
/**
|
|
* 获取人员
|
|
*/
|
|
export function getPowerPageUser(data?: any){
|
|
return request({
|
|
url: '/systemapi/authorize/getPowerPageUser',
|
|
method: 'post',
|
|
data:data
|
|
});
|
|
}
|
|
|