|
@@ -1,5 +1,6 @@
|
|
|
+<!-- 头部面包屑导航 -->
|
|
|
<page-header [action]="phActionTpl">
|
|
|
- <ng-template #phActionTpl> </ng-template>
|
|
|
+ <ng-template #phActionTpl></ng-template>
|
|
|
</page-header>
|
|
|
<nz-card>
|
|
|
<div nz-row [nzGutter]="24">
|
|
@@ -9,6 +10,7 @@
|
|
|
<!-- 添加一级 -->
|
|
|
<div nz-row [nzGutter]="24" style="margin-bottom: 10px;">
|
|
|
<div nz-col nzMd="24" nzLg="24">
|
|
|
+ <!-- acl [acl-ability]="'base-archives-project-approval:add'" 需添加响应 限才 能看到按钮 -->
|
|
|
<button (click)="add()" nz-button acl [acl-ability]="'base-archives-project-approval:add'" nzType="primary">
|
|
|
{{ 'button.leve.one' | translate }}
|
|
|
</button>
|
|
@@ -34,6 +36,18 @@
|
|
|
(nzClick)="treeClick($event)"
|
|
|
(nzDblClick)="openFolder($event)"
|
|
|
>
|
|
|
+ <!-- 数据渲染树 -->
|
|
|
+ <ng-template #nzTreeTemplate let-node>
|
|
|
+ <span class="custom-node">
|
|
|
+ <span *ngIf="!node.isLeaf" (contextmenu)="contextMenu(node.key, $event, contextTemplate)">
|
|
|
+ <span class="folder-name">{{ node.title }}</span>
|
|
|
+ </span>
|
|
|
+ <span *ngIf="node.isLeaf" (contextmenu)="contextMenu(node.key, $event, contextTemplate)">
|
|
|
+ <span class="file-name">{{ node.title }}</span>
|
|
|
+ </span>
|
|
|
+ </span>
|
|
|
+ </ng-template>
|
|
|
+ <!-- 树 右击下拉框 -->
|
|
|
<ng-template #contextTemplate>
|
|
|
<ul nz-menu nzInDropDown>
|
|
|
<li nz-menu-item (click)="addChild()" acl [acl-ability]="'sales-status:add'">
|
|
@@ -45,16 +59,6 @@
|
|
|
<li nz-menu-item (click)="cancel()">{{ 'button.cancel' | translate }}</li>
|
|
|
</ul>
|
|
|
</ng-template>
|
|
|
- <ng-template #nzTreeTemplate let-node>
|
|
|
- <span class="custom-node">
|
|
|
- <span *ngIf="!node.isLeaf" (contextmenu)="contextMenu(node.key, $event, contextTemplate)">
|
|
|
- <span class="folder-name">{{ node.title }}</span>
|
|
|
- </span>
|
|
|
- <span *ngIf="node.isLeaf" (contextmenu)="contextMenu(node.key, $event, contextTemplate)">
|
|
|
- <span class="file-name">{{ node.title }}</span>
|
|
|
- </span>
|
|
|
- </span>
|
|
|
- </ng-template>
|
|
|
</nz-tree>
|
|
|
</div>
|
|
|
</div>
|
|
@@ -76,8 +80,7 @@
|
|
|
[(ngModel)]="baseSalesStatus.code"
|
|
|
name="code"
|
|
|
nz-input
|
|
|
- placeholder="{{ 'aoto.create' | translate }}"
|
|
|
- />
|
|
|
+ placeholder="{{ 'aoto.create' | translate }}"/>
|
|
|
</nz-form-control>
|
|
|
</nz-form-item>
|
|
|
|
|
@@ -92,8 +95,7 @@
|
|
|
name="name"
|
|
|
nz-input
|
|
|
placeholder="{{ 'placeholder' | translate }}{{ 'sales.name' | translate }}"
|
|
|
- maxlength="20"
|
|
|
- />
|
|
|
+ maxlength="20"/>
|
|
|
<nz-form-explain *ngIf="validateForm.get('name')?.dirty && validateForm.get('name')?.errors">
|
|
|
{{ 'placeholder' | translate }}{{ 'sales.name' | translate }}
|
|
|
</nz-form-explain>
|
|
@@ -109,8 +111,8 @@
|
|
|
[(ngModel)]="status"
|
|
|
name="status"
|
|
|
nzCheckedChildren="{{ 'yes' | translate }}"
|
|
|
- nzUnCheckedChildren="{{ 'no' | translate }}"
|
|
|
- ></nz-switch>
|
|
|
+ nzUnCheckedChildren="{{ 'no' | translate }}">
|
|
|
+ </nz-switch>
|
|
|
</nz-form-control>
|
|
|
</nz-form-item>
|
|
|
|
|
@@ -124,8 +126,7 @@
|
|
|
[(ngModel)]="baseSalesStatus.sort"
|
|
|
name="sort"
|
|
|
nz-input
|
|
|
- placeholder="{{ 'placeholder' | translate }}{{ 'milestone.serial.number' | translate }}"
|
|
|
- />
|
|
|
+ placeholder="{{ 'placeholder' | translate }}{{ 'milestone.serial.number' | translate }}"/>
|
|
|
<nz-form-explain *ngIf="validateForm.get('sort')?.dirty && validateForm.get('sort')?.errors">
|
|
|
{{ 'placeholder' | translate }}{{ 'quotation.merchants' | translate
|
|
|
}}{{ 'milestone.serial.number' | translate }}
|