edit
This commit is contained in:
@ -7,14 +7,9 @@
|
||||
[button]="'none'"></sf>
|
||||
</div>
|
||||
<div nz-col [nzSpan]="8" nzOffset="1">
|
||||
<button nz-button nzType="primary" [nzLoading]="service.http.loading" (click)="st?.load(1)">查询</button>
|
||||
<button nz-button nzType="primary" [nzLoading]="service.http.loading"
|
||||
(click)="loadMemu(selectedPlatform.appId)">查询</button>
|
||||
<button nz-button (click)="resetSF()">重置</button>
|
||||
<button nz-button (click)="menuImport(0)" [nzLoading]="service.http.loading">
|
||||
导入货主菜单
|
||||
</button>
|
||||
<button nz-button (click)="menuImport(1)" [nzLoading]="service.http.loading">
|
||||
导入运营后台菜单
|
||||
</button>
|
||||
<!-- <button nz-button (click)="delMenu(0)" [nzLoading]="service.http.loading">
|
||||
清空货主菜单
|
||||
</button>
|
||||
@ -34,7 +29,15 @@
|
||||
<ng-template #extraTemplate>
|
||||
<div class="d-flex align-items-center">
|
||||
<div>
|
||||
<button nz-button nzType="primary" (click)="roleAction()">新增</button>
|
||||
<button nz-button nzType="primary" (click)="menuAction('新增菜单')">新增</button>
|
||||
<button nz-button nzType="primary" (click)="menuImport(0)" [disabled]="service.http.loading"
|
||||
*ngIf="selectedPlatform.enName==='tms-smc-web'">
|
||||
导入货主菜单
|
||||
</button>
|
||||
<button nz-button nzType="primary" (click)="menuImport(1)" [disabled]="service.http.loading"
|
||||
*ngIf="selectedPlatform.enName==='tms-obc-web'">
|
||||
导入运营后台菜单
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
</ng-template>
|
||||
@ -47,40 +50,44 @@
|
||||
{{ item.description }}
|
||||
</ng-template>
|
||||
</st> -->
|
||||
<nz-table #expandTable [nzData]="listOfMapData" nzTableLayout="fixed" nzBordered>
|
||||
<nz-table #expandTable [nzData]="listOfMapData" nzTableLayout="fixed" nzBordered nzSize="small"
|
||||
[nzLoading]="service.http.loading">
|
||||
<thead>
|
||||
<tr>
|
||||
<!-- <th nzWidth="70px" nzAlign="center">#</th> -->
|
||||
<th>菜单名称</th>
|
||||
<th>菜单编号</th>
|
||||
<th>路由地址</th>
|
||||
<th>菜单图标</th>
|
||||
<th>菜单排序</th>
|
||||
<th class="text-center">操作</th>
|
||||
<th nzAlign="center" nzWidth="120px">菜单图标</th>
|
||||
<th nzWidth="100px">菜单排序</th>
|
||||
<th nzAlign="center">操作</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<ng-container *ngFor="let data of expandTable.data">
|
||||
<ng-container *ngFor="let item of mapOfExpandedData[data.key]">
|
||||
<ng-container *ngFor="let item of mapOfExpandedData[data.key];let i = index">
|
||||
<tr *ngIf="(item.parent && item.parent.expand) || !item.parent">
|
||||
<!-- <td nzWidth="70px" nzAlign="center" [nzChecked]="item.checked">{{ i+1 }}</td> -->
|
||||
<td [nzIndentSize]="item.level! * 20" [nzShowExpand]="!!item.children" [(nzExpand)]="item.expand"
|
||||
(nzExpandChange)="collapse(mapOfExpandedData[data.key], item, $event)">
|
||||
(nzExpandChange)="service.collapse(mapOfExpandedData[data.key], item, $event)">
|
||||
{{ item.text }}
|
||||
</td>
|
||||
<td>{{ item.keyCode }}</td>
|
||||
<td>{{ item.link }}</td>
|
||||
<td>
|
||||
<td nzAlign="center" nzWidth="120px">
|
||||
<i nz-icon [nzType]="item.iconType"></i>
|
||||
</td>
|
||||
<td>{{ item.sorted }}</td>
|
||||
<td class="text-center">
|
||||
<a>查看</a>
|
||||
<td nzWidth="100px">{{ item.sorted }}</td>
|
||||
<td nzAlign="center">
|
||||
<a (click)="menuAction('查看菜单',item,item.parentId,true)">查看</a>
|
||||
<nz-divider nzType="vertical"></nz-divider>
|
||||
<a>编辑</a>
|
||||
<a (click)="menuAction('编辑菜单',item,item.parentId)">编辑</a>
|
||||
<nz-divider nzType="vertical"></nz-divider>
|
||||
<a>删除</a>
|
||||
<a (click)="deleteAction(item)">删除</a>
|
||||
<ng-container *ngIf="item.level!==3">
|
||||
<nz-divider nzType="vertical"></nz-divider>
|
||||
<a>新增子项</a>
|
||||
<a (click)="menuAction('新增菜单',null,item.id)">新增子项</a>
|
||||
</ng-container>
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
</ng-container>
|
||||
|
||||
Reference in New Issue
Block a user