edit
This commit is contained in:
		| @ -16,7 +16,7 @@ | ||||
|       <sf #sf [schema]="schema" [ui]="ui" [compact]="true" [button]="'none'"></sf> | ||||
|     </div> | ||||
|     <div nz-col [nzXl]="_$expand ? 24 : 6" [nzLg]="24" [nzSm]="24" [nzXs]="24" class="text-right"> | ||||
|       <button nz-button nzType="primary" [nzLoading]="service.http.loading" (click)="st?.load(1)">导出</button> | ||||
|       <button nz-button nzType="primary" [nzLoading]="service.http.loading" (click)="exportList()">导出</button> | ||||
|       <button nz-button nzType="primary" [disabled]="!sf.valid" [nzLoading]="service.http.loading" | ||||
|         (click)="st?.load(1)">查询</button> | ||||
|       <button nz-button (click)="resetSF()">重置</button> | ||||
|  | ||||
| @ -95,6 +95,11 @@ export class UserCenterComponentsDriverCaptainComponent implements OnInit { | ||||
|     this._$expand = false; | ||||
|   } | ||||
|  | ||||
|   exportList() { | ||||
|     const params = this.reqParams; | ||||
|     this.service.downloadFile(this.service.$api_export_driver_cap, params); | ||||
|   } | ||||
|  | ||||
|   private initSF(): SFSchema { | ||||
|     return { | ||||
|       properties: { | ||||
|  | ||||
| @ -98,6 +98,8 @@ export class UsermanageService extends BaseService { | ||||
|   $api_export_enterprise = '/api/mdc/cuc/enterpriseInfo/operate/export'; | ||||
|   // 司机列表导出 | ||||
|   $api_export_driver = '/api/mdc/cuc/driver/export'; | ||||
|   // 车队长导出-运营后台 | ||||
|   $api_export_driver_cap = '/api/mdc/userDriverExpand/export'; | ||||
|  | ||||
|   constructor(public injector: Injector, private nzModalService: NzModalService) { | ||||
|     super(injector); | ||||
|  | ||||
		Reference in New Issue
	
	Block a user