|
@@ -31,6 +31,7 @@ export class UploadCollectComponent implements OnInit {
|
|
|
}; //链接、账号密码
|
|
|
|
|
|
radioValue: string = '上传文件';
|
|
|
+ carrierShape:string = '' //类型
|
|
|
|
|
|
constructor(private msg: NzMessageService) {}
|
|
|
|
|
@@ -43,6 +44,7 @@ export class UploadCollectComponent implements OnInit {
|
|
|
password: '',
|
|
|
};
|
|
|
this.radioValue = this.eduTextbookVolume?.get('collectCheck') || '上传文件';
|
|
|
+ this.carrierShape = this.eduTextbookVolume?.get('carrierShape')?.trim()
|
|
|
}
|
|
|
upload(e: any, type: string) {
|
|
|
console.log('上传材料发生改变');
|
|
@@ -53,8 +55,8 @@ export class UploadCollectComponent implements OnInit {
|
|
|
}
|
|
|
async submitForm(type: string) {
|
|
|
if (
|
|
|
- this.eduTextbookVolume?.get('carrierShape') == '纸质教材' ||
|
|
|
- this.eduTextbookVolume?.get('carrierShape') == '纸质教材附带电子资源'
|
|
|
+ this.carrierShape == '纸质教材' ||
|
|
|
+ this.carrierShape == '纸质教材附带电子资源'
|
|
|
) {
|
|
|
let upload = this.collectFiles?.some((item) => item.url);
|
|
|
// console.log(upload);
|
|
@@ -65,8 +67,8 @@ export class UploadCollectComponent implements OnInit {
|
|
|
this.eduTextbookVolume?.set('collectFiles', this.collectFiles);
|
|
|
}
|
|
|
if (
|
|
|
- this.eduTextbookVolume?.get('carrierShape') == '数字教材' ||
|
|
|
- this.eduTextbookVolume?.get('carrierShape') == '纸质教材附带电子资源'
|
|
|
+ this.carrierShape == '数字教材' ||
|
|
|
+ this.carrierShape == '纸质教材附带电子资源'
|
|
|
) {
|
|
|
let upload = this.collectDigitFiles?.some((item) => item.url);
|
|
|
// console.log(upload);
|