|
@@ -43,6 +43,11 @@ export class BasicInComponent implements OnInit {
|
|
|
@Input('editFrom') editFrom: any;
|
|
|
@Output() state: EventEmitter<any> = new EventEmitter<any>();
|
|
|
@Output() save: EventEmitter<any> = new EventEmitter<any>();
|
|
|
+
|
|
|
+
|
|
|
+ changeCode() { }
|
|
|
+ getCode(e: any) { }
|
|
|
+
|
|
|
|
|
|
approvedImgList:Array<any>=[{
|
|
|
name:'获批截图',
|
|
@@ -281,7 +286,7 @@ export class BasicInComponent implements OnInit {
|
|
|
type: [this.eduTextbook?.get('type') || '', [Validators.required]],
|
|
|
|
|
|
|
|
|
- majorPoniter: [this.eduTextbook?.get('majorPoniter') || '', [Validators.required]],
|
|
|
+ majorPoniter: [this.eduTextbook?.get('majorPoniter')?.code || '', [Validators.required]],
|
|
|
lang: [this.eduTextbook?.get('lang') || '', [Validators.required]],
|
|
|
authors: [this.eduTextbook?.get('authors') || ''],
|
|
|
editor: [this.eduTextbook?.get('editor') || '',],
|
|
@@ -377,7 +382,9 @@ export class BasicInComponent implements OnInit {
|
|
|
this.eduTextbook?.set('type', params.type);
|
|
|
|
|
|
this.eduTextbook?.set('typeNumber', this.typeNumber);
|
|
|
- this.eduTextbook?.set('majorPoniter', params.majorPoniter);
|
|
|
+
|
|
|
+ let majorPoniter = this.selectList.find((item) => item.code == params.majorPoniter);
|
|
|
+ this.eduTextbook?.set('majorPoniter', majorPoniter);
|
|
|
this.eduTextbook?.set('lang', params.lang);
|
|
|
this.eduTextbook?.set('authors', params.authors);
|
|
|
this.eduTextbook?.set('editor', params.editor);
|