|
@@ -35,10 +35,14 @@ export class UploadCollectComponent implements OnInit {
|
|
|
constructor(private msg: NzMessageService) {}
|
|
|
|
|
|
ngOnInit() {
|
|
|
- this.collectFiles = this.eduTextbookVolume?.get('collectFiles');
|
|
|
- this.collectDigitFiles = this.eduTextbookVolume?.get('collectDigitFiles');
|
|
|
- this.collectLink = this.eduTextbookVolume?.get('collectLink');
|
|
|
- this.radioValue = this.eduTextbookVolume?.get('collectCheck');
|
|
|
+ this.collectFiles = this.eduTextbookVolume?.get('collectFiles') || [];
|
|
|
+ this.collectDigitFiles = this.eduTextbookVolume?.get('collectDigitFiles') || [];
|
|
|
+ this.collectLink = this.eduTextbookVolume?.get('collectLink') || {
|
|
|
+ url: '',
|
|
|
+ username: '',
|
|
|
+ password: '',
|
|
|
+ };
|
|
|
+ this.radioValue = this.eduTextbookVolume?.get('collectCheck') || '上传文件';
|
|
|
}
|
|
|
upload(e: any, type: string) {
|
|
|
console.log('上传材料发生改变');
|