|
@@ -41,10 +41,10 @@
|
|
|
<th nzEllipsis nzWidth="120px">出版单位</th>
|
|
|
<th nzEllipsis nzWidth="120px">出版单位联系人</th>
|
|
|
@if (!eduProcess?.id) {
|
|
|
- <th nzEllipsis nzWidth="120px">申报部门</th>
|
|
|
+ <th nzEllipsis nzWidth="120px">申报部门</th>
|
|
|
}
|
|
|
<th nzEllipsis nzWidth="80px" nzAlign="center">文件状态</th>
|
|
|
- <th nzEllipsis nzWidth="100px" nzAlign="center" nzRight>操作</th>
|
|
|
+ <th nzEllipsis nzWidth="50px" nzAlign="center" nzRight>操作</th>
|
|
|
</tr>
|
|
|
</thead>
|
|
|
@if (textbookList.length > 0) {
|
|
@@ -54,9 +54,7 @@
|
|
|
<td
|
|
|
nzEllipsis
|
|
|
class="activeTd"
|
|
|
- (click)="
|
|
|
- toUrl('/common/textbook/details/' + data?.id)
|
|
|
- "
|
|
|
+ (click)="toUrl('/common/textbook/details/' + data?.id)"
|
|
|
nz-popover
|
|
|
[nzPopoverContent]="contentTemplatetitle"
|
|
|
>
|
|
@@ -113,20 +111,64 @@
|
|
|
</ng-template>
|
|
|
</td>
|
|
|
@if (!eduProcess?.id) {
|
|
|
- <td nzEllipsis>{{data?.get('department')?.get('name')}}</td>
|
|
|
+ <td nzEllipsis>{{ data?.get("department")?.get("name") }}</td>
|
|
|
}
|
|
|
<td nzEllipsis nzAlign="center">
|
|
|
<span [style.color]="statusMap[data.id].color">{{
|
|
|
statusMap[data.id].status
|
|
|
}}</span>
|
|
|
</td>
|
|
|
- <td nzEllipsis nzRight nzAlign="left">
|
|
|
- @if (statusMap[data.id].btn == '查看') {
|
|
|
+ <td nzEllipsis nzRight nzAlign="center">
|
|
|
+ <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>
|
|
|
+ <li nz-menu-item (click)="onEditModal(data)">
|
|
|
+ <button nz-button nzType="link" style="color: #231c1f">
|
|
|
+ <span nz-icon nzType="edit" nzTheme="outline"></span
|
|
|
+ >编辑源文件
|
|
|
+ </button>
|
|
|
+ </li>
|
|
|
+ @if(statusMap[data.id].btn == '查看'){
|
|
|
+ <li nz-menu-item (click)="onReview(data)">
|
|
|
+ <button nz-button nzType="link" style="color: #231c1f">
|
|
|
+ <span nz-icon nzType="eye" nzTheme="outline"></span>查看源文件
|
|
|
+ </button>
|
|
|
+ </li>
|
|
|
+ <li nz-menu-item (click)="onReject(data)">
|
|
|
+ <button nz-button nzType="link" style="color: #231c1f">
|
|
|
+ <span nz-icon nzType="rollback" nzTheme="outline"></span
|
|
|
+ >退回源文件
|
|
|
+ </button>
|
|
|
+ </li>
|
|
|
+ }@else {
|
|
|
+ <li nz-menu-item (click)="onEmitMsg(data)">
|
|
|
+ <button nz-button nzType="link" style="color: #231c1f">
|
|
|
+ <span nz-icon nzType="read" nzTheme="outline"></span
|
|
|
+ >短信提醒上传
|
|
|
+ </button>
|
|
|
+ </li>
|
|
|
+ }
|
|
|
+ </ul>
|
|
|
+ </nz-dropdown-menu>
|
|
|
+
|
|
|
<a nz-button nzType="link" (click)="onReview(data)">查看</a>
|
|
|
- <a nz-button nzType="link" style="color:#c6233f;" (click)="onReject(data)">退回</a>
|
|
|
+ <a
|
|
|
+ nz-button
|
|
|
+ nzType="link"
|
|
|
+ style="color: #c6233f"
|
|
|
+ (click)="onReject(data)"
|
|
|
+ >退回</a
|
|
|
+ >
|
|
|
}@else {
|
|
|
<a nz-button nzType="link" (click)="onEmitMsg(data)">提醒</a>
|
|
|
- }
|
|
|
+ } -->
|
|
|
</td>
|
|
|
</tr>
|
|
|
}
|
|
@@ -211,12 +253,7 @@
|
|
|
<td
|
|
|
nzEllipsis
|
|
|
class="activeTd"
|
|
|
- (click)="
|
|
|
- toUrl(
|
|
|
- '/common/textbook/details/' +
|
|
|
- data?.id
|
|
|
- )
|
|
|
- "
|
|
|
+ (click)="toUrl('/common/textbook/details/' + data?.id)"
|
|
|
nz-popover
|
|
|
[nzPopoverContent]="contentTemplatetitle"
|
|
|
>
|
|
@@ -281,11 +318,11 @@
|
|
|
</button>
|
|
|
</div>
|
|
|
</nz-modal>
|
|
|
-
|
|
|
+
|
|
|
<nz-modal
|
|
|
- [(nzVisible)]="isVisible"
|
|
|
+ [(nzVisible)]="isVisiblePreview"
|
|
|
nzTitle="教材源文件"
|
|
|
- (nzOnCancel)="isVisible = false"
|
|
|
+ (nzOnCancel)="isVisiblePreview = false"
|
|
|
nzWidth="600px"
|
|
|
>
|
|
|
<ng-container *nzModalContent>
|
|
@@ -339,6 +376,92 @@
|
|
|
</div>
|
|
|
</ng-container>
|
|
|
<div *nzModalFooter>
|
|
|
- <button nz-button nzType="primary" (click)="isVisible = false">关闭</button>
|
|
|
+ <button nz-button nzType="primary" (click)="isVisiblePreview = false">
|
|
|
+ 关闭
|
|
|
+ </button>
|
|
|
+ </div>
|
|
|
+</nz-modal>
|
|
|
+
|
|
|
+<nz-modal
|
|
|
+ [(nzVisible)]="isVisible"
|
|
|
+ nzTitle="上传教材源文件"
|
|
|
+ (nzOnCancel)="isVisible = false"
|
|
|
+ nzWidth="600px"
|
|
|
+>
|
|
|
+ <ng-container *nzModalContent>
|
|
|
+ <div nz-row class="modal-content">
|
|
|
+ @if (currentTextbook?.get('type')=='全册') {
|
|
|
+ <nz-collapse [nzBordered]="false">
|
|
|
+ @for (panel of currentTextbook?.get('childrens'); track panel) { @if
|
|
|
+ (this.tbookSer.profile.identity === '国家级管理员') {
|
|
|
+ <nz-collapse-panel
|
|
|
+ #p
|
|
|
+ [nzHeader]="title"
|
|
|
+ [nzActive]="false"
|
|
|
+ nzExpandedIcon="caret-right"
|
|
|
+ style="
|
|
|
+ background: #f7f7f7;
|
|
|
+ border-radius: 4px;
|
|
|
+ margin-bottom: 24px;
|
|
|
+ border: 0px;
|
|
|
+ "
|
|
|
+ >
|
|
|
+ <ng-template #title>
|
|
|
+ <span class="panel-title">{{
|
|
|
+ "分册" + ($index + 1) + "-" + currentTextbook?.get("title")
|
|
|
+ }}</span>
|
|
|
+ </ng-template>
|
|
|
+ <div class="">
|
|
|
+ <app-upload-collect
|
|
|
+ #children
|
|
|
+ [eduTextbookVolume]="panel"
|
|
|
+ ></app-upload-collect>
|
|
|
+ </div>
|
|
|
+ <ng-template #expandedIcon let-active>
|
|
|
+ {{ active }}
|
|
|
+ <span
|
|
|
+ nz-icon
|
|
|
+ nzType="caret-right"
|
|
|
+ class="ant-collapse-arrow"
|
|
|
+ [nzRotate]="p.nzActive ? 90 : -90"
|
|
|
+ ></span>
|
|
|
+ </ng-template>
|
|
|
+ </nz-collapse-panel>
|
|
|
+ } }
|
|
|
+ </nz-collapse>
|
|
|
+ } @else {
|
|
|
+ <app-upload-collect
|
|
|
+ #children
|
|
|
+ [eduTextbookVolume]="currentTextbook?.get('childrens')[0]"
|
|
|
+ ></app-upload-collect>
|
|
|
+ }
|
|
|
+ </div>
|
|
|
+ </ng-container>
|
|
|
+ <div *nzModalFooter>
|
|
|
+ <button
|
|
|
+ nz-button
|
|
|
+ nzType="default"
|
|
|
+ [disabled]="btnLoading"
|
|
|
+ (click)="isVisible = false"
|
|
|
+ >
|
|
|
+ 取消
|
|
|
+ </button>
|
|
|
+ <button
|
|
|
+ nz-button
|
|
|
+ nzType="default"
|
|
|
+ [nzLoading]="btnLoading"
|
|
|
+ (click)="saveCollect('sbmit')"
|
|
|
+ >
|
|
|
+ 确认修改
|
|
|
+ </button>
|
|
|
+
|
|
|
+ nz-button
|
|
|
+ nzType="primary"
|
|
|
+ [disabled]="false"
|
|
|
+ (click)="saveCollect('save')"
|
|
|
+ [nzLoading]="btnLoading"
|
|
|
+ >
|
|
|
+ 保存
|
|
|
+ </button> -->
|
|
|
</div>
|
|
|
</nz-modal>
|