|
@@ -1,3 +1,4 @@
|
|
|
+@if (!editLoading && eduProcessList.length > 0) {
|
|
|
<nz-page-header>
|
|
|
|
|
|
<nz-page-header-title
|
|
@@ -15,19 +16,19 @@
|
|
|
<div class="tool">
|
|
|
<div class="tool-left">
|
|
|
|
|
|
- <nz-input-group style="width: 210px" [nzPrefix]="prefixTemplateUser">
|
|
|
- <input
|
|
|
- type="text"
|
|
|
- nz-input
|
|
|
- placeholder="搜索"
|
|
|
- [(ngModel)]="searchValue"
|
|
|
- (ngModelChange)="onSearch($event)"
|
|
|
- />
|
|
|
- </nz-input-group>
|
|
|
- <ng-template #prefixTemplateUser
|
|
|
- ><span nz-icon nzType="search"></span
|
|
|
- ></ng-template>
|
|
|
- </div> -->
|
|
|
+ <nz-input-group style="width: 210px" [nzPrefix]="prefixTemplateUser">
|
|
|
+ <input
|
|
|
+ type="text"
|
|
|
+ nz-input
|
|
|
+ placeholder="搜索"
|
|
|
+ [(ngModel)]="searchValue"
|
|
|
+ (ngModelChange)="onSearch($event)"
|
|
|
+ />
|
|
|
+ </nz-input-group>
|
|
|
+ <ng-template #prefixTemplateUser
|
|
|
+ ><span nz-icon nzType="search"></span
|
|
|
+ ></ng-template>
|
|
|
+ </div> -->
|
|
|
<div class="">
|
|
|
<nz-input-group style="width: 210px" [nzPrefix]="prefixTemplateUser">
|
|
|
<input
|
|
@@ -47,12 +48,12 @@
|
|
|
</div>
|
|
|
<div class="layout" #maxWidth>
|
|
|
|
|
|
- <ul nz-menu>
|
|
|
- @for (item of nodes; track $index) {
|
|
|
- <li nz-menu-item (click)="changeDepart(item)">{{ item.title }}</li>
|
|
|
- }
|
|
|
- </ul>
|
|
|
- </div> -->
|
|
|
+ <ul nz-menu>
|
|
|
+ @for (item of nodes; track $index) {
|
|
|
+ <li nz-menu-item (click)="changeDepart(item)">{{ item.title }}</li>
|
|
|
+ }
|
|
|
+ </ul>
|
|
|
+ </div> -->
|
|
|
<div class="breadcrumb">
|
|
|
<nz-table
|
|
|
#tableData
|
|
@@ -71,14 +72,14 @@
|
|
|
<thead>
|
|
|
<tr>
|
|
|
|
|
|
- nzEllipsis
|
|
|
- nzWidth="50px"
|
|
|
- nzLeft
|
|
|
- [nzChecked]="checkedAll"
|
|
|
- [nzIndeterminate]="indeterminate"
|
|
|
- nzLabel="Select all"
|
|
|
- (nzCheckedChange)="onAllChecked($event)"
|
|
|
- ></th> -->
|
|
|
+ nzEllipsis
|
|
|
+ nzWidth="50px"
|
|
|
+ nzLeft
|
|
|
+ [nzChecked]="checkedAll"
|
|
|
+ [nzIndeterminate]="indeterminate"
|
|
|
+ nzLabel="Select all"
|
|
|
+ (nzCheckedChange)="onAllChecked($event)"
|
|
|
+ ></th> -->
|
|
|
<th nzEllipsis nzWidth="120px" nzLeft>流程名称</th>
|
|
|
|
|
|
<th nzEllipsis nzWidth="120px">流程描述</th>
|
|
@@ -92,11 +93,11 @@
|
|
|
@for (data of tableData.data; track data.id) {
|
|
|
<tr>
|
|
|
|
|
|
- nzEllipsis
|
|
|
- nzLeft
|
|
|
- [nzChecked]="setOfCheckedId.has(data.id)"
|
|
|
- (nzCheckedChange)="onItemChecked(data.id, $event)"
|
|
|
- ></td> -->
|
|
|
+ nzEllipsis
|
|
|
+ nzLeft
|
|
|
+ [nzChecked]="setOfCheckedId.has(data.id)"
|
|
|
+ (nzCheckedChange)="onItemChecked(data.id, $event)"
|
|
|
+ ></td> -->
|
|
|
<td
|
|
|
nzEllipsis
|
|
|
(click)="
|
|
@@ -109,13 +110,17 @@
|
|
|
{{ data?.get("name") || "-" }}
|
|
|
</td>
|
|
|
|
|
|
- {{ data?.get("code") || "-" }}
|
|
|
- </td> -->
|
|
|
+ {{ data?.get("code") || "-" }}
|
|
|
+ </td> -->
|
|
|
<td nzEllipsis>
|
|
|
{{ data?.get("desc") || "-" }}
|
|
|
</td>
|
|
|
<td nzEllipsis>
|
|
|
- {{ data?.get("num") || data?.get("num") == 0 ? data?.get("num") : "-" }}
|
|
|
+ {{
|
|
|
+ data?.get("num") || data?.get("num") == 0
|
|
|
+ ? data?.get("num")
|
|
|
+ : "-"
|
|
|
+ }}
|
|
|
</td>
|
|
|
<td nzEllipsis>
|
|
|
{{
|
|
@@ -128,65 +133,65 @@
|
|
|
>
|
|
|
</td>
|
|
|
|
|
|
- <button
|
|
|
- nz-button
|
|
|
- nz-dropdown
|
|
|
- [nzDropdownMenu]="menu"
|
|
|
- [nzPlacement]="'bottomLeft'"
|
|
|
- >
|
|
|
- <span nz-icon nzType="ellipsis" nzTheme="outline"></span>
|
|
|
- </button>
|
|
|
- <nz-dropdown-menu #menu="nzDropdownMenu">
|
|
|
- <ul nz-menu>
|
|
|
- @if (statusMap[data.id].strat){
|
|
|
- <li nz-menu-item>
|
|
|
- <button
|
|
|
- nz-button
|
|
|
- nzType="link"
|
|
|
- style="color: #231c1f"
|
|
|
- (click)="onStatusChange(data, 'strat', true)"
|
|
|
- >
|
|
|
- <span
|
|
|
- nz-icon
|
|
|
- nzType="caret-right"
|
|
|
- nzTheme="outline"
|
|
|
- ></span
|
|
|
- >开始流程
|
|
|
- </button>
|
|
|
- </li>
|
|
|
- } @if (statusMap[data.id].stop){
|
|
|
- <li nz-menu-item>
|
|
|
- <button
|
|
|
- nz-button
|
|
|
- nzType="link"
|
|
|
- style="color: #231c1f"
|
|
|
- (click)="onStatusChange(data, 'stop', true)"
|
|
|
- >
|
|
|
- <span
|
|
|
- nz-icon
|
|
|
- nzType="pause-circle"
|
|
|
- nzTheme="outline"
|
|
|
- ></span
|
|
|
- >暂停流程
|
|
|
- </button>
|
|
|
- </li>
|
|
|
- } @if (statusMap[data.id].end){
|
|
|
- <li nz-menu-item>
|
|
|
- <button
|
|
|
- nz-button
|
|
|
- nzType="link"
|
|
|
- style="color: #231c1f"
|
|
|
- (click)="onStatusChange(data, 'end', true)"
|
|
|
- >
|
|
|
- <span nz-icon nzType="stop" nzTheme="outline"></span
|
|
|
- >结束流程
|
|
|
- </button>
|
|
|
- </li>
|
|
|
- } @if (statusMap[data.id].del){
|
|
|
- }
|
|
|
- </ul>
|
|
|
- </nz-dropdown-menu>
|
|
|
- </td> -->
|
|
|
+ <button
|
|
|
+ nz-button
|
|
|
+ nz-dropdown
|
|
|
+ [nzDropdownMenu]="menu"
|
|
|
+ [nzPlacement]="'bottomLeft'"
|
|
|
+ >
|
|
|
+ <span nz-icon nzType="ellipsis" nzTheme="outline"></span>
|
|
|
+ </button>
|
|
|
+ <nz-dropdown-menu #menu="nzDropdownMenu">
|
|
|
+ <ul nz-menu>
|
|
|
+ @if (statusMap[data.id].strat){
|
|
|
+ <li nz-menu-item>
|
|
|
+ <button
|
|
|
+ nz-button
|
|
|
+ nzType="link"
|
|
|
+ style="color: #231c1f"
|
|
|
+ (click)="onStatusChange(data, 'strat', true)"
|
|
|
+ >
|
|
|
+ <span
|
|
|
+ nz-icon
|
|
|
+ nzType="caret-right"
|
|
|
+ nzTheme="outline"
|
|
|
+ ></span
|
|
|
+ >开始流程
|
|
|
+ </button>
|
|
|
+ </li>
|
|
|
+ } @if (statusMap[data.id].stop){
|
|
|
+ <li nz-menu-item>
|
|
|
+ <button
|
|
|
+ nz-button
|
|
|
+ nzType="link"
|
|
|
+ style="color: #231c1f"
|
|
|
+ (click)="onStatusChange(data, 'stop', true)"
|
|
|
+ >
|
|
|
+ <span
|
|
|
+ nz-icon
|
|
|
+ nzType="pause-circle"
|
|
|
+ nzTheme="outline"
|
|
|
+ ></span
|
|
|
+ >暂停流程
|
|
|
+ </button>
|
|
|
+ </li>
|
|
|
+ } @if (statusMap[data.id].end){
|
|
|
+ <li nz-menu-item>
|
|
|
+ <button
|
|
|
+ nz-button
|
|
|
+ nzType="link"
|
|
|
+ style="color: #231c1f"
|
|
|
+ (click)="onStatusChange(data, 'end', true)"
|
|
|
+ >
|
|
|
+ <span nz-icon nzType="stop" nzTheme="outline"></span
|
|
|
+ >结束流程
|
|
|
+ </button>
|
|
|
+ </li>
|
|
|
+ } @if (statusMap[data.id].del){
|
|
|
+ }
|
|
|
+ </ul>
|
|
|
+ </nz-dropdown-menu>
|
|
|
+ </td> -->
|
|
|
</tr>
|
|
|
}
|
|
|
</tbody>
|
|
@@ -198,44 +203,43 @@
|
|
|
</div>
|
|
|
</div>
|
|
|
|
|
|
-<div class="batch-toolbar-modal" *ngIf="setOfCheckedId?.size">
|
|
|
- <div class="batch-toolbar">
|
|
|
- <div class="styles_counter__18S08">
|
|
|
- <span>已选</span>
|
|
|
- <span class="styles_num__178Wa">{{ setOfCheckedId.size }}</span>
|
|
|
- </div>
|
|
|
-
|
|
|
- <div class="ant-space ant-space-horizontal ant-space-align-center">
|
|
|
- <div class="ant-space-item" style="margin-right: 16px">
|
|
|
- <button nz-button nzType="text" (click)="statusSelected('del')">
|
|
|
- <span nz-icon nzType="delete"></span>
|
|
|
- 删除
|
|
|
- </button>
|
|
|
- </div>
|
|
|
+
|
|
|
+ <div class="batch-toolbar">
|
|
|
+ <div class="styles_counter__18S08">
|
|
|
+ <span>已选</span>
|
|
|
+ <span class="styles_num__178Wa">{{ setOfCheckedId.size }}</span>
|
|
|
+ </div>
|
|
|
+ <div class="styles_cancel__AARoT">
|
|
|
+ <button nz-button nzType="text" (click)="statusSelected('strat')">
|
|
|
+ <span nz-icon nzType="caret-right" nzTheme="outline"></span>
|
|
|
+ 批量开始
|
|
|
+ </button>
|
|
|
+ </div>
|
|
|
+ <div class="styles_cancel__AARoT">
|
|
|
+ <button nz-button nzType="text" (click)="statusSelected('stop')">
|
|
|
+ <span nz-icon nzType="pause-circle" nzTheme="outline"></span>
|
|
|
+ 批量暂停
|
|
|
+ </button>
|
|
|
+ </div>
|
|
|
+ <div class="styles_cancel__AARoT">
|
|
|
+ <button nz-button nzType="text" (click)="statusSelected('end')">
|
|
|
+ <span nz-icon nzType="stop" nzTheme="outline"></span>
|
|
|
+ 批量结束
|
|
|
+ </button>
|
|
|
+ </div>
|
|
|
+ <div class="styles_cancel__AARoT">
|
|
|
+ <button nz-button nzType="text" (click)="onAllChecked(false)">
|
|
|
+ 取消选中
|
|
|
+ </button>
|
|
|
</div>
|
|
|
- </div> -->
|
|
|
- <div class="styles_cancel__AARoT">
|
|
|
- <button nz-button nzType="text" (click)="statusSelected('strat')">
|
|
|
- <span nz-icon nzType="caret-right" nzTheme="outline"></span>
|
|
|
- 批量开始
|
|
|
- </button>
|
|
|
- </div>
|
|
|
- <div class="styles_cancel__AARoT">
|
|
|
- <button nz-button nzType="text" (click)="statusSelected('stop')">
|
|
|
- <span nz-icon nzType="pause-circle" nzTheme="outline"></span>
|
|
|
- 批量暂停
|
|
|
- </button>
|
|
|
- </div>
|
|
|
- <div class="styles_cancel__AARoT">
|
|
|
- <button nz-button nzType="text" (click)="statusSelected('end')">
|
|
|
- <span nz-icon nzType="stop" nzTheme="outline"></span>
|
|
|
- 批量结束
|
|
|
- </button>
|
|
|
- </div>
|
|
|
- <div class="styles_cancel__AARoT">
|
|
|
- <button nz-button nzType="text" (click)="onAllChecked(false)">
|
|
|
- 取消选中
|
|
|
- </button>
|
|
|
</div>
|
|
|
+ </div> -->
|
|
|
+}
|
|
|
+@else if (editLoading) {
|
|
|
+ <div class="loading">
|
|
|
+ <nz-spin nzSimple [nzSize]="'large'"></nz-spin>
|
|
|
</div>
|
|
|
-</div>
|
|
|
+}
|
|
|
+@else {
|
|
|
+ <nz-empty style="margin: 100px auto;" nzNotFoundContent="暂未绑定对应单位管理员,请联系工作人员"></nz-empty>
|
|
|
+}
|