Merge branch 'develop' of https://gitlab.eascs.com/tms-ui/tms-obc-web into develop
This commit is contained in:
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* @Description :
|
||||
* @Description :
|
||||
* @Version : 1.0
|
||||
* @Author : Shiming
|
||||
* @Date : 2022-01-06 09:24:00
|
||||
@ -13,13 +13,12 @@ import { RouterModule, Routes } from '@angular/router';
|
||||
import { insuranceManagementListComponent } from './components/list/list.component';
|
||||
import { insuranceManagementSetComponent } from './components/set/set.component';
|
||||
|
||||
|
||||
const routes: Routes = [
|
||||
{ path: 'list', component: insuranceManagementListComponent },
|
||||
{ path: 'list-set', component: insuranceManagementSetComponent },
|
||||
]
|
||||
{ path: 'list', component: insuranceManagementListComponent, data: { guard: { ability: ['INSURANCE-LIST-search'] } } },
|
||||
{ path: 'list-set', component: insuranceManagementSetComponent, data: { guard: { ability: ['INSURANCE-LISTDETAIL-set'] } } }
|
||||
];
|
||||
@NgModule({
|
||||
imports: [RouterModule.forChild(routes)],
|
||||
exports: [RouterModule]
|
||||
})
|
||||
export class InsuranceManagementRoutingModule { }
|
||||
export class InsuranceManagementRoutingModule {}
|
||||
|
||||
@ -14,10 +14,14 @@
|
||||
</div>
|
||||
<nz-dropdown-menu #menu="nzDropdownMenu">
|
||||
<ul nz-menu nzSelectable>
|
||||
<li nz-menu-item (click)="typeAction(item)">编辑</li>
|
||||
<li nz-menu-item (click)="sortType(item,3)" *ngIf="i!==0">上移</li>
|
||||
<li nz-menu-item (click)="sortType(item,4)" *ngIf="i!==typeList.length-1">下移</li>
|
||||
<li nz-menu-item nzDanger (click)="removeType(item)">删除</li>
|
||||
<li nz-menu-item (click)="typeAction(item)" acl
|
||||
[acl-ability]="['SYSTEM-GOODS-NAME-CONFIG-edit']">编辑</li>
|
||||
<li nz-menu-item (click)="sortType(item,3)" acl
|
||||
[acl-ability]="['SYSTEM-GOODS-NAME-CONFIG-sort']" *ngIf="i!==0">上移</li>
|
||||
<li nz-menu-item (click)="sortType(item,4)" acl
|
||||
[acl-ability]="['SYSTEM-GOODS-NAME-CONFIG-sort']" *ngIf="i!==typeList.length-1">下移</li>
|
||||
<li nz-menu-item nzDanger acl [acl-ability]="['SYSTEM-GOODS-NAME-CONFIG-delete']"
|
||||
(click)="removeType(item)">删除</li>
|
||||
</ul>
|
||||
</nz-dropdown-menu>
|
||||
</nz-list-item>
|
||||
@ -25,7 +29,8 @@
|
||||
<ng-template #listHeader>
|
||||
<div class="d-flex justify-content-between align-items-center">
|
||||
<label style="font-weight: 700;font-size: 16px;">货物类型</label>
|
||||
<button nz-button nzType="primary" (click)="typeAction()"><i nz-icon nzType="plus"
|
||||
<button nz-button nzType="primary" (click)="typeAction()" acl
|
||||
[acl-ability]="['SYSTEM-GOODS-NAME-CONFIG-add']"><i nz-icon nzType="plus"
|
||||
nzTheme="outline"></i>新增</button>
|
||||
</div>
|
||||
</ng-template>
|
||||
@ -39,7 +44,8 @@
|
||||
</nz-input-group>
|
||||
<ng-template #suffixTemplateInfo><i nz-icon nzType="search" nzTheme="outline" (click)="st.load(1)"></i>
|
||||
</ng-template>
|
||||
<button nz-button nzType="primary" (click)="typeItemAction()"><i nz-icon nzType="plus"
|
||||
<button nz-button nzType="primary" (click)="typeItemAction()" acl
|
||||
[acl-ability]="['SYSTEM-GOODS-NAME-CONFIG-add']"><i nz-icon nzType="plus"
|
||||
nzTheme="outline"></i>新增</button>
|
||||
</div>
|
||||
|
||||
|
||||
@ -28,18 +28,22 @@ export class GoodsNameConfigComponent implements OnInit {
|
||||
buttons: [
|
||||
{
|
||||
text: '编辑',
|
||||
acl: { ability: ['SYSTEM-GOODS-NAME-CONFIG-edit'] },
|
||||
click: item => this.typeItemAction(item)
|
||||
},
|
||||
{
|
||||
text: '上移',
|
||||
acl: { ability: ['SYSTEM-GOODS-NAME-CONFIG-sort'] },
|
||||
click: item => this.sortTypeItem(item, 3)
|
||||
},
|
||||
{
|
||||
text: '下移',
|
||||
acl: { ability: ['SYSTEM-GOODS-NAME-CONFIG-sort'] },
|
||||
click: item => this.sortTypeItem(item, 4)
|
||||
},
|
||||
{
|
||||
text: '删除',
|
||||
acl: { ability: ['SYSTEM-GOODS-NAME-CONFIG-delete'] },
|
||||
click: item => this.removeTypeItem(item)
|
||||
}
|
||||
]
|
||||
|
||||
Reference in New Issue
Block a user