Quellcode durchsuchen

创建教材相关

cehn vor 8 Monaten
Ursprung
Commit
fbe4fab3a4

+ 1 - 2
projects/textbook/src/modules/nav-author/components/attachment/attachment.component.html

@@ -7,8 +7,7 @@
     <div class="title">1.所有作者政治审查意见(必须提供 )</div>
     <div class="text">
       <span style="color: red;">*</span>
-      从本申报平台 <a (click)="downloadFile('教材编写人员政治审查表.docx')">下载格式要求</a> 后,对应作者姓名上传“作者政治审查表” PDF 格式,大小不超过 2M。作者单位党委对作者进行审查,对政治思想表现情况进行评价,确保作者的正确政治方向、价值取向,无违法违纪等记录。
-      教材编写成员涉及多个不同单位时需要各单位分别出具意见,并由所在单位党委盖章。
+      从本申报平台 <a (click)="downloadFile('教材编写人员政治审查表.docx')">下载格式要求</a> 后,对应作者姓名上传“作者政治审查表” PDF 格式,大小不超过 2M。所有作者均需由所在单位党委提供政治审查意见,并由单位党委(如学校党委)盖章。民主党派或无党派作者也由单位党委出具。退休、去世的作者由原单位出具。外籍作者、无单位的作者由国内的聘用单位或邀请其编写教材的单位(如第一主编单位)出具。如教材有编委会,教材封面、版权页出现的编委会成员(包括主审等),均需提供政治审查意见,上传至各册“其他编者”行。
       <!-- 从本申报平台
       <a (click)="downloadFile('教材编写人员政治审查表.docx')">下载格式要求</a>
       后,对应作者姓名上传“作者政治审查表”,支持 PDF、JPG、JPEG、PNG 格式,大小不超过 2M。作者单位党委对作者进行审查,对政治思想表现情况进行评价,确保作者的正确政治方向、价值取向,无违法违纪等记录。

+ 13 - 6
projects/textbook/src/modules/nav-author/components/create/author-file/author-file.component.html

@@ -19,6 +19,8 @@
             作者诚信承诺签名
             <span style="color: red;">*</span>
           </th> -->
+
+      <th nzWidth="120px" nzRight>其他编者</th>
       <th nzWidth="120px" nzRight>
         作者政治审查表
         <span style="color: red">*</span>
@@ -57,12 +59,17 @@
       <td>
         {{ data.work }}
       </td>
-      <!-- <td nzRight>
-            @if (data.signature) {
-              <a style="color: #3e49b3;" (click)="openFile(data.signature)">签名文件</a>
-            }
-            <app-comp-upload (change)="upload($event, 'signature',index)"></app-comp-upload>
-          </td> -->
+      <td nzRight>
+        @if (data.otherEditor) {
+        <a style="color: #3e49b3" (click)="openFile(data.otherEditor)"
+          >政治审查意见</a
+        >
+        }
+        <app-comp-upload
+          [type]="'pdf'"
+          (change)="upload($event, 'otherEditor', index)"
+        ></app-comp-upload>
+      </td>
       <td nzRight>
         @if (data.examine) {
         <a style="color: #3e49b3" (click)="openFile(data.examine)"

+ 5 - 3
projects/textbook/src/modules/nav-author/components/create/author-file/author-file.component.ts

@@ -30,6 +30,7 @@ interface author {
   work: string;
   signature?: string;
   examine?: string;
+  otherEditor?:string
 }
 @Component({
   selector: 'app-author-file',
@@ -68,6 +69,7 @@ export class AuthorFileComponent implements OnInit {
       work: '',
       signature: '',
       examine: '',
+      otherEditor:''
     },
   ];
   constructor(
@@ -89,14 +91,14 @@ export class AuthorFileComponent implements OnInit {
   }
   upload(e: any, type: string, index?: any) {
     let file = e[e?.length - 1 || 0];
-    if (type == 'signature' || type == 'examine') {
+    if (type == 'signature' || type == 'examine' || type == 'otherEditor') {
       this.authorList[index][type] = file?.url;
     }
     console.log(this.authorList);
   }
   async submitForm(): Promise<boolean> {
-    let coursesVrifly = !this.authorList.some((item) =>
-      Object.values(item).some((val) => val == '' || val == undefined)
+    let coursesVrifly = !this.authorList.some((item:any) =>
+      Object.keys(item).some((key) => key != 'otherEditor' && (item[key] == '' || item[key] == undefined))
     );
     this.eduTextbookVolume?.set('authorList', this.authorList);
     await this.eduTextbookVolume?.save();

+ 1 - 1
projects/textbook/src/modules/nav-author/space/space.component.ts

@@ -59,7 +59,7 @@ export class SpaceComponent implements OnInit {
     // query.lessThanOrEqualTo('startDate', new Date());
     // query.greaterThan('deadline', new Date());
     query.notEqualTo('isDeleted', true);
-    query.containedIn('status', ['200', '300']);
+    // query.containedIn('status', ['200', '201','300', '400']);
     let res = await query.first();
     this.eduProcess = res
   }