666
This commit is contained in:
		| @ -81,16 +81,26 @@ export class ParterChannelSalesEditComponent implements OnInit { | |||||||
|           default: '0', |           default: '0', | ||||||
|         }, |         }, | ||||||
|         roleIds: { |         roleIds: { | ||||||
|           title: '', |           title: '角色', | ||||||
|           type: 'string', |           type: 'string', | ||||||
|           enum: [ |  | ||||||
|             { label: '管理员', value: '1'}, |  | ||||||
|           ], |  | ||||||
|           ui: { |           ui: { | ||||||
|             widget: 'select', |             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' } |             visibleIf: { isAuthorization: (value: string) => value === '1' } | ||||||
|           } as SFSelectWidgetSchema, |           }, | ||||||
|         }, |         }, | ||||||
|         remark: { |         remark: { | ||||||
|           type: 'string', |           type: 'string', | ||||||
|  | |||||||
| @ -13,7 +13,8 @@ export class ChannelSalesService extends BaseService { | |||||||
|   $api_getPage = '/api/mdc/channelSalesManagement/list/page'; |   $api_getPage = '/api/mdc/channelSalesManagement/list/page'; | ||||||
|   // OA员工模糊查询 |   // OA员工模糊查询 | ||||||
|   $api_fuzzyQuery = '/api/mdc/channelSalesManagement/fuzzyQuery'; |   $api_fuzzyQuery = '/api/mdc/channelSalesManagement/fuzzyQuery'; | ||||||
|  |   // 获取角色列表 | ||||||
|  |   $api_getAppRoleList = '/api/mdc/cuc/roleInfo/getRoleList'; | ||||||
|    |    | ||||||
|  |  | ||||||
|   constructor(public injector: Injector) { |   constructor(public injector: Injector) { | ||||||
|  | |||||||
		Reference in New Issue
	
	Block a user