edit
This commit is contained in:
@ -11,7 +11,7 @@
|
||||
import { Component, OnInit, EventEmitter, Input, Output } from '@angular/core';
|
||||
import { BaseService } from '@shared';
|
||||
|
||||
const JSONTYPE = new Set([5, 6, 9]);
|
||||
const JSONTYPE = new Set([5, 6, 9, 999]);
|
||||
@Component({
|
||||
selector: 'app-dynamic-setting-h5',
|
||||
templateUrl: './dynamic-setting-h5.component.html',
|
||||
@ -39,14 +39,13 @@ export class DynamicSettingH5Component implements OnInit {
|
||||
listUrls: any;
|
||||
constructor(public service: BaseService) {}
|
||||
|
||||
ngOnInit() {
|
||||
}
|
||||
ngOnInit() {}
|
||||
|
||||
changeType(type: any): void {
|
||||
this.selectedTab = type;
|
||||
this.selectedEvent.emit(this.selectedTab);
|
||||
}
|
||||
|
||||
|
||||
saveAction() {
|
||||
if (this.configList?.length < 0) {
|
||||
return;
|
||||
@ -54,7 +53,7 @@ export class DynamicSettingH5Component implements OnInit {
|
||||
let params = [...this.configList];
|
||||
params = params.map((item: any) => {
|
||||
if (item.itemType == 9) {
|
||||
const files = item.itemValue?.map(({ response, name }: any) => ({ url:response?.data?.fullFilePath, name }));
|
||||
const files = item.itemValue?.map(({ response, name }: any) => ({ url: response?.data?.fullFilePath, name }));
|
||||
return {
|
||||
...item,
|
||||
remark: item.remark ? JSON.stringify(item.remark) : null,
|
||||
|
||||
Reference in New Issue
Block a user