Commit b5be22af authored by 赵啸非's avatar 赵啸非

动态表单添加组件

No related merge requests found
Pipeline #2883 failed with stages
......@@ -2,11 +2,13 @@ package com.mortals.xhx.common.formdesign.component;
import cn.hutool.core.util.IdUtil;
import cn.hutool.core.util.StrUtil;
import com.alibaba.fastjson.JSON;
import com.google.common.collect.Lists;
import com.mortals.xhx.common.code.ComponentEnum;
import com.mortals.xhx.common.formdesign.*;
import com.mortals.xhx.common.pdu.gen.component.ComponentCons;
import com.mortals.xhx.common.utils.StringUtils;
import lombok.extern.slf4j.Slf4j;
import org.springframework.util.ObjectUtils;
import java.util.ArrayList;
......@@ -20,6 +22,7 @@ import java.util.stream.Collectors;
* @date: 2021/10/26 10:35
* @description:
**/
@Slf4j
public class DesignDynamicTableComponent extends DesignComponent {
public DesignDynamicTableComponent(String type) {
......@@ -136,6 +139,9 @@ public class DesignDynamicTableComponent extends DesignComponent {
initDefaultSelectValue(item, columnsItem);
}else if(item.getColType().equals(ComponentEnum.RADIO.getValue())){
log.info("radio:{}", JSON.toJSONString(item));
columnsItem.setCompType("radio");
columnsItem.setCompName(item.getLabel());
columnsItem.setCompIcon("radio");
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment