cehn 1 月之前
父節點
當前提交
646fb42961

+ 2 - 2
projects/textbook/src/app/textbook/textbook.component.ts

@@ -705,7 +705,7 @@ export class TextbookComponent implements OnInit {
           }
           if (!data?.get('code')) {
             let t =
-              this.tbookSer.formatTime('YYYYmmdd', new Date()) +
+              this.tbookSer.formatTime('YYYYmmddHHMMSS', new Date()) +
               Math.random().toString().slice(-4);
             data.set('code', t);
           }
@@ -740,7 +740,7 @@ export class TextbookComponent implements OnInit {
                 count++;
                 if (!item?.get('code')) {
                   let t =
-                    this.tbookSer.formatTime('YYYYmmdd', new Date()) +
+                    this.tbookSer.formatTime('YYYYmmddHHMMSS', new Date()) +
                     Math.random().toString().slice(-4);
                   item.set('code', t);
                 }

+ 1 - 0
projects/textbook/src/modules/nav-author/components/attachment/attachment.component.ts

@@ -318,6 +318,7 @@ export class AttachmentComponent implements OnInit {
         this.eduTextbook?.set('moreMaterial', params.moreMaterial || null);
       this.eduTextbook?.set('copyrightImgUrl', params.copyrightImgUrl || null);
       this.eduTextbook?.set('CIPImgUrl', params.CIPImgUrl || null);
+      this.eduTextbook?.set('exportPDF', null)//重置导出文件地址
       await this.eduTextbook?.save();
       this.saveLoading = false;
       if (!isComplete) {

+ 2 - 1
projects/textbook/src/modules/nav-author/components/basic-in/basic-in.component.ts

@@ -182,7 +182,7 @@ export class BasicInComponent implements OnInit {
       // this.eduTextbook?.set('typeNumber', this.typeNumber);
       if (!this.eduTextbook?.get('code')) {
         let t =
-          this.tbookSer.formatTime('YYYYmmdd', new Date()) +
+          this.tbookSer.formatTime('YYYYmmddHHMMSS', new Date()) +
           Math.random().toString().slice(-4);
         this.eduTextbook.set('code', t);
       }
@@ -226,6 +226,7 @@ export class BasicInComponent implements OnInit {
       if(isComplete){
         this.eduTextbook.set('complete', true)
       }
+      this.eduTextbook.set('exportPDF', null)//重置导出文件地址
       await this.eduTextbook?.save();
       this.saveLoading = false;
       if (!isComplete) {

+ 1 - 0
projects/textbook/src/modules/nav-author/components/faith/faith.component.ts

@@ -146,6 +146,7 @@ export class FaithComponent implements OnInit {
     }else{
       this.msg.warning('保存成功,但存在未填写完成项');
     }
+    this.eduTextbook?.set('exportPDF', null)//重置导出文件地址
     await this.eduTextbook?.save();
     return;
   }

+ 1 - 0
projects/textbook/src/modules/nav-author/components/textbook-content/textbook-content.component.ts

@@ -205,6 +205,7 @@ export class TextbookContentComponent implements OnInit {
       params.innovateExplain &&
         this.eduTextbook?.set('innovateExplain', params.innovateExplain);
       params.influence && this.eduTextbook?.set('influence', params.influence);
+      this.eduTextbook?.set('exportPDF', null)//重置导出文件地址
       await this.eduTextbook?.save();
       this.saveLoading = false;
       if (!isComplete) {

+ 1 - 0
projects/textbook/src/modules/nav-author/components/textbook-pertain/textbook-pertain.component.ts

@@ -428,6 +428,7 @@ export class TextbookPertainComponent implements OnInit {
       // this.eduTextbook?.set('authorList', this.authorList);
       // this.eduTextbook?.set('achievementOptions', this.achievementOptions);
       // params.accept && this.eduTextbook?.set('accept', params.accept);
+      this.eduTextbook?.set('exportPDF', null)//重置导出文件地址
       await this.eduTextbook?.save();
       this.loading = false;
       if(!isComplete){