666
This commit is contained in:
		| @ -38,19 +38,15 @@ export class ParterLevelConfigEditComponent implements OnInit { | |||||||
|           title: '', |           title: '', | ||||||
|           ui: { hidden: true } |           ui: { hidden: true } | ||||||
|         }, |         }, | ||||||
|         name: { |         gradeName: { | ||||||
|           title: '合伙人等级', |           title: '等级名称', | ||||||
|           type: 'string', |           type: 'string', | ||||||
|           enum: [ |  | ||||||
|             { label: '管理员', value: '1'}, |  | ||||||
|           ], |  | ||||||
|           ui: { |  | ||||||
|             widget: 'select', |  | ||||||
|             placeholder:'请选择', |  | ||||||
|             visibleIf: { name2: (value: string) => value === '1' } |  | ||||||
|           } as SFSelectWidgetSchema, |  | ||||||
|         }, |         }, | ||||||
|         name3: { |         sortId: { | ||||||
|  |           title: '排序', | ||||||
|  |           type: 'string', | ||||||
|  |         }, | ||||||
|  |         remark: { | ||||||
|           type: 'string', |           type: 'string', | ||||||
|           title: '备注', |           title: '备注', | ||||||
|           maxLength: 50, |           maxLength: 50, | ||||||
| @ -61,7 +57,7 @@ export class ParterLevelConfigEditComponent implements OnInit { | |||||||
|           } as SFTextareaWidgetSchema, |           } as SFTextareaWidgetSchema, | ||||||
|         }, |         }, | ||||||
|       }, |       }, | ||||||
|       required: ['name1', 'name2'] |       required: ['gradeName', 'sortId', 'remark'] | ||||||
|     }; |     }; | ||||||
|     this.ui = { |     this.ui = { | ||||||
|       '*': { |       '*': { | ||||||
| @ -77,12 +73,12 @@ export class ParterLevelConfigEditComponent implements OnInit { | |||||||
|   save() { |   save() { | ||||||
|     this.sf.validator({ emitError: true }); |     this.sf.validator({ emitError: true }); | ||||||
|     if(!this.sf.valid) return; |     if(!this.sf.valid) return; | ||||||
|     // this.service.request('', { ...this.sf.value }).subscribe(res => { |     this.service.request(this.service.$api_save, { ...this.sf.value }).subscribe(res => { | ||||||
|     //   if (res) { |       if (res) { | ||||||
|     //     this.modalRef.destroy(true); |         this.modalRef.destroy(true); | ||||||
|     //   } else { |       } else { | ||||||
|     //     this.service.msgSrv.error(res.msg); |         this.service.msgSrv.error(res.msg); | ||||||
|     //   } |       } | ||||||
|     // }); |     }); | ||||||
|   } |   } | ||||||
| } | } | ||||||
|  | |||||||
| @ -15,7 +15,7 @@ | |||||||
|   <!-- 数据列表 --> |   <!-- 数据列表 --> | ||||||
|   <st |   <st | ||||||
|     #st |     #st | ||||||
|     [data]="data" |     [data]="service.$api_getList" | ||||||
|     [columns]="columns" |     [columns]="columns" | ||||||
|     [req]="{ method: 'POST', allInBody: true, reName: { pi: 'pageIndex', ps: 'pageSize' }, params: reqParams }" |     [req]="{ method: 'POST', allInBody: true, reName: { pi: 'pageIndex', ps: 'pageSize' }, params: reqParams }" | ||||||
|     [res]="{ reName: { list: 'data.records', total: 'data.total' } }" |     [res]="{ reName: { list: 'data.records', total: 'data.total' } }" | ||||||
|  | |||||||
| @ -43,13 +43,17 @@ export class ParterLevelConfigListComponent implements OnInit { | |||||||
|   initSF() { |   initSF() { | ||||||
|     this.schema = { |     this.schema = { | ||||||
|       properties: { |       properties: { | ||||||
|         name: { |         gradeName: { | ||||||
|           type: 'string', |           type: 'string', | ||||||
|           title: '等级姓名' |           title: '等级姓名' | ||||||
|         }, |         }, | ||||||
|         phone: { |         stateLocked: { | ||||||
|           type: 'string', |           type: 'string', | ||||||
|           title: '状态' |           title: '状态', | ||||||
|  |           enum:[{label:'是',value:'1'},{label:'否',value:'2'}], | ||||||
|  |           ui:{ | ||||||
|  |             widget:'select' | ||||||
|  |           } | ||||||
|         }, |         }, | ||||||
|       } |       } | ||||||
|     }; |     }; | ||||||
| @ -64,11 +68,11 @@ export class ParterLevelConfigListComponent implements OnInit { | |||||||
|     this.columns = [ |     this.columns = [ | ||||||
|       { |       { | ||||||
|         title: '等级姓名', |         title: '等级姓名', | ||||||
|         index: 'name1' |         index: 'gradeName' | ||||||
|       }, |       }, | ||||||
|       { |       { | ||||||
|         title: '备注', |         title: '备注', | ||||||
|         index: 'name1' |         index: 'remark' | ||||||
|       }, |       }, | ||||||
|       { |       { | ||||||
|         title: '创建时间', |         title: '创建时间', | ||||||
| @ -76,7 +80,7 @@ export class ParterLevelConfigListComponent implements OnInit { | |||||||
|       }, |       }, | ||||||
|       { |       { | ||||||
|         title: '启用时间', |         title: '启用时间', | ||||||
|         index: 'name1' |         index: 'enableTime' | ||||||
|       }, |       }, | ||||||
|       { |       { | ||||||
|         title: '状态', |         title: '状态', | ||||||
|  | |||||||
| @ -5,6 +5,14 @@ import { BaseService } from '@shared'; | |||||||
|   providedIn: 'root', |   providedIn: 'root', | ||||||
| }) | }) | ||||||
| export class ChannelSalesService extends BaseService { | export class ChannelSalesService extends BaseService { | ||||||
|  |   // 查询合伙人等级配置表 | ||||||
|  |   $api_getList = '/api/mdc/partnerGradeConfig/list/page'; | ||||||
|  |   // 获取合伙人等级配置表 | ||||||
|  |   $api_getPartnerGradeConfig = '/api/mdc/partnerGradeConfig/get'; | ||||||
|  |   // 保存合伙人等级配置表 | ||||||
|  |   $api_save = '/api/mdc/partnerGradeConfig/save'; | ||||||
|  |   // 删除合伙人等级配置表 | ||||||
|  |   $api_del = '/api/mdc/partnerGradeConfig/deletebatch'; | ||||||
|  |  | ||||||
|   constructor(public injector: Injector) { |   constructor(public injector: Injector) { | ||||||
|     super(injector); |     super(injector); | ||||||
|  | |||||||
		Reference in New Issue
	
	Block a user