| | |
| | | !StringUtils.isEmpty(dt.getFieldSetEntity(0).getString("field_show_name"))) { |
| | | ls.get(i).setName(dt.getFieldSetEntity(0).getString("field_show_name")); |
| | | } |
| | | if ("file".indexOf(ls.get(i).getComponentType()) != -1) { |
| | | //附件 |
| | | //获取字段类型 |
| | | String fieldType = dt.getString(0, "field_type"); |
| | | if ("file-image".equals(fieldType)) { |
| | | ls.get(i).putOtherParam("fieldType", "image"); |
| | | } else { |
| | | // ls.get(i).putOtherParam("fieldType", "file"); |
| | | } |
| | | } |
| | | } |
| | | ls.get(i).setTable(table_name); |
| | | } else { |
| | |
| | | uuid.setName(f.getString("field_show_name")); |
| | | uuid.setField(f.getString("field_name")); |
| | | uuid.setType(f.getString("field_type")); |
| | | uuid.setRequired(f.getString("is_required")); |
| | | uuid.setTable(table_name); |
| | | ls.add(uuid); |
| | | } |
| | |
| | | for (FieldSetEntity setEntity : parentGroup) { |
| | | //找到属性名称= __vModel__ |
| | | String propertyName = setEntity.getString("property_name"); |
| | | if ("componentType".equals(propertyName)) { |
| | | if ("componentType".equals(propertyName) || "prompt".equals(propertyName)) { |
| | | continue; |
| | | } |
| | | if ("parentType".equals(propertyName) && "subTable".equals(setEntity.getString("property_value")) && subTableField != null) { |
| | |
| | | } |
| | | } |
| | | propertyName = StrUtil.toCamelCase(propertyName); |
| | | if ("defaultValue".equals(propertyName) && !"0".equals(setEntity.getString("property_value")) && !"1".equals(setEntity.getString("property_value"))) { |
| | | continue; |
| | | } |
| | | if (ReflectUtil.hasField(FaceFieldEntity.class, propertyName) && !"field".equals(setEntity.getString("property_name")) && !"prompt".equals(setEntity.getString("property_name"))) { |
| | | ReflectUtil.setFieldValue(faceFieldEntity, propertyName, setEntity.getObject("property_value")); |
| | | |
| | |
| | | for (FieldSetEntity setEntity : configGroup) { |
| | | //找到属性名称= __vModel__ |
| | | String propertyName = setEntity.getString("property_name"); |
| | | if ("componentType".equals(propertyName)) { |
| | | if ("componentType".equals(propertyName) || "prompt".equals(propertyName)) { |
| | | continue; |
| | | } |
| | | if ("tag".equals(propertyName)) { |
| | |
| | | propertyName = "prompt"; |
| | | } |
| | | propertyName = StrUtil.toCamelCase(propertyName); |
| | | if ("defaultValue".equals(propertyName) && !"0".equals(setEntity.getString("property_value")) && !"1".equals(setEntity.getString("property_value"))) { |
| | | continue; |
| | | } |
| | | if (ReflectUtil.hasField(FaceFieldEntity.class, propertyName) && !"field".equals(setEntity.getString("property_name")) && !"prompt".equals(setEntity.getString("property_name"))) { |
| | | ReflectUtil.setFieldValue(faceFieldEntity, propertyName, setEntity.getObject("property_value")); |
| | | } |