edit
This commit is contained in:
		@ -10,7 +10,6 @@
 | 
			
		||||
 */
 | 
			
		||||
import { Component, OnInit, EventEmitter, Input, Output } from '@angular/core';
 | 
			
		||||
import { BaseService } from '@shared';
 | 
			
		||||
import { NzUploadChangeParam } from 'ng-zorro-antd/upload';
 | 
			
		||||
 | 
			
		||||
const JSONTYPE = new Set([5, 6, 9]);
 | 
			
		||||
@Component({
 | 
			
		||||
@ -41,13 +40,10 @@ export class DynamicSettingH5Component implements OnInit {
 | 
			
		||||
  constructor(public service: BaseService) {}
 | 
			
		||||
 | 
			
		||||
  ngOnInit() {
 | 
			
		||||
    console.log(this.tabs);
 | 
			
		||||
  }
 | 
			
		||||
 | 
			
		||||
  changeType(type: any): void {
 | 
			
		||||
    this.selectedTab = type;
 | 
			
		||||
    console.log(type);
 | 
			
		||||
 | 
			
		||||
    this.selectedEvent.emit(this.selectedTab);
 | 
			
		||||
  }
 | 
			
		||||
 
 | 
			
		||||
@ -55,10 +51,8 @@ export class DynamicSettingH5Component implements OnInit {
 | 
			
		||||
    if (this.configList?.length < 0) {
 | 
			
		||||
      return;
 | 
			
		||||
    }
 | 
			
		||||
    console.log(this.configList);
 | 
			
		||||
    let params = [...this.configList];
 | 
			
		||||
    params = params.map((item: any) => {
 | 
			
		||||
      console.log(item);
 | 
			
		||||
      if (item.itemType == 9) {
 | 
			
		||||
        const files = item.itemValue?.map(({ response, name }: any) => ({ url:response?.data?.fullFilePath, name }));
 | 
			
		||||
        return {
 | 
			
		||||
@ -77,7 +71,6 @@ export class DynamicSettingH5Component implements OnInit {
 | 
			
		||||
        itemData: item.itemData ? JSON.stringify(item.itemData) : null
 | 
			
		||||
      };
 | 
			
		||||
    });
 | 
			
		||||
    console.log(params);
 | 
			
		||||
    this.saveEvent.emit(params);
 | 
			
		||||
  }
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
		Reference in New Issue
	
	Block a user