|
|
@ -483,7 +483,7 @@ export class editorsDia{ |
|
|
|
this.snackBar.open('修改名称时间成功','确定',config); |
|
|
|
this.snackBar.open('修改名称时间成功','确定',config); |
|
|
|
setTimeout(() => { |
|
|
|
setTimeout(() => { |
|
|
|
this.http.get(`/api/Papers/${this.datas.id}`).subscribe((data:any) => { |
|
|
|
this.http.get(`/api/Papers/${this.datas.id}`).subscribe((data:any) => { |
|
|
|
if(data.paperDataInfo.length==0){ |
|
|
|
if (data.paperDataInfo == null || data.paperDataInfo.length == 0) { |
|
|
|
this.http.delete(`/api/Papers/${this.datas.id}`).subscribe((data:any) => { |
|
|
|
this.http.delete(`/api/Papers/${this.datas.id}`).subscribe((data:any) => { |
|
|
|
}) |
|
|
|
}) |
|
|
|
this.http.post('/api/Papers',params).subscribe(data => { |
|
|
|
this.http.post('/api/Papers',params).subscribe(data => { |
|
|
|