This commit is contained in:
Lingzi
2022-04-02 16:37:39 +08:00
parent ab9b88046d
commit d67ba84af0
39 changed files with 61 additions and 31 deletions

View File

@ -41,7 +41,7 @@
nz-button
nzType="primary"
[disabled]="!sf.valid"
[nzLoading]="service.http.loading"
[nzLoading]="isLoading && st.loading"
(click)="st?.load(1)"
acl
[acl-ability]="['CONTRACT-INDEX-listFrame']"
@ -75,7 +75,7 @@
[req]="{ method: 'POST', allInBody: true, reName: { pi: 'pageIndex', ps: 'pageSize' }, params: reqParams }"
[res]="{ reName: { list: 'data.records', total: 'data.total' } }"
[page]="{ show: true, showSize: true, pageSizes: [10, 20, 30, 50, 100, 200, 300, 500, 1000] }"
[loading]="false"
[loading]="service.http.loading"
[scroll]="{ x: '1200px', y: '370px' }"
(change)="stChange($event)"
>

View File

@ -26,6 +26,7 @@ export class ContractManagementFrameComponent implements OnInit {
ui: SFUISchema = {};
_$expand = false;
selectedRows: any[] = [];
isLoading: boolean = false;
constructor(
public service: ContractManagementService,
private nzModalService: NzModalService,
@ -293,6 +294,7 @@ export class ContractManagementFrameComponent implements OnInit {
resetSF() {
this.sf.reset();
this._$expand = false;
this.isLoading = true;
}
/**

View File

@ -29,7 +29,7 @@
</sf>
</div>
<div nz-col [nzSpan]="_$expand ? 24 : 6" [class.text-right]="_$expand">
<button nz-button nzType="primary" [disabled]="!sf.valid" [nzLoading]="service.http.loading"
<button nz-button nzType="primary" [disabled]="!sf.valid" [nzLoading]="isLoading && st.loading"
(click)="st?.load(1)" acl [acl-ability]="['CONTRACT-INDEX-searchDetail']">查询</button>
<button nz-button (click)="resetSF()">重置</button>
<button nz-button nzType="link" (click)="expandToggle()">

View File

@ -25,6 +25,7 @@ export class ContractManagementContractListComponent implements OnInit {
columns: STColumn[] = [];
ui: SFUISchema = {};
_$expand = false;
isLoading: boolean = false;
/**
* 查询参数
*/
@ -235,6 +236,7 @@ export class ContractManagementContractListComponent implements OnInit {
resetSF() {
this.sf.reset();
this._$expand = false;
this.isLoading = true
}
/**
* 伸缩查询条件

View File

@ -32,7 +32,7 @@
<sf #sf [schema]="schema" [ui]="ui" [compact]="true" [button]="'none'"></sf>
</div>
<div nz-col [nzSpan]="_$expand ? 24 : 6" [class.text-right]="_$expand">
<button nz-button nzType="primary" [disabled]="!sf.valid" [nzLoading]="service.http.loading" (click)="st?.load(1)" acl [acl-ability]="['CONTRACT-POLICY-search']">查询</button>
<button nz-button nzType="primary" [disabled]="!sf.valid" [nzLoading]="isLoading && st.loading" (click)="st?.load(1)" acl [acl-ability]="['CONTRACT-POLICY-search']">查询</button>
<button nz-button (click)="resetSF()">重置</button>
<button nz-button nzType="link" (click)="expandToggle()">
{{ !_$expand ? '展开' : '收起' }}

View File

@ -26,6 +26,7 @@ export class ContractManagementPolicyComponent implements OnInit {
selectedRows: any[] = [];
paramValue = '';
isLoading: boolean = false;
constructor(public service: ContractManagementService, private modal: NzModalService, private router: Router) {}
/**
@ -185,6 +186,7 @@ export class ContractManagementPolicyComponent implements OnInit {
resetSF() {
this.sf.reset();
this._$expand = false;
this.isLoading = true
}
/**