This commit is contained in:
heqinghang
2022-03-21 10:34:18 +08:00
parent 74968d658c
commit 5fa519fdbd
2 changed files with 18 additions and 7 deletions

View File

@ -81,16 +81,26 @@ export class ParterChannelSalesEditComponent implements OnInit {
default: '0',
},
roleIds: {
title: '',
title: '角色',
type: 'string',
enum: [
{ label: '管理员', value: '1'},
],
ui: {
widget: 'select',
placeholder:'授权角色',
placeholder: '授权角色',
mode: 'multiple',
maxMultipleCount: 5,
asyncData: () => {
return this.service.request(this.service.$api_getAppRoleList).pipe(
map((res: any) => {
return res
.filter((role: any) => role.roleCode !== 'Administrator')
.map((item: any) => {
return { label: item.roleName, value: item.id };
});
})
);
},
visibleIf: { isAuthorization: (value: string) => value === '1' }
} as SFSelectWidgetSchema,
},
},
remark: {
type: 'string',

View File

@ -13,7 +13,8 @@ export class ChannelSalesService extends BaseService {
$api_getPage = '/api/mdc/channelSalesManagement/list/page';
// OA员工模糊查询
$api_fuzzyQuery = '/api/mdc/channelSalesManagement/fuzzyQuery';
// 获取角色列表
$api_getAppRoleList = '/api/mdc/cuc/roleInfo/getRoleList';
constructor(public injector: Injector) {