|
@@ -106,7 +106,9 @@ export class TextbookPertainComponent implements OnInit {
|
|
|
});
|
|
|
|
|
|
//适用专业代码及名称
|
|
|
- selectList = major.majors.options;
|
|
|
+ selectList =[
|
|
|
+ {"cate":"适用所有专业" ,"code":"000000","name": "适用所有专业","degree": "适用所有专业"},
|
|
|
+...major.majors.options] ;
|
|
|
|
|
|
//适用课程性质
|
|
|
checkOptionsOne = [
|
|
@@ -198,7 +200,7 @@ export class TextbookPertainComponent implements OnInit {
|
|
|
// this.checkOptionsOne =
|
|
|
// this.eduTextbook.get('characteristic') || this.checkOptionsOne;
|
|
|
let major = this.selectList.find(
|
|
|
- (item) => item.code == this.eduTextbook.get('major')?.code
|
|
|
+ (item:any) => item.code == this.eduTextbook.get('major')?.code
|
|
|
);
|
|
|
let lessons = this.eduTextbook.get('lessons')?.join(';');
|
|
|
this.validateForm = this.fb.group({
|
|
@@ -420,7 +422,7 @@ export class TextbookPertainComponent implements OnInit {
|
|
|
className: 'Company',
|
|
|
objectId: this.tbookSer.company,
|
|
|
});
|
|
|
- let major = this.selectList.find((item) => item.code == params.major);
|
|
|
+ let major = this.selectList.find((item:any) => item.code == params.major);
|
|
|
let lessons = params.lessons.split(';');
|
|
|
this.eduTextbook?.set('major', major);
|
|
|
params.period && this.eduTextbook?.set('period', params.period);
|