|
@@ -1,28 +1,30 @@
|
|
-<div class="flex pb-4">
|
|
|
|
- <button nz-button class="precaution-green" nzType="primary" (click)="onJobAdd()">添加岗位</button>
|
|
|
|
-</div>
|
|
|
|
-<div class="flex items-center leading-8 flex-wrap">
|
|
|
|
- @for (job of copyData; track job.id) {
|
|
|
|
- <span class="mr-2 last:mr-0">
|
|
|
|
- @if (!editJob || editJob.id !== job.id) {
|
|
|
|
- <span class="job-text">
|
|
|
|
- <nz-tag class="precaution-tag rounded cursor-pointer" nzColor="#1e5eff">
|
|
|
|
- <span class="text-sm">
|
|
|
|
- {{ job.name }}
|
|
|
|
|
|
+<nz-spin [nzSpinning]="loading">
|
|
|
|
+ <div class="flex pb-4">
|
|
|
|
+ <button nz-button class="precaution-green" nzType="primary" (click)="onJobAdd()">添加岗位</button>
|
|
|
|
+ </div>
|
|
|
|
+ <div class="flex items-center leading-8 flex-wrap">
|
|
|
|
+ @for (job of copyData; track job.id) {
|
|
|
|
+ <span class="mr-2 last:mr-0">
|
|
|
|
+ @if (!editJob || editJob.id !== job.id) {
|
|
|
|
+ <span class="job-text">
|
|
|
|
+ <nz-tag class="precaution-tag rounded cursor-pointer" nzColor="#1e5eff">
|
|
|
|
+ <span class="text-sm">
|
|
|
|
+ {{ job.name }}
|
|
|
|
+ </span>
|
|
|
|
+ </nz-tag>
|
|
|
|
+ <span class="job-action">
|
|
|
|
+ <span nz-icon nzType="edit" class="icon-normal mr-1" (click)="onJobEdit(job)"></span>
|
|
|
|
+ <span nz-icon nzType="delete" class="icon-delete" (click)="onJobDelete(job)"></span>
|
|
</span>
|
|
</span>
|
|
- </nz-tag>
|
|
|
|
- <span class="job-action">
|
|
|
|
- <span nz-icon nzType="edit" class="icon-normal mr-1" (click)="onJobEdit(job)"></span>
|
|
|
|
- <span nz-icon nzType="delete" class="icon-delete" (click)="onJobDelete(job)"></span>
|
|
|
|
</span>
|
|
</span>
|
|
- </span>
|
|
|
|
- } @else {
|
|
|
|
- <span class="inline-block text-nowrap">
|
|
|
|
- <input nz-input class="precaution-input" [(ngModel)]="editJobValue" />
|
|
|
|
- </span>
|
|
|
|
- <span nz-icon nzType="check" class="icon-normal ml-2" (click)="onJobEditConfirm(job)"></span>
|
|
|
|
- <span nz-icon nzType="close" class="icon-normal ml-1" (click)="onJobEditCancel(job)"></span>
|
|
|
|
- }
|
|
|
|
- </span>
|
|
|
|
- }
|
|
|
|
-</div>
|
|
|
|
|
|
+ } @else {
|
|
|
|
+ <span class="inline-block text-nowrap">
|
|
|
|
+ <input nz-input class="precaution-input" [(ngModel)]="editJobValue" />
|
|
|
|
+ </span>
|
|
|
|
+ <span nz-icon nzType="check" class="icon-normal ml-2" (click)="onJobEditConfirm(job)"></span>
|
|
|
|
+ <span nz-icon nzType="close" class="icon-normal ml-1" (click)="onJobEditCancel(job)"></span>
|
|
|
|
+ }
|
|
|
|
+ </span>
|
|
|
|
+ }
|
|
|
|
+ </div>
|
|
|
|
+</nz-spin>
|