@@ -193,7 +193,7 @@ export class SelectedTabsComponent extends BasicFormComponent {
193193 throw new Error ( "descriptor can not be null" ) ;
194194 }
195195 // ,targetItemDesc_batch_source_process_extend
196- console . log ( [ meta , this . dataXReaderTargetName , this . descriptor ] ) ;
196+ // console.log([meta, this.dataXReaderTargetName,this.descriptor]);
197197 let detailId = meta . id ;
198198 let pluginMeta : PluginType [ ]
199199 = [ dataXReaderSubFormPluginMeta (
@@ -405,7 +405,6 @@ export class SelectedTabsComponent extends BasicFormComponent {
405405// 设置所选table的表以及 表的列
406406// 文档:https://angular.io/docs/ts/latest/guide/forms.html
407407@Component ( {
408- // templateUrl: '/runtime/addapp.htm'
409408 selector : "datax-reader-table-select" ,
410409 template : `
411410 <tis-steps *ngIf="createModel && this.dto.headerStepShow" [type]="stepType" [step]="0"></tis-steps>
@@ -452,10 +451,7 @@ export class SelectedTabsComponent extends BasicFormComponent {
452451 </ng-template>
453452 </nz-spin>
454453 `
455- , styles : [
456- `
457- `
458- ]
454+ , styles : [ `` ]
459455} )
460456export class DataxAddStep4Component extends BasicDataXAddComponent implements OnInit , AfterViewInit {
461457 errorItem : Item = Item . create ( [ ] ) ;
@@ -484,13 +480,6 @@ export class DataxAddStep4Component extends BasicDataXAddComponent implements On
484480 writerDesc : Array < Descriptor > = [ ] ;
485481 tabFormErrors : Map < string , Array < IFieldError > > ;
486482
487- // savePlugin = new EventEmitter<any>();
488-
489-
490-
491-
492-
493-
494483 /**
495484 *
496485 * @param baseCpt
@@ -510,32 +499,25 @@ export class DataxAddStep4Component extends BasicDataXAddComponent implements On
510499 }
511500 let subFieldForms : Map < string /*tableName*/ , Array < Item > > = new Map ( ) ;
512501 let subFormHetero : HeteroList = hList [ 0 ] ;
513- // console.log(subFormHetero);
514502 let item : Item = null ;
515503 let subForm : Array < Item > = null ;
516- // let desc: Descriptor = subFormHetero.descriptors.get(this.dto.readerDescriptor.impl);
517-
518504 if ( ! readerDescriptorImpl ) {
519505 item = subFormHetero . items [ 0 ] ;
520506 if ( ! item ) {
521507 throw new Error ( "readerDescriptorImpl is undefined and first item also is undefined" ) ;
522508 }
523509 readerDescriptorImpl = item . impl ;
524510 }
525-
526511 if ( ! readerDescriptorImpl ) {
527512 throw new Error ( "readerDescriptorImpl can not be undefined" ) ;
528513 }
529- //console.log([subFormHetero.descriptors,readerDescriptorImpl]);
530514 let desc : Descriptor = subFormHetero . descriptors . get ( readerDescriptorImpl ) ;
531515 if ( ! desc ) {
532- // console.log(subFormHetero.descriptors.keys());
533516 throw new Error ( "readerDescriptorImpl:" + readerDescriptorImpl ) ;
534517 }
535518
536519 for ( let itemIdx = 0 ; itemIdx < subFormHetero . items . length ; itemIdx ++ ) {
537520 item = subFormHetero . items [ itemIdx ] ;
538- // console.log([subFormHetero.items, itemIdx ,item]);
539521 for ( let tabKey in item . vals ) {
540522 /**==========================
541523 *START: 删除历史脏数据保护措施
@@ -553,9 +535,7 @@ export class DataxAddStep4Component extends BasicDataXAddComponent implements On
553535 // item.wrapItemVals();
554536 // @ts -ignore
555537 subForm = item . vals [ tabKey ] ;
556- // console.log([tabKey, subForm]);
557- // Item.wrapItemPropVal(v, at);
558- console . log ( [ tabKey , subForm ] ) ;
538+ // console.log([tabKey,subForm]);
559539 subFieldForms . set ( tabKey , subForm ) ;
560540 }
561541 break ;
@@ -565,13 +545,13 @@ export class DataxAddStep4Component extends BasicDataXAddComponent implements On
565545 throw new Error ( "readerDescriptorImpl:" + readerDescriptorImpl + ",desc:" + desc . impl + " must has subForm" ) ;
566546 }
567547
568- // console.log(subFieldForms);
569548 subFieldFormsCallback ( subFieldForms , subFormHetero , desc ) ;
570549 }
571550 ) ;
572551 }
573552
574- constructor ( tisService : TISService , modalService : NzModalService , private drawerService : NzDrawerService , r : Router , route : ActivatedRoute , notification : NzNotificationService ) {
553+ constructor ( tisService : TISService , modalService : NzModalService
554+ , private drawerService : NzDrawerService , r : Router , route : ActivatedRoute , notification : NzNotificationService ) {
575555 super ( tisService , modalService , r , route , notification ) ;
576556 }
577557
0 commit comments