许鹏程
2024-10-17 46578a69a1bf44cd34bd4d00e76ac3e876e530ed
避免组件属性中自带的componentType覆盖tag
已修改1个文件
11 ■■■■ 文件已修改
src/main/java/com/product/mobile/core/service/FaceMobileService.java 11 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/java/com/product/mobile/core/service/FaceMobileService.java
@@ -90,6 +90,7 @@
    }
    //递归把主表和子表的字段属性添加进去,如果没有配表单,则取表数据结构进行展示
    /**
     *
     * @param ls查出来的表单信息
@@ -155,6 +156,7 @@
        }
    }
    /**
     * 数据库表字段定义转换成表单定义
     * @param table_uuid
@@ -433,6 +435,9 @@
            for (FieldSetEntity setEntity : parentGroup) {
                //找到属性名称= __vModel__
                String propertyName = setEntity.getString("property_name");
                if ("componentType".equals(propertyName)) {
                    continue;
                }
                if ("parentType".equals(propertyName) && "subTable".equals(setEntity.getString("property_value")) && subTableField != null) {
                    //子表字段
                    subTableField.add(parentGroup);
@@ -457,9 +462,6 @@
                }
                propertyName = StrUtil.toCamelCase(propertyName);
                if (ReflectUtil.hasField(FaceFieldEntity.class, propertyName) && !"field".equals(setEntity.getString("property_name")) && !"prompt".equals(setEntity.getString("property_name"))) {
                    if("prompt".equals(propertyName)){
                        System.out.println(1);
                    }
                    ReflectUtil.setFieldValue(faceFieldEntity, propertyName, setEntity.getObject("property_value"));
                } else if (!StringUtils.isEmpty(setEntity.getObject("property_value"))) {
@@ -494,6 +496,9 @@
        for (FieldSetEntity setEntity : configGroup) {
            //找到属性名称= __vModel__
            String propertyName = setEntity.getString("property_name");
            if ("componentType".equals(propertyName)) {
                continue;
            }
            if ("tag".equals(propertyName)) {
                propertyName = "component_type";
            } else if ("field".equals(propertyName)) {