edit
This commit is contained in:
@ -15,6 +15,7 @@ export class ShipperBaseService extends BaseService {
|
||||
$api_get_settlement_customer_list = `/api/mdc/cuc/settlementCustomer/findAll`; // 查找所有结算客户信息(下拉)
|
||||
$api_get_crm_customer_list = `/api/mdc/cuc/crmCustomer/findAll`; // 查找所有Crm客户信息(下拉)
|
||||
$api_get_network_freight_forwarder_one = `/api/mdc/cuc/networkTransporter/get`; // 获取网络货运人
|
||||
$api_get_roles = `/api/mdc/cuc/roleInfo/getRoleList`; // 获取角色列表
|
||||
// 根据FullKey获取系统子配置(树)
|
||||
$api_getSysConfigTreeByParentFullKey = `/api/mdc/pbc/sysConfig/getSysConfigTreeByParentFullKey`;
|
||||
envCache: any;
|
||||
@ -183,6 +184,31 @@ export class ShipperBaseService extends BaseService {
|
||||
);
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取角色列表
|
||||
* @returns
|
||||
*/
|
||||
getRoles(params = {}, containerAll = false) {
|
||||
return this.request(this.$api_get_roles, params).pipe(
|
||||
map((res: any) => {
|
||||
if (!res) {
|
||||
return [];
|
||||
}
|
||||
const list = res.map((item: any) => {
|
||||
return {
|
||||
label: item.roleName,
|
||||
value: item.id
|
||||
};
|
||||
});
|
||||
const obj = [];
|
||||
if (containerAll) {
|
||||
obj.push({ label: '全部', value: '' });
|
||||
}
|
||||
return [...obj, ...list];
|
||||
})
|
||||
);
|
||||
}
|
||||
|
||||
/**
|
||||
* 根据ID获取网络货运人
|
||||
* @returns
|
||||
|
||||
Reference in New Issue
Block a user