81 lines
		
	
	
		
			3.1 KiB
		
	
	
	
		
			HTML
		
	
	
	
	
	
			
		
		
	
	
			81 lines
		
	
	
		
			3.1 KiB
		
	
	
	
		
			HTML
		
	
	
	
	
	
| <!--
 | ||
|  * @Description  : 
 | ||
|  * @Version      : 1.0
 | ||
|  * @Author       : Shiming
 | ||
|  * @Date         : 2022-01-19 10:47:46
 | ||
|  * @LastEditors  : Shiming
 | ||
|  * @LastEditTime : 2022-01-20 15:52:07
 | ||
|  * @FilePath     : \\tms-obc-web\\src\\app\\routes\\sys-setting\\components\\announcement-message\\announcement-message.component.html
 | ||
|  * Copyright (C) 2022 huzhenhong. All rights reserved.
 | ||
| -->
 | ||
| 
 | ||
| <page-header-wrapper title="公告信息管理"> </page-header-wrapper>
 | ||
| 
 | ||
| <nz-card>
 | ||
|   <div nz-row nzGutter="8">
 | ||
|     <!-- 查询字段小于或等于3个时,不显示伸缩按钮 -->
 | ||
|     <div nz-col nzSpan="24" *ngIf="queryFieldCount <= 4">
 | ||
|       <sf
 | ||
|         #sf
 | ||
|         [schema]="schema"
 | ||
|         [ui]="ui"
 | ||
|         [mode]="'search'"
 | ||
|         [loading]="service.http.loading"
 | ||
|         (formSubmit)="st?.load(1)"
 | ||
|         (formReset)="resetSF()"
 | ||
|       ></sf>
 | ||
|     </div>
 | ||
| 
 | ||
|     <!-- 查询字段大于3个时,根据展开状态调整布局 -->
 | ||
|     <ng-container *ngIf="queryFieldCount > 4">
 | ||
|       <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.expend-options]="_$expand" class="text-right">
 | ||
|         <button nz-button nzType="primary" [nzLoading]="service.http.loading" (click)="st?.load(1)">查询</button>
 | ||
|         <button nz-button [disabled]="service.http.loading" nzType="primary">导出</button>
 | ||
|         <button nz-button [disabled]="service.http.loading" (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 class="content-box">
 | ||
|   <div class="d-flex justify-content-end mb-sm mt-sm">
 | ||
|     <div>
 | ||
|       <button nz-button nzType="primary" (click)="roleAction('', 1)">新增公告</button>
 | ||
|     </div>
 | ||
|   </div>
 | ||
|   <st
 | ||
|     #st
 | ||
|     [data]="service.$api_getAnnouncementInfoList_page"
 | ||
|     [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]="service.http.loading"
 | ||
|     (change)="stChange($event)"
 | ||
|   >
 | ||
|     <ng-template st-row="customerType" let-item let-index="index">
 | ||
|       <div>
 | ||
|         <span *ngIf="item?.customerType == 1">客户</span>
 | ||
|         <span *ngIf="item?.customerType == 2">供应商</span>
 | ||
|       </div>
 | ||
|     </ng-template>
 | ||
|   </st>
 | ||
| </nz-card>
 | ||
| 
 | ||
| <nz-modal [(nzVisible)]="isVisible" [nzFooter]="nzModalFooter" [nzTitle]="editText" (nzOnOk)="handleOK()" (nzOnCancel)="handleCancel()">
 | ||
|   <ng-container *nzModalContent>
 | ||
|     <sf #sfFre [schema]="addSchema" [ui]="ui2" [formData]="formData" [compact]="false" [button]="'none'"> </sf>
 | ||
|   </ng-container>
 | ||
|   <ng-template #nzModalFooter>
 | ||
|     <button nz-button nzType="primary" (click)="handleCancel()" [disabled]="">取消</button>
 | ||
|     <button nz-button nzType="default" (click)="handleOK()">确 定</button>
 | ||
|   </ng-template>
 | ||
| </nz-modal>
 |