edit
This commit is contained in:
		| @ -21,7 +21,7 @@ | ||||
|       class="text-right"> | ||||
|       <button nz-button nzType="primary" [nzLoading]="service.http.loading" (click)="st?.load(1)" acl | ||||
|         [acl-ability]="['USERCENTER-FREIGHT-LIST-list']">查询</button> | ||||
|       <button nz-button nzType="primary" [disabled]="service.http.loading" acl | ||||
|       <button nz-button nzType="primary" [disabled]="service.http.loading" acl (click)="exportList()" | ||||
|         [acl-ability]="['USERCENTER-FREIGHT-LIST-export']">导出</button> | ||||
|       <button nz-button [disabled]="service.http.loading" (click)="resetSF()">重置</button> | ||||
|       <button nz-button nzType="link" (click)="expandToggle()"> | ||||
|  | ||||
| @ -38,8 +38,6 @@ export class FreightConfigComponent implements OnInit { | ||||
|  | ||||
|   beforeReq = (requestOptions: STRequestOptions) => { | ||||
|     Object.assign(requestOptions.body, { listSource: 1 }); | ||||
|     console.log(1); | ||||
|  | ||||
|     if (this.sf?.value) { | ||||
|       Object.assign(requestOptions.body, { | ||||
|         ...this.sf.value | ||||
| @ -168,13 +166,13 @@ export class FreightConfigComponent implements OnInit { | ||||
|   } | ||||
|  | ||||
|   exportList() { | ||||
|     const params = {}; | ||||
|     const params = { listSource: 1, pageIndex: this.st.pi, pageSize: this.st.ps }; | ||||
|     if (this.sf) { | ||||
|       Object.assign(params, { | ||||
|         ...this.sf.value | ||||
|       }); | ||||
|     } | ||||
|     this.service.downloadFile(this.service.$api_export_enterprise, params); | ||||
|     this.service.downloadFile(this.service.$api_export_freight_config, params); | ||||
|   } | ||||
|   loadltdId() { | ||||
|     this.service.getNetworkFreightForwarder().subscribe(res => { | ||||
|  | ||||
| @ -39,6 +39,8 @@ export class UsermanageService extends ShipperBaseService { | ||||
|  | ||||
|   // 查询货主配置列表 | ||||
|   $api_freight_config_page = '/api/mdc/cuc/enterpriseInfo/operate/list/configPage'; | ||||
|   // 导出货主配置列表 | ||||
|   $api_export_freight_config = '/api/mdc/cuc/enterpriseInfo/operate/exportConfig'; | ||||
|   // 更新企业超级管理员权限 | ||||
|   $api_update_enter_role_batch = '/api/mdc/cuc/enterpriseInfo/operate/updateRole'; | ||||
|   // 批量更新企业网络货运人 | ||||
|  | ||||
		Reference in New Issue
	
	Block a user