74 lines
2.3 KiB
HTML
74 lines
2.3 KiB
HTML
<!--
|
||
* @Description :
|
||
* @Version : 1.0
|
||
* @Author : Shiming
|
||
* @Date : 2022-01-12 10:52:50
|
||
* @LastEditors : Shiming
|
||
* @LastEditTime : 2022-02-23 15:57:26
|
||
* @FilePath : \\tms-obc-web\\src\\app\\routes\\contract-management\\components\\policy\\policy.component.html
|
||
* Copyright (C) 2022 huzhenhong. All rights reserved.
|
||
-->
|
||
<page-header [action]="phActionTpl">
|
||
<ng-template #phActionTpl> </ng-template>
|
||
</page-header>
|
||
|
||
<nz-card>
|
||
<div nz-row nzGutter="8">
|
||
<!-- 查询字段小于或等于3个时,不显示伸缩按钮 -->
|
||
<div nz-col nzSpan="24" *ngIf="queryFieldCount <= 4">
|
||
<sf
|
||
#sf
|
||
[schema]="schema"
|
||
[ui]="ui"
|
||
[mode]="'search'"
|
||
[disabled]="!sf?.valid"
|
||
[loading]="false"
|
||
(formSubmit)="st?.load(1)"
|
||
(formReset)="resetSF()"
|
||
></sf>
|
||
</div>
|
||
|
||
<!-- 查询字段大于3个时,根据展开状态调整布局 -->
|
||
<ng-container>
|
||
<div nz-col [nzSpan]="_$expand ? 24 : 18">
|
||
<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]="false" (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 ? '展开' : '收起' }}
|
||
<i nz-icon [nzType]="!_$expand ? 'down' : 'up'"></i>
|
||
</button>
|
||
</div>
|
||
</ng-container>
|
||
</div>
|
||
</nz-card>
|
||
|
||
<nz-card>
|
||
<st
|
||
#st
|
||
[data]="service.$api_get_getPremiumInformationPage"
|
||
[columns]="columns"
|
||
[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"
|
||
>
|
||
|
||
</st>
|
||
</nz-card>
|
||
|
||
|
||
<ng-template #promoterModal>
|
||
<div nz-row nzGutter="8">
|
||
<div nz-col nzSpan="24" se-container [labelWidth]="80">
|
||
<sv-container col="1">
|
||
<sv label="传入值" [col]="1">
|
||
{{paramValue}}
|
||
</sv>
|
||
</sv-container>
|
||
|
||
</div>
|
||
</div>
|
||
</ng-template> |