This commit is contained in:
Taric Xin
2022-04-28 17:26:09 +08:00
parent 507d8660d6
commit f7995739c3
3 changed files with 9 additions and 4 deletions

View File

@ -25,8 +25,10 @@
<sf #sf [schema]="schema" [ui]="ui" [compact]="true" [button]="'none'"></sf> <sf #sf [schema]="schema" [ui]="ui" [compact]="true" [button]="'none'"></sf>
</div> </div>
<div nz-col [nzSpan]="_$expand ? 24 : 6" [class.expend-options]="_$expand" class="text-right"> <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 nzType="primary" acl [acl-ability]="['SYSTEM-ANNOUNCEMENT-list']"
<button nz-button [disabled]="false" nzType="primary">导出</button> [nzLoading]="service.http.loading" (click)="st?.load(1)">查询</button>
<button nz-button [disabled]="false" nzType="primary" acl
[acl-ability]="['SYSTEM-ANNOUNCEMENT-export']">导出</button>
<button nz-button [disabled]="false" (click)="resetSF()">重置</button> <button nz-button [disabled]="false" (click)="resetSF()">重置</button>
<button nz-button nzType="link" (click)="expandToggle()"> <button nz-button nzType="link" (click)="expandToggle()">
{{ !_$expand ? '展开' : '收起' }} {{ !_$expand ? '展开' : '收起' }}
@ -40,7 +42,8 @@
<nz-card class="content-box"> <nz-card class="content-box">
<div class="d-flex justify-content-end mb-sm mt-sm"> <div class="d-flex justify-content-end mb-sm mt-sm">
<div> <div>
<button nz-button nzType="primary" (click)="roleAction('', 1)">新增公告</button> <button nz-button nzType="primary" (click)="roleAction('', 1)" acl
[acl-ability]="['SYSTEM-ANNOUNCEMENT-add']">新增公告</button>
</div> </div>
</div> </div>
<st #st [data]="service.$api_getAnnouncementInfoList_page" [columns]="columns" [req]="{ params: reqParams }" <st #st [data]="service.$api_getAnnouncementInfoList_page" [columns]="columns" [req]="{ params: reqParams }"

View File

@ -39,10 +39,12 @@ export class AnnouncementMessageComponent implements OnInit {
buttons: [ buttons: [
{ {
text: '编辑', text: '编辑',
acl: { ability: ['SYSTEM-ANNOUNCEMENT-edit'] },
click: item => this.roleAction(item, 2) click: item => this.roleAction(item, 2)
}, },
{ {
text: '删除', text: '删除',
acl: { ability: ['SYSTEM-ANNOUNCEMENT-delete'] },
click: item => this.deleteAction(item) click: item => this.deleteAction(item)
}, },
] ]

View File

@ -54,7 +54,7 @@ const routes: Routes = [
{ path: 'network-freight/new/:id', component: NetworkFreightNewComponent }, { path: 'network-freight/new/:id', component: NetworkFreightNewComponent },
{ path: 'close-account', component: CloseAccountComponent }, { path: 'close-account', component: CloseAccountComponent },
// { path: 'btn-management', component: BtnManagementComponent }, // { path: 'btn-management', component: BtnManagementComponent },
{ path: 'announcement-message', component: AnnouncementMessageComponent }, { path: 'announcement-message', component: AnnouncementMessageComponent, data: { guard: { ability: ['SYSTEM-ANNOUNCEMENT-list'] } } },
{ path: 'insurance-set', component: InsuranceSetComponent }, { path: 'insurance-set', component: InsuranceSetComponent },
{ path: 'sms-template', component: SmsTemplateComponent, data: { guard: { ability: ['SMS_TEMPLATE-search'] } } } { path: 'sms-template', component: SmsTemplateComponent, data: { guard: { ability: ['SMS_TEMPLATE-search'] } } }
]; ];