edit
This commit is contained in:
		@ -12,7 +12,7 @@ import { Component, OnInit, ViewChild } from '@angular/core';
 | 
			
		||||
import { SFComponent, SFSchema, SFUISchema } from '@delon/form';
 | 
			
		||||
import { dateTimePickerUtil } from '@delon/util';
 | 
			
		||||
import { SystemService } from '../../services/system.service';
 | 
			
		||||
 | 
			
		||||
const NOJSONTYPE = new Set([8, 12, 13]);
 | 
			
		||||
@Component({
 | 
			
		||||
  selector: 'app-basic-setting',
 | 
			
		||||
  templateUrl: './basic-setting.component.html',
 | 
			
		||||
@ -49,7 +49,7 @@ export class BasicSettingComponent implements OnInit {
 | 
			
		||||
        res = res.map(item => ({
 | 
			
		||||
          ...item,
 | 
			
		||||
          remark: item.remark ? JSON.parse(item.remark) : null,
 | 
			
		||||
          itemValue: item?.itemValue ? (item?.itemType !== 8 ? JSON.parse(item?.itemValue) : item?.itemValue) : item?.itemValue,
 | 
			
		||||
          itemValue: item?.itemValue ? (NOJSONTYPE.has(item?.itemType) ? item?.itemValue : JSON.parse(item?.itemValue)) : item?.itemValue,
 | 
			
		||||
          itemData: item.itemData ? JSON.parse(item.itemData) : item.itemData
 | 
			
		||||
        }));
 | 
			
		||||
        const hiddenType = res.find(item => item.itemType === 7 || item.itemType === 999);
 | 
			
		||||
 | 
			
		||||
		Reference in New Issue
	
	Block a user