状态更新

This commit is contained in:
wangshiming
2022-01-14 15:39:42 +08:00
parent 7e5661416a
commit 509f521c65
4 changed files with 10 additions and 2 deletions

View File

@ -22,7 +22,7 @@
</div> </div>
<div nz-col [nzSpan]="_$expand ? 24 : 6" class="text-right"> <div nz-col [nzSpan]="_$expand ? 24 : 6" class="text-right">
<button nz-button nzType="primary" [nzLoading]="service.http.loading" <button nz-button nzType="primary" [nzLoading]="service.http.loading"
(click)="st?.load(1)">查询</button> (click)="search()">查询</button>
<button nz-button nzType="primary" [disabled]="service.http.loading" <button nz-button nzType="primary" [disabled]="service.http.loading"
>导入</button> >导入</button>
<button nz-button [disabled]="service.http.loading" (click)="resetSF()">重置</button> <button nz-button [disabled]="service.http.loading" (click)="resetSF()">重置</button>

View File

@ -57,6 +57,10 @@ export class SupplyManagementBulkComponent implements OnInit {
...this.sf?.value, ...this.sf?.value,
}; };
} }
search() {
this.st?.load(1);
this.getGoodsSourceStatistical()
}
/** /**
* 初始化查询表单 * 初始化查询表单
*/ */

View File

@ -19,7 +19,7 @@
></sf> ></sf>
</div> </div>
<div nz-col [nzXl]="_$expand ? 24 : 6" [nzLg]="24" [nzSm]="24" [nzXs]="24" [class.expend-options]="_$expand" class="text-right"> <div nz-col [nzXl]="_$expand ? 24 : 6" [nzLg]="24" [nzSm]="24" [nzXs]="24" [class.expend-options]="_$expand" 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)="search()">查询</button>
<button nz-button nzType="primary" [disabled]="service.http.loading">导出</button> <button nz-button nzType="primary" [disabled]="service.http.loading">导出</button>
<button nz-button [disabled]="service.http.loading" (click)="resetSF()">重置</button> <button nz-button [disabled]="service.http.loading" (click)="resetSF()">重置</button>
<button nz-button nzType="link" (click)="expandToggle()"> <button nz-button nzType="link" (click)="expandToggle()">

View File

@ -95,6 +95,10 @@ export class SupplyManagementVehicleComponent implements OnInit {
// .subscribe(() => this.st.reload()); // .subscribe(() => this.st.reload());
} }
search() {
this.st?.load(1);
this.getGoodsSourceStatistical()
}
/** /**
* 伸缩查询条件 * 伸缩查询条件
*/ */