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 => {
|
||||
|
||||
Reference in New Issue
Block a user