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