666
This commit is contained in:
@ -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',
|
||||
|
||||
Reference in New Issue
Block a user