From 9522eb08d6732304964ac4d98bb2dcf6830c0175 Mon Sep 17 00:00:00 2001 From: lorcan <13231947+lorcan-lv@user.noreply.gitee.com> Date: Fri, 12 Dec 2025 15:40:20 +0800 Subject: [PATCH 1/7] =?UTF-8?q?=E6=8A=BD=E5=B1=89=E7=BB=84=E4=BB=B6?= =?UTF-8?q?=E6=A0=87=E9=A2=98=E8=B5=84=E6=BA=90=E5=85=83=E6=95=B0=E6=8D=AE?= =?UTF-8?q?=E4=BF=AE=E5=A4=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../i18nresourcestrategy/VueDrawerI18nResourceStrategy.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/web-form-metadata/src/main/java/com/inspur/edp/web/formmetadata/i18n/component/strategy/i18nresourcestrategy/VueDrawerI18nResourceStrategy.java b/web-form-metadata/src/main/java/com/inspur/edp/web/formmetadata/i18n/component/strategy/i18nresourcestrategy/VueDrawerI18nResourceStrategy.java index f63070e2..e5284e55 100644 --- a/web-form-metadata/src/main/java/com/inspur/edp/web/formmetadata/i18n/component/strategy/i18nresourcestrategy/VueDrawerI18nResourceStrategy.java +++ b/web-form-metadata/src/main/java/com/inspur/edp/web/formmetadata/i18n/component/strategy/i18nresourcestrategy/VueDrawerI18nResourceStrategy.java @@ -13,7 +13,7 @@ import java.util.List; public class VueDrawerI18nResourceStrategy extends AbstractI18nResourceStrategy { @Override protected String getComponentName(HashMap component) { - IComponentNameStrategy componentNameStrategy = ComponentNameFactory.getInstance().creatComponentNameStrategy(ComponentNameType.TEXT); + IComponentNameStrategy componentNameStrategy = ComponentNameFactory.getInstance().creatComponentNameStrategy(ComponentNameType.TITLE); if (componentNameStrategy == null) { return null; } -- Gitee From df41529b16317cc37401af33c302a2c50ff43435 Mon Sep 17 00:00:00 2001 From: lorcan <13231947+lorcan-lv@user.noreply.gitee.com> Date: Fri, 12 Dec 2025 16:11:39 +0800 Subject: [PATCH 2/7] =?UTF-8?q?Revert=20"=E6=8F=90=E5=8F=96=E9=BB=98?= =?UTF-8?q?=E8=AE=A4=E5=80=BC=E5=B1=9E=E6=80=A7"?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This reverts commit 9a5da0e17dd2d5f3c0af3ba177b548b901860426. --- .../edp/web/formmetadata/service/SmartFormServiceImpl.java | 1 - .../inspur/edp/web/formmetadata/webservice/PCForm-angular.json | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/web-form-metadata/src/main/java/com/inspur/edp/web/formmetadata/service/SmartFormServiceImpl.java b/web-form-metadata/src/main/java/com/inspur/edp/web/formmetadata/service/SmartFormServiceImpl.java index 1095a79b..bbd0881f 100644 --- a/web-form-metadata/src/main/java/com/inspur/edp/web/formmetadata/service/SmartFormServiceImpl.java +++ b/web-form-metadata/src/main/java/com/inspur/edp/web/formmetadata/service/SmartFormServiceImpl.java @@ -289,7 +289,6 @@ public class SmartFormServiceImpl implements SmartFormService { smartFormField.setDataType(getStringValue(fieldNode, "/type/valueType/$type")); } } - smartFormField.getProperties().put("defaultValue", getStringValue(fieldNode, "/defaultValue")); } private String getStringValue(JsonNode node, String key){ diff --git a/web-form-metadata/src/test/java/com/inspur/edp/web/formmetadata/webservice/PCForm-angular.json b/web-form-metadata/src/test/java/com/inspur/edp/web/formmetadata/webservice/PCForm-angular.json index c80db8a7..2839e4a2 100644 --- a/web-form-metadata/src/test/java/com/inspur/edp/web/formmetadata/webservice/PCForm-angular.json +++ b/web-form-metadata/src/test/java/com/inspur/edp/web/formmetadata/webservice/PCForm-angular.json @@ -462,7 +462,7 @@ "editor": { "$type": "TextBox" }, - "defaultValue": "2", + "defaultValue": "", "path": "ID", "type": { "$type": "StringType", -- Gitee From 9fdcf0fccd64d97e0949a7cd2847c62c4acea26c Mon Sep 17 00:00:00 2001 From: lorcan <13231947+lorcan-lv@user.noreply.gitee.com> Date: Fri, 12 Dec 2025 16:11:49 +0800 Subject: [PATCH 3/7] =?UTF-8?q?Revert=20"=E6=9A=82=E5=AD=98"?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This reverts commit facbeaea5c158994efd719c882e0371ec9f6415f. --- .../formmetadata/api/SmartFormService.java | 10 - .../api/entity/SmartFormContent.java | 14 - .../api/entity/SmartFormEntity.java | 17 - .../api/entity/SmartFormField.java | 39 - .../config/FormMetadataConfiguration.java | 11 +- .../service/SmartFormServiceImpl.java | 339 -- .../webservice/PCForm-angular.json | 4088 ----------------- .../formmetadata/webservice/PCForm-vue.json | 2275 --------- .../webservice/SmartFormServiceImplTest.java | 40 - 9 files changed, 4 insertions(+), 6829 deletions(-) delete mode 100644 web-form-metadata-api/src/main/java/com/inspur/edp/web/formmetadata/api/SmartFormService.java delete mode 100644 web-form-metadata-api/src/main/java/com/inspur/edp/web/formmetadata/api/entity/SmartFormContent.java delete mode 100644 web-form-metadata-api/src/main/java/com/inspur/edp/web/formmetadata/api/entity/SmartFormEntity.java delete mode 100644 web-form-metadata-api/src/main/java/com/inspur/edp/web/formmetadata/api/entity/SmartFormField.java delete mode 100644 web-form-metadata/src/main/java/com/inspur/edp/web/formmetadata/service/SmartFormServiceImpl.java delete mode 100644 web-form-metadata/src/test/java/com/inspur/edp/web/formmetadata/webservice/PCForm-angular.json delete mode 100644 web-form-metadata/src/test/java/com/inspur/edp/web/formmetadata/webservice/PCForm-vue.json delete mode 100644 web-form-metadata/src/test/java/com/inspur/edp/web/formmetadata/webservice/SmartFormServiceImplTest.java diff --git a/web-form-metadata-api/src/main/java/com/inspur/edp/web/formmetadata/api/SmartFormService.java b/web-form-metadata-api/src/main/java/com/inspur/edp/web/formmetadata/api/SmartFormService.java deleted file mode 100644 index 1287fc96..00000000 --- a/web-form-metadata-api/src/main/java/com/inspur/edp/web/formmetadata/api/SmartFormService.java +++ /dev/null @@ -1,10 +0,0 @@ -package com.inspur.edp.web.formmetadata.api; - - -import com.inspur.edp.web.formmetadata.api.entity.SmartFormContent; - -public interface SmartFormService { - - SmartFormContent getFormContent(String formId); - -} diff --git a/web-form-metadata-api/src/main/java/com/inspur/edp/web/formmetadata/api/entity/SmartFormContent.java b/web-form-metadata-api/src/main/java/com/inspur/edp/web/formmetadata/api/entity/SmartFormContent.java deleted file mode 100644 index 75aa18ad..00000000 --- a/web-form-metadata-api/src/main/java/com/inspur/edp/web/formmetadata/api/entity/SmartFormContent.java +++ /dev/null @@ -1,14 +0,0 @@ -package com.inspur.edp.web.formmetadata.api.entity; - - -import lombok.Data; - -@Data -public class SmartFormContent { - private String id; - private String code; - private String name; - private String voId; - - private SmartFormEntity entity; -} diff --git a/web-form-metadata-api/src/main/java/com/inspur/edp/web/formmetadata/api/entity/SmartFormEntity.java b/web-form-metadata-api/src/main/java/com/inspur/edp/web/formmetadata/api/entity/SmartFormEntity.java deleted file mode 100644 index 6e114220..00000000 --- a/web-form-metadata-api/src/main/java/com/inspur/edp/web/formmetadata/api/entity/SmartFormEntity.java +++ /dev/null @@ -1,17 +0,0 @@ -package com.inspur.edp.web.formmetadata.api.entity; - -import lombok.Data; - -import java.util.ArrayList; -import java.util.List; - -@Data -public class SmartFormEntity { - private String id; - private String code; - private String name; - - private List fields = new ArrayList<>(); - private List childEntities = new ArrayList<>(); -} - diff --git a/web-form-metadata-api/src/main/java/com/inspur/edp/web/formmetadata/api/entity/SmartFormField.java b/web-form-metadata-api/src/main/java/com/inspur/edp/web/formmetadata/api/entity/SmartFormField.java deleted file mode 100644 index 415f4794..00000000 --- a/web-form-metadata-api/src/main/java/com/inspur/edp/web/formmetadata/api/entity/SmartFormField.java +++ /dev/null @@ -1,39 +0,0 @@ -package com.inspur.edp.web.formmetadata.api.entity; - -import lombok.Data; - -import java.util.ArrayList; -import java.util.HashMap; -import java.util.List; -import java.util.Map; - - -@Data -public class SmartFormField { - - private String id; - private String code; - private String name; - // 原始字段ID - private String originalId; - - // 数据类型:StringType - private String dataType; - // 对象类型(enum:枚举、association:关联、dynamicprop:动态属性) - // private String objectType; - - /** - 字段属性 - { - "required":true, 必填 - "multiSelect":true, 多选 - "enumData":JSONArray, 枚举项 - "helpId":"b524a702-7323-4d46-998e-5ba0c6abcd49", 帮助数据源 - "precision":2, 精度 - } - */ - private Map properties = new HashMap<>(); - - private List childFields = new ArrayList<>(); - -} diff --git a/web-form-metadata/src/main/java/com/inspur/edp/web/formmetadata/config/FormMetadataConfiguration.java b/web-form-metadata/src/main/java/com/inspur/edp/web/formmetadata/config/FormMetadataConfiguration.java index 1fa9f8df..3bf10919 100644 --- a/web-form-metadata/src/main/java/com/inspur/edp/web/formmetadata/config/FormMetadataConfiguration.java +++ b/web-form-metadata/src/main/java/com/inspur/edp/web/formmetadata/config/FormMetadataConfiguration.java @@ -17,11 +17,13 @@ package com.inspur.edp.web.formmetadata.config; import com.inspur.edp.web.formmetadata.api.FormMetadataCommonService; -import com.inspur.edp.web.formmetadata.api.SmartFormService; import com.inspur.edp.web.formmetadata.filter.LowCodeLanguagePackageFilter; import com.inspur.edp.web.formmetadata.formresource.FormResourceManager; import com.inspur.edp.web.formmetadata.lic.FormMetadataCreateLicControlListener; -import com.inspur.edp.web.formmetadata.service.*; +import com.inspur.edp.web.formmetadata.service.FormMetadataCommonServiceImpl; +import com.inspur.edp.web.formmetadata.service.FormMetadataRTService; +import com.inspur.edp.web.formmetadata.service.FormMetadataService; +import com.inspur.edp.web.formmetadata.service.FormRelateMetadataService; import com.inspur.edp.web.formmetadata.webservice.FormMetadataWebServiceImpl; import io.iec.edp.caf.rest.RESTEndpoint; import org.springframework.boot.autoconfigure.condition.ConditionalOnClass; @@ -81,9 +83,4 @@ public class FormMetadataConfiguration { public LowCodeLanguagePackageFilter registerLowCodeLanguagePackageFilter() { return new LowCodeLanguagePackageFilter(); } - - @Bean - public SmartFormService getSmartFormService() { - return new SmartFormServiceImpl(); - } } diff --git a/web-form-metadata/src/main/java/com/inspur/edp/web/formmetadata/service/SmartFormServiceImpl.java b/web-form-metadata/src/main/java/com/inspur/edp/web/formmetadata/service/SmartFormServiceImpl.java deleted file mode 100644 index bbd0881f..00000000 --- a/web-form-metadata/src/main/java/com/inspur/edp/web/formmetadata/service/SmartFormServiceImpl.java +++ /dev/null @@ -1,339 +0,0 @@ -package com.inspur.edp.web.formmetadata.service; - -import com.fasterxml.jackson.databind.JsonNode; -import com.inspur.edp.lcm.metadata.api.entity.GspMetadata; -import com.inspur.edp.lcm.metadata.api.entity.MetadataHeader; -import com.inspur.edp.web.common.metadata.MetadataUtility; -import com.inspur.edp.web.formmetadata.api.SmartFormService; -import com.inspur.edp.web.formmetadata.api.entity.SmartFormContent; -import com.inspur.edp.web.formmetadata.api.entity.SmartFormEntity; -import com.inspur.edp.web.formmetadata.api.entity.SmartFormField; -import com.inspur.edp.web.formmetadata.metadata.FormMetadataContent; -import io.swagger.util.Json; -import org.apache.commons.lang3.StringUtils; - -import java.util.*; - -/** - * 为智能填单提取表单属性 - */ -public class SmartFormServiceImpl implements SmartFormService { - - // 子级控件的属性 - private static final List childPropertyNamesForAngular = Arrays.asList("contents", "fields"); - private static final List childPropertyNamesForVue = Arrays.asList("contents", "columns"); - - public SmartFormServiceImpl() { - } - - @Override - public SmartFormContent getFormContent(String formId) { - GspMetadata formMetadata = MetadataUtility.getInstance().getMetadataWithRuntime(formId); - if (formMetadata == null) { - return null; - } - - boolean isVueForm = false; - if(formMetadata.getProperties() != null && formMetadata.getProperties().getFramework() != null) { - String frameworkType = String.valueOf(formMetadata.getProperties().getFramework()); - isVueForm = "Vue".equals(frameworkType); - } - - FormMetadataContent formContents = (FormMetadataContent) formMetadata.getContent(); - if(formContents == null) { - return null; - } - JsonNode formContent = formContents.getContents(); - if(formContent == null){ - return null; - } - MetadataHeader header = formMetadata.getHeader(); - SmartFormContent smartFormContent = new SmartFormContent(); - smartFormContent.setEntity(extract(formContent, isVueForm)); - smartFormContent.setId(header.getId()); - smartFormContent.setCode(header.getCode()); - smartFormContent.setName(header.getName()); - - JsonNode entity = isVueForm ? formContent.at("/module/entity/0") : formContent.at("/module/schemas/0"); - if(entity != null){ - smartFormContent.setVoId(getStringValue(entity, "/id")); - } - - return smartFormContent; - - } - - public SmartFormEntity extract(JsonNode formContent, boolean isVueForm){ - // 1、提取viewmodel中的字段 - JsonNode viewModels = formContent.at("/module/viewmodels"); - List fieldIds = extractViewModels(viewModels); - - // 2、获取component中字段信息 - JsonNode components = formContent.at("/module/components"); - Map fieldMap = extractComponents(components, fieldIds, isVueForm); - - // 3、构建实体树 - JsonNode mainEntity = isVueForm ? formContent.at("/module/entity/0/entities/0") : formContent.at("/module/schemas/0/entities/0"); - - SmartFormEntity smartFormEntity = extractEntities(mainEntity, fieldMap); - - return smartFormEntity; - } - - /** - * 提取视图模型中的字段 - * @param viewModels - * @return - */ - private List extractViewModels(JsonNode viewModels){ - List fieldIds = new ArrayList<>(); - if(viewModels == null || viewModels.isEmpty()){ - return fieldIds; - } - for(JsonNode viewModel : viewModels){ - JsonNode fields = viewModel.get("fields"); - if (fields != null && !fields.isEmpty()) { - fieldIds.addAll(fields.findValuesAsText("id")); - } - } - - return fieldIds; - } - - - /** - * 提取组件中的字段 - * @param components - * @param fieldIds - * @return - */ - private Map extractComponents(JsonNode components, List fieldIds, boolean isVueForm) { - Map fieldMap = new HashMap<>(); - if(components == null || components.isEmpty()){ - return fieldMap; - } - - for(JsonNode component : components){ - // 提取当前控件 - Map currentFieldMap = extractComponent(fieldIds, component, isVueForm); - fieldMap.putAll(currentFieldMap); - - // 提取子控件 - List childPropertyNames = isVueForm ? childPropertyNamesForVue : childPropertyNamesForAngular; - for (String childPropertyName : childPropertyNames){ - JsonNode childComponent = component.get(childPropertyName); - if (childComponent != null && !childComponent.isEmpty() && childComponent.isArray()) { - Map childFieldMap = extractComponents(childComponent, fieldIds, isVueForm); - fieldMap.putAll(childFieldMap); - } - } - } - return fieldMap; - } - - /** - * 提取控件的属性 - * @param fieldIds - * @param component - */ - private Map extractComponent(List fieldIds, JsonNode component, boolean isVueForm) { - Map fieldMap = new HashMap<>(); - if(component == null || component.isEmpty()){ - return fieldMap; - } - JsonNode fieldId = component.at("/binding/field"); - JsonNode type = component.at("/type"); - if (fieldId == null || type == null || type.isMissingNode() || fieldId.isMissingNode()) { - return fieldMap; - } - - String fieldIdText = fieldId.asText(); - if (fieldIds.contains(fieldIdText)) { - // todo 提取属性 - - SmartFormField field = new SmartFormField(); - field.setId(fieldIdText); - - field.setName(getStringValue(component, isVueForm ? "/label" : "/title")); - - - Map properties = field.getProperties(); - if(isVueForm){ - this.extractPropertiesForVue(component, properties); - }else{ - this.extractPropertiesForAngular(component, properties); - } - - field.setProperties(properties); - fieldMap.put(fieldIdText, field); - } - return fieldMap; - } - - private void extractPropertiesForVue(JsonNode component, Map properties){ - properties.put("required", getBooleanValue(component,"/editor/required")); - properties.put("multiSelect", getBooleanValue(component,"/editor/multiSelect")); - properties.put("helpId", getStringValue(component,"/editor/helpId")); - properties.put("precision", getNumberValue(component,"/editor/precision")); - - String dataSourceType = getStringValue(component, "/editor/dataSourceType"); - if(!"dynamic".equals(dataSourceType)){ - properties.put("enumData", getObjectValue(component, "/editor/data")); - } - } - - private void extractPropertiesForAngular(JsonNode component, Map properties){ - JsonNode editor = component.at("/editor"); - JsonNode extractedComponent = (editor != null && !editor.isMissingNode()) ? editor : component; - - properties.put("required", getBooleanValue(extractedComponent,"/require")); - properties.put("multiSelect", getBooleanValue(extractedComponent,"/multiSelect")); - properties.put("helpId", getStringValue(extractedComponent,"/helpId")); - properties.put("precision", getNumberValue(extractedComponent,"/precision")); - - String dataSourceType = getStringValue(extractedComponent, "/dataSourceType"); - if(!"dynamic".equals(dataSourceType)){ - properties.put("enumData", getObjectValue(extractedComponent, "/enumData")); - if(properties.get("enumData") == null){ - properties.put("enumData", getObjectValue(extractedComponent, "/items")); - } - } - } - - - /** - * 提取实体树 - * @param entityNode - * @param fieldMap - * @return - */ - private SmartFormEntity extractEntities(JsonNode entityNode, Map fieldMap) { - SmartFormEntity smartFormEntity = new SmartFormEntity(); - if (entityNode == null || entityNode.isEmpty()) { - return smartFormEntity; - } - - // 提取主表 - smartFormEntity.setId(getStringValue(entityNode, "/id")); - smartFormEntity.setCode(getStringValue(entityNode, "/code")); - smartFormEntity.setName(getStringValue(entityNode, "/name")); - - // 提取主表字段 - JsonNode fieldNodes = entityNode.at("/type/fields"); - List smartFormFields = extractFields(fieldNodes, fieldMap); - smartFormEntity.setFields(smartFormFields); - - // 提取子表 - JsonNode childEntityNodes = entityNode.at("/type/entities"); - if (childEntityNodes == null || childEntityNodes.isEmpty()) { - return smartFormEntity; - } - - for(JsonNode childEntityNode : childEntityNodes){ - SmartFormEntity childEntity = extractEntities(childEntityNode, fieldMap); - // 如果当前子对象有字段,则添加 - if (!childEntity.getFields().isEmpty()) { - smartFormEntity.getChildEntities().add(childEntity); - } - } - - return smartFormEntity; - } - - private List extractFields(JsonNode fieldNodes, Map fieldMap) { - List smartFormFields = new ArrayList<>(); - if(fieldNodes == null || fieldNodes.isEmpty()){ - return smartFormFields; - } - for(JsonNode fieldNode : fieldNodes){ - // 提取当前字段 - // todo 提取属性 - String id = getStringValue(fieldNode, "/id"); - SmartFormField smartFormField = fieldMap.get(id); - if(smartFormField != null){ - this.setFormField(smartFormField, fieldNode, true); - smartFormFields.add(smartFormField); - continue; - } - - // 提取子字段 - JsonNode childFieldNodes = fieldNode.at("/type/fields"); - if (childFieldNodes == null || childFieldNodes.isEmpty()) { - continue; - } - - List childFields = extractFields(childFieldNodes, fieldMap); - if (childFields.isEmpty()) { - continue; - } - smartFormField = new SmartFormField(); - this.setFormField(smartFormField, fieldNode, false); - smartFormField.setName(getStringValue(fieldNode, "/name")); - - // formField.setDataType(getStringValue(fieldNode, "/type/$type")); - - smartFormField.setChildFields(childFields); - smartFormFields.add(smartFormField); - } - - return smartFormFields; - } - - private void setFormField(SmartFormField smartFormField, JsonNode fieldNode, boolean isSetDataType){ - smartFormField.setId(getStringValue(fieldNode, "/id")); - smartFormField.setCode(getStringValue(fieldNode, "/code")); - smartFormField.setOriginalId(getStringValue(fieldNode, "/originalId")); - if(isSetDataType){ - smartFormField.setDataType(getStringValue(fieldNode, "/type/$type")); - if("EnumType".equals(smartFormField.getDataType())){ - smartFormField.setDataType(getStringValue(fieldNode, "/type/valueType/$type")); - } - } - } - - private String getStringValue(JsonNode node, String key){ - if(node == null || node.isEmpty()){ - return null; - } - JsonNode result = node.at(key); - if(result == null || StringUtils.isEmpty(result.asText())){ - return null; - } - return result.asText(); - } - - private Integer getNumberValue(JsonNode node, String key){ - if(node == null || node.isEmpty()){ - return null; - } - JsonNode result = node.at(key); - if(result == null || !result.isNumber()){ - return null; - } - return result.asInt(); - } - - private Boolean getBooleanValue(JsonNode node, String key){ - if(node == null || node.isEmpty()){ - return null; - } - JsonNode result = node.at(key); - if(result == null || !result.isBoolean()){ - return null; - } - return result.asBoolean(); - - } - - private Object getObjectValue(JsonNode node, String key){ - if(node == null || node.isEmpty()){ - return null; - } - JsonNode result = node.at(key); - if(result == null || result.isEmpty()){ - return null; - } - return result; - } - -} diff --git a/web-form-metadata/src/test/java/com/inspur/edp/web/formmetadata/webservice/PCForm-angular.json b/web-form-metadata/src/test/java/com/inspur/edp/web/formmetadata/webservice/PCForm-angular.json deleted file mode 100644 index 2839e4a2..00000000 --- a/web-form-metadata/src/test/java/com/inspur/edp/web/formmetadata/webservice/PCForm-angular.json +++ /dev/null @@ -1,4088 +0,0 @@ -{ - "module": { - "id": "PCCardFormTest", - "code": "PCCardFormTest", - "name": "PC卡片测试", - "caption": "PC卡片测试", - "type": "Module", - "creator": "lijiangkun", - "creationDate": "2025-04-25T08:12:29.233Z", - "updateVersion": "191104", - "showTitle": true, - "bootstrap": "card-template", - "templateId": "card-template", - "schemas": [ - { - "eapiId": "5ccf045d-6ed0-47a7-84eb-19afc47883d9", - "eapiCode": "PCCardFormTest_frm", - "eapiName": "PC卡片测试_frm", - "eapiNameSpace": "Inspur.GS.MyDev.AngularTest.RuntimeTest.RuntimeTest.Front", - "voPath": "MyDev/AngularTest/RuntimeTest/bo-runtimetest-front/metadata/components", - "voNameSpace": "Inspur.GS.MyDev.AngularTest.RuntimeTest.RuntimeTest.Front", - "entities": [ - { - "type": { - "$type": "EntityType", - "entities": [ - { - "type": { - "$type": "EntityType", - "entities": [], - "fields": [ - { - "$type": "SimpleField", - "multiLanguage": false, - "require": true, - "readonly": false, - "editor": { - "$type": "TextBox" - }, - "defaultValue": "", - "path": "ID", - "type": { - "$type": "StringType", - "length": 36, - "name": "String", - "displayName": "字符串" - }, - "id": "c39c80e2-74c8-43e6-9cb0-d1b3848ac57a", - "originalId": "c39c80e2-74c8-43e6-9cb0-d1b3848ac57a", - "label": "id", - "code": "ID", - "bindingField": "id", - "bindingPath": "id", - "name": "主键" - }, - { - "$type": "SimpleField", - "multiLanguage": false, - "require": true, - "readonly": false, - "editor": { - "$type": "TextBox" - }, - "defaultValue": "", - "path": "ParentID", - "type": { - "$type": "StringType", - "length": 36, - "name": "String", - "displayName": "字符串" - }, - "id": "aef35c14-654b-493b-987e-d39969239b6d", - "originalId": "aef35c14-654b-493b-987e-d39969239b6d", - "label": "parentID", - "code": "ParentID", - "bindingField": "parentID", - "bindingPath": "parentID", - "name": "上级对象主键" - }, - { - "$type": "ComplexField", - "path": "attachment", - "type": { - "$type": "ObjectType", - "fields": [ - { - "$type": "SimpleField", - "multiLanguage": false, - "require": false, - "readonly": false, - "editor": { - "$type": "TextBox" - }, - "defaultValue": "", - "path": "attachment.AttachmentId", - "type": { - "$type": "StringType", - "length": 36, - "name": "String", - "displayName": "字符串" - }, - "id": "24040962-4fd6-49ff-a18a-f466a068f905", - "originalId": "ff73a947-4fd6-49ff-a18a-f466a068f905", - "label": "attachmentId", - "code": "AttachmentId", - "bindingField": "attachment_AttachmentId", - "bindingPath": "attachment.attachmentId", - "name": "附件Id" - }, - { - "$type": "SimpleField", - "multiLanguage": false, - "require": false, - "readonly": false, - "editor": { - "$type": "TextBox" - }, - "defaultValue": "", - "path": "attachment.FileName", - "type": { - "$type": "StringType", - "length": 512, - "name": "String", - "displayName": "字符串" - }, - "id": "24040962-1497-4526-86f9-290aab400e0b", - "originalId": "026b07a9-1497-4526-86f9-290aab400e0b", - "label": "fileName", - "code": "FileName", - "bindingField": "attachment_FileName", - "bindingPath": "attachment.fileName", - "name": "附件名称" - }, - { - "$type": "SimpleField", - "multiLanguage": false, - "require": false, - "readonly": false, - "editor": { - "$type": "NumericBox" - }, - "defaultValue": "", - "path": "attachment.FileSize", - "type": { - "$type": "NumericType", - "precision": 8, - "length": 128, - "name": "Number", - "displayName": "数字" - }, - "id": "24040962-dd56-4cab-a54b-577a65f9eb6e", - "originalId": "6369fb66-dd56-4cab-a54b-577a65f9eb6e", - "label": "fileSize", - "code": "FileSize", - "bindingField": "attachment_FileSize", - "bindingPath": "attachment.fileSize", - "name": "附件大小" - }, - { - "$type": "SimpleField", - "multiLanguage": false, - "require": false, - "readonly": false, - "editor": { - "$type": "DateBox", - "format": "'yyyy-MM-dd'" - }, - "defaultValue": "", - "path": "attachment.FileCreateTime", - "type": { - "$type": "DateTimeType", - "name": "DateTime", - "displayName": "日期时间" - }, - "id": "24040962-a1f5-4f6c-9c82-ddb10864c652", - "originalId": "ff677864-a1f5-4f6c-9c82-ddb10864c652", - "label": "fileCreateTime", - "code": "FileCreateTime", - "bindingField": "attachment_FileCreateTime", - "bindingPath": "attachment.fileCreateTime", - "name": "附件上传时间" - } - ], - "name": "AttachmentInfo2404", - "displayName": "附件信息" - }, - "id": "24040962-8b52-467c-b760-a2fdf257c8ea", - "originalId": "24040962-8b52-467c-b760-a2fdf257c8ea", - "label": "attachment", - "code": "attachment", - "bindingField": "attachment", - "bindingPath": "attachment", - "name": "附件" - }, - { - "$type": "ComplexField", - "label": "name", - "id": "27e7a688-82b2-45ba-a85d-870c233bb984", - "path": "name", - "type": { - "$type": "EntityType", - "fields": [ - { - "$type": "SimpleField", - "defaultValue": "", - "editor": { - "$type": "TextBox" - }, - "require": false, - "multiLanguage": false, - "readonly": false, - "label": "name", - "id": "f75e046c-1b7a-4f2e-98fe-228242b3ca33", - "path": "name.name", - "type": { - "$type": "StringType", - "displayName": "字符串", - "length": 36, - "name": "String" - }, - "originalId": "f75e046c-1b7a-4f2e-98fe-228242b3ca33", - "code": "name", - "bindingField": "name", - "bindingPath": "name.name", - "name": "名称" - }, - { - "$type": "SimpleField", - "defaultValue": "", - "editor": { - "$type": "TextBox" - }, - "require": false, - "multiLanguage": false, - "readonly": false, - "label": "name_Name", - "id": "c78a1ced-09c7-4c08-938d-897af682ef17", - "path": "name.name_Name", - "type": { - "$type": "StringType", - "displayName": "字符串", - "length": 1000, - "name": "String" - }, - "originalId": "c78a1ced-09c7-4c08-938d-897af682ef17", - "code": "Name", - "bindingField": "name_name_Name", - "bindingPath": "name.name_Name", - "name": "姓名" - }, - { - "$type": "SimpleField", - "defaultValue": "", - "editor": { - "$type": "TextBox" - }, - "require": false, - "multiLanguage": false, - "readonly": false, - "label": "name_Code", - "id": "0776bfe0-5912-4a8d-9447-ca896edf4cc1", - "path": "name.name_Code", - "type": { - "$type": "StringType", - "displayName": "字符串", - "length": 100, - "name": "String" - }, - "originalId": "0776bfe0-5912-4a8d-9447-ca896edf4cc1", - "code": "Code", - "bindingField": "name_name_Code", - "bindingPath": "name.name_Code", - "name": "编码" - } - ], - "primary": "name", - "entities": [], - "displayName": "人员", - "name": "DFFEmployeeF75e" - }, - "originalId": "27e7a688-82b2-45ba-a85d-870c233bb984", - "code": "name", - "bindingField": "name", - "bindingPath": "name", - "name": "名称" - } - ], - "primary": "id", - "name": "ChildAttachment1", - "displayName": "子表附件1" - }, - "id": "f987f0c2-039e-4a32-a8dd-fcbf8f6645b4", - "label": "childAttachment1s", - "code": "ChildAttachment1", - "name": "子表附件1" - }, - { - "type": { - "$type": "EntityType", - "entities": [], - "fields": [ - { - "$type": "SimpleField", - "multiLanguage": false, - "require": true, - "readonly": false, - "editor": { - "$type": "TextBox" - }, - "defaultValue": "", - "path": "ID", - "type": { - "$type": "StringType", - "length": 36, - "name": "String", - "displayName": "字符串" - }, - "id": "3df94820-efa6-48a6-8d47-112ac47e3302", - "originalId": "3df94820-efa6-48a6-8d47-112ac47e3302", - "label": "id", - "code": "ID", - "bindingField": "id", - "bindingPath": "id", - "name": "主键" - }, - { - "$type": "SimpleField", - "multiLanguage": false, - "require": true, - "readonly": false, - "editor": { - "$type": "TextBox" - }, - "defaultValue": "", - "path": "ParentID", - "type": { - "$type": "StringType", - "length": 36, - "name": "String", - "displayName": "字符串" - }, - "id": "ee23f329-c1d4-489e-b691-b39b6cd12302", - "originalId": "ee23f329-c1d4-489e-b691-b39b6cd12302", - "label": "parentID", - "code": "ParentID", - "bindingField": "parentID", - "bindingPath": "parentID", - "name": "上级对象主键" - }, - { - "$type": "SimpleField", - "multiLanguage": false, - "require": false, - "readonly": false, - "editor": { - "$type": "TextBox" - }, - "defaultValue": "", - "path": "code", - "type": { - "$type": "StringType", - "length": 36, - "name": "String", - "displayName": "字符串" - }, - "id": "c864358f-cb3c-4b2b-960e-423754e28ea8", - "originalId": "c864358f-cb3c-4b2b-960e-423754e28ea8", - "label": "code", - "code": "code", - "bindingField": "code", - "bindingPath": "code", - "name": "编号" - }, - { - "$type": "SimpleField", - "multiLanguage": false, - "require": false, - "readonly": false, - "editor": { - "$type": "TextBox" - }, - "defaultValue": "", - "path": "name", - "type": { - "$type": "StringType", - "length": 36, - "name": "String", - "displayName": "字符串" - }, - "id": "a6c40426-7529-45e3-8c53-4ae973f28c09", - "originalId": "a6c40426-7529-45e3-8c53-4ae973f28c09", - "label": "name", - "code": "name", - "bindingField": "name", - "bindingPath": "name", - "name": "名称" - }, - { - "$type": "SimpleField", - "require": false, - "multiLanguage": false, - "defaultValue": "", - "editor": { - "$type": "CheckBox" - }, - "readonly": false, - "path": "booleanField", - "type": { - "$type": "BooleanType", - "displayName": "布尔", - "name": "Boolean" - }, - "id": "e4f457e3-add6-4df6-becd-26617dd1cb46", - "code": "booleanField", - "label": "booleanField", - "bindingPath": "booleanField", - "bindingField": "booleanField", - "originalId": "e4f457e3-add6-4df6-becd-26617dd1cb46", - "name": "布尔" - }, - { - "$type": "SimpleField", - "defaultValue": "", - "editor": { - "$type": "MultiTextBox" - }, - "require": false, - "multiLanguage": false, - "readonly": false, - "label": "noteField", - "id": "11bdf429-f332-475b-983b-ae82fba00e8f", - "path": "noteField", - "type": { - "$type": "TextType", - "displayName": "文本", - "length": 0, - "name": "Text" - }, - "originalId": "11bdf429-f332-475b-983b-ae82fba00e8f", - "code": "noteField", - "bindingField": "noteField", - "bindingPath": "noteField", - "name": "备注" - } - ], - "primary": "id", - "name": "RuntimeItem1", - "displayName": "运行时明细1" - }, - "id": "8b102388-c979-4378-805e-e891d480c9bf", - "label": "runtimeItem1s", - "code": "RuntimeItem1", - "name": "运行时明细1" - } - ], - "fields": [ - { - "$type": "SimpleField", - "multiLanguage": false, - "require": true, - "readonly": false, - "editor": { - "$type": "TextBox" - }, - "defaultValue": "", - "path": "ID", - "type": { - "$type": "StringType", - "length": 36, - "name": "String", - "displayName": "字符串" - }, - "id": "668b9bfb-9c29-46b7-862d-b391bb7602e2", - "originalId": "668b9bfb-9c29-46b7-862d-b391bb7602e2", - "label": "id", - "code": "ID", - "bindingField": "id", - "bindingPath": "id", - "name": "主键" - }, - { - "$type": "SimpleField", - "multiLanguage": false, - "require": false, - "readonly": false, - "editor": { - "$type": "DateBox", - "format": "'yyyy-MM-dd'" - }, - "defaultValue": "", - "path": "Version", - "type": { - "$type": "DateTimeType", - "name": "DateTime", - "displayName": "日期时间" - }, - "id": "30ba0d3e-e2d0-402f-a569-646b3b191297", - "originalId": "30ba0d3e-e2d0-402f-a569-646b3b191297", - "label": "version", - "code": "Version", - "bindingField": "version", - "bindingPath": "version", - "name": "版本" - }, - { - "$type": "ComplexField", - "path": "BillStatus", - "type": { - "$type": "ObjectType", - "fields": [ - { - "$type": "SimpleField", - "multiLanguage": false, - "require": false, - "readonly": false, - "editor": { - "$type": "EnumField" - }, - "defaultValue": "", - "path": "BillStatus.BillState", - "type": { - "$type": "EnumType", - "valueType": { - "$type": "StringType", - "length": 36, - "name": "String", - "displayName": "字符串" - }, - "enumValues": [ - { - "disabled": false, - "name": "制单", - "value": "Billing" - }, - { - "disabled": false, - "name": "提交审批", - "value": "SubmitApproval" - }, - { - "disabled": false, - "name": "审批通过", - "value": "Approved" - }, - { - "disabled": false, - "name": "审批不通过", - "value": "ApprovalNotPassed" - } - ], - "name": "Enum", - "displayName": "枚举" - }, - "id": "a54c2230-0101-468f-ae3f-40c76c0f06b0", - "originalId": "a0b19650-0101-468f-ae3f-40c76c0f06b0", - "label": "billState", - "code": "BillState", - "bindingField": "billStatus_BillState", - "bindingPath": "billStatus.billState", - "name": "状态" - } - ], - "name": "BillStateA54c", - "displayName": "状态" - }, - "id": "a54c2230-3231-4928-a503-93fb64767b84", - "originalId": "a54c2230-3231-4928-a503-93fb64767b84", - "label": "billStatus", - "code": "BillStatus", - "bindingField": "billStatus", - "bindingPath": "billStatus", - "name": "状态" - }, - { - "$type": "ComplexField", - "path": "ProcessInstance", - "type": { - "$type": "ObjectType", - "fields": [ - { - "$type": "SimpleField", - "multiLanguage": false, - "require": false, - "readonly": false, - "editor": { - "$type": "TextBox" - }, - "defaultValue": "", - "path": "ProcessInstance.ProcessInstance", - "type": { - "$type": "StringType", - "length": 36, - "name": "String", - "displayName": "字符串" - }, - "id": "4c02d802-ad8f-4da3-a430-c8a7f2162135", - "originalId": "2e1beb7d-ad8f-4da3-a430-c8a7f2162135", - "label": "processInstance", - "code": "ProcessInstance", - "bindingField": "processInstance_ProcessInstance", - "bindingPath": "processInstance.processInstance", - "name": "流程实例" - } - ], - "name": "ProcessInstance4c02", - "displayName": "流程实例" - }, - "id": "4c02d802-33fe-47d1-b289-05427b719a11", - "originalId": "4c02d802-33fe-47d1-b289-05427b719a11", - "label": "processInstance", - "code": "ProcessInstance", - "bindingField": "processInstance", - "bindingPath": "processInstance", - "name": "流程实例" - }, - { - "$type": "SimpleField", - "multiLanguage": false, - "require": false, - "readonly": false, - "editor": { - "$type": "TextBox" - }, - "defaultValue": "", - "path": "code", - "type": { - "$type": "StringType", - "length": 36, - "name": "String", - "displayName": "字符串" - }, - "id": "b86fa068-5985-419e-86f0-dbe862719192", - "originalId": "b86fa068-5985-419e-86f0-dbe862719192", - "label": "code", - "code": "code", - "bindingField": "code", - "bindingPath": "code", - "name": "编号" - }, - { - "$type": "SimpleField", - "multiLanguage": false, - "require": false, - "readonly": false, - "editor": { - "$type": "TextBox" - }, - "defaultValue": "", - "path": "name", - "type": { - "$type": "StringType", - "length": 36, - "name": "String", - "displayName": "字符串" - }, - "id": "61595c14-d06a-4f6c-977e-152aeb5f7b46", - "originalId": "61595c14-d06a-4f6c-977e-152aeb5f7b46", - "label": "name", - "code": "name", - "bindingField": "name", - "bindingPath": "name", - "name": "名称" - }, - { - "$type": "SimpleField", - "multiLanguage": false, - "require": false, - "readonly": false, - "editor": { - "$type": "NumericBox" - }, - "defaultValue": "", - "path": "numberField1", - "type": { - "$type": "NumericType", - "precision": 0, - "length": 0, - "name": "Number", - "displayName": "数字" - }, - "id": "a53ae211-98d0-4606-a68b-fd5401c5dba5", - "originalId": "a53ae211-98d0-4606-a68b-fd5401c5dba5", - "label": "numberField1", - "code": "numberField1", - "bindingField": "numberField1", - "bindingPath": "numberField1", - "name": "数值1" - }, - { - "$type": "SimpleField", - "require": false, - "multiLanguage": false, - "defaultValue": "", - "editor": { - "$type": "DateBox", - "format": "'yyyy-MM-dd'" - }, - "readonly": false, - "path": "dateField", - "type": { - "$type": "DateType", - "displayName": "日期", - "name": "Date" - }, - "id": "293ef601-da8b-4950-9805-226415b6072b", - "code": "dateField", - "label": "dateField", - "bindingPath": "dateField", - "bindingField": "dateField", - "originalId": "293ef601-da8b-4950-9805-226415b6072b", - "name": "日期" - }, - { - "$type": "SimpleField", - "require": false, - "multiLanguage": false, - "defaultValue": "", - "editor": { - "$type": "DateBox", - "format": "'yyyy-MM-dd'" - }, - "readonly": false, - "path": "dateTimeField", - "type": { - "$type": "DateTimeType", - "displayName": "日期时间", - "name": "DateTime" - }, - "id": "7bd1e315-3b4d-4329-b2df-7a928142286e", - "code": "dateTimeField", - "label": "dateTimeField", - "bindingPath": "dateTimeField", - "bindingField": "dateTimeField", - "originalId": "7bd1e315-3b4d-4329-b2df-7a928142286e", - "name": "日期时间" - }, - { - "$type": "SimpleField", - "require": false, - "multiLanguage": false, - "defaultValue": "", - "editor": { - "$type": "NumericBox" - }, - "readonly": false, - "path": "floatField", - "type": { - "$type": "NumericType", - "displayName": "数字", - "precision": 2, - "length": 18, - "name": "Number" - }, - "id": "173f0950-1ac6-4452-a92c-76e0189c56d7", - "code": "floatField", - "label": "floatField", - "bindingPath": "floatField", - "bindingField": "floatField", - "originalId": "173f0950-1ac6-4452-a92c-76e0189c56d7", - "name": "浮点" - }, - { - "$type": "SimpleField", - "require": false, - "multiLanguage": false, - "defaultValue": "", - "editor": { - "$type": "MultiTextBox" - }, - "readonly": false, - "path": "noteField", - "type": { - "$type": "TextType", - "displayName": "文本", - "length": 0, - "name": "Text" - }, - "id": "ad758550-ac5e-4f04-85c2-107681f716a2", - "code": "noteField", - "label": "noteField", - "bindingPath": "noteField", - "bindingField": "noteField", - "originalId": "ad758550-ac5e-4f04-85c2-107681f716a2", - "name": "备注" - }, - { - "$type": "ComplexField", - "path": "AttachmentFile", - "type": { - "$type": "ObjectType", - "fields": [ - { - "$type": "SimpleField", - "require": false, - "multiLanguage": false, - "defaultValue": "", - "editor": { - "$type": "TextBox" - }, - "readonly": false, - "path": "AttachmentFile.AttachmentId", - "type": { - "$type": "StringType", - "displayName": "字符串", - "length": 36, - "name": "String" - }, - "id": "9d012316-4fd6-49ff-a18a-f466a068f905", - "code": "AttachmentId", - "label": "attachmentId", - "bindingPath": "attachmentFile.attachmentId", - "bindingField": "attachmentFile_AttachmentId", - "originalId": "ff73a947-4fd6-49ff-a18a-f466a068f905", - "name": "附件Id" - }, - { - "$type": "SimpleField", - "require": false, - "multiLanguage": false, - "defaultValue": "", - "editor": { - "$type": "TextBox" - }, - "readonly": false, - "path": "AttachmentFile.FileName", - "type": { - "$type": "StringType", - "displayName": "字符串", - "length": 512, - "name": "String" - }, - "id": "9d012316-1497-4526-86f9-290aab400e0b", - "code": "FileName", - "label": "fileName", - "bindingPath": "attachmentFile.fileName", - "bindingField": "attachmentFile_FileName", - "originalId": "026b07a9-1497-4526-86f9-290aab400e0b", - "name": "附件名称" - }, - { - "$type": "SimpleField", - "require": false, - "multiLanguage": false, - "defaultValue": "", - "editor": { - "$type": "NumericBox" - }, - "readonly": false, - "path": "AttachmentFile.FileSize", - "type": { - "$type": "NumericType", - "displayName": "数字", - "precision": 8, - "length": 128, - "name": "Number" - }, - "id": "9d012316-dd56-4cab-a54b-577a65f9eb6e", - "code": "FileSize", - "label": "fileSize", - "bindingPath": "attachmentFile.fileSize", - "bindingField": "attachmentFile_FileSize", - "originalId": "6369fb66-dd56-4cab-a54b-577a65f9eb6e", - "name": "附件大小" - }, - { - "$type": "SimpleField", - "require": false, - "multiLanguage": false, - "defaultValue": "", - "editor": { - "$type": "DateBox", - "format": "'yyyy-MM-dd'" - }, - "readonly": false, - "path": "AttachmentFile.FileCreateTime", - "type": { - "$type": "DateTimeType", - "displayName": "日期时间", - "name": "DateTime" - }, - "id": "9d012316-a1f5-4f6c-9c82-ddb10864c652", - "code": "FileCreateTime", - "label": "fileCreateTime", - "bindingPath": "attachmentFile.fileCreateTime", - "bindingField": "attachmentFile_FileCreateTime", - "originalId": "ff677864-a1f5-4f6c-9c82-ddb10864c652", - "name": "附件上传时间" - } - ], - "name": "AttachmentInfo9d01", - "displayName": "附件信息" - }, - "id": "9d012316-310e-43ec-8686-3b881f2c25a9", - "code": "AttachmentFile", - "label": "attachmentFile", - "bindingPath": "attachmentFile", - "bindingField": "attachmentFile", - "originalId": "9d012316-310e-43ec-8686-3b881f2c25a9", - "name": "附件文件" - }, - { - "$type": "SimpleField", - "require": false, - "multiLanguage": false, - "defaultValue": "", - "editor": { - "$type": "CheckBox" - }, - "readonly": false, - "path": "booleanField", - "type": { - "$type": "BooleanType", - "displayName": "布尔", - "name": "Boolean" - }, - "id": "24119450-10d9-485b-9ab2-cf225ec1c3bb", - "code": "booleanField", - "label": "booleanField", - "bindingPath": "booleanField", - "bindingField": "booleanField", - "originalId": "24119450-10d9-485b-9ab2-cf225ec1c3bb", - "name": "布尔" - }, - { - "$type": "ComplexField", - "label": "treeField", - "id": "2bd38907-b163-4b2f-85aa-bb0bd708b364", - "path": "treeField", - "type": { - "$type": "HierarchyType", - "fields": [ - { - "$type": "SimpleField", - "defaultValue": "", - "editor": { - "$type": "TextBox" - }, - "require": false, - "multiLanguage": false, - "readonly": false, - "label": "parentElement", - "id": "2bd38907-b2b6-4ff2-bcc4-5c4d5534d02c", - "path": "treeField.ParentElement", - "type": { - "$type": "StringType", - "displayName": "字符串", - "length": 36, - "name": "String" - }, - "originalId": "37a3529a-b2b6-4ff2-bcc4-5c4d5534d02c", - "code": "ParentElement", - "bindingField": "treeField_ParentElement", - "bindingPath": "treeField.parentElement", - "name": "父节点字段" - }, - { - "$type": "SimpleField", - "defaultValue": "", - "editor": { - "$type": "NumericBox" - }, - "require": false, - "multiLanguage": false, - "readonly": false, - "label": "sequence", - "id": "2bd38907-f606-4999-ae4a-1357b2970daa", - "path": "treeField.Sequence", - "type": { - "$type": "NumericType", - "displayName": "数字", - "precision": 0, - "length": 0, - "name": "Number" - }, - "originalId": "b5a7caf0-f606-4999-ae4a-1357b2970daa", - "code": "Sequence", - "bindingField": "treeField_Sequence", - "bindingPath": "treeField.sequence", - "name": "顺序号" - }, - { - "$type": "SimpleField", - "defaultValue": "", - "editor": { - "$type": "NumericBox" - }, - "require": false, - "multiLanguage": false, - "readonly": false, - "label": "layer", - "id": "2bd38907-09d1-42ed-9cd0-b823d9098a5d", - "path": "treeField.Layer", - "type": { - "$type": "NumericType", - "displayName": "数字", - "precision": 0, - "length": 0, - "name": "Number" - }, - "originalId": "592e17a0-09d1-42ed-9cd0-b823d9098a5d", - "code": "Layer", - "bindingField": "treeField_Layer", - "bindingPath": "treeField.layer", - "name": "级数" - }, - { - "$type": "SimpleField", - "defaultValue": "", - "editor": { - "$type": "CheckBox" - }, - "require": false, - "multiLanguage": false, - "readonly": false, - "label": "isDetail", - "id": "2bd38907-c6cd-46a5-b05f-9f25f02edf7f", - "path": "treeField.IsDetail", - "type": { - "$type": "BooleanType", - "displayName": "布尔", - "name": "Boolean" - }, - "originalId": "79aff7ce-c6cd-46a5-b05f-9f25f02edf7f", - "code": "IsDetail", - "bindingField": "treeField_IsDetail", - "bindingPath": "treeField.isDetail", - "name": "是否明细" - } - ], - "name": "ParentHierarchyInfo2bd3", - "displayName": "父节点分级信息" - }, - "originalId": "2bd38907-b163-4b2f-85aa-bb0bd708b364", - "code": "treeField", - "bindingField": "treeField", - "bindingPath": "treeField", - "name": "树字段" - }, - { - "$type": "SimpleField", - "defaultValue": "", - "editor": { - "$type": "EnumField" - }, - "require": false, - "multiLanguage": false, - "readonly": false, - "label": "enumField", - "id": "e77f1a5c-3e36-4551-a157-e4903cff80fd", - "path": "enumField", - "type": { - "$type": "EnumType", - "displayName": "枚举", - "valueType": { - "$type": "StringType", - "displayName": "字符串", - "length": 36, - "name": "String" - }, - "enumValues": [ - { - "disabled": false, - "name": "值1", - "value": "value1" - }, - { - "disabled": false, - "name": "值2", - "value": "value2" - } - ], - "name": "Enum" - }, - "originalId": "e77f1a5c-3e36-4551-a157-e4903cff80fd", - "code": "enumField", - "bindingField": "enumField", - "bindingPath": "enumField", - "name": "枚举字段" - } - ], - "primary": "id", - "name": "RuntimeTestBe", - "displayName": "运行时问题测试" - }, - "id": "359b32d4-58f0-4631-b52c-bf8b62e03e18", - "label": "runtimeTestBes", - "code": "RuntimeTestBe", - "name": "运行时问题测试" - } - ], - "sourceType": "vo", - "id": "11213af2-51cd-458a-882b-ef35209c7ba2", - "variables": [ - { - "$type": "SimpleField", - "multiLanguage": false, - "require": false, - "readonly": false, - "editor": { - "$type": "TextBox" - }, - "defaultValue": "", - "path": "bffSysFormConfigId", - "type": { - "$type": "StringType", - "length": 36, - "name": "String", - "displayName": "字符串" - }, - "id": "da48cef2-4219-4a33-8bf6-e0acdaf6d83b", - "originalId": "da48cef2-4219-4a33-8bf6-e0acdaf6d83b", - "label": "bffSysFormConfigId", - "code": "bffSysFormConfigId", - "bindingField": "bffSysFormConfigId", - "bindingPath": "bffSysFormConfigId", - "name": "表单流程配置" - } - ], - "code": "PCCardFormTest_frm", - "sourceUri": "api/mydev/angulartest/v1.0/PCCardFormTest_frm", - "extendProperties": { - "enableStdTimeFormat": true - }, - "name": "PC卡片测试_frm" - } - ], - "states": [], - "contents": [], - "stateMachines": [ - { - "id": "PCCardFormTest_state_machine", - "name": "PC卡片测试", - "uri": "05a3916d-1f67-4b30-8742-e50b496e08c8", - "code": "PCCardFormTest_frm", - "nameSpace": "Inspur.GS.MyDev.AngularTest.RuntimeTest.RuntimeTest.Front" - } - ], - "viewmodels": [ - { - "id": "root-viewmodel", - "code": "root-viewmodel", - "name": "运行时问题测试", - "fields": [], - "stateMachine": "PCCardFormTest_state_machine", - "serviceRefs": [], - "commands": [ - { - "id": "e05264fb-796d-43fb-b83b-9e2f3866c328", - "code": "Load1", - "name": "执行加载页面后初始方法", - "params": [ - { - "name": "action", - "shownName": "初始方法", - "value": "{UISTATE~/#{root-component}/action}", - "defaultValue": null - } - ], - "handlerName": "Load", - "cmpId": "8172a979-2c80-4637-ace7-b13074d3f393", - "shortcut": {}, - "extensions": [], - "isInvalid": false - }, - { - "id": "246a275c-88c9-4c8a-aa82-be6a950a4325", - "code": "LoadAndAdd1", - "name": "新增一条数据", - "params": [ - { - "name": "transitionAction", - "shownName": "状态机动作", - "value": "Create", - "defaultValue": null - } - ], - "handlerName": "LoadAndAdd", - "cmpId": "8172a979-2c80-4637-ace7-b13074d3f393", - "shortcut": {}, - "extensions": [], - "isInvalid": false - }, - { - "id": "70acc053-fa15-45be-851c-cf694e1bcaf7", - "code": "LoadAndView1", - "name": "查看一条数据", - "params": [ - { - "name": "id", - "shownName": "待查看数据的标识", - "value": "{UISTATE~/#{root-component}/id}", - "defaultValue": null - }, - { - "name": "transitionAction", - "shownName": "状态机动作", - "value": "Cancel", - "defaultValue": null - }, - { - "name": "transitionActionParamName", - "shownName": "状态迁移动作参数编号", - "value": "", - "defaultValue": null - } - ], - "handlerName": "LoadAndView", - "cmpId": "8172a979-2c80-4637-ace7-b13074d3f393", - "shortcut": {}, - "extensions": [], - "isInvalid": false - }, - { - "id": "3e72ee6f-8f7b-4f29-aa0e-5887f2861117", - "code": "LoadAndEdit1", - "name": "编辑当前数据", - "params": [ - { - "name": "id", - "shownName": "待编辑数据的标识", - "value": "{UISTATE~/#{root-component}/id}", - "defaultValue": null - }, - { - "name": "transitionAction", - "shownName": "状态机动作", - "value": "Edit", - "defaultValue": null - }, - { - "name": "transitionActionParamName", - "shownName": "状态迁移动作参数编号", - "value": "", - "defaultValue": null - } - ], - "handlerName": "LoadAndEdit", - "cmpId": "8172a979-2c80-4637-ace7-b13074d3f393", - "shortcut": {}, - "extensions": [], - "isInvalid": false - }, - { - "id": "f90aadfa-988c-4da5-a5db-1416c3333794", - "code": "Add1", - "name": "新增一条数据", - "params": [ - { - "name": "transitionAction", - "shownName": "状态机动作", - "value": "Create", - "defaultValue": null - } - ], - "handlerName": "Add", - "cmpId": "8172a979-2c80-4637-ace7-b13074d3f393", - "shortcut": {}, - "extensions": [], - "isInvalid": false - }, - { - "id": "a323e27b-b9c6-4848-93b9-f117403a94ff", - "code": "Edit1", - "name": "编辑当前数据", - "params": [ - { - "name": "transitionAction", - "shownName": "状态机动作", - "value": "Edit", - "defaultValue": null - } - ], - "handlerName": "Edit", - "cmpId": "8172a979-2c80-4637-ace7-b13074d3f393", - "shortcut": {}, - "extensions": [], - "isInvalid": false - }, - { - "id": "31b814db-01e4-407d-8fad-0f08dbb01999", - "code": "Save1", - "name": "保存变更", - "params": [ - { - "name": "transitionAction", - "shownName": "状态机动作", - "value": "Cancel", - "defaultValue": null - }, - { - "name": "successMsg", - "shownName": "保存成功提示信息", - "value": "", - "defaultValue": null - } - ], - "handlerName": "Save", - "cmpId": "8172a979-2c80-4637-ace7-b13074d3f393", - "shortcut": {}, - "extensions": [], - "isInvalid": false - }, - { - "id": "4f5ed2ec-8def-4a3c-8e7b-397ea93010e8", - "code": "Cancel1", - "name": "取消变更", - "params": [ - { - "name": "transitionAction", - "shownName": "状态机动作", - "value": "Cancel", - "defaultValue": null - } - ], - "handlerName": "Cancel", - "cmpId": "8172a979-2c80-4637-ace7-b13074d3f393", - "shortcut": {}, - "extensions": [], - "isInvalid": false - }, - { - "id": "c8504c24-33e8-487a-91ce-2218b803fe01", - "code": "ChangeItem1", - "name": "切换上一条或下一条1", - "params": [ - { - "name": "id", - "shownName": "当前数据标识", - "value": "{DATA~/#{root-component}/id}", - "defaultValue": null - }, - { - "name": "type", - "shownName": "切换类型(prev|next)", - "value": "prev", - "defaultValue": null - }, - { - "name": "transitionAction", - "shownName": "状态机动作", - "value": "Cancel", - "defaultValue": null - } - ], - "handlerName": "ChangeItem", - "cmpId": "8172a979-2c80-4637-ace7-b13074d3f393", - "shortcut": {}, - "extensions": [], - "isInvalid": false - }, - { - "id": "4a0cfb1a-1262-41a2-aeb9-c8edd5c09683", - "code": "ChangeItem2", - "name": "切换上一条或下一条2", - "params": [ - { - "name": "id", - "shownName": "当前数据标识", - "value": "{DATA~/#{root-component}/id}", - "defaultValue": null - }, - { - "name": "type", - "shownName": "切换类型(prev|next)", - "value": "next", - "defaultValue": null - }, - { - "name": "transitionAction", - "shownName": "状态机动作", - "value": "Cancel", - "defaultValue": null - } - ], - "handlerName": "ChangeItem", - "cmpId": "8172a979-2c80-4637-ace7-b13074d3f393", - "shortcut": {}, - "extensions": [], - "isInvalid": false - }, - { - "id": "0d34f338-b601-4716-8530-493b0752483b", - "code": "submitWithBizDefKey1", - "name": "提交审批", - "params": [ - { - "name": "dataId", - "shownName": "表单数据id", - "value": "{DATA~/#{basic-form-component}/id}", - "defaultValue": null - }, - { - "name": "bizDefKey", - "shownName": "流程分类id", - "value": "", - "defaultValue": null - }, - { - "name": "action", - "shownName": "迁移动作(可选)", - "value": "", - "defaultValue": null - } - ], - "handlerName": "submitWithBizDefKey", - "cmpId": "a7cb7d01-9df1-4a32-8202-99c9d0f4c339", - "shortcut": {}, - "extensions": [], - "isInvalid": false - }, - { - "id": "e492063e-a22d-4f23-8aed-7fe139843220", - "code": "cancelSubmitWithDataId1", - "name": "取消提交", - "params": [ - { - "name": "dataId", - "shownName": "表单数据id", - "value": "{DATA~/#{basic-form-component}/id}", - "defaultValue": null - }, - { - "name": "bizDefKey", - "shownName": "流程分类id", - "value": "", - "defaultValue": null - }, - { - "name": "action", - "shownName": "迁移动作(可选)", - "value": "", - "defaultValue": null - } - ], - "handlerName": "cancelSubmitWithDataId", - "cmpId": "a7cb7d01-9df1-4a32-8202-99c9d0f4c339", - "shortcut": {}, - "extensions": [], - "isInvalid": false - } - ], - "states": [ - { - "id": "da48cef2-4219-4a33-8bf6-e0acdaf6d83b", - "code": "bffSysFormConfigId", - "name": "表单流程配置", - "type": "String", - "category": "remote" - }, - { - "id": "e7bdd079-ca82-400c-bd82-fff8385571e5", - "code": "date", - "name": "date", - "type": "Date", - "category": "locale" - } - ], - "bindTo": "/", - "enableValidation": false, - "enableUnifiedSession": false - }, - { - "id": "basic-form-viewmodel", - "code": "basic-form-viewmodel", - "name": "运行时问题测试", - "fields": [ - { - "type": "Form", - "id": "668b9bfb-9c29-46b7-862d-b391bb7602e2", - "fieldName": "id", - "groupId": null, - "groupName": null, - "updateOn": "blur" - }, - { - "type": "Form", - "id": "30ba0d3e-e2d0-402f-a569-646b3b191297", - "fieldName": "version", - "groupId": null, - "groupName": null, - "updateOn": "blur" - }, - { - "type": "Form", - "id": "a54c2230-0101-468f-ae3f-40c76c0f06b0", - "fieldName": "billStatus_BillState", - "groupId": null, - "groupName": null, - "updateOn": "change", - "fieldSchema": { - "name": "状态1" - } - }, - { - "type": "Form", - "id": "4c02d802-ad8f-4da3-a430-c8a7f2162135", - "fieldName": "processInstance_ProcessInstance", - "groupId": null, - "groupName": null, - "updateOn": "blur" - }, - { - "type": "Form", - "id": "b86fa068-5985-419e-86f0-dbe862719192", - "fieldName": "code", - "groupId": null, - "groupName": null, - "updateOn": "blur", - "fieldSchema": { - "editor": { - "$type": "LookupEdit", - "dataSource": { - "uri": "RuntimeTestBe.code", - "displayName": "用户组织帮助", - "idField": "id", - "type": "ViewObject", - "helpCode": "UserOrgTest" - }, - "valueField": "id", - "textField": "name", - "displayType": "NavTreeList", - "mapFields": "", - "helpId": "89f18b11-dd4f-4cd1-92c9-83d8038ef799" - }, - "name": "编号", - "require": false, - "readonly": false - } - }, - { - "type": "Form", - "id": "61595c14-d06a-4f6c-977e-152aeb5f7b46", - "fieldName": "name", - "groupId": null, - "groupName": null, - "updateOn": "blur" - }, - { - "type": "Form", - "id": "a53ae211-98d0-4606-a68b-fd5401c5dba5", - "fieldName": "numberField1", - "groupId": null, - "groupName": null, - "updateOn": "blur", - "fieldSchema": { - "editor": { - "maxValue": 10 - } - } - }, - { - "type": "Form", - "id": "173f0950-1ac6-4452-a92c-76e0189c56d7", - "fieldName": "floatField", - "groupId": "", - "groupName": "", - "valueChanging": "", - "valueChanged": "", - "updateOn": "blur", - "fieldSchema": { - "editor": { - "minValue": null, - "maxValue": null - } - } - }, - { - "type": "Form", - "id": "e77f1a5c-3e36-4551-a157-e4903cff80fd", - "fieldName": "enumField", - "groupId": "", - "groupName": "", - "valueChanging": "", - "valueChanged": "", - "updateOn": "change", - "fieldSchema": {} - } - ], - "serviceRefs": [], - "commands": [], - "states": [], - "bindTo": "/", - "parent": "root-viewmodel", - "enableValidation": true - }, - { - "id": "childattachment1-egs8-component-viewmodel", - "code": "childattachment1-egs8-component-viewmodel", - "name": "子表附件1", - "bindTo": "/childAttachment1s", - "parent": "root-viewmodel", - "fields": [], - "commands": [ - { - "id": "childattachment1egs8AddFileRows-id", - "code": "childattachment1egs8AddFileRows", - "name": "批量添加文件数据", - "handlerName": "addFileRows", - "cmpId": "31c1022c-ab40-4e8d-bc31-85d539f1d36c", - "params": [ - { - "name": "fileInfoFieldPath", - "shownName": "文件信息字段路径", - "value": "/childAttachment1s/attachment" - } - ], - "shortcut": {}, - "extensions": [], - "isInvalid": false - }, - { - "id": "childattachment1egs8RemoveFileRows-id", - "code": "childattachment1egs8RemoveFileRows", - "name": "批量删除文件数据", - "handlerName": "removeFileRows", - "cmpId": "31c1022c-ab40-4e8d-bc31-85d539f1d36c", - "params": [ - { - "name": "fileInfoFieldPath", - "shownName": "文件信息字段路径", - "value": "/childAttachment1s/attachment" - } - ], - "shortcut": {}, - "extensions": [], - "isInvalid": false - } - ], - "states": [], - "enableValidation": true, - "pagination": { - "enable": false - }, - "allowEmpty": true - }, - { - "id": "runtimeitem1-vgy0-component-viewmodel", - "code": "runtimeitem1-vgy0-component-viewmodel", - "name": "{{'test' }}", - "bindTo": "/runtimeItem1s", - "parent": "root-viewmodel", - "fields": [ - { - "type": "Form", - "id": "3df94820-efa6-48a6-8d47-112ac47e3302", - "fieldName": "id", - "groupId": null, - "groupName": null, - "updateOn": "blur", - "fieldSchema": {} - }, - { - "type": "Form", - "id": "ee23f329-c1d4-489e-b691-b39b6cd12302", - "fieldName": "parentID", - "groupId": null, - "groupName": null, - "updateOn": "blur", - "fieldSchema": {} - }, - { - "type": "Form", - "id": "c864358f-cb3c-4b2b-960e-423754e28ea8", - "fieldName": "code", - "groupId": null, - "groupName": null, - "updateOn": "blur", - "fieldSchema": { - "require": true - } - }, - { - "type": "Form", - "id": "a6c40426-7529-45e3-8c53-4ae973f28c09", - "fieldName": "name", - "groupId": null, - "groupName": null, - "updateOn": "blur", - "fieldSchema": {} - }, - { - "type": "Form", - "id": "e4f457e3-add6-4df6-becd-26617dd1cb46", - "fieldName": "booleanField", - "groupId": null, - "groupName": null, - "updateOn": "change", - "fieldSchema": { - "editor": { - "$type": "CheckBox" - }, - "name": "布尔", - "require": false, - "readonly": false - } - } - ], - "commands": [ - { - "id": "3a2f8aee-605b-4789-a971-43ba31c60b61", - "code": "runtimeitem1vgy0AddItem1", - "name": "增加一条子表数据1", - "params": [], - "handlerName": "AddItem", - "cmpId": "8172a979-2c80-4637-ace7-b13074d3f393", - "shortcut": {}, - "extensions": [], - "isInvalid": false - }, - { - "id": "5a844e51-0196-44e6-ac4c-e9c4d235a894", - "code": "runtimeitem1vgy0RemoveItem1", - "name": "删除一条子表数据1", - "params": [ - { - "name": "id", - "shownName": "待删除子表数据的标识", - "value": "{DATA~/#{runtimeitem1-vgy0-component}/runtimeItem1s/id}" - } - ], - "handlerName": "RemoveItem", - "cmpId": "8172a979-2c80-4637-ace7-b13074d3f393", - "shortcut": {}, - "extensions": [], - "isInvalid": false - } - ], - "states": [], - "enableValidation": true, - "pagination": { - "enable": false - }, - "allowEmpty": true - } - ], - "components": [ - { - "id": "root-component", - "type": "Component", - "viewModel": "root-viewmodel", - "componentType": "Frame", - "onInit": "Load1", - "contents": [ - { - "id": "root-layout", - "type": "ContentContainer", - "appearance": { - "class": "f-page f-page-card f-page-is-mainsubcard" - }, - "size": null, - "contents": [ - { - "id": "page-header", - "type": "ContentContainer", - "appearance": { - "class": "f-page-header" - }, - "size": null, - "contents": [ - { - "id": "header-nav", - "type": "ContentContainer", - "appearance": { - "class": "f-page-header-base" - }, - "size": null, - "contents": [ - { - "id": "header-title-container", - "type": "ContentContainer", - "appearance": { - "class": "f-title" - }, - "size": null, - "contents": [ - { - "id": "page-header-title", - "type": "HtmlTemplate", - "html": "

{{'title'|lang:lang:'PC卡片测试'}}

" - } - ], - "visible": true, - "isScrollspyContainer": false, - "isLikeCardContainer": false - }, - { - "id": "page-header-toolbar", - "type": "ToolBar", - "appearance": { - "class": "col-7 f-toolbar" - }, - "size": null, - "items": [ - { - "id": "button-add", - "type": "ToolBarItem", - "text": "新增", - "appearance": { - "class": "btn-primary" - }, - "disable": "!viewModel.stateMachine['canAdd']", - "visible": true, - "click": "Add1", - "visibleControlledByRules": true, - "disableControlledByRules": true, - "items": [], - "usageMode": "button", - "modalConfig": null - }, - { - "id": "button-edit", - "type": "ToolBarItem", - "text": "编辑", - "appearance": null, - "disable": "!viewModel.stateMachine['canEdit']", - "visible": true, - "click": "Edit1", - "visibleControlledByRules": true, - "disableControlledByRules": true, - "items": [], - "usageMode": "button", - "modalConfig": null - }, - { - "id": "button-save", - "type": "ToolBarItem", - "text": "保存", - "appearance": null, - "disable": "!viewModel.stateMachine['canSave']", - "visible": true, - "click": "Save1", - "visibleControlledByRules": true, - "disableControlledByRules": true, - "items": [], - "usageMode": "button", - "modalConfig": null - }, - { - "id": "button-cancel", - "type": "ToolBarItem", - "text": "取消", - "appearance": null, - "disable": "!viewModel.stateMachine['canCancel']", - "visible": true, - "click": "Cancel1", - "visibleControlledByRules": false, - "disableControlledByRules": false, - "items": [], - "usageMode": "button", - "modalConfig": null - }, - { - "id": "button-approve", - "type": "ToolBarItem", - "appearance": null, - "disable": "!viewModel.stateMachine['canApprove']", - "text": "提交审批", - "visible": true, - "click": "submitWithBizDefKey1", - "visibleControlledByRules": true, - "disableControlledByRules": true, - "items": [], - "usageMode": "button", - "modalConfig": null - }, - { - "id": "button-cancel-approve", - "type": "ToolBarItem", - "appearance": null, - "disable": "!viewModel.stateMachine['canCancelApprove']", - "text": "取消提交审批", - "visible": true, - "click": "cancelSubmitWithDataId1", - "visibleControlledByRules": true, - "disableControlledByRules": true, - "items": [], - "usageMode": "button", - "modalConfig": null - } - ], - "visible": true, - "buttonSize": "default", - "popDirection": "default" - } - ], - "visible": true, - "isScrollspyContainer": false, - "isLikeCardContainer": false - } - ], - "visible": true, - "isScrollspyContainer": false, - "isLikeCardContainer": false - }, - { - "id": "main-container", - "type": "ContentContainer", - "appearance": { - "class": "f-page-main" - }, - "size": null, - "contents": [ - { - "id": "like-card-container", - "type": "ContentContainer", - "appearance": { - "class": "f-struct-like-card" - }, - "size": null, - "contents": [ - { - "id": "basic-form-component-ref", - "type": "ComponentRef", - "component": "basic-form-component", - "visible": true - }, - { - "id": "container_8036", - "type": "ContentContainer", - "appearance": { - "class": "f-struct-wrapper" - }, - "visible": true, - "contents": [ - { - "id": "section_8036", - "type": "Section", - "appearance": { - "class": "f-section-in-mainsubcard" - }, - "visible": true, - "mainTitle": "运行时明细1", - "subTitle": "", - "headerClass": "", - "titleClass": "", - "extendedHeaderAreaClass": "", - "toolbarClass": "", - "extendedAreaClass": "", - "contentTemplateClass": "", - "fill": false, - "expanded": true, - "enableMaximize": false, - "enableAccordion": false, - "accordionMode": "default", - "showHeader": true, - "headerTemplate": "", - "titleTemplate": "", - "extendedHeaderAreaTemplate": "", - "toolbarTemplate": "", - "extendedAreaTemplate": "", - "contents": [ - { - "id": "runtimeitem1-vgy0-component-ref", - "type": "ComponentRef", - "component": "runtimeitem1-vgy0-component", - "visible": true - } - ], - "isScrollSpyItem": false, - "toolbar": { - "type": "SectionToolbar", - "position": "inHead", - "contents": [ - { - "id": "runtimeitem1-vgy0-component-button-add", - "type": "SectionToolbarItem", - "title": "新增", - "disable": "!viewModel.stateMachine['canAddDetail']", - "appearance": { - "class": "btn btn-secondary f-btn-ml" - }, - "visible": true, - "click": "root-viewModel.runtimeitem1-vgy0-component-viewmodel.runtimeitem1vgy0AddItem1", - "items": [], - "split": false, - "visibleControlledByRules": true, - "disableControlledByRules": true - }, - { - "id": "runtimeitem1-vgy0-component-button-remove", - "type": "SectionToolbarItem", - "title": "删除", - "disable": "!viewModel.stateMachine['canRemoveDetail']", - "appearance": { - "class": "btn btn-secondary f-btn-ml" - }, - "visible": true, - "click": "root-viewModel.runtimeitem1-vgy0-component-viewmodel.runtimeitem1vgy0RemoveItem1", - "items": [], - "split": false, - "visibleControlledByRules": true, - "disableControlledByRules": true - } - ] - } - } - ], - "isScrollspyContainer": false, - "isLikeCardContainer": false - }, - { - "id": "childattachment1-egs8-component-ref", - "type": "ComponentRef", - "component": "childattachment1-egs8-component", - "visible": true - } - ], - "visible": true, - "draggable": false, - "isLikeCardContainer": true, - "isScrollspyContainer": false - } - ], - "visible": true, - "isScrollspyContainer": false, - "isLikeCardContainer": false - } - ], - "visible": true, - "isScrollspyContainer": false, - "isLikeCardContainer": false - } - ], - "appearance": null, - "visible": true, - "afterViewInit": null - }, - { - "id": "basic-form-component", - "type": "Component", - "viewModel": "basic-form-viewmodel", - "componentType": "form-col-4", - "appearance": { - "class": "f-struct-wrapper" - }, - "onInit": "", - "contents": [ - { - "id": "basic-form-section", - "type": "Section", - "appearance": { - "class": "f-section-form f-section-in-mainsubcard" - }, - "visible": true, - "mainTitle": "基本信息", - "subTitle": "", - "headerClass": "", - "titleClass": "", - "extendedHeaderAreaClass": "", - "toolbarClass": "", - "extendedAreaClass": "", - "contentTemplateClass": "", - "fill": false, - "expanded": true, - "enableMaximize": false, - "enableAccordion": true, - "accordionMode": "default", - "showHeader": true, - "headerTemplate": "", - "titleTemplate": "", - "extendedHeaderAreaTemplate": "", - "toolbarTemplate": "", - "extendedAreaTemplate": "", - "contents": [ - { - "id": "basic-form-layout", - "type": "Form", - "appearance": { - "class": "f-form-layout farris-form farris-form-controls-inline" - }, - "size": null, - "contents": [ - { - "id": "id_668b9bfb_9kgu", - "type": "TextBox", - "titleSourceType": "static", - "title": "主键", - "appearance": { - "class": "col-12 col-md-6 col-xl-3 col-el-2" - }, - "size": null, - "binding": { - "type": "Form", - "path": "id", - "field": "668b9bfb-9c29-46b7-862d-b391bb7602e2", - "fullPath": "ID" - }, - "readonly": "!viewModel.stateMachine['editable']", - "require": true, - "disable": false, - "placeHolder": "", - "format": null, - "validation": null, - "value": null, - "maxLength": 36, - "linkedLabelEnabled": false, - "linkedLabelClick": null, - "visible": true, - "holdPlace": false, - "isTextArea": true, - "isPassword": false, - "tabindex": -1, - "hasDefaultFocus": false, - "focusState": null, - "titleWidth": null, - "enableTips": true, - "path": "id", - "visibleControlledByRules": true, - "readonlyControlledByRules": false, - "requireControlledByRules": false, - "enableAppend": false, - "inputAppendType": "button", - "inputAppendDisabled": false, - "formatValidation": { - "type": "none", - "expression": "", - "message": "" - }, - "autoHeight": false, - "maxHeight": 500 - }, - { - "id": "version_30ba0d3e_s8rx", - "type": "DateBox", - "titleSourceType": "static", - "title": "版本", - "controlSource": "Farris", - "appearance": { - "class": "col-12 col-md-6 col-xl-3 col-el-2" - }, - "size": null, - "binding": { - "type": "Form", - "path": "version", - "field": "30ba0d3e-e2d0-402f-a569-646b3b191297", - "fullPath": "Version" - }, - "readonly": "!viewModel.stateMachine['editable']", - "require": false, - "disable": false, - "placeHolder": "", - "validation": null, - "value": null, - "editable": true, - "dateRange": false, - "showTime": true, - "showType": 1, - "dateFormat": "yyyy-MM-dd HH:mm:ss", - "returnFormat": "yyyy-MM-dd HH:mm:ss", - "maxValue": null, - "minValue": null, - "disableDates": [], - "showWeekNumbers": false, - "dateRangeDatesDelimiter": "~", - "shortcuts": [], - "fieldType": "DateTime", - "useDefault": false, - "holdPlace": false, - "linkedLabelEnabled": false, - "linkedLabelClick": null, - "visible": true, - "isTextArea": true, - "tabindex": -1, - "hasDefaultFocus": false, - "focusState": null, - "titleWidth": null, - "localization": false, - "path": "version", - "localizationType": "DateTime", - "visibleControlledByRules": true, - "readonlyControlledByRules": false, - "requireControlledByRules": false, - "enableAppend": false, - "inputAppendType": "button", - "inputAppendDisabled": false, - "autoHeight": false, - "maxHeight": 500, - "hourStep": 1, - "minuteStep": 1, - "secondStep": 1, - "firstDayOfWeek": "mo" - }, - { - "id": "billStatus_BillState_a54c2230_pl5h", - "type": "EnumField", - "titleSourceType": "static", - "title": "状态1", - "controlSource": "Farris", - "appearance": { - "class": "col-12 col-md-6 col-xl-3 col-el-2" - }, - "size": null, - "binding": { - "type": "Form", - "path": "billStatus_BillState", - "field": "a54c2230-0101-468f-ae3f-40c76c0f06b0", - "fullPath": "BillStatus.BillState" - }, - "placeHolder": "", - "readonly": "!viewModel.stateMachine['editable']", - "require": false, - "disable": false, - "enumData": [ - { - "disabled": false, - "name": "制单", - "value": "Billing" - }, - { - "disabled": false, - "name": "提交审批", - "value": "SubmitApproval" - }, - { - "disabled": false, - "name": "审批通过", - "value": "Approved" - }, - { - "disabled": false, - "name": "审批不通过", - "value": "ApprovalNotPassed" - } - ], - "holdPlace": false, - "isTextArea": true, - "linkedLabelEnabled": false, - "linkedLabelClick": null, - "visible": true, - "tabindex": -1, - "hasDefaultFocus": false, - "focusState": null, - "titleWidth": null, - "idField": "value", - "textField": "name", - "multiSelect": false, - "uri": "", - "autoWidth": true, - "enableClear": false, - "onClear": null, - "valueChanged": null, - "onShown": null, - "onHidden": null, - "editable": false, - "enableCancelSelected": false, - "beforeShow": null, - "beforeHide": null, - "dataSourceType": "static", - "path": "billStatus.billState", - "visibleControlledByRules": true, - "readonlyControlledByRules": false, - "requireControlledByRules": false, - "viewType": "text", - "noSearch": false, - "maxSearchLength": null, - "enableAppend": false, - "inputAppendType": "button", - "inputAppendDisabled": false, - "autoHeight": false, - "maxHeight": 500, - "showDisabledItem": true, - "labelAutoOverflow": false, - "updateOn": "change" - }, - { - "id": "processInstance_ProcessInstance_4c02d802_v27r", - "type": "TextBox", - "titleSourceType": "static", - "title": "流程实例", - "appearance": { - "class": "col-12 col-md-6 col-xl-3 col-el-2" - }, - "size": null, - "binding": { - "type": "Form", - "path": "processInstance_ProcessInstance", - "field": "4c02d802-ad8f-4da3-a430-c8a7f2162135", - "fullPath": "ProcessInstance.ProcessInstance" - }, - "readonly": "!viewModel.stateMachine['editable']", - "require": false, - "disable": false, - "placeHolder": "", - "format": null, - "validation": null, - "value": null, - "maxLength": 36, - "linkedLabelEnabled": false, - "linkedLabelClick": null, - "visible": true, - "holdPlace": false, - "isTextArea": true, - "isPassword": false, - "tabindex": -1, - "hasDefaultFocus": false, - "focusState": null, - "titleWidth": null, - "enableTips": true, - "path": "processInstance.processInstance", - "visibleControlledByRules": true, - "readonlyControlledByRules": false, - "requireControlledByRules": false, - "enableAppend": false, - "inputAppendType": "button", - "inputAppendDisabled": false, - "formatValidation": { - "type": "none", - "expression": "", - "message": "" - }, - "autoHeight": false, - "maxHeight": 500 - }, - { - "id": "code_b86fa068_y9fz", - "type": "LookupEdit", - "titleSourceType": "static", - "title": "编号", - "appearance": { - "class": "col-12 col-md-6 col-xl-3 col-el-2" - }, - "size": null, - "binding": { - "type": "Form", - "path": "code", - "field": "b86fa068-5985-419e-86f0-dbe862719192", - "fullPath": "code" - }, - "readonly": "!viewModel.stateMachine['editable']", - "require": false, - "disable": false, - "placeHolder": "", - "dataSource": { - "uri": "RuntimeTestBe.code", - "displayName": "用户组织帮助", - "idField": "id", - "type": "ViewObject", - "helpCode": "UserOrgTest" - }, - "textField": "name", - "valueField": "id", - "displayType": "NavTreeList", - "multiSelect": false, - "pageList": "10,20,30,50", - "pageSize": 20, - "pageIndex": null, - "pagination": null, - "dialogTitle": "", - "showMaxButton": null, - "showCloseButton": null, - "resizable": null, - "buttonAlign": null, - "mapFields": "", - "lookupStyle": "popup", - "holdPlace": false, - "isTextArea": true, - "useTip": false, - "useFavorite": true, - "noSearch": false, - "maxSearchLength": 36, - "enableToSelect": true, - "isRecordSize": false, - "lookupPicking": null, - "lookupPicked": null, - "linkedLabelEnabled": false, - "linkedLabelClick": null, - "visible": true, - "enableExtendLoadMethod": true, - "editable": false, - "enableFullTree": false, - "enableClear": true, - "clear": null, - "loadTreeDataType": "default", - "expandLevel": -1, - "enableCascade": false, - "cascadeStatus": "enable", - "onShown": null, - "onHidden": null, - "beforeShow": null, - "beforeHide": null, - "tabindex": -1, - "hasDefaultFocus": false, - "focusState": null, - "titleWidth": null, - "textAlign": "left", - "useExtendInfo": false, - "extInfoFields": null, - "extInfoFormatter": null, - "customFormatter": null, - "customNavFormatter": null, - "selectFirstInNav": false, - "loadDataWhenOpen": true, - "onlySelectLeaf": "default", - "viewType": "text", - "autoHeight": false, - "maxHeight": 500, - "autoWidth": true, - "showHeader": true, - "beforeSelectData": null, - "enableAppend": false, - "inputAppendType": "button", - "inputAppendDisabled": false, - "enableContextMenu": false, - "quickSelect": { - "enable": false, - "showItemsCount": 10, - "formatter": null, - "showMore": true - }, - "treeToList": false, - "navTreeToList": false, - "showNavigation": true, - "showCascadeControl": true, - "linkConfig": { - "enable": false, - "config": [] - }, - "showSelected": false, - "useNewLayout": false, - "enableMultiFieldSearch": false, - "separator": ",", - "path": "code", - "visibleControlledByRules": true, - "readonlyControlledByRules": true, - "requireControlledByRules": true, - "isRTControl": false, - "labelAutoOverflow": false, - "updateOn": "blur", - "helpId": "89f18b11-dd4f-4cd1-92c9-83d8038ef799" - }, - { - "id": "name_61595c14_rx8x", - "type": "TextBox", - "titleSourceType": "static", - "title": "名称", - "appearance": { - "class": "col-12 col-md-6 col-xl-3 col-el-2" - }, - "size": null, - "binding": { - "type": "Form", - "path": "name", - "field": "61595c14-d06a-4f6c-977e-152aeb5f7b46", - "fullPath": "name" - }, - "readonly": "!viewModel.stateMachine['editable']", - "require": false, - "disable": false, - "placeHolder": "", - "format": null, - "validation": null, - "value": null, - "maxLength": 36, - "linkedLabelEnabled": false, - "linkedLabelClick": null, - "visible": true, - "holdPlace": false, - "isTextArea": true, - "isPassword": false, - "tabindex": -1, - "hasDefaultFocus": false, - "focusState": null, - "titleWidth": null, - "enableTips": true, - "path": "name", - "visibleControlledByRules": true, - "readonlyControlledByRules": true, - "requireControlledByRules": true, - "enableAppend": false, - "inputAppendType": "button", - "inputAppendDisabled": false, - "formatValidation": { - "type": "none", - "expression": "", - "message": "" - }, - "autoHeight": false, - "maxHeight": 500, - "labelAutoOverflow": false, - "updateOn": "blur" - }, - { - "id": "enumField_e77f1a5c_to85", - "type": "EnumField", - "titleSourceType": "static", - "title": "枚举字段", - "controlSource": "Farris", - "appearance": { - "class": "col-12 col-md-6 col-xl-3 col-el-2" - }, - "size": null, - "binding": { - "type": "Form", - "path": "enumField", - "field": "e77f1a5c-3e36-4551-a157-e4903cff80fd", - "fullPath": "enumField" - }, - "placeHolder": "", - "readonly": "!viewModel.stateMachine['editable']", - "require": false, - "disable": false, - "enumData": [ - { - "disabled": false, - "name": "值1", - "value": "value1" - }, - { - "disabled": false, - "name": "值2", - "value": "value2" - } - ], - "idField": "value", - "textField": "name", - "holdPlace": false, - "isTextArea": true, - "linkedLabelEnabled": false, - "linkedLabelClick": null, - "visible": true, - "tabindex": -1, - "hasDefaultFocus": false, - "focusState": null, - "titleWidth": null, - "multiSelect": false, - "uri": "", - "autoWidth": true, - "enableClear": false, - "onClear": null, - "valueChanged": null, - "onShown": null, - "onHidden": null, - "editable": false, - "enableCancelSelected": false, - "beforeShow": null, - "beforeHide": null, - "dataSourceType": "static", - "viewType": "text", - "noSearch": false, - "maxSearchLength": null, - "enableAppend": false, - "inputAppendType": "button", - "inputAppendDisabled": false, - "autoHeight": false, - "maxHeight": 500, - "showDisabledItem": true, - "path": "enumField", - "visibleControlledByRules": true, - "readonlyControlledByRules": true, - "requireControlledByRules": true, - "labelAutoOverflow": false, - "updateOn": "change", - "fieldValueChanging": "", - "fieldValueChanged": "" - }, - { - "id": "numberField1_a53ae211_gle2", - "type": "NumericBox", - "titleSourceType": "static", - "title": "数值1", - "controlSource": "Farris", - "appearance": { - "class": "col-12 col-md-6 col-xl-3 col-el-2" - }, - "size": null, - "binding": { - "type": "Form", - "path": "numberField1", - "field": "a53ae211-98d0-4606-a68b-fd5401c5dba5", - "fullPath": "numberField1" - }, - "readonly": "!viewModel.stateMachine['editable']", - "require": false, - "disable": false, - "placeHolder": "", - "textAlign": "left", - "precisionSourceType": "static", - "precision": 0, - "validation": null, - "maxValue": 10, - "minValue": null, - "step": 1, - "useThousands": true, - "formatter": null, - "parser": null, - "canNull": true, - "bigNumber": false, - "maxLength": 0, - "holdPlace": false, - "linkedLabelEnabled": false, - "linkedLabelClick": null, - "visible": true, - "isTextArea": true, - "tabindex": -1, - "hasDefaultFocus": false, - "focusState": null, - "titleWidth": null, - "showZero": true, - "showButton": true, - "path": "numberField1", - "visibleControlledByRules": true, - "readonlyControlledByRules": true, - "requireControlledByRules": true, - "localization": false, - "enableAppend": false, - "inputAppendType": "button", - "inputAppendDisabled": false, - "autoHeight": false, - "maxHeight": 500, - "labelAutoOverflow": false, - "updateOn": "blur" - }, - { - "id": "floatField_173f0950_91tt", - "type": "NumericBox", - "titleSourceType": "static", - "title": "浮点", - "controlSource": "Farris", - "appearance": { - "class": "col-12 col-md-6 col-xl-3 col-el-2" - }, - "size": null, - "binding": { - "type": "Form", - "path": "floatField", - "field": "173f0950-1ac6-4452-a92c-76e0189c56d7", - "fullPath": "floatField" - }, - "readonly": "!viewModel.stateMachine['editable']", - "require": false, - "disable": false, - "placeHolder": "", - "textAlign": "left", - "precisionSourceType": "static", - "precision": 2, - "validation": null, - "maxValue": null, - "minValue": null, - "step": 1, - "useThousands": true, - "formatter": null, - "parser": null, - "canNull": true, - "bigNumber": false, - "maxLength": 18, - "holdPlace": false, - "linkedLabelEnabled": false, - "linkedLabelClick": null, - "visible": true, - "isTextArea": true, - "tabindex": -1, - "hasDefaultFocus": false, - "focusState": null, - "titleWidth": null, - "localization": false, - "showZero": true, - "showButton": true, - "enableAppend": false, - "inputAppendType": "button", - "inputAppendDisabled": false, - "autoHeight": false, - "maxHeight": 500, - "path": "floatField", - "visibleControlledByRules": true, - "readonlyControlledByRules": true, - "requireControlledByRules": true, - "labelAutoOverflow": false, - "updateOn": "blur" - } - ], - "controlsInline": true, - "formAutoIntl": true, - "visible": true, - "labelAutoOverflow": false - } - ], - "isScrollSpyItem": false, - "toolbar": { - "type": "SectionToolbar", - "position": "inHead", - "contents": [] - } - } - ], - "visible": true, - "afterViewInit": null - }, - { - "id": "childattachment1-egs8-component", - "type": "Component", - "viewModel": "childattachment1-egs8-component-viewmodel", - "componentType": "attachmentPanel", - "appearance": { - "class": "f-struct-wrapper" - }, - "visible": true, - "onInit": null, - "afterViewInit": null, - "contents": [ - { - "id": "childattachment1-egs8-section", - "type": "Section", - "appearance": { - "class": "f-section-form f-section-in-mainsubcard" - }, - "visible": true, - "mainTitle": "子表附件1", - "subTitle": "", - "headerClass": "", - "titleClass": "", - "extendedHeaderAreaClass": "", - "toolbarClass": "", - "extendedAreaClass": "", - "contentTemplateClass": "", - "fill": false, - "expanded": true, - "enableMaximize": false, - "enableAccordion": true, - "accordionMode": "default", - "showHeader": true, - "headerTemplate": "", - "titleTemplate": "", - "extendedHeaderAreaTemplate": "", - "toolbarTemplate": "", - "extendedAreaTemplate": "", - "contents": [ - { - "id": "childattachment1-egs8-file", - "type": "FileUploadPreview", - "appearance": { - "class": "d-block mx-3" - }, - "uploadSelectText": "上传附件", - "uploadEnableMulti": true, - "uploadVisible": "viewModel.stateMachine && viewModel.stateMachine['editable']", - "uploadDisabled": "viewModel.stateMachine && !viewModel.stateMachine['editable']", - "uploadOptions": { - "maxUploads": 3, - "maxFileSize": 12, - "allowedContentTypes": [ - ".pdf", - ".jpg", - ".png", - ".doc", - ".docx", - ".xls", - ".xlsx", - ".ppt", - ".pptx", - ".txt", - ".DOC", - ".DOCX", - ".XLS", - ".XLSX", - ".PPT", - ".PPTX", - ".wps", - ".et" - ], - "notAllowedCharsInFileName": null - }, - "rootId": "default-root", - "formId": "viewModel.bindingData && viewModel.bindingData['id']", - "enableUploadedCount": true, - "previewVisible": true, - "previewReadonly": "viewModel.stateMachine && !viewModel.stateMachine['editable']", - "previewEnableMulti": true, - "previewEnableRename": true, - "previewDefaultRename": "", - "previewShowType": "list", - "fieldIdKey": { - "type": "Form", - "path": "attachment_AttachmentId", - "field": "24040962-4fd6-49ff-a18a-f466a068f905", - "fullPath": "attachment.AttachmentId", - "bindingPath": "attachment.attachmentId" - }, - "fileNameKey": { - "type": "Form", - "path": "attachment_FileName", - "field": "24040962-1497-4526-86f9-290aab400e0b", - "fullPath": "attachment.FileName", - "bindingPath": "attachment.fileName" - }, - "fUploadDoneEvent": "childattachment1egs8AddFileRows", - "fUploadRemovedEvent": null, - "enableOrder": false, - "fileSortOrderKey": { - "type": "Form", - "path": "attachment_FileCreateTime", - "field": "24040962-a1f5-4f6c-9c82-ddb10864c652", - "fullPath": "attachment.FileCreateTime", - "bindingPath": "attachment.fileCreateTime" - }, - "fileRemoveEvent": "childattachment1egs8RemoveFileRows", - "contentFill": false, - "visible": true, - "showFileList": true, - "showHeader": true, - "disabled": false, - "noDownload": false, - "noPreview": false, - "previewEnableEditFile": false, - "previewEditFileDocMode": "normal", - "previewShowComments": false, - "previewDateFormat": "yyyy-MM-dd", - "enablePreviewColumns": false, - "enableSliceUpload": false, - "enablePreviewFileList": false, - "chunkSize": 1, - "orderType": "desc", - "noDelete": "default", - "previewModeless": false, - "attachmentFieldId": "attachment", - "allowEmpty": true - } - ], - "isScrollSpyItem": false, - "toolbar": { - "type": "SectionToolbar", - "position": "inHead", - "contents": [] - } - } - ] - }, - { - "id": "runtimeitem1-vgy0-component", - "type": "Component", - "viewModel": "runtimeitem1-vgy0-component-viewmodel", - "componentType": "dataGrid", - "appearance": { - "class": "f-struct-is-subgrid" - }, - "visible": true, - "onInit": null, - "afterViewInit": null, - "contents": [ - { - "id": "runtimeitem1-vgy0-component-layout", - "type": "ContentContainer", - "appearance": { - "class": "f-grid-is-sub f-utils-flex-column" - }, - "visible": true, - "contents": [ - { - "id": "runtimeitem1-vgy0-dataGrid", - "type": "DataGrid", - "controlSource": "Farris", - "appearance": { - "class": "f-component-grid f-utils-fill" - }, - "disable": false, - "dataSource": "runtimeItem1s", - "fields": [ - { - "id": "id_3df94820_clzf", - "type": "GridField", - "controlSource": "Farris", - "caption": "主键", - "binding": { - "type": "Form", - "path": "id", - "field": "3df94820-efa6-48a6-8d47-112ac47e3302", - "fullPath": "ID" - }, - "appearance": null, - "size": { - "width": 120 - }, - "readonly": false, - "dataField": "id", - "dataType": "string", - "displayTemplate": null, - "captionTemplate": null, - "editor": { - "id": "id_3df94820_67wq", - "type": "TextBox", - "titleSourceType": "static", - "title": "主键", - "appearance": { - "class": "" - }, - "size": null, - "binding": { - "type": "Form", - "path": "id", - "field": "3df94820-efa6-48a6-8d47-112ac47e3302", - "fullPath": "ID" - }, - "require": true, - "disable": false, - "placeHolder": "", - "format": null, - "validation": null, - "value": null, - "maxLength": 36, - "linkedLabelEnabled": false, - "linkedLabelClick": null, - "visible": true, - "holdPlace": false, - "isTextArea": true, - "isPassword": false, - "tabindex": -1, - "hasDefaultFocus": false, - "focusState": null, - "titleWidth": null, - "enableTips": true, - "path": "id", - "enableAppend": false, - "inputAppendType": "button", - "inputAppendDisabled": false, - "formatValidation": { - "type": "none", - "expression": "", - "message": "" - }, - "autoHeight": false, - "maxHeight": 500, - "requireControlledByRules": false, - "updateOn": "blur" - }, - "draggable": false, - "frozen": "none", - "sortable": true, - "enumData": null, - "idField": "value", - "textField": "name", - "aggregate": { - "type": "none", - "formatter": { - "type": "none" - } - }, - "groupAggregate": { - "type": "none", - "formatter": { - "type": "none" - } - }, - "linkedLabelEnabled": false, - "linkedLabelClick": null, - "textAlign": "left", - "hAlign": "left", - "vAlign": "middle", - "formatter": { - "type": "none" - }, - "showTips": false, - "tipContent": null, - "multiLanguage": false, - "visible": true, - "enableFilter": false, - "headerStyler": "", - "styler": "", - "localization": false, - "allowGrouping": true, - "tipMode": "auto", - "captionTipContent": "", - "captionTipStyler": "", - "enableBatchEdit": false, - "localizationType": "Date", - "visibleControlledByRules": false, - "readonlyControlledByRules": false - }, - { - "id": "parentID_ee23f329_uzdm", - "type": "GridField", - "controlSource": "Farris", - "caption": "上级对象主键", - "binding": { - "type": "Form", - "path": "parentID", - "field": "ee23f329-c1d4-489e-b691-b39b6cd12302", - "fullPath": "ParentID" - }, - "appearance": null, - "size": { - "width": 120 - }, - "readonly": false, - "dataField": "parentID", - "dataType": "string", - "displayTemplate": null, - "captionTemplate": null, - "editor": { - "id": "parentID_ee23f329_p92l", - "type": "TextBox", - "titleSourceType": "static", - "title": "上级对象主键", - "appearance": { - "class": "" - }, - "size": null, - "binding": { - "type": "Form", - "path": "parentID", - "field": "ee23f329-c1d4-489e-b691-b39b6cd12302", - "fullPath": "ParentID" - }, - "require": true, - "disable": false, - "placeHolder": "", - "format": null, - "validation": null, - "value": null, - "maxLength": 36, - "linkedLabelEnabled": false, - "linkedLabelClick": null, - "visible": true, - "holdPlace": false, - "isTextArea": true, - "isPassword": false, - "tabindex": -1, - "hasDefaultFocus": false, - "focusState": null, - "titleWidth": null, - "enableTips": true, - "path": "parentID", - "enableAppend": false, - "inputAppendType": "button", - "inputAppendDisabled": false, - "formatValidation": { - "type": "none", - "expression": "", - "message": "" - }, - "autoHeight": false, - "maxHeight": 500, - "requireControlledByRules": false - }, - "draggable": false, - "frozen": "none", - "sortable": true, - "enumData": null, - "idField": "value", - "textField": "name", - "aggregate": { - "type": "none", - "formatter": { - "type": "none" - } - }, - "groupAggregate": { - "type": "none", - "formatter": { - "type": "none" - } - }, - "linkedLabelEnabled": false, - "linkedLabelClick": null, - "textAlign": "left", - "hAlign": "left", - "vAlign": "middle", - "formatter": { - "type": "none" - }, - "showTips": false, - "tipContent": null, - "multiLanguage": false, - "visible": true, - "enableFilter": false, - "headerStyler": "", - "styler": "", - "localization": false, - "allowGrouping": true, - "tipMode": "auto", - "captionTipContent": "", - "captionTipStyler": "", - "enableBatchEdit": false, - "localizationType": "Date", - "visibleControlledByRules": false, - "readonlyControlledByRules": false - }, - { - "id": "code_c864358f_pvwg", - "type": "GridField", - "controlSource": "Farris", - "caption": "编号", - "binding": { - "type": "Form", - "path": "code", - "field": "c864358f-cb3c-4b2b-960e-423754e28ea8", - "fullPath": "code" - }, - "appearance": null, - "size": { - "width": 120 - }, - "readonly": false, - "dataField": "code", - "dataType": "string", - "displayTemplate": null, - "captionTemplate": null, - "editor": { - "id": "code_c864358f_btp2", - "type": "TextBox", - "titleSourceType": "static", - "title": "编号", - "appearance": { - "class": "" - }, - "size": null, - "binding": { - "type": "Form", - "path": "code", - "field": "c864358f-cb3c-4b2b-960e-423754e28ea8", - "fullPath": "code" - }, - "require": true, - "disable": false, - "placeHolder": "", - "format": null, - "validation": null, - "value": null, - "maxLength": 36, - "linkedLabelEnabled": false, - "linkedLabelClick": null, - "visible": true, - "holdPlace": false, - "isTextArea": true, - "isPassword": false, - "tabindex": -1, - "hasDefaultFocus": false, - "focusState": null, - "titleWidth": null, - "enableTips": true, - "path": "code", - "enableAppend": false, - "inputAppendType": "button", - "inputAppendDisabled": false, - "formatValidation": { - "type": "none", - "expression": "", - "message": "" - }, - "autoHeight": false, - "maxHeight": 500, - "requireControlledByRules": true, - "updateOn": "blur" - }, - "draggable": false, - "frozen": "none", - "sortable": true, - "enumData": null, - "idField": "value", - "textField": "name", - "aggregate": { - "type": "none", - "formatter": { - "type": "none" - } - }, - "groupAggregate": { - "type": "none", - "formatter": { - "type": "none" - } - }, - "linkedLabelEnabled": false, - "linkedLabelClick": null, - "textAlign": "left", - "hAlign": "left", - "vAlign": "middle", - "formatter": { - "type": "none" - }, - "showTips": false, - "tipContent": null, - "multiLanguage": false, - "visible": true, - "enableFilter": false, - "headerStyler": "", - "styler": "", - "localization": false, - "allowGrouping": true, - "tipMode": "auto", - "captionTipContent": "", - "captionTipStyler": "", - "enableBatchEdit": false, - "localizationType": "Date", - "visibleControlledByRules": true, - "readonlyControlledByRules": true - }, - { - "id": "name_a6c40426_ywb9", - "type": "GridField", - "controlSource": "Farris", - "caption": "名称", - "binding": { - "type": "Form", - "path": "name", - "field": "a6c40426-7529-45e3-8c53-4ae973f28c09", - "fullPath": "name" - }, - "appearance": null, - "size": { - "width": 120 - }, - "readonly": false, - "dataField": "name", - "dataType": "string", - "displayTemplate": null, - "captionTemplate": null, - "editor": { - "id": "name_a6c40426_fds8", - "type": "TextBox", - "titleSourceType": "static", - "title": "名称", - "appearance": { - "class": "" - }, - "size": null, - "binding": { - "type": "Form", - "path": "name", - "field": "a6c40426-7529-45e3-8c53-4ae973f28c09", - "fullPath": "name" - }, - "require": false, - "disable": false, - "placeHolder": "", - "format": null, - "validation": null, - "value": null, - "maxLength": 36, - "linkedLabelEnabled": false, - "linkedLabelClick": null, - "visible": true, - "holdPlace": false, - "isTextArea": true, - "isPassword": false, - "tabindex": -1, - "hasDefaultFocus": false, - "focusState": null, - "titleWidth": null, - "enableTips": true, - "path": "name", - "enableAppend": false, - "inputAppendType": "button", - "inputAppendDisabled": false, - "formatValidation": { - "type": "none", - "expression": "", - "message": "" - }, - "autoHeight": false, - "maxHeight": 500, - "requireControlledByRules": true - }, - "draggable": false, - "frozen": "none", - "sortable": true, - "enumData": null, - "idField": "value", - "textField": "name", - "aggregate": { - "type": "none", - "formatter": { - "type": "none" - } - }, - "groupAggregate": { - "type": "none", - "formatter": { - "type": "none" - } - }, - "linkedLabelEnabled": false, - "linkedLabelClick": null, - "textAlign": "left", - "hAlign": "left", - "vAlign": "middle", - "formatter": { - "type": "none" - }, - "showTips": false, - "tipContent": null, - "multiLanguage": false, - "visible": true, - "enableFilter": false, - "headerStyler": "", - "styler": "", - "localization": false, - "allowGrouping": true, - "tipMode": "auto", - "captionTipContent": "", - "captionTipStyler": "", - "enableBatchEdit": false, - "localizationType": "Date", - "visibleControlledByRules": true, - "readonlyControlledByRules": true - }, - { - "id": "booleanField_e4f457e3_2q97", - "type": "GridField", - "controlSource": "Farris", - "caption": "布尔", - "binding": { - "type": "Form", - "path": "booleanField", - "field": "e4f457e3-add6-4df6-becd-26617dd1cb46", - "fullPath": "booleanField" - }, - "appearance": null, - "size": { - "width": 120 - }, - "readonly": false, - "dataField": "booleanField", - "dataType": "boolean", - "displayTemplate": null, - "captionTemplate": null, - "editor": { - "id": "booleanField_e4f457e3_nzmm", - "type": "CheckBox", - "titleSourceType": "static", - "title": "布尔", - "require": false, - "disable": false, - "binding": { - "type": "Form", - "path": "booleanField", - "field": "e4f457e3-add6-4df6-becd-26617dd1cb46", - "fullPath": "booleanField" - }, - "visible": true, - "appearance": { - "class": "" - }, - "size": null, - "holdPlace": false, - "linkedLabelEnabled": false, - "linkedLabelClick": null, - "tabindex": -1, - "hasDefaultFocus": false, - "focusState": null, - "titleWidth": null, - "enableAppend": false, - "inputAppendType": "button", - "inputAppendDisabled": false, - "path": "booleanField", - "requireControlledByRules": true, - "isRTControl": false, - "updateOn": "change" - }, - "draggable": false, - "frozen": "none", - "sortable": true, - "enumData": null, - "idField": "value", - "textField": "name", - "aggregate": { - "type": "none", - "formatter": { - "type": "none" - } - }, - "groupAggregate": { - "type": "none", - "formatter": { - "type": "none" - } - }, - "linkedLabelEnabled": false, - "linkedLabelClick": null, - "textAlign": "left", - "hAlign": "left", - "vAlign": "middle", - "formatter": { - "type": "boolean", - "trueText": "是", - "falseText": "否" - }, - "showTips": false, - "tipContent": null, - "multiLanguage": false, - "visible": true, - "enableFilter": false, - "headerStyler": "", - "styler": "", - "localization": false, - "allowGrouping": true, - "tipMode": "auto", - "captionTipContent": "", - "captionTipStyler": "", - "enableBatchEdit": true, - "visibleControlledByRules": true, - "readonlyControlledByRules": true - } - ], - "focusedItem": null, - "focusedIndex": null, - "pagination": false, - "lockPagination": "viewModel.stateMachine&&viewModel.stateMachine['editable']", - "showPageSize": false, - "identifyField": null, - "multiSelect": false, - "showCheckbox": false, - "selectable": null, - "itemTemplate": null, - "toolBar": null, - "summary": null, - "showAllCheckbox": false, - "fieldEditable": true, - "editable": null, - "groupable": false, - "group": null, - "showGroupColumn": true, - "groupFormatter": null, - "groupStyler": null, - "groupFooter": false, - "fitColumns": false, - "onSelectionChange": "", - "styler": "", - "fixedColumns": [], - "enableCommandColumn": false, - "onEditClicked": "", - "onDeleteClicked": "", - "commandColumnWidth": 120, - "showCommandColumn": true, - "checkedChange": null, - "disableRow": null, - "beforeSelect": null, - "beforeUnSelect": null, - "beforeCheck": null, - "beforeUnCheck": null, - "multiSort": false, - "autoFitColumns": false, - "showFooter": false, - "footerTemplate": "", - "footerDataFrom": "client", - "footerDataCommand": null, - "footerHeight": 29, - "filterType": "none", - "enableFilterRow": false, - "enableSmartFilter": false, - "remoteFilter": false, - "showFilterBar": false, - "showBorder": false, - "striped": true, - "showLineNumber": false, - "lineNumberTitle": "", - "appendRow": null, - "pageChange": null, - "dblClickRow": null, - "useControlPanel": false, - "autoHeight": false, - "rowClick": null, - "showSelectedList": false, - "selectedItemFormatter": null, - "lineNumberWidth": 36, - "enableMorePageSelect": false, - "headerWrap": false, - "emptyTemplate": null, - "emptyDataHeight": 240, - "maxHeight": 300, - "rowHeight": 30, - "enableHighlightCell": false, - "enableEditCellStyle": false, - "showRowGroupPanel": false, - "enableDragColumn": false, - "groupSummaryPosition": "groupFooterRow", - "clearSelectionsWhenDataIsEmpty": true, - "keepSelect": true, - "enableEditByCard": "none", - "pageSizeChanged": null, - "visible": true, - "showGotoInput": false, - "scrollBarShowMode": "auto", - "showScrollArrow": false, - "footerPosition": "bottom", - "footerStyler": null, - "selectOnEditing": true, - "selectionMode": "custom", - "enableContextMenu": false, - "disableGroupOnEditing": true, - "enableSimpleMode": false, - "enableScheme": false, - "beforeEdit": null, - "nowrap": true, - "mergeCell": false, - "remoteSort": false, - "columnSorted": null, - "checkOnSelect": false, - "selectOnCheck": false, - "enableHeaderGroup": false, - "headerGroup": null, - "AutoColumnWidthUseDblclick": true, - "virtualized": false, - "virtualizedAsyncLoad": false, - "scrollYLoad": null, - "pagerContentTemplate": null, - "expandGroupRows": true, - "useBlankWhenDataIsEmpty": false, - "checked": null, - "unChecked": null, - "checkAll": null, - "unCheckAll": null, - "filterChanged": null, - "enableEditStateFilterSorting": false, - "showConfirmWhenSchemeChanged": false, - "enableSetMultiHeaders": false, - "allowEmpty": true - } - ], - "isScrollspyContainer": false, - "isLikeCardContainer": false - } - ] - } - ], - "webcmds": [ - { - "id": "8172a979-2c80-4637-ace7-b13074d3f393", - "path": "/projects/packages/Inspur.GS.Gsp.Web.WebCmp/webcmd", - "name": "CardController.webcmd", - "refedHandlers": [ - { - "host": "e05264fb-796d-43fb-b83b-9e2f3866c328", - "handler": "Load" - }, - { - "host": "246a275c-88c9-4c8a-aa82-be6a950a4325", - "handler": "LoadAndAdd" - }, - { - "host": "70acc053-fa15-45be-851c-cf694e1bcaf7", - "handler": "LoadAndView" - }, - { - "host": "3e72ee6f-8f7b-4f29-aa0e-5887f2861117", - "handler": "LoadAndEdit" - }, - { - "host": "f90aadfa-988c-4da5-a5db-1416c3333794", - "handler": "Add" - }, - { - "host": "a323e27b-b9c6-4848-93b9-f117403a94ff", - "handler": "Edit" - }, - { - "host": "31b814db-01e4-407d-8fad-0f08dbb01999", - "handler": "Save" - }, - { - "host": "4f5ed2ec-8def-4a3c-8e7b-397ea93010e8", - "handler": "Cancel" - }, - { - "host": "c8504c24-33e8-487a-91ce-2218b803fe01", - "handler": "ChangeItem" - }, - { - "host": "4a0cfb1a-1262-41a2-aeb9-c8edd5c09683", - "handler": "ChangeItem" - }, - { - "host": "3a2f8aee-605b-4789-a971-43ba31c60b61", - "handler": "AddItem" - }, - { - "host": "5a844e51-0196-44e6-ac4c-e9c4d235a894", - "handler": "RemoveItem" - } - ], - "code": "CardController", - "nameSpace": "Inspur.GS.Gsp.Web.WebCmp" - }, - { - "id": "a7cb7d01-9df1-4a32-8202-99c9d0f4c339", - "path": null, - "name": "ApproveController.webcmd", - "refedHandlers": [ - { - "host": "0d34f338-b601-4716-8530-493b0752483b", - "handler": "submitWithBizDefKey" - }, - { - "host": "e492063e-a22d-4f23-8aed-7fe139843220", - "handler": "cancelSubmitWithDataId" - } - ], - "code": "ApproveController", - "nameSpace": "Inspur.GS.Gsp.Web.WebApprove" - }, - { - "id": "31c1022c-ab40-4e8d-bc31-85d539f1d36c", - "path": "Gsp/Web/AttachmentCmp/bo-attachmentcmp/metadata/webcmd", - "name": "FileController.webcmd", - "refedHandlers": [ - { - "host": "childattachment1egs8AddFileRows-id", - "handler": "addFileRows" - }, - { - "host": "childattachment1egs8RemoveFileRows-id", - "handler": "removeFileRows" - } - ], - "code": "FileController", - "nameSpace": "Inspur.GS.Gsp.Web.AttachmentCmp" - } - ], - "serviceRefs": [], - "projectName": "bo-runtimetest-front", - "showType": "page", - "toolbar": { - "items": {}, - "configs": {} - }, - "declarations": { - "events": [], - "commands": [], - "states": [] - }, - "subscriptions": [], - "extraImports": [], - "expressions": [], - "metadataId": "94540a61-e3c0-4220-ba13-e5a8dc52e79e", - "actions": [ - { - "sourceComponent": { - "id": "button-add", - "viewModelId": "root-viewmodel", - "map": [ - { - "event": { - "label": "click", - "name": "点击事件" - }, - "targetComponent": { - "id": "root-component", - "viewModelId": "root-viewmodel" - }, - "command": { - "id": "f90aadfa-988c-4da5-a5db-1416c3333794", - "label": "Add1", - "name": "新增一条数据", - "handlerName": "Add", - "params": [ - { - "name": "transitionAction", - "shownName": "状态机动作", - "value": "Create", - "defaultValue": null - } - ], - "cmpId": "8172a979-2c80-4637-ace7-b13074d3f393", - "isNewGenerated": false, - "isInvalid": false - }, - "controller": { - "id": "8172a979-2c80-4637-ace7-b13074d3f393", - "label": "CardController", - "name": "卡片控制器" - } - } - ] - } - }, - { - "sourceComponent": { - "id": "button-edit", - "viewModelId": "root-viewmodel", - "map": [ - { - "event": { - "label": "click", - "name": "点击事件" - }, - "targetComponent": { - "id": "root-component", - "viewModelId": "root-viewmodel" - }, - "command": { - "id": "a323e27b-b9c6-4848-93b9-f117403a94ff", - "label": "Edit1", - "name": "编辑当前数据", - "handlerName": "Edit", - "params": [ - { - "name": "transitionAction", - "shownName": "状态机动作", - "value": "Edit", - "defaultValue": null - } - ], - "cmpId": "8172a979-2c80-4637-ace7-b13074d3f393", - "isNewGenerated": false, - "isInvalid": false - }, - "controller": { - "id": "8172a979-2c80-4637-ace7-b13074d3f393", - "label": "CardController", - "name": "卡片控制器" - } - } - ] - } - }, - { - "sourceComponent": { - "id": "button-save", - "viewModelId": "root-viewmodel", - "map": [ - { - "event": { - "label": "click", - "name": "点击事件" - }, - "targetComponent": { - "id": "root-component", - "viewModelId": "root-viewmodel" - }, - "command": { - "id": "31b814db-01e4-407d-8fad-0f08dbb01999", - "label": "Save1", - "name": "保存变更", - "handlerName": "Save", - "params": [ - { - "name": "transitionAction", - "shownName": "状态机动作", - "value": "Cancel", - "defaultValue": null - }, - { - "name": "successMsg", - "shownName": "保存成功提示信息", - "value": "", - "defaultValue": null - } - ], - "cmpId": "8172a979-2c80-4637-ace7-b13074d3f393", - "isNewGenerated": false, - "isInvalid": false - }, - "controller": { - "id": "8172a979-2c80-4637-ace7-b13074d3f393", - "label": "CardController", - "name": "卡片控制器" - } - } - ] - } - }, - { - "sourceComponent": { - "id": "button-cancel", - "viewModelId": "root-viewmodel", - "map": [ - { - "event": { - "label": "click", - "name": "点击事件" - }, - "targetComponent": { - "id": "root-component", - "viewModelId": "root-viewmodel" - }, - "command": { - "id": "4f5ed2ec-8def-4a3c-8e7b-397ea93010e8", - "label": "Cancel1", - "name": "取消变更", - "handlerName": "Cancel", - "params": [ - { - "name": "transitionAction", - "shownName": "状态机动作", - "value": "Cancel", - "defaultValue": null - } - ], - "cmpId": "8172a979-2c80-4637-ace7-b13074d3f393", - "isNewGenerated": false, - "isInvalid": false - }, - "controller": { - "id": "8172a979-2c80-4637-ace7-b13074d3f393", - "label": "CardController", - "name": "卡片控制器" - } - } - ] - } - }, - { - "sourceComponent": { - "id": "button-approve", - "viewModelId": "root-viewmodel", - "map": [ - { - "event": { - "label": "click", - "name": "点击事件" - }, - "targetComponent": { - "id": "root-component", - "viewModelId": "root-viewmodel" - }, - "command": { - "id": "0d34f338-b601-4716-8530-493b0752483b", - "label": "submitWithBizDefKey1", - "name": "提交审批", - "handlerName": "submitWithBizDefKey", - "params": [ - { - "name": "dataId", - "shownName": "表单数据id", - "value": "{DATA~/#{basic-form-component}/id}", - "defaultValue": null - }, - { - "name": "bizDefKey", - "shownName": "流程分类id", - "value": "", - "defaultValue": null - }, - { - "name": "action", - "shownName": "迁移动作(可选)", - "value": "", - "defaultValue": null - } - ], - "cmpId": "a7cb7d01-9df1-4a32-8202-99c9d0f4c339", - "isNewGenerated": false, - "isInvalid": false - }, - "controller": { - "id": "a7cb7d01-9df1-4a32-8202-99c9d0f4c339", - "label": "ApproveController", - "name": "审批控制器" - } - } - ] - } - }, - { - "sourceComponent": { - "id": "button-cancel-approve", - "viewModelId": "root-viewmodel", - "map": [ - { - "event": { - "label": "click", - "name": "点击事件" - }, - "targetComponent": { - "id": "root-component", - "viewModelId": "root-viewmodel" - }, - "command": { - "id": "e492063e-a22d-4f23-8aed-7fe139843220", - "label": "cancelSubmitWithDataId1", - "name": "取消提交", - "handlerName": "cancelSubmitWithDataId", - "params": [ - { - "name": "dataId", - "shownName": "表单数据id", - "value": "{DATA~/#{basic-form-component}/id}", - "defaultValue": null - }, - { - "name": "bizDefKey", - "shownName": "流程分类id", - "value": "", - "defaultValue": null - }, - { - "name": "action", - "shownName": "迁移动作(可选)", - "value": "", - "defaultValue": null - } - ], - "cmpId": "a7cb7d01-9df1-4a32-8202-99c9d0f4c339", - "isNewGenerated": false, - "isInvalid": false - }, - "controller": { - "id": "a7cb7d01-9df1-4a32-8202-99c9d0f4c339", - "label": "ApproveController", - "name": "审批控制器" - } - } - ] - } - }, - { - "sourceComponent": { - "id": "runtimeitem1-vgy0-component-button-add", - "viewModelId": "runtimeitem1-vgy0-component-viewmodel", - "map": [ - { - "event": { - "label": "click", - "name": "点击事件" - }, - "targetComponent": { - "id": "runtimeitem1-vgy0-component", - "viewModelId": "runtimeitem1-vgy0-component-viewmodel" - }, - "command": { - "id": "3a2f8aee-605b-4789-a971-43ba31c60b61", - "label": "runtimeitem1vgy0AddItem1", - "name": "增加一条子表数据1", - "handlerName": "AddItem", - "params": [], - "cmpId": "8172a979-2c80-4637-ace7-b13074d3f393", - "isNewGenerated": false, - "isInvalid": false - }, - "controller": { - "id": "8172a979-2c80-4637-ace7-b13074d3f393", - "label": "CardController", - "name": "卡片控制器" - } - } - ] - } - }, - { - "sourceComponent": { - "id": "runtimeitem1-vgy0-component-button-remove", - "viewModelId": "runtimeitem1-vgy0-component-viewmodel", - "map": [ - { - "event": { - "label": "click", - "name": "点击事件" - }, - "targetComponent": { - "id": "runtimeitem1-vgy0-component", - "viewModelId": "runtimeitem1-vgy0-component-viewmodel" - }, - "command": { - "id": "5a844e51-0196-44e6-ac4c-e9c4d235a894", - "label": "runtimeitem1vgy0RemoveItem1", - "name": "删除一条子表数据1", - "handlerName": "RemoveItem", - "params": [ - { - "name": "id", - "shownName": "待删除子表数据的标识", - "value": "{DATA~/#{runtimeitem1-vgy0-component}/runtimeItem1s/id}" - } - ], - "cmpId": "8172a979-2c80-4637-ace7-b13074d3f393", - "isNewGenerated": false, - "isInvalid": false - }, - "controller": { - "id": "8172a979-2c80-4637-ace7-b13074d3f393", - "label": "CardController", - "name": "卡片控制器" - } - } - ] - } - }, - { - "sourceComponent": { - "id": "root-component", - "viewModelId": "root-viewmodel", - "map": [ - { - "event": { - "label": "onInit", - "name": "初始化事件" - }, - "targetComponent": { - "id": "root-component", - "viewModelId": "root-viewmodel" - }, - "command": { - "id": "e05264fb-796d-43fb-b83b-9e2f3866c328", - "label": "Load1", - "name": "执行加载页面后初始方法", - "handlerName": "Load", - "params": [ - { - "name": "action", - "shownName": "初始方法", - "value": "{UISTATE~/#{root-component}/action}", - "defaultValue": null - } - ], - "cmpId": "8172a979-2c80-4637-ace7-b13074d3f393", - "isNewGenerated": false, - "isInvalid": false - }, - "controller": { - "id": "8172a979-2c80-4637-ace7-b13074d3f393", - "label": "CardController", - "name": "卡片控制器" - } - } - ] - } - }, - { - "sourceComponent": { - "id": "childattachment1-egs8-file", - "viewModelId": "childattachment1-egs8-component-viewmodel", - "map": [ - { - "event": { - "label": "fUploadDoneEvent", - "name": "附件上传后事件" - }, - "targetComponent": { - "id": "childattachment1-egs8-component", - "viewModelId": "childattachment1-egs8-component-viewmodel" - }, - "command": { - "id": "childattachment1egs8AddFileRows-id", - "label": "childattachment1egs8AddFileRows", - "name": "批量添加文件数据", - "handlerName": "addFileRows", - "params": [ - { - "name": "fileInfoFieldPath", - "shownName": "文件信息字段路径", - "value": "/childAttachment1s/attachment" - } - ], - "cmpId": "31c1022c-ab40-4e8d-bc31-85d539f1d36c", - "isNewGenerated": false, - "isInvalid": false - }, - "controller": { - "id": "31c1022c-ab40-4e8d-bc31-85d539f1d36c", - "label": "FileController", - "name": "文件控制器" - } - }, - { - "event": { - "label": "fileRemoveEvent", - "name": "附件预览删除事件" - }, - "targetComponent": { - "id": "childattachment1-egs8-component", - "viewModelId": "childattachment1-egs8-component-viewmodel" - }, - "command": { - "id": "childattachment1egs8RemoveFileRows-id", - "label": "childattachment1egs8RemoveFileRows", - "name": "批量删除文件数据", - "handlerName": "removeFileRows", - "params": [ - { - "name": "fileInfoFieldPath", - "shownName": "文件信息字段路径", - "value": "/childAttachment1s/attachment" - } - ], - "cmpId": "31c1022c-ab40-4e8d-bc31-85d539f1d36c", - "isNewGenerated": false, - "isInvalid": false - }, - "controller": { - "id": "31c1022c-ab40-4e8d-bc31-85d539f1d36c", - "label": "FileController", - "name": "文件控制器" - } - } - ] - } - } - ] - }, - "options": { - "enableTextArea": true, - "renderMode": "compile", - "enableDeleteSourceCode": true, - "changeSetPolicy": "valid", - "formRulePushMode": "pushToVO", - "combineFormMode": "strict", - "enableServerSideChangeDetection": true, - "mobileMetadataId": "726a19b1-263a-466e-a3e7-601f8b635410" - } -} \ No newline at end of file diff --git a/web-form-metadata/src/test/java/com/inspur/edp/web/formmetadata/webservice/PCForm-vue.json b/web-form-metadata/src/test/java/com/inspur/edp/web/formmetadata/webservice/PCForm-vue.json deleted file mode 100644 index b2c6a9ab..00000000 --- a/web-form-metadata/src/test/java/com/inspur/edp/web/formmetadata/webservice/PCForm-vue.json +++ /dev/null @@ -1,2275 +0,0 @@ -{ - "module": { - "id": "58c44201-64df-436c-a57c-a36f94a2414b", - "code": "PCFormTest", - "name": "PC表单测试", - "type": "Module", - "creator": "lijiangkun", - "creationDate": "2025-04-12T07:59:57.479Z", - "templateId": "card-template", - "templateRule": "card-template", - "entity": [ - { - "eapiId": "bebb83f9-499d-4fda-8466-1b6a6f721353", - "eapiCode": "PCFormTest_frm", - "eapiName": "PC表单测试_frm", - "eapiNameSpace": "Inspur.GS.MyDev.FarrisVueTest.VueFormTest.VueFormTest.Front", - "voPath": "MyDev/FarrisVueTest/VueFormTest/bo-vueformtest-front/metadata/components", - "voNameSpace": "Inspur.GS.MyDev.FarrisVueTest.VueFormTest.VueFormTest.Front", - "name": "PC表单测试_frm", - "id": "4801eb04-71d2-4420-813c-496ed48c65c0", - "sourceType": "vo", - "variables": [ - { - "$type": "SimpleField", - "defaultValue": "", - "editor": { - "$type": "TextBox" - }, - "require": false, - "multiLanguage": false, - "readonly": false, - "name": "表单流程配置", - "id": "173719ae-8346-4a0f-bc8d-5fb82d0aed91", - "type": { - "$type": "StringType", - "length": 36, - "name": "String", - "displayName": "字符串" - }, - "path": "bffSysFormConfigId", - "originalId": "173719ae-8346-4a0f-bc8d-5fb82d0aed91", - "label": "bffSysFormConfigId", - "bindingField": "bffSysFormConfigId", - "bindingPath": "bffSysFormConfigId", - "code": "bffSysFormConfigId" - } - ], - "entities": [ - { - "name": "Vue测试", - "id": "75e5f57b-3a02-4177-9846-1a5d0ba2c885", - "type": { - "$type": "EntityType", - "fields": [ - { - "$type": "SimpleField", - "defaultValue": "", - "editor": { - "$type": "TextBox" - }, - "require": true, - "multiLanguage": false, - "readonly": false, - "name": "主键", - "id": "52fc4c0e-f155-4c01-9fe6-54fd08795ae0", - "type": { - "$type": "StringType", - "length": 36, - "name": "String", - "displayName": "字符串" - }, - "path": "ID", - "originalId": "52fc4c0e-f155-4c01-9fe6-54fd08795ae0", - "label": "id", - "bindingField": "id", - "bindingPath": "id", - "code": "ID" - }, - { - "$type": "SimpleField", - "defaultValue": "", - "editor": { - "$type": "DateBox", - "format": "'yyyy-MM-dd'" - }, - "require": false, - "multiLanguage": false, - "readonly": false, - "name": "版本", - "id": "10b522a5-9dd3-437e-bd29-bf57a58b3fb3", - "type": { - "$type": "DateTimeType", - "name": "DateTime", - "displayName": "日期时间" - }, - "path": "Version", - "originalId": "10b522a5-9dd3-437e-bd29-bf57a58b3fb3", - "label": "version", - "bindingField": "version", - "bindingPath": "version", - "code": "Version" - }, - { - "$type": "ComplexField", - "name": "状态", - "id": "e7c488df-8456-48d8-be1c-2cc6cc1cba8b", - "type": { - "$type": "ObjectType", - "name": "BillStateE7c4", - "fields": [ - { - "$type": "SimpleField", - "defaultValue": "", - "editor": { - "$type": "EnumField" - }, - "require": false, - "multiLanguage": false, - "readonly": false, - "name": "状态", - "id": "e7c488df-0101-468f-ae3f-40c76c0f06b0", - "type": { - "$type": "EnumType", - "name": "Enum", - "displayName": "枚举", - "valueType": { - "$type": "StringType", - "length": 36, - "name": "String", - "displayName": "字符串" - }, - "enumValues": [ - { - "disabled": false, - "name": "制单", - "value": "Billing" - }, - { - "disabled": false, - "name": "提交审批", - "value": "SubmitApproval" - }, - { - "disabled": false, - "name": "审批通过", - "value": "Approved" - }, - { - "disabled": false, - "name": "审批不通过", - "value": "ApprovalNotPassed" - } - ] - }, - "path": "BillStatus.BillState", - "originalId": "a0b19650-0101-468f-ae3f-40c76c0f06b0", - "label": "billState", - "bindingField": "billStatus_BillState", - "bindingPath": "billStatus.billState", - "code": "BillState" - } - ], - "displayName": "状态" - }, - "path": "BillStatus", - "originalId": "e7c488df-8456-48d8-be1c-2cc6cc1cba8b", - "label": "billStatus", - "bindingField": "billStatus", - "bindingPath": "billStatus", - "code": "BillStatus" - }, - { - "$type": "ComplexField", - "name": "流程实例", - "id": "5d3fd927-71bc-4687-9be1-55d94033dd47", - "type": { - "$type": "ObjectType", - "name": "ProcessInstance5d3f", - "fields": [ - { - "$type": "SimpleField", - "defaultValue": "", - "editor": { - "$type": "TextBox" - }, - "require": false, - "multiLanguage": false, - "readonly": false, - "name": "流程实例", - "id": "5d3fd927-ad8f-4da3-a430-c8a7f2162135", - "type": { - "$type": "StringType", - "length": 36, - "name": "String", - "displayName": "字符串" - }, - "path": "ProcessInstance.ProcessInstance", - "originalId": "2e1beb7d-ad8f-4da3-a430-c8a7f2162135", - "label": "processInstance", - "bindingField": "processInstance_ProcessInstance", - "bindingPath": "processInstance.processInstance", - "code": "ProcessInstance" - } - ], - "displayName": "流程实例" - }, - "path": "ProcessInstance", - "originalId": "5d3fd927-71bc-4687-9be1-55d94033dd47", - "label": "processInstance", - "bindingField": "processInstance", - "bindingPath": "processInstance", - "code": "ProcessInstance" - }, - { - "$type": "SimpleField", - "defaultValue": "", - "editor": { - "$type": "TextBox" - }, - "require": false, - "multiLanguage": false, - "readonly": false, - "name": "编号", - "id": "d63b5e0f-ac69-486d-8dd7-9b0e154e9fc8", - "type": { - "$type": "StringType", - "length": 36, - "name": "String", - "displayName": "字符串" - }, - "path": "code", - "originalId": "d63b5e0f-ac69-486d-8dd7-9b0e154e9fc8", - "label": "code", - "bindingField": "code", - "bindingPath": "code", - "code": "code" - }, - { - "$type": "SimpleField", - "defaultValue": "", - "editor": { - "$type": "TextBox" - }, - "require": false, - "multiLanguage": false, - "readonly": false, - "name": "名称", - "id": "3410f627-358c-4a1a-99b4-800e9d0211e0", - "type": { - "$type": "StringType", - "length": 36, - "name": "String", - "displayName": "字符串" - }, - "path": "name", - "originalId": "3410f627-358c-4a1a-99b4-800e9d0211e0", - "label": "name", - "bindingField": "name", - "bindingPath": "name", - "code": "name" - }, - { - "$type": "SimpleField", - "defaultValue": "", - "editor": { - "$type": "CheckBox" - }, - "require": false, - "multiLanguage": false, - "readonly": false, - "name": "布尔字段", - "id": "c419df06-d982-44ca-8e48-b366b778049a", - "type": { - "$type": "BooleanType", - "name": "Boolean", - "displayName": "布尔" - }, - "path": "booleanField", - "originalId": "c419df06-d982-44ca-8e48-b366b778049a", - "label": "booleanField", - "bindingField": "booleanField", - "bindingPath": "booleanField", - "code": "booleanField" - }, - { - "$type": "SimpleField", - "defaultValue": "", - "editor": { - "$type": "NumericBox" - }, - "require": false, - "multiLanguage": false, - "readonly": false, - "name": "数值字段", - "id": "cc6b21b3-f721-493e-8a7d-5d0aa90b824c", - "type": { - "$type": "NumericType", - "length": 0, - "name": "Number", - "displayName": "数字", - "precision": 0 - }, - "path": "numberField", - "originalId": "cc6b21b3-f721-493e-8a7d-5d0aa90b824c", - "label": "numberField", - "bindingField": "numberField", - "bindingPath": "numberField", - "code": "numberField" - }, - { - "$type": "SimpleField", - "defaultValue": "", - "editor": { - "$type": "DateBox", - "format": "'yyyy-MM-dd'" - }, - "require": false, - "multiLanguage": false, - "readonly": false, - "name": "日期字段", - "id": "e18b1dc0-12c6-4c3e-95e6-c88f1405cfa2", - "type": { - "$type": "DateType", - "name": "Date", - "displayName": "日期" - }, - "path": "dateField", - "originalId": "e18b1dc0-12c6-4c3e-95e6-c88f1405cfa2", - "label": "dateField", - "bindingField": "dateField", - "bindingPath": "dateField", - "code": "dateField" - }, - { - "$type": "SimpleField", - "multiLanguage": false, - "require": false, - "defaultValue": "", - "editor": { - "$type": "EnumField" - }, - "readonly": false, - "originalId": "2092e529-c1cd-444d-98f5-6e11db8be5b7", - "name": "eumu1", - "id": "2092e529-c1cd-444d-98f5-6e11db8be5b7", - "type": { - "$type": "EnumType", - "displayName": "枚举", - "name": "Enum", - "enumValues": [ - { - "disabled": false, - "name": "testname", - "value": "test1" - } - ], - "valueType": { - "$type": "StringType", - "displayName": "字符串", - "length": 36, - "name": "String" - } - }, - "path": "eumu1", - "code": "eumu1", - "label": "eumu1", - "bindingField": "eumu1", - "bindingPath": "eumu1" - }, - { - "$type": "ComplexField", - "originalId": "9652a7a9-5e65-41a8-a3c0-6d0da6a7504e", - "name": "ass1", - "id": "9652a7a9-5e65-41a8-a3c0-6d0da6a7504e", - "type": { - "$type": "EntityType", - "fields": [ - { - "$type": "SimpleField", - "multiLanguage": false, - "require": false, - "defaultValue": "", - "editor": { - "$type": "TextBox" - }, - "readonly": false, - "originalId": "8760c74c-9141-46ea-a9fb-408db9a41e61", - "name": "ass1", - "id": "8760c74c-9141-46ea-a9fb-408db9a41e61", - "type": { - "$type": "StringType", - "displayName": "字符串", - "length": 36, - "name": "String" - }, - "path": "ass1.ass1", - "code": "ass1", - "label": "ass1", - "bindingField": "ass1", - "bindingPath": "ass1.ass1" - }, - { - "$type": "SimpleField", - "multiLanguage": false, - "require": false, - "defaultValue": "", - "editor": { - "$type": "TextBox" - }, - "readonly": false, - "originalId": "3c45b0e6-2695-4085-a861-e451ad139e0e", - "name": "编号", - "id": "3c45b0e6-2695-4085-a861-e451ad139e0e", - "type": { - "$type": "StringType", - "displayName": "字符串", - "length": 36, - "name": "String" - }, - "path": "ass1.ass1_Code", - "code": "Code", - "label": "ass1_Code", - "bindingField": "ass1_ass1_Code", - "bindingPath": "ass1.ass1_Code" - }, - { - "$type": "SimpleField", - "multiLanguage": false, - "require": false, - "defaultValue": "", - "editor": { - "$type": "TextBox" - }, - "readonly": false, - "originalId": "63b04a7c-b310-4a02-bd8b-c4d2e8ad87f4", - "name": "名称", - "id": "63b04a7c-b310-4a02-bd8b-c4d2e8ad87f4", - "type": { - "$type": "StringType", - "displayName": "字符串", - "length": 36, - "name": "String" - }, - "path": "ass1.ass1_Name", - "code": "Name", - "label": "ass1_Name", - "bindingField": "ass1_ass1_Name", - "bindingPath": "ass1.ass1_Name" - } - ], - "primary": "ass1", - "entities": [], - "displayName": "用户", - "name": "GspUser8760" - }, - "path": "ass1", - "code": "ass1", - "label": "ass1", - "bindingField": "ass1", - "bindingPath": "ass1" - }, - { - "$type": "ComplexField", - "originalId": "46b400d4-0f47-42f2-9f6e-df6a95c21235", - "name": "dy1", - "id": "46b400d4-0f47-42f2-9f6e-df6a95c21235", - "type": { - "$type": "DynamicObjectType", - "name": "DynamicEntity", - "displayName": null - }, - "path": "dy1", - "code": "dy1", - "label": "dy1", - "bindingField": "dy1", - "bindingPath": "dy1" - } - ], - "primary": "id", - "entities": [ - { - "name": "子表1", - "id": "9b108121-4e38-42d7-bd2c-9c7647dd8d77", - "type": { - "$type": "EntityType", - "fields": [ - { - "$type": "SimpleField", - "defaultValue": "", - "editor": { - "$type": "TextBox" - }, - "require": true, - "multiLanguage": false, - "readonly": false, - "name": "主键", - "id": "466e5a86-120a-44a1-8ca6-80e1bdfdc3eb", - "type": { - "$type": "StringType", - "length": 36, - "name": "String", - "displayName": "字符串" - }, - "path": "ID", - "originalId": "466e5a86-120a-44a1-8ca6-80e1bdfdc3eb", - "label": "id", - "bindingField": "id", - "bindingPath": "id", - "code": "ID" - }, - { - "$type": "SimpleField", - "defaultValue": "", - "editor": { - "$type": "TextBox" - }, - "require": true, - "multiLanguage": false, - "readonly": false, - "name": "上级对象主键", - "id": "bec1003e-8a76-4ce2-b6cb-cebf0b426e6a", - "type": { - "$type": "StringType", - "length": 36, - "name": "String", - "displayName": "字符串" - }, - "path": "ParentID", - "originalId": "bec1003e-8a76-4ce2-b6cb-cebf0b426e6a", - "label": "parentID", - "bindingField": "parentID", - "bindingPath": "parentID", - "code": "ParentID" - }, - { - "$type": "SimpleField", - "defaultValue": "", - "editor": { - "$type": "TextBox" - }, - "require": false, - "multiLanguage": false, - "readonly": false, - "name": "编号", - "id": "e5a6411a-c30e-4259-8682-53685c53e62a", - "type": { - "$type": "StringType", - "length": 36, - "name": "String", - "displayName": "字符串" - }, - "path": "code", - "originalId": "e5a6411a-c30e-4259-8682-53685c53e62a", - "label": "code", - "bindingField": "code", - "bindingPath": "code", - "code": "code" - }, - { - "$type": "SimpleField", - "defaultValue": "", - "editor": { - "$type": "TextBox" - }, - "require": false, - "multiLanguage": false, - "readonly": false, - "name": "名称", - "id": "49fca8d8-e64a-4e8c-a619-f051cfdf72a5", - "type": { - "$type": "StringType", - "length": 36, - "name": "String", - "displayName": "字符串" - }, - "path": "name", - "originalId": "49fca8d8-e64a-4e8c-a619-f051cfdf72a5", - "label": "name", - "bindingField": "name", - "bindingPath": "name", - "code": "name" - } - ], - "primary": "id", - "entities": [], - "name": "Child1", - "displayName": "子表1" - }, - "label": "child1s", - "code": "Child1" - }, - { - "name": "子表2", - "id": "06d00b52-4477-4c7b-a63d-01654e195364", - "type": { - "$type": "EntityType", - "fields": [ - { - "$type": "SimpleField", - "defaultValue": "", - "editor": { - "$type": "TextBox" - }, - "require": true, - "multiLanguage": false, - "readonly": false, - "name": "主键", - "id": "80fa5266-0fa2-4418-b225-61efcf2309ed", - "type": { - "$type": "StringType", - "length": 36, - "name": "String", - "displayName": "字符串" - }, - "path": "ID", - "originalId": "80fa5266-0fa2-4418-b225-61efcf2309ed", - "label": "id", - "bindingField": "id", - "bindingPath": "id", - "code": "ID" - }, - { - "$type": "SimpleField", - "defaultValue": "", - "editor": { - "$type": "TextBox" - }, - "require": true, - "multiLanguage": false, - "readonly": false, - "name": "上级对象主键", - "id": "2292dc09-74d7-44fb-9a47-73d48c1e5831", - "type": { - "$type": "StringType", - "length": 36, - "name": "String", - "displayName": "字符串" - }, - "path": "ParentID", - "originalId": "2292dc09-74d7-44fb-9a47-73d48c1e5831", - "label": "parentID", - "bindingField": "parentID", - "bindingPath": "parentID", - "code": "ParentID" - }, - { - "$type": "SimpleField", - "defaultValue": "", - "editor": { - "$type": "TextBox" - }, - "require": false, - "multiLanguage": false, - "readonly": false, - "name": "编号", - "id": "0fd1145f-2a5f-4080-aa65-b87d252515a5", - "type": { - "$type": "StringType", - "length": 36, - "name": "String", - "displayName": "字符串" - }, - "path": "code", - "originalId": "0fd1145f-2a5f-4080-aa65-b87d252515a5", - "label": "code", - "bindingField": "code", - "bindingPath": "code", - "code": "code" - }, - { - "$type": "SimpleField", - "defaultValue": "", - "editor": { - "$type": "TextBox" - }, - "require": false, - "multiLanguage": false, - "readonly": false, - "name": "名称", - "id": "52eb3ac2-decc-49f3-83b3-1549aec4b4d0", - "type": { - "$type": "StringType", - "length": 36, - "name": "String", - "displayName": "字符串" - }, - "path": "name", - "originalId": "52eb3ac2-decc-49f3-83b3-1549aec4b4d0", - "label": "name", - "bindingField": "name", - "bindingPath": "name", - "code": "name" - } - ], - "primary": "id", - "entities": [], - "name": "Child2", - "displayName": "子表2" - }, - "label": "child2s", - "code": "Child2" - } - ], - "name": "VueTest", - "displayName": "Vue测试" - }, - "label": "vueTests", - "code": "VueTest" - } - ], - "extendProperties": { - "enableStdTimeFormat": true - }, - "code": "PCFormTest_frm", - "sourceUri": "api/mydev/farrisvuetest/v1.0/PCFormTest_frm" - } - ], - "states": [], - "stateMachines": [ - { - "id": "PCFormTest_state_machine", - "name": "PC表单测试", - "uri": "ef535e87-96b6-4024-a762-41ca0ae45d6a", - "code": "PCFormTest_frm", - "nameSpace": "Inspur.GS.MyDev.FarrisVueTest.VueFormTest.VueFormTest.Front" - } - ], - "viewmodels": [ - { - "id": "root-viewmodel", - "code": "root-viewmodel", - "name": "Vue测试", - "fields": [], - "stateMachine": "PCFormTest_state_machine", - "commands": [ - { - "id": "e05264fb-796d-43fb-b83b-9e2f3866c328", - "code": "Load1", - "name": "执行加载页面后初始方法", - "params": [ - { - "name": "action", - "shownName": "初始方法", - "value": "{UISTATE~/#{root-component}/action}", - "defaultValue": null - } - ], - "handlerName": "Load", - "cmpId": "8172a979-2c80-4637-ace7-b13074d3f393", - "shortcut": {}, - "extensions": [], - "isInvalid": false, - "isNewGenerated": false, - "targetComponent": "root-component" - }, - { - "id": "246a275c-88c9-4c8a-aa82-be6a950a4325", - "code": "LoadAndAdd1", - "name": "加载并新增数据", - "params": [ - { - "name": "transitionAction", - "shownName": "状态机动作", - "value": "Create", - "defaultValue": null - } - ], - "handlerName": "LoadAndAdd", - "cmpId": "8172a979-2c80-4637-ace7-b13074d3f393", - "shortcut": {}, - "extensions": [], - "isInvalid": false - }, - { - "id": "70acc053-fa15-45be-851c-cf694e1bcaf7", - "code": "LoadAndView1", - "name": "加载并查看数据", - "params": [ - { - "name": "id", - "shownName": "待查看数据的标识", - "value": "{UISTATE~/#{root-component}/id}", - "defaultValue": null - }, - { - "name": "transitionAction", - "shownName": "状态机动作", - "value": "Cancel", - "defaultValue": null - }, - { - "name": "transitionActionParamName", - "shownName": "状态迁移动作参数编号", - "value": "", - "defaultValue": null - } - ], - "handlerName": "LoadAndView", - "cmpId": "8172a979-2c80-4637-ace7-b13074d3f393", - "shortcut": {}, - "extensions": [], - "isInvalid": false - }, - { - "id": "3e72ee6f-8f7b-4f29-aa0e-5887f2861117", - "code": "LoadAndEdit1", - "name": "加载并编辑数据", - "params": [ - { - "name": "id", - "shownName": "待编辑数据的标识", - "value": "{UISTATE~/#{root-component}/id}", - "defaultValue": null - }, - { - "name": "transitionAction", - "shownName": "状态机动作", - "value": "Edit", - "defaultValue": null - }, - { - "name": "transitionActionParamName", - "shownName": "状态迁移动作参数编号", - "value": "", - "defaultValue": null - } - ], - "handlerName": "LoadAndEdit", - "cmpId": "8172a979-2c80-4637-ace7-b13074d3f393", - "shortcut": {}, - "extensions": [], - "isInvalid": false - }, - { - "id": "f90aadfa-988c-4da5-a5db-1416c3333794", - "code": "Add1", - "name": "新增一条数据", - "params": [ - { - "name": "transitionAction", - "shownName": "状态机动作", - "value": "Create", - "defaultValue": null - } - ], - "handlerName": "Add", - "cmpId": "8172a979-2c80-4637-ace7-b13074d3f393", - "shortcut": {}, - "extensions": [], - "isInvalid": false - }, - { - "id": "a323e27b-b9c6-4848-93b9-f117403a94ff", - "code": "Edit1", - "name": "编辑当前数据", - "params": [ - { - "name": "transitionAction", - "shownName": "状态机动作", - "value": "Edit", - "defaultValue": null - } - ], - "handlerName": "Edit", - "cmpId": "8172a979-2c80-4637-ace7-b13074d3f393", - "shortcut": {}, - "extensions": [], - "isInvalid": false - }, - { - "id": "31b814db-01e4-407d-8fad-0f08dbb01999", - "code": "Save1", - "name": "保存变更", - "params": [ - { - "name": "transitionAction", - "shownName": "状态机动作", - "value": "Cancel", - "defaultValue": null - }, - { - "name": "successMsg", - "shownName": "保存成功提示信息", - "value": "", - "defaultValue": null - } - ], - "handlerName": "Save", - "cmpId": "8172a979-2c80-4637-ace7-b13074d3f393", - "shortcut": {}, - "extensions": [], - "isInvalid": false - }, - { - "id": "4f5ed2ec-8def-4a3c-8e7b-397ea93010e8", - "code": "Cancel1", - "name": "取消变更", - "params": [ - { - "name": "transitionAction", - "shownName": "状态机动作", - "value": "Cancel", - "defaultValue": null - } - ], - "handlerName": "Cancel", - "cmpId": "8172a979-2c80-4637-ace7-b13074d3f393", - "shortcut": {}, - "extensions": [], - "isInvalid": false - }, - { - "id": "20dbc06c-6e46-46f0-b8f2-a7fd951d722e", - "code": "rootTest1", - "name": "test1", - "params": [], - "handlerName": "test", - "cmpId": "1fcadf37-b42e-4bd5-ba6f-69d97b82547e", - "shortcut": {}, - "extensions": [], - "isInvalid": false, - "isNewGenerated": false - }, - { - "id": "45e98f07-494f-4171-9129-817552fb91a8", - "code": "rootTest2", - "name": "test2", - "params": [], - "handlerName": "test", - "cmpId": "1fcadf37-b42e-4bd5-ba6f-69d97b82547e", - "shortcut": {}, - "extensions": [], - "isInvalid": false, - "isNewGenerated": false, - "targetComponent": "root-component" - }, - { - "id": "01760ad7-e092-4d91-88d8-89f9e13566fa", - "code": "rootTest3", - "name": "测试3", - "params": [], - "handlerName": "test", - "cmpId": "71c01665-fe32-4539-bb68-1eb58a5e8fd9", - "shortcut": {}, - "extensions": [], - "isInvalid": false, - "isNewGenerated": false, - "targetComponent": "root-component" - }, - { - "id": "53e84e7e-ea7f-4b24-aef7-2454b9ce3f56", - "code": "rootTest4", - "name": "测试4", - "params": [], - "handlerName": "test", - "cmpId": "71c01665-fe32-4539-bb68-1eb58a5e8fd9", - "shortcut": {}, - "extensions": [], - "isInvalid": false, - "isNewGenerated": false, - "targetComponent": "root-component" - } - ], - "states": [ - { - "id": "173719ae-8346-4a0f-bc8d-5fb82d0aed91", - "code": "bffSysFormConfigId", - "name": "表单流程配置", - "type": "String", - "category": "remote" - } - ], - "bindTo": "/", - "enableValidation": false, - "enableUnifiedSession": false - }, - { - "id": "basic-form-viewmodel", - "code": "basic-form-viewmodel", - "name": "Vue测试", - "fields": [ - { - "type": "Form", - "id": "e7c488df-0101-468f-ae3f-40c76c0f06b0", - "fieldName": "billStatus_BillState", - "groupId": null, - "groupName": null, - "updateOn": "change", - "fieldSchema": { - "name": "工单状态" - } - }, - { - "type": "Form", - "id": "3410f627-358c-4a1a-99b4-800e9d0211e0", - "fieldName": "name", - "groupId": null, - "groupName": null, - "updateOn": "blur", - "fieldSchema": { - "name": "工单编号", - "editor": { - "$type": "lookup" - } - } - }, - { - "type": "Form", - "id": "cc6b21b3-f721-493e-8a7d-5d0aa90b824c", - "fieldName": "numberField", - "groupId": null, - "groupName": null, - "updateOn": "blur", - "fieldSchema": { - "name": "工时" - } - }, - { - "type": "Form", - "id": "e18b1dc0-12c6-4c3e-95e6-c88f1405cfa2", - "fieldName": "dateField", - "groupId": null, - "groupName": null, - "updateOn": "blur", - "fieldSchema": { - "name": "制单日期" - } - }, - { - "type": "Form", - "id": "5d3fd927-ad8f-4da3-a430-c8a7f2162135", - "fieldName": "processInstance_ProcessInstance", - "groupId": "", - "groupName": "", - "valueChanging": "", - "valueChanged": "", - "updateOn": "blur", - "fieldSchema": { - "editor": { - "$type": "radio-group" - }, - "name": "工单类型" - } - }, - { - "type": "Form", - "id": "c419df06-d982-44ca-8e48-b366b778049a", - "fieldName": "booleanField", - "groupId": "", - "groupName": "", - "valueChanging": "", - "valueChanged": "", - "updateOn": "change", - "fieldSchema": { - "editor": { - "$type": "switch" - }, - "name": "是否处理" - } - }, - { - "type": "Form", - "id": "d63b5e0f-ac69-486d-8dd7-9b0e154e9fc8", - "fieldName": "code", - "groupId": "", - "groupName": "", - "valueChanging": "", - "valueChanged": "", - "updateOn": "blur", - "fieldSchema": { - "editor": { - "$type": "time-picker" - }, - "name": "制单时间" - } - }, - { - "type": "Form", - "id": "2092e529-c1cd-444d-98f5-6e11db8be5b7", - "fieldName": "eumu1", - "groupId": "", - "groupName": "", - "valueChanging": "", - "valueChanged": "", - "updateOn": "change", - "fieldSchema": { - "editor": { - "$type": "combo-list" - } - } - }, - { - "type": "Form", - "id": "63b04a7c-b310-4a02-bd8b-c4d2e8ad87f4", - "fieldName": "ass1_ass1_Name", - "groupId": "", - "groupName": "", - "valueChanging": "", - "valueChanged": "", - "updateOn": "blur", - "fieldSchema": { - "editor": { - "$type": "input-group" - } - } - } - ], - "serviceRefs": [], - "commands": [], - "states": [ - { - "id": "472eb525-a024-4a49-b51f-cdcfac1df8c8", - "category": "locale", - "code": "isCodeReadonly", - "name": "isCodeReadonly", - "type": "Object", - "value": { - "sssss": 22222 - } - } - ], - "bindTo": "/", - "parent": "root-viewmodel", - "enableValidation": true - }, - { - "id": "data-grid-z5vj-component-viewmodel", - "code": "data-grid-z5vj-component-viewmodel", - "name": "子表1", - "bindTo": "/child1s", - "parent": "root-viewmodel", - "fields": [ - { - "type": "Form", - "id": "49fca8d8-e64a-4e8c-a619-f051cfdf72a5", - "fieldName": "name", - "groupId": null, - "groupName": null, - "updateOn": "blur", - "fieldSchema": {} - }, - { - "type": "Form", - "id": "e5a6411a-c30e-4259-8682-53685c53e62a", - "fieldName": "code", - "groupId": null, - "groupName": null, - "updateOn": "blur", - "fieldSchema": {} - } - ], - "commands": [ - { - "id": "d0d339b9-958b-4426-a108-e863300e4151", - "code": "datagridz5vjAddItem1", - "name": "增加一条子表数据", - "params": [], - "handlerName": "AddItem", - "cmpId": "8172a979-2c80-4637-ace7-b13074d3f393", - "shortcut": {}, - "extensions": [], - "isInvalid": false - }, - { - "id": "573952e2-118d-4773-8cf7-347e97e319ca", - "code": "datagridz5vjRemoveItem1", - "name": "删除一条子表数据", - "params": [ - { - "name": "id", - "shownName": "待删除子表数据的标识", - "value": "{DATA~/child1s/id}" - } - ], - "handlerName": "RemoveItem", - "cmpId": "8172a979-2c80-4637-ace7-b13074d3f393", - "shortcut": {}, - "extensions": [], - "isInvalid": false - } - ], - "states": [], - "enableValidation": true - } - ], - "components": [ - { - "id": "root-component", - "type": "component", - "viewModel": "root-viewmodel", - "componentType": "frame", - "onInit": "Load1", - "contents": [ - { - "id": "root-layout", - "type": "content-container", - "appearance": { - "class": "f-page f-page-card f-page-is-mainsubcard" - }, - "contents": [ - { - "id": "page-header", - "type": "page-header", - "appearance": { - "class": "f-page-header" - }, - "iconClass": "f-title-icon f-text-orna-bill", - "icon": "f-icon f-icon-page-title-record", - "title": "PC表单测试", - "toolbar": { - "type": "response-toolbar", - "buttons": [ - { - "id": "button-add", - "type": "response-toolbar-item", - "appearance": { - "class": "btn-primary" - }, - "disabled": { - "type": "StateMachine", - "status": false, - "field": "canAdd" - }, - "onClick": "Add1", - "text": "新增" - }, - { - "id": "button-edit", - "type": "response-toolbar-item", - "text": "编辑", - "disabled": "!viewModel.stateMachine['canEdit']", - "onClick": "Edit1" - }, - { - "id": "button-save", - "type": "response-toolbar-item", - "text": "保存", - "disabled": { - "type": "StateMachine", - "status": false, - "field": "canSave" - }, - "onClick": "Save1" - }, - { - "id": "button-cancel", - "type": "response-toolbar-item", - "text": "取消", - "disabled": "!viewModel.stateMachine['canCancel']", - "onClick": "Cancel1" - }, - { - "id": "toolbar_item_2362", - "type": "response-toolbar-item", - "text": "按钮", - "appearance": { - "class": "btn btn-secondary f-btn-ml" - }, - "onClick": "rootTest2" - }, - { - "id": "toolbar_item_4335", - "type": "response-toolbar-item", - "text": "触发组合表单", - "onClick": "rootTest4" - }, - { - "id": "toolbar_item_1125", - "type": "response-toolbar-item", - "text": "弹出帮助" - } - ] - } - }, - { - "id": "main-container", - "type": "content-container", - "appearance": { - "class": "f-page-main" - }, - "contents": [ - { - "id": "like-card-container", - "type": "content-container", - "appearance": { - "class": "f-struct-like-card" - }, - "contents": [ - { - "id": "basic-form-component-ref", - "type": "component-ref", - "component": "basic-form-component" - }, - { - "id": "container-0133", - "type": "content-container", - "contents": [ - { - "id": "section-0133", - "type": "section", - "contents": [ - { - "id": "data-grid-z5vj-component-ref", - "type": "component-ref", - "component": "data-grid-z5vj-component" - } - ], - "appearance": { - "class": "f-section-in-mainsubcard" - }, - "mainTitle": "子表1", - "toolbar": { - "id": "section-0133_toolbar", - "buttons": [ - { - "id": "button-add-data-grid-z5vj", - "type": "section-toolbar-item", - "text": "新增", - "disabled": "!viewModel.stateMachine['canAddDetail']", - "onClick": "root-viewModel.data-grid-z5vj-component-viewmodel.datagridz5vjAddItem1" - }, - { - "id": "button-remove-data-grid-z5vj", - "type": "section-toolbar-item", - "text": "删除", - "disabled": "!viewModel.stateMachine['canRemoveDetail']", - "onClick": "root-viewModel.data-grid-z5vj-component-viewmodel.datagridz5vjRemoveItem1" - } - ] - } - } - ], - "appearance": { - "class": "f-struct-wrapper" - } - } - ], - "isLikeCardContainer": true - } - ] - } - ] - } - ], - "name": "Vue测试", - "enableValidation": false, - "onAfterViewInit": null - }, - { - "id": "basic-form-component", - "type": "component", - "viewModel": "basic-form-viewmodel", - "componentType": "form", - "formColumns": 4, - "appearance": { - "class": "f-struct-wrapper" - }, - "contents": [ - { - "id": "basic-form-section", - "type": "section", - "appearance": { - "class": "f-section-form f-section-in-mainsubcard" - }, - "mainTitle": "基本信息", - "contents": [ - { - "id": "basic-form-layout", - "type": "response-form", - "appearance": { - "class": "f-form-layout farris-form farris-form-controls-inline" - }, - "contents": [ - { - "id": "name_3410f627_2m6a", - "type": "form-group", - "appearance": { - "class": "col-12 col-md-6 col-xl-3 col-el-2", - "style": "color:red" - }, - "label": "工单编号", - "binding": { - "type": "Form", - "path": "name", - "field": "3410f627-358c-4a1a-99b4-800e9d0211e0", - "fullPath": "name" - }, - "editor": { - "type": "lookup", - "readonly": { - "type": "StateMachine", - "status": false, - "field": "editable" - }, - "maxLength": 36, - "dataSource": { - "displayName": "系统组织帮助(sysorghlp)", - "idField": "id", - "type": "ViewObject", - "uri": "lookup.name_3410f627_2m6a" - }, - "helpId": "b524a702-7323-4d46-998e-5ba0c6abcd49", - "displayType": "TreeList", - "textField": "name", - "pagination": { - "enable": true, - "sizeLimits": [ - 10, - 20, - 30, - 50 - ], - "size": 20, - "showLimits": true, - "showGoto": false, - "mode": "server" - }, - "loadTreeDataType": "default", - "onlySelectLeaf": false, - "multiSelect": true, - "required": true - }, - "path": "name", - "updateOn": "blur" - }, - { - "id": "billStatus_BillState_e7c488df_x74m", - "type": "form-group", - "appearance": { - "class": "col-12 col-md-6 col-xl-3 col-el-2 pc-red" - }, - "label": "工单状态", - "binding": { - "type": "Form", - "path": "billStatus_BillState", - "field": "e7c488df-0101-468f-ae3f-40c76c0f06b0", - "fullPath": "BillStatus.BillState" - }, - "editor": { - "type": "combo-list", - "data": [ - { - "disabled": false, - "name": "制单", - "value": "Billing" - }, - { - "disabled": false, - "name": "提交审批", - "value": "SubmitApproval" - }, - { - "disabled": false, - "name": "审批通过", - "value": "Approved" - }, - { - "disabled": false, - "name": "审批不通过", - "value": "ApprovalNotPassed" - } - ], - "textField": "name", - "valueField": "value", - "idField": "value", - "readonly": { - "type": "StateMachine", - "status": false, - "field": "editable" - } - }, - "path": "billStatus.billState", - "updateOn": "change" - }, - { - "id": "booleanField_c419df06_drqr", - "type": "form-group", - "editor": { - "type": "switch", - "readonly": { - "type": "StateMachine", - "status": false, - "field": "editable" - } - }, - "label": "是否处理", - "appearance": { - "class": "col-12 col-md-6 col-xl-3 col-el-2" - }, - "binding": { - "type": "Form", - "path": "booleanField", - "field": "c419df06-d982-44ca-8e48-b366b778049a", - "fullPath": "booleanField" - }, - "path": "booleanField", - "updateOn": "change" - }, - { - "id": "processInstance_ProcessInstance_5d3fd927_6mxv", - "type": "form-group", - "editor": { - "type": "radio-group", - "readonly": { - "type": "StateMachine", - "status": false, - "field": "editable" - }, - "data": [], - "idField": "value", - "valueField": "value", - "textField": "name", - "maxLength": 36 - }, - "label": "工单类型", - "appearance": { - "class": "col-12 col-md-6 col-xl-3 col-el-2" - }, - "binding": { - "type": "Form", - "path": "processInstance_ProcessInstance", - "field": "5d3fd927-ad8f-4da3-a430-c8a7f2162135", - "fullPath": "ProcessInstance.ProcessInstance" - }, - "path": "processInstance.processInstance", - "updateOn": "blur" - }, - { - "id": "numberField_cc6b21b3_dyee", - "type": "form-group", - "appearance": { - "class": "col-12 col-md-6 col-xl-3 col-el-2" - }, - "label": "工时", - "binding": { - "type": "Form", - "path": "numberField", - "field": "cc6b21b3-f721-493e-8a7d-5d0aa90b824c", - "fullPath": "numberField" - }, - "editor": { - "type": "number-spinner", - "nullable": true, - "readonly": { - "type": "StateMachine", - "status": false, - "field": "editable" - }, - "precision": 0, - "maxLength": 0 - }, - "path": "numberField", - "updateOn": "blur" - }, - { - "id": "dateField_e18b1dc0_so35", - "type": "form-group", - "appearance": { - "class": "col-12 col-md-6 col-xl-3 col-el-2" - }, - "label": "制单日期", - "binding": { - "type": "Form", - "path": "dateField", - "field": "e18b1dc0-12c6-4c3e-95e6-c88f1405cfa2", - "fullPath": "dateField" - }, - "editor": { - "type": "date-picker", - "readonly": { - "type": "StateMachine", - "status": false, - "field": "editable" - }, - "fieldType": "Date" - }, - "path": "dateField", - "updateOn": "blur" - }, - { - "id": "ass1_ass1_Name_63b04a7c_p63a", - "type": "form-group", - "editor": { - "type": "input-group", - "readonly": "!viewModel.stateMachine['editable']", - "maxLength": 36 - }, - "label": "名称", - "appearance": { - "class": "col-12 col-md-6 col-xl-3 col-el-2" - }, - "binding": { - "type": "Form", - "path": "ass1_ass1_Name", - "field": "63b04a7c-b310-4a02-bd8b-c4d2e8ad87f4", - "fullPath": "ass1.ass1_Name" - }, - "path": "ass1.ass1_Name" - }, - { - "id": "code_d63b5e0f_nzbn", - "type": "form-group", - "editor": { - "type": "time-picker", - "readonly": { - "type": "StateMachine", - "status": false, - "field": "editable" - }, - "maxLength": 36 - }, - "label": "制单时间", - "appearance": { - "class": "col-12 col-md-6 col-xl-3 col-el-2" - }, - "binding": { - "type": "Form", - "path": "code", - "field": "d63b5e0f-ac69-486d-8dd7-9b0e154e9fc8", - "fullPath": "code" - }, - "path": "code", - "updateOn": "blur" - }, - { - "id": "eumu1_2092e529_k19l", - "type": "form-group", - "editor": { - "type": "combo-list", - "readonly": "!viewModel.stateMachine['editable']", - "data": [ - { - "disabled": false, - "name": "testname", - "value": "test1" - } - ], - "idField": "value", - "valueField": "value", - "textField": "name" - }, - "label": "eumu1", - "appearance": { - "class": "col-12 col-md-6 col-xl-3 col-el-2" - }, - "binding": { - "type": "Form", - "path": "eumu1", - "field": "2092e529-c1cd-444d-98f5-6e11db8be5b7", - "fullPath": "eumu1" - }, - "path": "eumu1" - } - ], - "controlsInline": true, - "formAutoIntl": true - } - ], - "enableAccordion": "default" - } - ], - "name": "Vue测试" - }, - { - "id": "data-grid-z5vj-component", - "type": "component", - "contents": [ - { - "id": "data-grid-z5vj-container", - "type": "content-container", - "contents": [ - { - "id": "data-grid-z5vj-dataGrid", - "type": "data-grid", - "columns": [ - { - "id": "name_49fca8d8_r0yy", - "type": "data-grid-column", - "title": "名称", - "field": "name", - "binding": { - "type": "Form", - "path": "name", - "field": "49fca8d8-e64a-4e8c-a619-f051cfdf72a5", - "fullPath": "name" - }, - "dataType": "string", - "editor": { - "type": "input-group", - "readonly": "!viewModel.stateMachine['editable']", - "maxLength": 36 - }, - "filter": "", - "showSetting": false, - "actualWidth": 120 - }, - { - "id": "code_e5a6411a_lvjz", - "type": "data-grid-column", - "title": "编号", - "field": "code", - "binding": { - "type": "Form", - "path": "code", - "field": "e5a6411a-c30e-4259-8682-53685c53e62a", - "fullPath": "code" - }, - "dataType": "string", - "editor": { - "type": "input-group", - "readonly": "!viewModel.stateMachine['editable']", - "maxLength": 36 - }, - "filter": "", - "showSetting": true, - "actualWidth": 120 - } - ], - "appearance": { - "class": "f-component-grid" - }, - "fieldEditable": true, - "dataSource": "child1s", - "editable": "viewModel.stateMachine['editable']", - "pagination": { - "enable": false - } - } - ], - "appearance": { - "class": "f-grid-is-sub f-utils-flex-column" - } - } - ], - "viewModel": "data-grid-z5vj-component-viewmodel", - "componentType": "data-grid", - "appearance": { - "class": "f-struct-is-subgrid" - } - } - ], - "webcmds": [ - { - "id": "8172a979-2c80-4637-ace7-b13074d3f393", - "path": "/projects/packages/Inspur.GS.Gsp.Web.WebCmp/webcmd", - "name": "CardController.webcmd", - "refedHandlers": [ - { - "host": "e05264fb-796d-43fb-b83b-9e2f3866c328", - "handler": "Load" - }, - { - "host": "246a275c-88c9-4c8a-aa82-be6a950a4325", - "handler": "LoadAndAdd" - }, - { - "host": "70acc053-fa15-45be-851c-cf694e1bcaf7", - "handler": "LoadAndView" - }, - { - "host": "3e72ee6f-8f7b-4f29-aa0e-5887f2861117", - "handler": "LoadAndEdit" - }, - { - "host": "f90aadfa-988c-4da5-a5db-1416c3333794", - "handler": "Add" - }, - { - "host": "a323e27b-b9c6-4848-93b9-f117403a94ff", - "handler": "Edit" - }, - { - "host": "31b814db-01e4-407d-8fad-0f08dbb01999", - "handler": "Save" - }, - { - "host": "4f5ed2ec-8def-4a3c-8e7b-397ea93010e8", - "handler": "Cancel" - }, - { - "host": "d0d339b9-958b-4426-a108-e863300e4151", - "handler": "AddItem" - }, - { - "host": "573952e2-118d-4773-8cf7-347e97e319ca", - "handler": "RemoveItem" - } - ], - "code": "CardController", - "nameSpace": "Inspur.GS.Gsp.Web.WebCmp" - }, - { - "id": "1fcadf37-b42e-4bd5-ba6f-69d97b82547e", - "path": "MyDev/FarrisVueTest/VueFormTest/bo-vueformtest-front/metadata/components", - "name": "PCFormTest_frm_Controller.webcmd", - "refedHandlers": [ - { - "host": "20dbc06c-6e46-46f0-b8f2-a7fd951d722e", - "handler": "test" - }, - { - "host": "45e98f07-494f-4171-9129-817552fb91a8", - "handler": "test" - } - ], - "code": "PCFormTest_frm_Controller", - "nameSpace": "Inspur.GS.MyDev.FarrisVueTest.VueFormTest.VueFormTest.Front" - }, - { - "id": "71c01665-fe32-4539-bb68-1eb58a5e8fd9", - "path": "MyDev/FarrisVueTest/VueFormTest/bo-vueformtest-front/metadata/components", - "name": "vuetest1_frm_Controller.webcmd", - "code": "vuetest1_frm_Controller", - "nameSpace": "Inspur.GS.MyDev.FarrisVueTest.VueFormTest.VueFormTest.Front", - "refedHandlers": [ - { - "host": "01760ad7-e092-4d91-88d8-89f9e13566fa", - "handler": "test" - }, - { - "host": "53e84e7e-ea7f-4b24-aef7-2454b9ce3f56", - "handler": "test" - } - ] - } - ], - "projectName": "bo-vueformtest-front", - "customClass": { - "root-component": ".pc-red{\r\n color:red\r\n}", - "card-component": ".test{\r\n color:green\r\n}", - "basic-form-component": ".test2{\r\n color:black\r\n}", - "child1-component": "" - }, - "actions": [ - { - "sourceComponent": { - "id": "button-add", - "viewModelId": "root-viewmodel", - "map": [ - { - "event": { - "label": "onClick", - "name": "点击事件" - }, - "targetComponent": { - "id": "root-component", - "viewModelId": "root-viewmodel" - }, - "command": { - "id": "f90aadfa-988c-4da5-a5db-1416c3333794", - "label": "Add1", - "name": "新增一条数据", - "handlerName": "Add", - "params": [ - { - "name": "transitionAction", - "shownName": "状态机动作", - "value": "Create", - "defaultValue": null - } - ], - "cmpId": "8172a979-2c80-4637-ace7-b13074d3f393", - "isNewGenerated": false, - "isInvalid": false - }, - "controller": { - "id": "8172a979-2c80-4637-ace7-b13074d3f393", - "label": "CardController", - "name": "卡片控制器" - } - } - ] - } - }, - { - "sourceComponent": { - "id": "button-edit", - "viewModelId": "root-viewmodel", - "map": [ - { - "event": { - "label": "onClick", - "name": "点击事件" - }, - "targetComponent": { - "id": "root-component", - "viewModelId": "root-viewmodel" - }, - "command": { - "id": "a323e27b-b9c6-4848-93b9-f117403a94ff", - "label": "Edit1", - "name": "编辑当前数据", - "handlerName": "Edit", - "params": [ - { - "name": "transitionAction", - "shownName": "状态机动作", - "value": "Edit", - "defaultValue": null - } - ], - "cmpId": "8172a979-2c80-4637-ace7-b13074d3f393", - "isNewGenerated": false, - "isInvalid": false - }, - "controller": { - "id": "8172a979-2c80-4637-ace7-b13074d3f393", - "label": "CardController", - "name": "卡片控制器" - } - } - ] - } - }, - { - "sourceComponent": { - "id": "button-save", - "viewModelId": "root-viewmodel", - "map": [ - { - "event": { - "label": "onClick", - "name": "点击事件" - }, - "targetComponent": { - "id": "root-component", - "viewModelId": "root-viewmodel" - }, - "command": { - "id": "31b814db-01e4-407d-8fad-0f08dbb01999", - "label": "Save1", - "name": "保存变更", - "handlerName": "Save", - "params": [ - { - "name": "transitionAction", - "shownName": "状态机动作", - "value": "Cancel", - "defaultValue": null - }, - { - "name": "successMsg", - "shownName": "保存成功提示信息", - "value": "", - "defaultValue": null - } - ], - "cmpId": "8172a979-2c80-4637-ace7-b13074d3f393", - "isNewGenerated": false, - "isInvalid": false - }, - "controller": { - "id": "8172a979-2c80-4637-ace7-b13074d3f393", - "label": "CardController", - "name": "卡片控制器" - } - } - ] - } - }, - { - "sourceComponent": { - "id": "button-cancel", - "viewModelId": "root-viewmodel", - "map": [ - { - "event": { - "label": "onClick", - "name": "点击事件" - }, - "targetComponent": { - "id": "root-component", - "viewModelId": "root-viewmodel" - }, - "command": { - "id": "4f5ed2ec-8def-4a3c-8e7b-397ea93010e8", - "label": "Cancel1", - "name": "取消变更", - "handlerName": "Cancel", - "params": [ - { - "name": "transitionAction", - "shownName": "状态机动作", - "value": "Cancel", - "defaultValue": null - } - ], - "cmpId": "8172a979-2c80-4637-ace7-b13074d3f393", - "isNewGenerated": false, - "isInvalid": false - }, - "controller": { - "id": "8172a979-2c80-4637-ace7-b13074d3f393", - "label": "CardController", - "name": "卡片控制器" - } - } - ] - } - }, - { - "sourceComponent": { - "id": "toolbar_item_2362", - "viewModelId": "root-viewmodel", - "map": [ - { - "event": { - "label": "onClick", - "name": "点击事件" - }, - "targetComponent": { - "id": "root-component", - "viewModelId": "root-viewmodel" - }, - "command": { - "id": "45e98f07-494f-4171-9129-817552fb91a8", - "label": "rootTest2", - "name": "test2", - "handlerName": "test", - "params": [], - "cmpId": "1fcadf37-b42e-4bd5-ba6f-69d97b82547e", - "isNewGenerated": false, - "isInvalid": false - }, - "controller": { - "id": "1fcadf37-b42e-4bd5-ba6f-69d97b82547e", - "label": "PCFormTest_frm_Controller", - "name": "PC卡片表单测试_frm_Controller" - } - } - ] - } - }, - { - "sourceComponent": { - "id": "toolbar_item_4335", - "viewModelId": "root-viewmodel", - "map": [ - { - "event": { - "label": "onClick", - "name": "点击事件" - }, - "targetComponent": { - "id": "root-component", - "viewModelId": "root-viewmodel" - }, - "command": { - "id": "53e84e7e-ea7f-4b24-aef7-2454b9ce3f56", - "label": "rootTest4", - "name": "测试4", - "handlerName": "test", - "params": [], - "cmpId": "71c01665-fe32-4539-bb68-1eb58a5e8fd9", - "isNewGenerated": false, - "isInvalid": false - }, - "controller": { - "id": "71c01665-fe32-4539-bb68-1eb58a5e8fd9", - "label": "vuetest1_frm_Controller", - "name": "vuetest1_frm_Controller" - } - } - ] - } - }, - { - "sourceComponent": { - "id": "button-add-data-grid-z5vj", - "viewModelId": "data-grid-z5vj-component-viewmodel", - "map": [ - { - "event": { - "label": "onClick", - "name": "点击事件" - }, - "targetComponent": { - "id": "data-grid-z5vj-component", - "viewModelId": "data-grid-z5vj-component-viewmodel" - }, - "command": { - "id": "d0d339b9-958b-4426-a108-e863300e4151", - "label": "datagridz5vjAddItem1", - "name": "增加一条子表数据", - "handlerName": "AddItem", - "params": [], - "cmpId": "8172a979-2c80-4637-ace7-b13074d3f393", - "isNewGenerated": false, - "isInvalid": false - }, - "controller": { - "id": "8172a979-2c80-4637-ace7-b13074d3f393", - "label": "CardController", - "name": "卡片控制器" - } - } - ] - } - }, - { - "sourceComponent": { - "id": "button-remove-data-grid-z5vj", - "viewModelId": "data-grid-z5vj-component-viewmodel", - "map": [ - { - "event": { - "label": "onClick", - "name": "点击事件" - }, - "targetComponent": { - "id": "data-grid-z5vj-component", - "viewModelId": "data-grid-z5vj-component-viewmodel" - }, - "command": { - "id": "573952e2-118d-4773-8cf7-347e97e319ca", - "label": "datagridz5vjRemoveItem1", - "name": "删除一条子表数据", - "handlerName": "RemoveItem", - "params": [ - { - "name": "id", - "shownName": "待删除子表数据的标识", - "value": "{DATA~/child1s/id}" - } - ], - "cmpId": "8172a979-2c80-4637-ace7-b13074d3f393", - "isNewGenerated": false, - "isInvalid": false - }, - "controller": { - "id": "8172a979-2c80-4637-ace7-b13074d3f393", - "label": "CardController", - "name": "卡片控制器" - } - } - ] - } - }, - { - "sourceComponent": { - "id": "root-component", - "viewModelId": "root-viewmodel", - "map": [ - { - "event": { - "label": "onInit", - "name": "初始化事件" - }, - "targetComponent": { - "id": "root-component", - "viewModelId": "root-viewmodel" - }, - "command": { - "id": "e05264fb-796d-43fb-b83b-9e2f3866c328", - "label": "Load1", - "name": "执行加载页面后初始方法", - "handlerName": "Load", - "params": [ - { - "name": "action", - "shownName": "初始方法", - "value": "{UISTATE~/#{root-component}/action}", - "defaultValue": null - } - ], - "cmpId": "8172a979-2c80-4637-ace7-b13074d3f393", - "isNewGenerated": false, - "isInvalid": false - }, - "controller": { - "id": "8172a979-2c80-4637-ace7-b13074d3f393", - "label": "CardController", - "name": "卡片控制器" - } - } - ] - } - } - ], - "communications": [], - "customStyleFile": "/apps/MyDev/FarrisVueTest/web/bo-vueformtest-front/PCFormTest/PCFormTest.css", - "externalComponents": [ - { - "id": "sysorghlp-5vsx", - "type": "lookup", - "enableToSelect": false, - "dataSource": { - "displayName": "系统组织帮助(sysorghlp)", - "idField": "id", - "type": "ViewObject", - "uri": "lookup.sysorghlp_5vsx" - }, - "helpId": "b524a702-7323-4d46-998e-5ba0c6abcd49", - "displayType": "TreeList", - "textField": "name", - "pagination": { - "enable": true, - "sizeLimits": [ - 10, - 20, - 30, - 50 - ], - "size": 20, - "showLimits": true, - "showGoto": false, - "mode": "server" - }, - "loadTreeDataType": "default", - "onlySelectLeaf": false, - "dialog": { - "title": "系统组织帮助" - }, - "name": "系统组织帮助" - }, - { - "id": "vuetest1-02de", - "type": "modal", - "name": "vuetest1", - "title": "vuetest1", - "contents": [ - { - "id": "external-container-1e92e", - "type": "external-container", - "appearance": { - "class": "position-relative h-100" - }, - "externalComponent": { - "id": "7df43f6c-35ff-429c-ab17-737a3d673ba4", - "code": "vuetest1", - "name": "vuetest1", - "fileName": "vuetest1.frm", - "relativePath": "MyDev/FarrisVueTest/VueFormTest/bo-vueformtest-front/metadata/components" - }, - "onCommunication": "" - } - ] - }, - { - "id": "UserOrgTest-t8m3", - "type": "lookup", - "enableToSelect": false, - "dataSource": { - "displayName": "用户组织帮助(UserOrgTest)", - "idField": "id", - "type": "ViewObject", - "uri": "lookup.UserOrgTest_t8m3" - }, - "helpId": "89f18b11-dd4f-4cd1-92c9-83d8038ef799", - "displayType": "NavTreeList", - "textField": "name", - "pagination": { - "enable": true, - "sizeLimits": [ - 10, - 20, - 30, - 50 - ], - "size": 20, - "showLimits": true, - "showGoto": false, - "mode": "server" - }, - "loadTreeDataType": "default", - "onlySelectLeaf": false, - "dialog": { - "title": "用户组织帮助" - }, - "name": "用户组织帮助" - } - ], - "hiddenComponents": [] - } -} \ No newline at end of file diff --git a/web-form-metadata/src/test/java/com/inspur/edp/web/formmetadata/webservice/SmartFormServiceImplTest.java b/web-form-metadata/src/test/java/com/inspur/edp/web/formmetadata/webservice/SmartFormServiceImplTest.java deleted file mode 100644 index 3cdde043..00000000 --- a/web-form-metadata/src/test/java/com/inspur/edp/web/formmetadata/webservice/SmartFormServiceImplTest.java +++ /dev/null @@ -1,40 +0,0 @@ -/* - * Copyright (c) 2020 - present, Inspur Genersoft Co., Ltd. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.inspur.edp.web.formmetadata.webservice; - -import com.fasterxml.jackson.databind.JsonNode; -import com.inspur.edp.web.common.io.FileUtility; -import com.inspur.edp.web.common.serialize.SerializeUtility; -import com.inspur.edp.web.formmetadata.api.entity.SmartFormEntity; -import com.inspur.edp.web.formmetadata.service.SmartFormServiceImpl; -import org.junit.jupiter.api.Test; - - -class SmartFormServiceImplTest { - - @Test - public void testExtract(){ - //String jsonContent = FileUtility.readAsString("D:\\WorkSpaces\\Projects\\Backed\\ui-model\\ui-model-ljk\\web-form-metadata\\src\\test\\java\\com\\inspur\\edp\\web\\formmetadata\\webservice\\PCForm-vue.json"); - String jsonContent = FileUtility.readAsString("D:\\WorkSpaces\\Projects\\Backed\\ui-model\\ui-model-ljk\\web-form-metadata\\src\\test\\java\\com\\inspur\\edp\\web\\formmetadata\\webservice\\PCForm-angular.json"); - - JsonNode jsonNode = SerializeUtility.getInstance().deserialize(jsonContent, JsonNode.class); - SmartFormServiceImpl SmartFormServiceImpl = new SmartFormServiceImpl(); - SmartFormEntity smartFormEntity = SmartFormServiceImpl.extract(jsonNode,false); - - System.out.println(smartFormEntity); - } -} -- Gitee From 6fdac342b64b7406d0cc94f66726ccd9de7b5783 Mon Sep 17 00:00:00 2001 From: lorcan <13231947+lorcan-lv@user.noreply.gitee.com> Date: Wed, 17 Dec 2025 15:49:36 +0800 Subject: [PATCH 4/7] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E6=8A=9B=E5=87=BA?= =?UTF-8?q?=E5=8E=9F=E7=94=9F=E5=BC=82=E5=B8=B8=E5=8E=86=E5=8F=B2=E9=81=97?= =?UTF-8?q?=E7=95=99=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pom.xml | 1 + .../web/formmetadata/filter/LowCodeLanguagePackageFilter.java | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/pom.xml b/pom.xml index d9f87fe9..b671fbe6 100644 --- a/pom.xml +++ b/pom.xml @@ -96,6 +96,7 @@ 0.2.0-rc.7 0.2.0-rc.1 0.2.1 + 1.0.2-SNAPSHOT diff --git a/web-form-metadata/src/main/java/com/inspur/edp/web/formmetadata/filter/LowCodeLanguagePackageFilter.java b/web-form-metadata/src/main/java/com/inspur/edp/web/formmetadata/filter/LowCodeLanguagePackageFilter.java index d3f06141..abf0631c 100644 --- a/web-form-metadata/src/main/java/com/inspur/edp/web/formmetadata/filter/LowCodeLanguagePackageFilter.java +++ b/web-form-metadata/src/main/java/com/inspur/edp/web/formmetadata/filter/LowCodeLanguagePackageFilter.java @@ -30,6 +30,7 @@ import com.fasterxml.jackson.core.JsonProcessingException; import com.fasterxml.jackson.databind.JsonNode; import com.fasterxml.jackson.databind.ObjectMapper; import com.fasterxml.jackson.databind.node.ObjectNode; +import com.inspur.edp.web.common.customexception.WebCustomException; import io.iec.edp.caf.boot.context.CAFContext; import io.iec.edp.caf.commons.exception.CAFRuntimeException; import io.iec.edp.caf.commons.utils.SpringBeanUtils; @@ -299,7 +300,7 @@ public class LowCodeLanguagePackageFilter extends OncePerRequestFilter { JsonNode mergedJsonNodes = mergeJsonNodes(originalJson, uiLanguagePackageJson); return objectMapper.writeValueAsString(mergedJsonNodes); } catch (JsonProcessingException e) { - throw new CAFRuntimeException("pfcommon", "", "", e); // todo: 换成多语的抛异常方式。 + throw new WebCustomException(e); // todo: 换成多语的抛异常方式。 } } -- Gitee From 59b8d44c0a2997e49390c58e0499a521b51c0eec Mon Sep 17 00:00:00 2001 From: lorcan <13231947+lorcan-lv@user.noreply.gitee.com> Date: Fri, 19 Dec 2025 08:45:15 +0800 Subject: [PATCH 5/7] =?UTF-8?q?Revert=20"Revert=20"=E6=9A=82=E5=AD=98""?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This reverts commit 9fdcf0fccd64d97e0949a7cd2847c62c4acea26c. --- .../formmetadata/api/SmartFormService.java | 10 + .../api/entity/SmartFormContent.java | 14 + .../api/entity/SmartFormEntity.java | 17 + .../api/entity/SmartFormField.java | 39 + .../config/FormMetadataConfiguration.java | 11 +- .../service/SmartFormServiceImpl.java | 339 ++ .../webservice/PCForm-angular.json | 4088 +++++++++++++++++ .../formmetadata/webservice/PCForm-vue.json | 2275 +++++++++ .../webservice/SmartFormServiceImplTest.java | 40 + 9 files changed, 6829 insertions(+), 4 deletions(-) create mode 100644 web-form-metadata-api/src/main/java/com/inspur/edp/web/formmetadata/api/SmartFormService.java create mode 100644 web-form-metadata-api/src/main/java/com/inspur/edp/web/formmetadata/api/entity/SmartFormContent.java create mode 100644 web-form-metadata-api/src/main/java/com/inspur/edp/web/formmetadata/api/entity/SmartFormEntity.java create mode 100644 web-form-metadata-api/src/main/java/com/inspur/edp/web/formmetadata/api/entity/SmartFormField.java create mode 100644 web-form-metadata/src/main/java/com/inspur/edp/web/formmetadata/service/SmartFormServiceImpl.java create mode 100644 web-form-metadata/src/test/java/com/inspur/edp/web/formmetadata/webservice/PCForm-angular.json create mode 100644 web-form-metadata/src/test/java/com/inspur/edp/web/formmetadata/webservice/PCForm-vue.json create mode 100644 web-form-metadata/src/test/java/com/inspur/edp/web/formmetadata/webservice/SmartFormServiceImplTest.java diff --git a/web-form-metadata-api/src/main/java/com/inspur/edp/web/formmetadata/api/SmartFormService.java b/web-form-metadata-api/src/main/java/com/inspur/edp/web/formmetadata/api/SmartFormService.java new file mode 100644 index 00000000..1287fc96 --- /dev/null +++ b/web-form-metadata-api/src/main/java/com/inspur/edp/web/formmetadata/api/SmartFormService.java @@ -0,0 +1,10 @@ +package com.inspur.edp.web.formmetadata.api; + + +import com.inspur.edp.web.formmetadata.api.entity.SmartFormContent; + +public interface SmartFormService { + + SmartFormContent getFormContent(String formId); + +} diff --git a/web-form-metadata-api/src/main/java/com/inspur/edp/web/formmetadata/api/entity/SmartFormContent.java b/web-form-metadata-api/src/main/java/com/inspur/edp/web/formmetadata/api/entity/SmartFormContent.java new file mode 100644 index 00000000..75aa18ad --- /dev/null +++ b/web-form-metadata-api/src/main/java/com/inspur/edp/web/formmetadata/api/entity/SmartFormContent.java @@ -0,0 +1,14 @@ +package com.inspur.edp.web.formmetadata.api.entity; + + +import lombok.Data; + +@Data +public class SmartFormContent { + private String id; + private String code; + private String name; + private String voId; + + private SmartFormEntity entity; +} diff --git a/web-form-metadata-api/src/main/java/com/inspur/edp/web/formmetadata/api/entity/SmartFormEntity.java b/web-form-metadata-api/src/main/java/com/inspur/edp/web/formmetadata/api/entity/SmartFormEntity.java new file mode 100644 index 00000000..6e114220 --- /dev/null +++ b/web-form-metadata-api/src/main/java/com/inspur/edp/web/formmetadata/api/entity/SmartFormEntity.java @@ -0,0 +1,17 @@ +package com.inspur.edp.web.formmetadata.api.entity; + +import lombok.Data; + +import java.util.ArrayList; +import java.util.List; + +@Data +public class SmartFormEntity { + private String id; + private String code; + private String name; + + private List fields = new ArrayList<>(); + private List childEntities = new ArrayList<>(); +} + diff --git a/web-form-metadata-api/src/main/java/com/inspur/edp/web/formmetadata/api/entity/SmartFormField.java b/web-form-metadata-api/src/main/java/com/inspur/edp/web/formmetadata/api/entity/SmartFormField.java new file mode 100644 index 00000000..415f4794 --- /dev/null +++ b/web-form-metadata-api/src/main/java/com/inspur/edp/web/formmetadata/api/entity/SmartFormField.java @@ -0,0 +1,39 @@ +package com.inspur.edp.web.formmetadata.api.entity; + +import lombok.Data; + +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Map; + + +@Data +public class SmartFormField { + + private String id; + private String code; + private String name; + // 原始字段ID + private String originalId; + + // 数据类型:StringType + private String dataType; + // 对象类型(enum:枚举、association:关联、dynamicprop:动态属性) + // private String objectType; + + /** + 字段属性 + { + "required":true, 必填 + "multiSelect":true, 多选 + "enumData":JSONArray, 枚举项 + "helpId":"b524a702-7323-4d46-998e-5ba0c6abcd49", 帮助数据源 + "precision":2, 精度 + } + */ + private Map properties = new HashMap<>(); + + private List childFields = new ArrayList<>(); + +} diff --git a/web-form-metadata/src/main/java/com/inspur/edp/web/formmetadata/config/FormMetadataConfiguration.java b/web-form-metadata/src/main/java/com/inspur/edp/web/formmetadata/config/FormMetadataConfiguration.java index 3bf10919..1fa9f8df 100644 --- a/web-form-metadata/src/main/java/com/inspur/edp/web/formmetadata/config/FormMetadataConfiguration.java +++ b/web-form-metadata/src/main/java/com/inspur/edp/web/formmetadata/config/FormMetadataConfiguration.java @@ -17,13 +17,11 @@ package com.inspur.edp.web.formmetadata.config; import com.inspur.edp.web.formmetadata.api.FormMetadataCommonService; +import com.inspur.edp.web.formmetadata.api.SmartFormService; import com.inspur.edp.web.formmetadata.filter.LowCodeLanguagePackageFilter; import com.inspur.edp.web.formmetadata.formresource.FormResourceManager; import com.inspur.edp.web.formmetadata.lic.FormMetadataCreateLicControlListener; -import com.inspur.edp.web.formmetadata.service.FormMetadataCommonServiceImpl; -import com.inspur.edp.web.formmetadata.service.FormMetadataRTService; -import com.inspur.edp.web.formmetadata.service.FormMetadataService; -import com.inspur.edp.web.formmetadata.service.FormRelateMetadataService; +import com.inspur.edp.web.formmetadata.service.*; import com.inspur.edp.web.formmetadata.webservice.FormMetadataWebServiceImpl; import io.iec.edp.caf.rest.RESTEndpoint; import org.springframework.boot.autoconfigure.condition.ConditionalOnClass; @@ -83,4 +81,9 @@ public class FormMetadataConfiguration { public LowCodeLanguagePackageFilter registerLowCodeLanguagePackageFilter() { return new LowCodeLanguagePackageFilter(); } + + @Bean + public SmartFormService getSmartFormService() { + return new SmartFormServiceImpl(); + } } diff --git a/web-form-metadata/src/main/java/com/inspur/edp/web/formmetadata/service/SmartFormServiceImpl.java b/web-form-metadata/src/main/java/com/inspur/edp/web/formmetadata/service/SmartFormServiceImpl.java new file mode 100644 index 00000000..bbd0881f --- /dev/null +++ b/web-form-metadata/src/main/java/com/inspur/edp/web/formmetadata/service/SmartFormServiceImpl.java @@ -0,0 +1,339 @@ +package com.inspur.edp.web.formmetadata.service; + +import com.fasterxml.jackson.databind.JsonNode; +import com.inspur.edp.lcm.metadata.api.entity.GspMetadata; +import com.inspur.edp.lcm.metadata.api.entity.MetadataHeader; +import com.inspur.edp.web.common.metadata.MetadataUtility; +import com.inspur.edp.web.formmetadata.api.SmartFormService; +import com.inspur.edp.web.formmetadata.api.entity.SmartFormContent; +import com.inspur.edp.web.formmetadata.api.entity.SmartFormEntity; +import com.inspur.edp.web.formmetadata.api.entity.SmartFormField; +import com.inspur.edp.web.formmetadata.metadata.FormMetadataContent; +import io.swagger.util.Json; +import org.apache.commons.lang3.StringUtils; + +import java.util.*; + +/** + * 为智能填单提取表单属性 + */ +public class SmartFormServiceImpl implements SmartFormService { + + // 子级控件的属性 + private static final List childPropertyNamesForAngular = Arrays.asList("contents", "fields"); + private static final List childPropertyNamesForVue = Arrays.asList("contents", "columns"); + + public SmartFormServiceImpl() { + } + + @Override + public SmartFormContent getFormContent(String formId) { + GspMetadata formMetadata = MetadataUtility.getInstance().getMetadataWithRuntime(formId); + if (formMetadata == null) { + return null; + } + + boolean isVueForm = false; + if(formMetadata.getProperties() != null && formMetadata.getProperties().getFramework() != null) { + String frameworkType = String.valueOf(formMetadata.getProperties().getFramework()); + isVueForm = "Vue".equals(frameworkType); + } + + FormMetadataContent formContents = (FormMetadataContent) formMetadata.getContent(); + if(formContents == null) { + return null; + } + JsonNode formContent = formContents.getContents(); + if(formContent == null){ + return null; + } + MetadataHeader header = formMetadata.getHeader(); + SmartFormContent smartFormContent = new SmartFormContent(); + smartFormContent.setEntity(extract(formContent, isVueForm)); + smartFormContent.setId(header.getId()); + smartFormContent.setCode(header.getCode()); + smartFormContent.setName(header.getName()); + + JsonNode entity = isVueForm ? formContent.at("/module/entity/0") : formContent.at("/module/schemas/0"); + if(entity != null){ + smartFormContent.setVoId(getStringValue(entity, "/id")); + } + + return smartFormContent; + + } + + public SmartFormEntity extract(JsonNode formContent, boolean isVueForm){ + // 1、提取viewmodel中的字段 + JsonNode viewModels = formContent.at("/module/viewmodels"); + List fieldIds = extractViewModels(viewModels); + + // 2、获取component中字段信息 + JsonNode components = formContent.at("/module/components"); + Map fieldMap = extractComponents(components, fieldIds, isVueForm); + + // 3、构建实体树 + JsonNode mainEntity = isVueForm ? formContent.at("/module/entity/0/entities/0") : formContent.at("/module/schemas/0/entities/0"); + + SmartFormEntity smartFormEntity = extractEntities(mainEntity, fieldMap); + + return smartFormEntity; + } + + /** + * 提取视图模型中的字段 + * @param viewModels + * @return + */ + private List extractViewModels(JsonNode viewModels){ + List fieldIds = new ArrayList<>(); + if(viewModels == null || viewModels.isEmpty()){ + return fieldIds; + } + for(JsonNode viewModel : viewModels){ + JsonNode fields = viewModel.get("fields"); + if (fields != null && !fields.isEmpty()) { + fieldIds.addAll(fields.findValuesAsText("id")); + } + } + + return fieldIds; + } + + + /** + * 提取组件中的字段 + * @param components + * @param fieldIds + * @return + */ + private Map extractComponents(JsonNode components, List fieldIds, boolean isVueForm) { + Map fieldMap = new HashMap<>(); + if(components == null || components.isEmpty()){ + return fieldMap; + } + + for(JsonNode component : components){ + // 提取当前控件 + Map currentFieldMap = extractComponent(fieldIds, component, isVueForm); + fieldMap.putAll(currentFieldMap); + + // 提取子控件 + List childPropertyNames = isVueForm ? childPropertyNamesForVue : childPropertyNamesForAngular; + for (String childPropertyName : childPropertyNames){ + JsonNode childComponent = component.get(childPropertyName); + if (childComponent != null && !childComponent.isEmpty() && childComponent.isArray()) { + Map childFieldMap = extractComponents(childComponent, fieldIds, isVueForm); + fieldMap.putAll(childFieldMap); + } + } + } + return fieldMap; + } + + /** + * 提取控件的属性 + * @param fieldIds + * @param component + */ + private Map extractComponent(List fieldIds, JsonNode component, boolean isVueForm) { + Map fieldMap = new HashMap<>(); + if(component == null || component.isEmpty()){ + return fieldMap; + } + JsonNode fieldId = component.at("/binding/field"); + JsonNode type = component.at("/type"); + if (fieldId == null || type == null || type.isMissingNode() || fieldId.isMissingNode()) { + return fieldMap; + } + + String fieldIdText = fieldId.asText(); + if (fieldIds.contains(fieldIdText)) { + // todo 提取属性 + + SmartFormField field = new SmartFormField(); + field.setId(fieldIdText); + + field.setName(getStringValue(component, isVueForm ? "/label" : "/title")); + + + Map properties = field.getProperties(); + if(isVueForm){ + this.extractPropertiesForVue(component, properties); + }else{ + this.extractPropertiesForAngular(component, properties); + } + + field.setProperties(properties); + fieldMap.put(fieldIdText, field); + } + return fieldMap; + } + + private void extractPropertiesForVue(JsonNode component, Map properties){ + properties.put("required", getBooleanValue(component,"/editor/required")); + properties.put("multiSelect", getBooleanValue(component,"/editor/multiSelect")); + properties.put("helpId", getStringValue(component,"/editor/helpId")); + properties.put("precision", getNumberValue(component,"/editor/precision")); + + String dataSourceType = getStringValue(component, "/editor/dataSourceType"); + if(!"dynamic".equals(dataSourceType)){ + properties.put("enumData", getObjectValue(component, "/editor/data")); + } + } + + private void extractPropertiesForAngular(JsonNode component, Map properties){ + JsonNode editor = component.at("/editor"); + JsonNode extractedComponent = (editor != null && !editor.isMissingNode()) ? editor : component; + + properties.put("required", getBooleanValue(extractedComponent,"/require")); + properties.put("multiSelect", getBooleanValue(extractedComponent,"/multiSelect")); + properties.put("helpId", getStringValue(extractedComponent,"/helpId")); + properties.put("precision", getNumberValue(extractedComponent,"/precision")); + + String dataSourceType = getStringValue(extractedComponent, "/dataSourceType"); + if(!"dynamic".equals(dataSourceType)){ + properties.put("enumData", getObjectValue(extractedComponent, "/enumData")); + if(properties.get("enumData") == null){ + properties.put("enumData", getObjectValue(extractedComponent, "/items")); + } + } + } + + + /** + * 提取实体树 + * @param entityNode + * @param fieldMap + * @return + */ + private SmartFormEntity extractEntities(JsonNode entityNode, Map fieldMap) { + SmartFormEntity smartFormEntity = new SmartFormEntity(); + if (entityNode == null || entityNode.isEmpty()) { + return smartFormEntity; + } + + // 提取主表 + smartFormEntity.setId(getStringValue(entityNode, "/id")); + smartFormEntity.setCode(getStringValue(entityNode, "/code")); + smartFormEntity.setName(getStringValue(entityNode, "/name")); + + // 提取主表字段 + JsonNode fieldNodes = entityNode.at("/type/fields"); + List smartFormFields = extractFields(fieldNodes, fieldMap); + smartFormEntity.setFields(smartFormFields); + + // 提取子表 + JsonNode childEntityNodes = entityNode.at("/type/entities"); + if (childEntityNodes == null || childEntityNodes.isEmpty()) { + return smartFormEntity; + } + + for(JsonNode childEntityNode : childEntityNodes){ + SmartFormEntity childEntity = extractEntities(childEntityNode, fieldMap); + // 如果当前子对象有字段,则添加 + if (!childEntity.getFields().isEmpty()) { + smartFormEntity.getChildEntities().add(childEntity); + } + } + + return smartFormEntity; + } + + private List extractFields(JsonNode fieldNodes, Map fieldMap) { + List smartFormFields = new ArrayList<>(); + if(fieldNodes == null || fieldNodes.isEmpty()){ + return smartFormFields; + } + for(JsonNode fieldNode : fieldNodes){ + // 提取当前字段 + // todo 提取属性 + String id = getStringValue(fieldNode, "/id"); + SmartFormField smartFormField = fieldMap.get(id); + if(smartFormField != null){ + this.setFormField(smartFormField, fieldNode, true); + smartFormFields.add(smartFormField); + continue; + } + + // 提取子字段 + JsonNode childFieldNodes = fieldNode.at("/type/fields"); + if (childFieldNodes == null || childFieldNodes.isEmpty()) { + continue; + } + + List childFields = extractFields(childFieldNodes, fieldMap); + if (childFields.isEmpty()) { + continue; + } + smartFormField = new SmartFormField(); + this.setFormField(smartFormField, fieldNode, false); + smartFormField.setName(getStringValue(fieldNode, "/name")); + + // formField.setDataType(getStringValue(fieldNode, "/type/$type")); + + smartFormField.setChildFields(childFields); + smartFormFields.add(smartFormField); + } + + return smartFormFields; + } + + private void setFormField(SmartFormField smartFormField, JsonNode fieldNode, boolean isSetDataType){ + smartFormField.setId(getStringValue(fieldNode, "/id")); + smartFormField.setCode(getStringValue(fieldNode, "/code")); + smartFormField.setOriginalId(getStringValue(fieldNode, "/originalId")); + if(isSetDataType){ + smartFormField.setDataType(getStringValue(fieldNode, "/type/$type")); + if("EnumType".equals(smartFormField.getDataType())){ + smartFormField.setDataType(getStringValue(fieldNode, "/type/valueType/$type")); + } + } + } + + private String getStringValue(JsonNode node, String key){ + if(node == null || node.isEmpty()){ + return null; + } + JsonNode result = node.at(key); + if(result == null || StringUtils.isEmpty(result.asText())){ + return null; + } + return result.asText(); + } + + private Integer getNumberValue(JsonNode node, String key){ + if(node == null || node.isEmpty()){ + return null; + } + JsonNode result = node.at(key); + if(result == null || !result.isNumber()){ + return null; + } + return result.asInt(); + } + + private Boolean getBooleanValue(JsonNode node, String key){ + if(node == null || node.isEmpty()){ + return null; + } + JsonNode result = node.at(key); + if(result == null || !result.isBoolean()){ + return null; + } + return result.asBoolean(); + + } + + private Object getObjectValue(JsonNode node, String key){ + if(node == null || node.isEmpty()){ + return null; + } + JsonNode result = node.at(key); + if(result == null || result.isEmpty()){ + return null; + } + return result; + } + +} diff --git a/web-form-metadata/src/test/java/com/inspur/edp/web/formmetadata/webservice/PCForm-angular.json b/web-form-metadata/src/test/java/com/inspur/edp/web/formmetadata/webservice/PCForm-angular.json new file mode 100644 index 00000000..2839e4a2 --- /dev/null +++ b/web-form-metadata/src/test/java/com/inspur/edp/web/formmetadata/webservice/PCForm-angular.json @@ -0,0 +1,4088 @@ +{ + "module": { + "id": "PCCardFormTest", + "code": "PCCardFormTest", + "name": "PC卡片测试", + "caption": "PC卡片测试", + "type": "Module", + "creator": "lijiangkun", + "creationDate": "2025-04-25T08:12:29.233Z", + "updateVersion": "191104", + "showTitle": true, + "bootstrap": "card-template", + "templateId": "card-template", + "schemas": [ + { + "eapiId": "5ccf045d-6ed0-47a7-84eb-19afc47883d9", + "eapiCode": "PCCardFormTest_frm", + "eapiName": "PC卡片测试_frm", + "eapiNameSpace": "Inspur.GS.MyDev.AngularTest.RuntimeTest.RuntimeTest.Front", + "voPath": "MyDev/AngularTest/RuntimeTest/bo-runtimetest-front/metadata/components", + "voNameSpace": "Inspur.GS.MyDev.AngularTest.RuntimeTest.RuntimeTest.Front", + "entities": [ + { + "type": { + "$type": "EntityType", + "entities": [ + { + "type": { + "$type": "EntityType", + "entities": [], + "fields": [ + { + "$type": "SimpleField", + "multiLanguage": false, + "require": true, + "readonly": false, + "editor": { + "$type": "TextBox" + }, + "defaultValue": "", + "path": "ID", + "type": { + "$type": "StringType", + "length": 36, + "name": "String", + "displayName": "字符串" + }, + "id": "c39c80e2-74c8-43e6-9cb0-d1b3848ac57a", + "originalId": "c39c80e2-74c8-43e6-9cb0-d1b3848ac57a", + "label": "id", + "code": "ID", + "bindingField": "id", + "bindingPath": "id", + "name": "主键" + }, + { + "$type": "SimpleField", + "multiLanguage": false, + "require": true, + "readonly": false, + "editor": { + "$type": "TextBox" + }, + "defaultValue": "", + "path": "ParentID", + "type": { + "$type": "StringType", + "length": 36, + "name": "String", + "displayName": "字符串" + }, + "id": "aef35c14-654b-493b-987e-d39969239b6d", + "originalId": "aef35c14-654b-493b-987e-d39969239b6d", + "label": "parentID", + "code": "ParentID", + "bindingField": "parentID", + "bindingPath": "parentID", + "name": "上级对象主键" + }, + { + "$type": "ComplexField", + "path": "attachment", + "type": { + "$type": "ObjectType", + "fields": [ + { + "$type": "SimpleField", + "multiLanguage": false, + "require": false, + "readonly": false, + "editor": { + "$type": "TextBox" + }, + "defaultValue": "", + "path": "attachment.AttachmentId", + "type": { + "$type": "StringType", + "length": 36, + "name": "String", + "displayName": "字符串" + }, + "id": "24040962-4fd6-49ff-a18a-f466a068f905", + "originalId": "ff73a947-4fd6-49ff-a18a-f466a068f905", + "label": "attachmentId", + "code": "AttachmentId", + "bindingField": "attachment_AttachmentId", + "bindingPath": "attachment.attachmentId", + "name": "附件Id" + }, + { + "$type": "SimpleField", + "multiLanguage": false, + "require": false, + "readonly": false, + "editor": { + "$type": "TextBox" + }, + "defaultValue": "", + "path": "attachment.FileName", + "type": { + "$type": "StringType", + "length": 512, + "name": "String", + "displayName": "字符串" + }, + "id": "24040962-1497-4526-86f9-290aab400e0b", + "originalId": "026b07a9-1497-4526-86f9-290aab400e0b", + "label": "fileName", + "code": "FileName", + "bindingField": "attachment_FileName", + "bindingPath": "attachment.fileName", + "name": "附件名称" + }, + { + "$type": "SimpleField", + "multiLanguage": false, + "require": false, + "readonly": false, + "editor": { + "$type": "NumericBox" + }, + "defaultValue": "", + "path": "attachment.FileSize", + "type": { + "$type": "NumericType", + "precision": 8, + "length": 128, + "name": "Number", + "displayName": "数字" + }, + "id": "24040962-dd56-4cab-a54b-577a65f9eb6e", + "originalId": "6369fb66-dd56-4cab-a54b-577a65f9eb6e", + "label": "fileSize", + "code": "FileSize", + "bindingField": "attachment_FileSize", + "bindingPath": "attachment.fileSize", + "name": "附件大小" + }, + { + "$type": "SimpleField", + "multiLanguage": false, + "require": false, + "readonly": false, + "editor": { + "$type": "DateBox", + "format": "'yyyy-MM-dd'" + }, + "defaultValue": "", + "path": "attachment.FileCreateTime", + "type": { + "$type": "DateTimeType", + "name": "DateTime", + "displayName": "日期时间" + }, + "id": "24040962-a1f5-4f6c-9c82-ddb10864c652", + "originalId": "ff677864-a1f5-4f6c-9c82-ddb10864c652", + "label": "fileCreateTime", + "code": "FileCreateTime", + "bindingField": "attachment_FileCreateTime", + "bindingPath": "attachment.fileCreateTime", + "name": "附件上传时间" + } + ], + "name": "AttachmentInfo2404", + "displayName": "附件信息" + }, + "id": "24040962-8b52-467c-b760-a2fdf257c8ea", + "originalId": "24040962-8b52-467c-b760-a2fdf257c8ea", + "label": "attachment", + "code": "attachment", + "bindingField": "attachment", + "bindingPath": "attachment", + "name": "附件" + }, + { + "$type": "ComplexField", + "label": "name", + "id": "27e7a688-82b2-45ba-a85d-870c233bb984", + "path": "name", + "type": { + "$type": "EntityType", + "fields": [ + { + "$type": "SimpleField", + "defaultValue": "", + "editor": { + "$type": "TextBox" + }, + "require": false, + "multiLanguage": false, + "readonly": false, + "label": "name", + "id": "f75e046c-1b7a-4f2e-98fe-228242b3ca33", + "path": "name.name", + "type": { + "$type": "StringType", + "displayName": "字符串", + "length": 36, + "name": "String" + }, + "originalId": "f75e046c-1b7a-4f2e-98fe-228242b3ca33", + "code": "name", + "bindingField": "name", + "bindingPath": "name.name", + "name": "名称" + }, + { + "$type": "SimpleField", + "defaultValue": "", + "editor": { + "$type": "TextBox" + }, + "require": false, + "multiLanguage": false, + "readonly": false, + "label": "name_Name", + "id": "c78a1ced-09c7-4c08-938d-897af682ef17", + "path": "name.name_Name", + "type": { + "$type": "StringType", + "displayName": "字符串", + "length": 1000, + "name": "String" + }, + "originalId": "c78a1ced-09c7-4c08-938d-897af682ef17", + "code": "Name", + "bindingField": "name_name_Name", + "bindingPath": "name.name_Name", + "name": "姓名" + }, + { + "$type": "SimpleField", + "defaultValue": "", + "editor": { + "$type": "TextBox" + }, + "require": false, + "multiLanguage": false, + "readonly": false, + "label": "name_Code", + "id": "0776bfe0-5912-4a8d-9447-ca896edf4cc1", + "path": "name.name_Code", + "type": { + "$type": "StringType", + "displayName": "字符串", + "length": 100, + "name": "String" + }, + "originalId": "0776bfe0-5912-4a8d-9447-ca896edf4cc1", + "code": "Code", + "bindingField": "name_name_Code", + "bindingPath": "name.name_Code", + "name": "编码" + } + ], + "primary": "name", + "entities": [], + "displayName": "人员", + "name": "DFFEmployeeF75e" + }, + "originalId": "27e7a688-82b2-45ba-a85d-870c233bb984", + "code": "name", + "bindingField": "name", + "bindingPath": "name", + "name": "名称" + } + ], + "primary": "id", + "name": "ChildAttachment1", + "displayName": "子表附件1" + }, + "id": "f987f0c2-039e-4a32-a8dd-fcbf8f6645b4", + "label": "childAttachment1s", + "code": "ChildAttachment1", + "name": "子表附件1" + }, + { + "type": { + "$type": "EntityType", + "entities": [], + "fields": [ + { + "$type": "SimpleField", + "multiLanguage": false, + "require": true, + "readonly": false, + "editor": { + "$type": "TextBox" + }, + "defaultValue": "", + "path": "ID", + "type": { + "$type": "StringType", + "length": 36, + "name": "String", + "displayName": "字符串" + }, + "id": "3df94820-efa6-48a6-8d47-112ac47e3302", + "originalId": "3df94820-efa6-48a6-8d47-112ac47e3302", + "label": "id", + "code": "ID", + "bindingField": "id", + "bindingPath": "id", + "name": "主键" + }, + { + "$type": "SimpleField", + "multiLanguage": false, + "require": true, + "readonly": false, + "editor": { + "$type": "TextBox" + }, + "defaultValue": "", + "path": "ParentID", + "type": { + "$type": "StringType", + "length": 36, + "name": "String", + "displayName": "字符串" + }, + "id": "ee23f329-c1d4-489e-b691-b39b6cd12302", + "originalId": "ee23f329-c1d4-489e-b691-b39b6cd12302", + "label": "parentID", + "code": "ParentID", + "bindingField": "parentID", + "bindingPath": "parentID", + "name": "上级对象主键" + }, + { + "$type": "SimpleField", + "multiLanguage": false, + "require": false, + "readonly": false, + "editor": { + "$type": "TextBox" + }, + "defaultValue": "", + "path": "code", + "type": { + "$type": "StringType", + "length": 36, + "name": "String", + "displayName": "字符串" + }, + "id": "c864358f-cb3c-4b2b-960e-423754e28ea8", + "originalId": "c864358f-cb3c-4b2b-960e-423754e28ea8", + "label": "code", + "code": "code", + "bindingField": "code", + "bindingPath": "code", + "name": "编号" + }, + { + "$type": "SimpleField", + "multiLanguage": false, + "require": false, + "readonly": false, + "editor": { + "$type": "TextBox" + }, + "defaultValue": "", + "path": "name", + "type": { + "$type": "StringType", + "length": 36, + "name": "String", + "displayName": "字符串" + }, + "id": "a6c40426-7529-45e3-8c53-4ae973f28c09", + "originalId": "a6c40426-7529-45e3-8c53-4ae973f28c09", + "label": "name", + "code": "name", + "bindingField": "name", + "bindingPath": "name", + "name": "名称" + }, + { + "$type": "SimpleField", + "require": false, + "multiLanguage": false, + "defaultValue": "", + "editor": { + "$type": "CheckBox" + }, + "readonly": false, + "path": "booleanField", + "type": { + "$type": "BooleanType", + "displayName": "布尔", + "name": "Boolean" + }, + "id": "e4f457e3-add6-4df6-becd-26617dd1cb46", + "code": "booleanField", + "label": "booleanField", + "bindingPath": "booleanField", + "bindingField": "booleanField", + "originalId": "e4f457e3-add6-4df6-becd-26617dd1cb46", + "name": "布尔" + }, + { + "$type": "SimpleField", + "defaultValue": "", + "editor": { + "$type": "MultiTextBox" + }, + "require": false, + "multiLanguage": false, + "readonly": false, + "label": "noteField", + "id": "11bdf429-f332-475b-983b-ae82fba00e8f", + "path": "noteField", + "type": { + "$type": "TextType", + "displayName": "文本", + "length": 0, + "name": "Text" + }, + "originalId": "11bdf429-f332-475b-983b-ae82fba00e8f", + "code": "noteField", + "bindingField": "noteField", + "bindingPath": "noteField", + "name": "备注" + } + ], + "primary": "id", + "name": "RuntimeItem1", + "displayName": "运行时明细1" + }, + "id": "8b102388-c979-4378-805e-e891d480c9bf", + "label": "runtimeItem1s", + "code": "RuntimeItem1", + "name": "运行时明细1" + } + ], + "fields": [ + { + "$type": "SimpleField", + "multiLanguage": false, + "require": true, + "readonly": false, + "editor": { + "$type": "TextBox" + }, + "defaultValue": "", + "path": "ID", + "type": { + "$type": "StringType", + "length": 36, + "name": "String", + "displayName": "字符串" + }, + "id": "668b9bfb-9c29-46b7-862d-b391bb7602e2", + "originalId": "668b9bfb-9c29-46b7-862d-b391bb7602e2", + "label": "id", + "code": "ID", + "bindingField": "id", + "bindingPath": "id", + "name": "主键" + }, + { + "$type": "SimpleField", + "multiLanguage": false, + "require": false, + "readonly": false, + "editor": { + "$type": "DateBox", + "format": "'yyyy-MM-dd'" + }, + "defaultValue": "", + "path": "Version", + "type": { + "$type": "DateTimeType", + "name": "DateTime", + "displayName": "日期时间" + }, + "id": "30ba0d3e-e2d0-402f-a569-646b3b191297", + "originalId": "30ba0d3e-e2d0-402f-a569-646b3b191297", + "label": "version", + "code": "Version", + "bindingField": "version", + "bindingPath": "version", + "name": "版本" + }, + { + "$type": "ComplexField", + "path": "BillStatus", + "type": { + "$type": "ObjectType", + "fields": [ + { + "$type": "SimpleField", + "multiLanguage": false, + "require": false, + "readonly": false, + "editor": { + "$type": "EnumField" + }, + "defaultValue": "", + "path": "BillStatus.BillState", + "type": { + "$type": "EnumType", + "valueType": { + "$type": "StringType", + "length": 36, + "name": "String", + "displayName": "字符串" + }, + "enumValues": [ + { + "disabled": false, + "name": "制单", + "value": "Billing" + }, + { + "disabled": false, + "name": "提交审批", + "value": "SubmitApproval" + }, + { + "disabled": false, + "name": "审批通过", + "value": "Approved" + }, + { + "disabled": false, + "name": "审批不通过", + "value": "ApprovalNotPassed" + } + ], + "name": "Enum", + "displayName": "枚举" + }, + "id": "a54c2230-0101-468f-ae3f-40c76c0f06b0", + "originalId": "a0b19650-0101-468f-ae3f-40c76c0f06b0", + "label": "billState", + "code": "BillState", + "bindingField": "billStatus_BillState", + "bindingPath": "billStatus.billState", + "name": "状态" + } + ], + "name": "BillStateA54c", + "displayName": "状态" + }, + "id": "a54c2230-3231-4928-a503-93fb64767b84", + "originalId": "a54c2230-3231-4928-a503-93fb64767b84", + "label": "billStatus", + "code": "BillStatus", + "bindingField": "billStatus", + "bindingPath": "billStatus", + "name": "状态" + }, + { + "$type": "ComplexField", + "path": "ProcessInstance", + "type": { + "$type": "ObjectType", + "fields": [ + { + "$type": "SimpleField", + "multiLanguage": false, + "require": false, + "readonly": false, + "editor": { + "$type": "TextBox" + }, + "defaultValue": "", + "path": "ProcessInstance.ProcessInstance", + "type": { + "$type": "StringType", + "length": 36, + "name": "String", + "displayName": "字符串" + }, + "id": "4c02d802-ad8f-4da3-a430-c8a7f2162135", + "originalId": "2e1beb7d-ad8f-4da3-a430-c8a7f2162135", + "label": "processInstance", + "code": "ProcessInstance", + "bindingField": "processInstance_ProcessInstance", + "bindingPath": "processInstance.processInstance", + "name": "流程实例" + } + ], + "name": "ProcessInstance4c02", + "displayName": "流程实例" + }, + "id": "4c02d802-33fe-47d1-b289-05427b719a11", + "originalId": "4c02d802-33fe-47d1-b289-05427b719a11", + "label": "processInstance", + "code": "ProcessInstance", + "bindingField": "processInstance", + "bindingPath": "processInstance", + "name": "流程实例" + }, + { + "$type": "SimpleField", + "multiLanguage": false, + "require": false, + "readonly": false, + "editor": { + "$type": "TextBox" + }, + "defaultValue": "", + "path": "code", + "type": { + "$type": "StringType", + "length": 36, + "name": "String", + "displayName": "字符串" + }, + "id": "b86fa068-5985-419e-86f0-dbe862719192", + "originalId": "b86fa068-5985-419e-86f0-dbe862719192", + "label": "code", + "code": "code", + "bindingField": "code", + "bindingPath": "code", + "name": "编号" + }, + { + "$type": "SimpleField", + "multiLanguage": false, + "require": false, + "readonly": false, + "editor": { + "$type": "TextBox" + }, + "defaultValue": "", + "path": "name", + "type": { + "$type": "StringType", + "length": 36, + "name": "String", + "displayName": "字符串" + }, + "id": "61595c14-d06a-4f6c-977e-152aeb5f7b46", + "originalId": "61595c14-d06a-4f6c-977e-152aeb5f7b46", + "label": "name", + "code": "name", + "bindingField": "name", + "bindingPath": "name", + "name": "名称" + }, + { + "$type": "SimpleField", + "multiLanguage": false, + "require": false, + "readonly": false, + "editor": { + "$type": "NumericBox" + }, + "defaultValue": "", + "path": "numberField1", + "type": { + "$type": "NumericType", + "precision": 0, + "length": 0, + "name": "Number", + "displayName": "数字" + }, + "id": "a53ae211-98d0-4606-a68b-fd5401c5dba5", + "originalId": "a53ae211-98d0-4606-a68b-fd5401c5dba5", + "label": "numberField1", + "code": "numberField1", + "bindingField": "numberField1", + "bindingPath": "numberField1", + "name": "数值1" + }, + { + "$type": "SimpleField", + "require": false, + "multiLanguage": false, + "defaultValue": "", + "editor": { + "$type": "DateBox", + "format": "'yyyy-MM-dd'" + }, + "readonly": false, + "path": "dateField", + "type": { + "$type": "DateType", + "displayName": "日期", + "name": "Date" + }, + "id": "293ef601-da8b-4950-9805-226415b6072b", + "code": "dateField", + "label": "dateField", + "bindingPath": "dateField", + "bindingField": "dateField", + "originalId": "293ef601-da8b-4950-9805-226415b6072b", + "name": "日期" + }, + { + "$type": "SimpleField", + "require": false, + "multiLanguage": false, + "defaultValue": "", + "editor": { + "$type": "DateBox", + "format": "'yyyy-MM-dd'" + }, + "readonly": false, + "path": "dateTimeField", + "type": { + "$type": "DateTimeType", + "displayName": "日期时间", + "name": "DateTime" + }, + "id": "7bd1e315-3b4d-4329-b2df-7a928142286e", + "code": "dateTimeField", + "label": "dateTimeField", + "bindingPath": "dateTimeField", + "bindingField": "dateTimeField", + "originalId": "7bd1e315-3b4d-4329-b2df-7a928142286e", + "name": "日期时间" + }, + { + "$type": "SimpleField", + "require": false, + "multiLanguage": false, + "defaultValue": "", + "editor": { + "$type": "NumericBox" + }, + "readonly": false, + "path": "floatField", + "type": { + "$type": "NumericType", + "displayName": "数字", + "precision": 2, + "length": 18, + "name": "Number" + }, + "id": "173f0950-1ac6-4452-a92c-76e0189c56d7", + "code": "floatField", + "label": "floatField", + "bindingPath": "floatField", + "bindingField": "floatField", + "originalId": "173f0950-1ac6-4452-a92c-76e0189c56d7", + "name": "浮点" + }, + { + "$type": "SimpleField", + "require": false, + "multiLanguage": false, + "defaultValue": "", + "editor": { + "$type": "MultiTextBox" + }, + "readonly": false, + "path": "noteField", + "type": { + "$type": "TextType", + "displayName": "文本", + "length": 0, + "name": "Text" + }, + "id": "ad758550-ac5e-4f04-85c2-107681f716a2", + "code": "noteField", + "label": "noteField", + "bindingPath": "noteField", + "bindingField": "noteField", + "originalId": "ad758550-ac5e-4f04-85c2-107681f716a2", + "name": "备注" + }, + { + "$type": "ComplexField", + "path": "AttachmentFile", + "type": { + "$type": "ObjectType", + "fields": [ + { + "$type": "SimpleField", + "require": false, + "multiLanguage": false, + "defaultValue": "", + "editor": { + "$type": "TextBox" + }, + "readonly": false, + "path": "AttachmentFile.AttachmentId", + "type": { + "$type": "StringType", + "displayName": "字符串", + "length": 36, + "name": "String" + }, + "id": "9d012316-4fd6-49ff-a18a-f466a068f905", + "code": "AttachmentId", + "label": "attachmentId", + "bindingPath": "attachmentFile.attachmentId", + "bindingField": "attachmentFile_AttachmentId", + "originalId": "ff73a947-4fd6-49ff-a18a-f466a068f905", + "name": "附件Id" + }, + { + "$type": "SimpleField", + "require": false, + "multiLanguage": false, + "defaultValue": "", + "editor": { + "$type": "TextBox" + }, + "readonly": false, + "path": "AttachmentFile.FileName", + "type": { + "$type": "StringType", + "displayName": "字符串", + "length": 512, + "name": "String" + }, + "id": "9d012316-1497-4526-86f9-290aab400e0b", + "code": "FileName", + "label": "fileName", + "bindingPath": "attachmentFile.fileName", + "bindingField": "attachmentFile_FileName", + "originalId": "026b07a9-1497-4526-86f9-290aab400e0b", + "name": "附件名称" + }, + { + "$type": "SimpleField", + "require": false, + "multiLanguage": false, + "defaultValue": "", + "editor": { + "$type": "NumericBox" + }, + "readonly": false, + "path": "AttachmentFile.FileSize", + "type": { + "$type": "NumericType", + "displayName": "数字", + "precision": 8, + "length": 128, + "name": "Number" + }, + "id": "9d012316-dd56-4cab-a54b-577a65f9eb6e", + "code": "FileSize", + "label": "fileSize", + "bindingPath": "attachmentFile.fileSize", + "bindingField": "attachmentFile_FileSize", + "originalId": "6369fb66-dd56-4cab-a54b-577a65f9eb6e", + "name": "附件大小" + }, + { + "$type": "SimpleField", + "require": false, + "multiLanguage": false, + "defaultValue": "", + "editor": { + "$type": "DateBox", + "format": "'yyyy-MM-dd'" + }, + "readonly": false, + "path": "AttachmentFile.FileCreateTime", + "type": { + "$type": "DateTimeType", + "displayName": "日期时间", + "name": "DateTime" + }, + "id": "9d012316-a1f5-4f6c-9c82-ddb10864c652", + "code": "FileCreateTime", + "label": "fileCreateTime", + "bindingPath": "attachmentFile.fileCreateTime", + "bindingField": "attachmentFile_FileCreateTime", + "originalId": "ff677864-a1f5-4f6c-9c82-ddb10864c652", + "name": "附件上传时间" + } + ], + "name": "AttachmentInfo9d01", + "displayName": "附件信息" + }, + "id": "9d012316-310e-43ec-8686-3b881f2c25a9", + "code": "AttachmentFile", + "label": "attachmentFile", + "bindingPath": "attachmentFile", + "bindingField": "attachmentFile", + "originalId": "9d012316-310e-43ec-8686-3b881f2c25a9", + "name": "附件文件" + }, + { + "$type": "SimpleField", + "require": false, + "multiLanguage": false, + "defaultValue": "", + "editor": { + "$type": "CheckBox" + }, + "readonly": false, + "path": "booleanField", + "type": { + "$type": "BooleanType", + "displayName": "布尔", + "name": "Boolean" + }, + "id": "24119450-10d9-485b-9ab2-cf225ec1c3bb", + "code": "booleanField", + "label": "booleanField", + "bindingPath": "booleanField", + "bindingField": "booleanField", + "originalId": "24119450-10d9-485b-9ab2-cf225ec1c3bb", + "name": "布尔" + }, + { + "$type": "ComplexField", + "label": "treeField", + "id": "2bd38907-b163-4b2f-85aa-bb0bd708b364", + "path": "treeField", + "type": { + "$type": "HierarchyType", + "fields": [ + { + "$type": "SimpleField", + "defaultValue": "", + "editor": { + "$type": "TextBox" + }, + "require": false, + "multiLanguage": false, + "readonly": false, + "label": "parentElement", + "id": "2bd38907-b2b6-4ff2-bcc4-5c4d5534d02c", + "path": "treeField.ParentElement", + "type": { + "$type": "StringType", + "displayName": "字符串", + "length": 36, + "name": "String" + }, + "originalId": "37a3529a-b2b6-4ff2-bcc4-5c4d5534d02c", + "code": "ParentElement", + "bindingField": "treeField_ParentElement", + "bindingPath": "treeField.parentElement", + "name": "父节点字段" + }, + { + "$type": "SimpleField", + "defaultValue": "", + "editor": { + "$type": "NumericBox" + }, + "require": false, + "multiLanguage": false, + "readonly": false, + "label": "sequence", + "id": "2bd38907-f606-4999-ae4a-1357b2970daa", + "path": "treeField.Sequence", + "type": { + "$type": "NumericType", + "displayName": "数字", + "precision": 0, + "length": 0, + "name": "Number" + }, + "originalId": "b5a7caf0-f606-4999-ae4a-1357b2970daa", + "code": "Sequence", + "bindingField": "treeField_Sequence", + "bindingPath": "treeField.sequence", + "name": "顺序号" + }, + { + "$type": "SimpleField", + "defaultValue": "", + "editor": { + "$type": "NumericBox" + }, + "require": false, + "multiLanguage": false, + "readonly": false, + "label": "layer", + "id": "2bd38907-09d1-42ed-9cd0-b823d9098a5d", + "path": "treeField.Layer", + "type": { + "$type": "NumericType", + "displayName": "数字", + "precision": 0, + "length": 0, + "name": "Number" + }, + "originalId": "592e17a0-09d1-42ed-9cd0-b823d9098a5d", + "code": "Layer", + "bindingField": "treeField_Layer", + "bindingPath": "treeField.layer", + "name": "级数" + }, + { + "$type": "SimpleField", + "defaultValue": "", + "editor": { + "$type": "CheckBox" + }, + "require": false, + "multiLanguage": false, + "readonly": false, + "label": "isDetail", + "id": "2bd38907-c6cd-46a5-b05f-9f25f02edf7f", + "path": "treeField.IsDetail", + "type": { + "$type": "BooleanType", + "displayName": "布尔", + "name": "Boolean" + }, + "originalId": "79aff7ce-c6cd-46a5-b05f-9f25f02edf7f", + "code": "IsDetail", + "bindingField": "treeField_IsDetail", + "bindingPath": "treeField.isDetail", + "name": "是否明细" + } + ], + "name": "ParentHierarchyInfo2bd3", + "displayName": "父节点分级信息" + }, + "originalId": "2bd38907-b163-4b2f-85aa-bb0bd708b364", + "code": "treeField", + "bindingField": "treeField", + "bindingPath": "treeField", + "name": "树字段" + }, + { + "$type": "SimpleField", + "defaultValue": "", + "editor": { + "$type": "EnumField" + }, + "require": false, + "multiLanguage": false, + "readonly": false, + "label": "enumField", + "id": "e77f1a5c-3e36-4551-a157-e4903cff80fd", + "path": "enumField", + "type": { + "$type": "EnumType", + "displayName": "枚举", + "valueType": { + "$type": "StringType", + "displayName": "字符串", + "length": 36, + "name": "String" + }, + "enumValues": [ + { + "disabled": false, + "name": "值1", + "value": "value1" + }, + { + "disabled": false, + "name": "值2", + "value": "value2" + } + ], + "name": "Enum" + }, + "originalId": "e77f1a5c-3e36-4551-a157-e4903cff80fd", + "code": "enumField", + "bindingField": "enumField", + "bindingPath": "enumField", + "name": "枚举字段" + } + ], + "primary": "id", + "name": "RuntimeTestBe", + "displayName": "运行时问题测试" + }, + "id": "359b32d4-58f0-4631-b52c-bf8b62e03e18", + "label": "runtimeTestBes", + "code": "RuntimeTestBe", + "name": "运行时问题测试" + } + ], + "sourceType": "vo", + "id": "11213af2-51cd-458a-882b-ef35209c7ba2", + "variables": [ + { + "$type": "SimpleField", + "multiLanguage": false, + "require": false, + "readonly": false, + "editor": { + "$type": "TextBox" + }, + "defaultValue": "", + "path": "bffSysFormConfigId", + "type": { + "$type": "StringType", + "length": 36, + "name": "String", + "displayName": "字符串" + }, + "id": "da48cef2-4219-4a33-8bf6-e0acdaf6d83b", + "originalId": "da48cef2-4219-4a33-8bf6-e0acdaf6d83b", + "label": "bffSysFormConfigId", + "code": "bffSysFormConfigId", + "bindingField": "bffSysFormConfigId", + "bindingPath": "bffSysFormConfigId", + "name": "表单流程配置" + } + ], + "code": "PCCardFormTest_frm", + "sourceUri": "api/mydev/angulartest/v1.0/PCCardFormTest_frm", + "extendProperties": { + "enableStdTimeFormat": true + }, + "name": "PC卡片测试_frm" + } + ], + "states": [], + "contents": [], + "stateMachines": [ + { + "id": "PCCardFormTest_state_machine", + "name": "PC卡片测试", + "uri": "05a3916d-1f67-4b30-8742-e50b496e08c8", + "code": "PCCardFormTest_frm", + "nameSpace": "Inspur.GS.MyDev.AngularTest.RuntimeTest.RuntimeTest.Front" + } + ], + "viewmodels": [ + { + "id": "root-viewmodel", + "code": "root-viewmodel", + "name": "运行时问题测试", + "fields": [], + "stateMachine": "PCCardFormTest_state_machine", + "serviceRefs": [], + "commands": [ + { + "id": "e05264fb-796d-43fb-b83b-9e2f3866c328", + "code": "Load1", + "name": "执行加载页面后初始方法", + "params": [ + { + "name": "action", + "shownName": "初始方法", + "value": "{UISTATE~/#{root-component}/action}", + "defaultValue": null + } + ], + "handlerName": "Load", + "cmpId": "8172a979-2c80-4637-ace7-b13074d3f393", + "shortcut": {}, + "extensions": [], + "isInvalid": false + }, + { + "id": "246a275c-88c9-4c8a-aa82-be6a950a4325", + "code": "LoadAndAdd1", + "name": "新增一条数据", + "params": [ + { + "name": "transitionAction", + "shownName": "状态机动作", + "value": "Create", + "defaultValue": null + } + ], + "handlerName": "LoadAndAdd", + "cmpId": "8172a979-2c80-4637-ace7-b13074d3f393", + "shortcut": {}, + "extensions": [], + "isInvalid": false + }, + { + "id": "70acc053-fa15-45be-851c-cf694e1bcaf7", + "code": "LoadAndView1", + "name": "查看一条数据", + "params": [ + { + "name": "id", + "shownName": "待查看数据的标识", + "value": "{UISTATE~/#{root-component}/id}", + "defaultValue": null + }, + { + "name": "transitionAction", + "shownName": "状态机动作", + "value": "Cancel", + "defaultValue": null + }, + { + "name": "transitionActionParamName", + "shownName": "状态迁移动作参数编号", + "value": "", + "defaultValue": null + } + ], + "handlerName": "LoadAndView", + "cmpId": "8172a979-2c80-4637-ace7-b13074d3f393", + "shortcut": {}, + "extensions": [], + "isInvalid": false + }, + { + "id": "3e72ee6f-8f7b-4f29-aa0e-5887f2861117", + "code": "LoadAndEdit1", + "name": "编辑当前数据", + "params": [ + { + "name": "id", + "shownName": "待编辑数据的标识", + "value": "{UISTATE~/#{root-component}/id}", + "defaultValue": null + }, + { + "name": "transitionAction", + "shownName": "状态机动作", + "value": "Edit", + "defaultValue": null + }, + { + "name": "transitionActionParamName", + "shownName": "状态迁移动作参数编号", + "value": "", + "defaultValue": null + } + ], + "handlerName": "LoadAndEdit", + "cmpId": "8172a979-2c80-4637-ace7-b13074d3f393", + "shortcut": {}, + "extensions": [], + "isInvalid": false + }, + { + "id": "f90aadfa-988c-4da5-a5db-1416c3333794", + "code": "Add1", + "name": "新增一条数据", + "params": [ + { + "name": "transitionAction", + "shownName": "状态机动作", + "value": "Create", + "defaultValue": null + } + ], + "handlerName": "Add", + "cmpId": "8172a979-2c80-4637-ace7-b13074d3f393", + "shortcut": {}, + "extensions": [], + "isInvalid": false + }, + { + "id": "a323e27b-b9c6-4848-93b9-f117403a94ff", + "code": "Edit1", + "name": "编辑当前数据", + "params": [ + { + "name": "transitionAction", + "shownName": "状态机动作", + "value": "Edit", + "defaultValue": null + } + ], + "handlerName": "Edit", + "cmpId": "8172a979-2c80-4637-ace7-b13074d3f393", + "shortcut": {}, + "extensions": [], + "isInvalid": false + }, + { + "id": "31b814db-01e4-407d-8fad-0f08dbb01999", + "code": "Save1", + "name": "保存变更", + "params": [ + { + "name": "transitionAction", + "shownName": "状态机动作", + "value": "Cancel", + "defaultValue": null + }, + { + "name": "successMsg", + "shownName": "保存成功提示信息", + "value": "", + "defaultValue": null + } + ], + "handlerName": "Save", + "cmpId": "8172a979-2c80-4637-ace7-b13074d3f393", + "shortcut": {}, + "extensions": [], + "isInvalid": false + }, + { + "id": "4f5ed2ec-8def-4a3c-8e7b-397ea93010e8", + "code": "Cancel1", + "name": "取消变更", + "params": [ + { + "name": "transitionAction", + "shownName": "状态机动作", + "value": "Cancel", + "defaultValue": null + } + ], + "handlerName": "Cancel", + "cmpId": "8172a979-2c80-4637-ace7-b13074d3f393", + "shortcut": {}, + "extensions": [], + "isInvalid": false + }, + { + "id": "c8504c24-33e8-487a-91ce-2218b803fe01", + "code": "ChangeItem1", + "name": "切换上一条或下一条1", + "params": [ + { + "name": "id", + "shownName": "当前数据标识", + "value": "{DATA~/#{root-component}/id}", + "defaultValue": null + }, + { + "name": "type", + "shownName": "切换类型(prev|next)", + "value": "prev", + "defaultValue": null + }, + { + "name": "transitionAction", + "shownName": "状态机动作", + "value": "Cancel", + "defaultValue": null + } + ], + "handlerName": "ChangeItem", + "cmpId": "8172a979-2c80-4637-ace7-b13074d3f393", + "shortcut": {}, + "extensions": [], + "isInvalid": false + }, + { + "id": "4a0cfb1a-1262-41a2-aeb9-c8edd5c09683", + "code": "ChangeItem2", + "name": "切换上一条或下一条2", + "params": [ + { + "name": "id", + "shownName": "当前数据标识", + "value": "{DATA~/#{root-component}/id}", + "defaultValue": null + }, + { + "name": "type", + "shownName": "切换类型(prev|next)", + "value": "next", + "defaultValue": null + }, + { + "name": "transitionAction", + "shownName": "状态机动作", + "value": "Cancel", + "defaultValue": null + } + ], + "handlerName": "ChangeItem", + "cmpId": "8172a979-2c80-4637-ace7-b13074d3f393", + "shortcut": {}, + "extensions": [], + "isInvalid": false + }, + { + "id": "0d34f338-b601-4716-8530-493b0752483b", + "code": "submitWithBizDefKey1", + "name": "提交审批", + "params": [ + { + "name": "dataId", + "shownName": "表单数据id", + "value": "{DATA~/#{basic-form-component}/id}", + "defaultValue": null + }, + { + "name": "bizDefKey", + "shownName": "流程分类id", + "value": "", + "defaultValue": null + }, + { + "name": "action", + "shownName": "迁移动作(可选)", + "value": "", + "defaultValue": null + } + ], + "handlerName": "submitWithBizDefKey", + "cmpId": "a7cb7d01-9df1-4a32-8202-99c9d0f4c339", + "shortcut": {}, + "extensions": [], + "isInvalid": false + }, + { + "id": "e492063e-a22d-4f23-8aed-7fe139843220", + "code": "cancelSubmitWithDataId1", + "name": "取消提交", + "params": [ + { + "name": "dataId", + "shownName": "表单数据id", + "value": "{DATA~/#{basic-form-component}/id}", + "defaultValue": null + }, + { + "name": "bizDefKey", + "shownName": "流程分类id", + "value": "", + "defaultValue": null + }, + { + "name": "action", + "shownName": "迁移动作(可选)", + "value": "", + "defaultValue": null + } + ], + "handlerName": "cancelSubmitWithDataId", + "cmpId": "a7cb7d01-9df1-4a32-8202-99c9d0f4c339", + "shortcut": {}, + "extensions": [], + "isInvalid": false + } + ], + "states": [ + { + "id": "da48cef2-4219-4a33-8bf6-e0acdaf6d83b", + "code": "bffSysFormConfigId", + "name": "表单流程配置", + "type": "String", + "category": "remote" + }, + { + "id": "e7bdd079-ca82-400c-bd82-fff8385571e5", + "code": "date", + "name": "date", + "type": "Date", + "category": "locale" + } + ], + "bindTo": "/", + "enableValidation": false, + "enableUnifiedSession": false + }, + { + "id": "basic-form-viewmodel", + "code": "basic-form-viewmodel", + "name": "运行时问题测试", + "fields": [ + { + "type": "Form", + "id": "668b9bfb-9c29-46b7-862d-b391bb7602e2", + "fieldName": "id", + "groupId": null, + "groupName": null, + "updateOn": "blur" + }, + { + "type": "Form", + "id": "30ba0d3e-e2d0-402f-a569-646b3b191297", + "fieldName": "version", + "groupId": null, + "groupName": null, + "updateOn": "blur" + }, + { + "type": "Form", + "id": "a54c2230-0101-468f-ae3f-40c76c0f06b0", + "fieldName": "billStatus_BillState", + "groupId": null, + "groupName": null, + "updateOn": "change", + "fieldSchema": { + "name": "状态1" + } + }, + { + "type": "Form", + "id": "4c02d802-ad8f-4da3-a430-c8a7f2162135", + "fieldName": "processInstance_ProcessInstance", + "groupId": null, + "groupName": null, + "updateOn": "blur" + }, + { + "type": "Form", + "id": "b86fa068-5985-419e-86f0-dbe862719192", + "fieldName": "code", + "groupId": null, + "groupName": null, + "updateOn": "blur", + "fieldSchema": { + "editor": { + "$type": "LookupEdit", + "dataSource": { + "uri": "RuntimeTestBe.code", + "displayName": "用户组织帮助", + "idField": "id", + "type": "ViewObject", + "helpCode": "UserOrgTest" + }, + "valueField": "id", + "textField": "name", + "displayType": "NavTreeList", + "mapFields": "", + "helpId": "89f18b11-dd4f-4cd1-92c9-83d8038ef799" + }, + "name": "编号", + "require": false, + "readonly": false + } + }, + { + "type": "Form", + "id": "61595c14-d06a-4f6c-977e-152aeb5f7b46", + "fieldName": "name", + "groupId": null, + "groupName": null, + "updateOn": "blur" + }, + { + "type": "Form", + "id": "a53ae211-98d0-4606-a68b-fd5401c5dba5", + "fieldName": "numberField1", + "groupId": null, + "groupName": null, + "updateOn": "blur", + "fieldSchema": { + "editor": { + "maxValue": 10 + } + } + }, + { + "type": "Form", + "id": "173f0950-1ac6-4452-a92c-76e0189c56d7", + "fieldName": "floatField", + "groupId": "", + "groupName": "", + "valueChanging": "", + "valueChanged": "", + "updateOn": "blur", + "fieldSchema": { + "editor": { + "minValue": null, + "maxValue": null + } + } + }, + { + "type": "Form", + "id": "e77f1a5c-3e36-4551-a157-e4903cff80fd", + "fieldName": "enumField", + "groupId": "", + "groupName": "", + "valueChanging": "", + "valueChanged": "", + "updateOn": "change", + "fieldSchema": {} + } + ], + "serviceRefs": [], + "commands": [], + "states": [], + "bindTo": "/", + "parent": "root-viewmodel", + "enableValidation": true + }, + { + "id": "childattachment1-egs8-component-viewmodel", + "code": "childattachment1-egs8-component-viewmodel", + "name": "子表附件1", + "bindTo": "/childAttachment1s", + "parent": "root-viewmodel", + "fields": [], + "commands": [ + { + "id": "childattachment1egs8AddFileRows-id", + "code": "childattachment1egs8AddFileRows", + "name": "批量添加文件数据", + "handlerName": "addFileRows", + "cmpId": "31c1022c-ab40-4e8d-bc31-85d539f1d36c", + "params": [ + { + "name": "fileInfoFieldPath", + "shownName": "文件信息字段路径", + "value": "/childAttachment1s/attachment" + } + ], + "shortcut": {}, + "extensions": [], + "isInvalid": false + }, + { + "id": "childattachment1egs8RemoveFileRows-id", + "code": "childattachment1egs8RemoveFileRows", + "name": "批量删除文件数据", + "handlerName": "removeFileRows", + "cmpId": "31c1022c-ab40-4e8d-bc31-85d539f1d36c", + "params": [ + { + "name": "fileInfoFieldPath", + "shownName": "文件信息字段路径", + "value": "/childAttachment1s/attachment" + } + ], + "shortcut": {}, + "extensions": [], + "isInvalid": false + } + ], + "states": [], + "enableValidation": true, + "pagination": { + "enable": false + }, + "allowEmpty": true + }, + { + "id": "runtimeitem1-vgy0-component-viewmodel", + "code": "runtimeitem1-vgy0-component-viewmodel", + "name": "{{'test' }}", + "bindTo": "/runtimeItem1s", + "parent": "root-viewmodel", + "fields": [ + { + "type": "Form", + "id": "3df94820-efa6-48a6-8d47-112ac47e3302", + "fieldName": "id", + "groupId": null, + "groupName": null, + "updateOn": "blur", + "fieldSchema": {} + }, + { + "type": "Form", + "id": "ee23f329-c1d4-489e-b691-b39b6cd12302", + "fieldName": "parentID", + "groupId": null, + "groupName": null, + "updateOn": "blur", + "fieldSchema": {} + }, + { + "type": "Form", + "id": "c864358f-cb3c-4b2b-960e-423754e28ea8", + "fieldName": "code", + "groupId": null, + "groupName": null, + "updateOn": "blur", + "fieldSchema": { + "require": true + } + }, + { + "type": "Form", + "id": "a6c40426-7529-45e3-8c53-4ae973f28c09", + "fieldName": "name", + "groupId": null, + "groupName": null, + "updateOn": "blur", + "fieldSchema": {} + }, + { + "type": "Form", + "id": "e4f457e3-add6-4df6-becd-26617dd1cb46", + "fieldName": "booleanField", + "groupId": null, + "groupName": null, + "updateOn": "change", + "fieldSchema": { + "editor": { + "$type": "CheckBox" + }, + "name": "布尔", + "require": false, + "readonly": false + } + } + ], + "commands": [ + { + "id": "3a2f8aee-605b-4789-a971-43ba31c60b61", + "code": "runtimeitem1vgy0AddItem1", + "name": "增加一条子表数据1", + "params": [], + "handlerName": "AddItem", + "cmpId": "8172a979-2c80-4637-ace7-b13074d3f393", + "shortcut": {}, + "extensions": [], + "isInvalid": false + }, + { + "id": "5a844e51-0196-44e6-ac4c-e9c4d235a894", + "code": "runtimeitem1vgy0RemoveItem1", + "name": "删除一条子表数据1", + "params": [ + { + "name": "id", + "shownName": "待删除子表数据的标识", + "value": "{DATA~/#{runtimeitem1-vgy0-component}/runtimeItem1s/id}" + } + ], + "handlerName": "RemoveItem", + "cmpId": "8172a979-2c80-4637-ace7-b13074d3f393", + "shortcut": {}, + "extensions": [], + "isInvalid": false + } + ], + "states": [], + "enableValidation": true, + "pagination": { + "enable": false + }, + "allowEmpty": true + } + ], + "components": [ + { + "id": "root-component", + "type": "Component", + "viewModel": "root-viewmodel", + "componentType": "Frame", + "onInit": "Load1", + "contents": [ + { + "id": "root-layout", + "type": "ContentContainer", + "appearance": { + "class": "f-page f-page-card f-page-is-mainsubcard" + }, + "size": null, + "contents": [ + { + "id": "page-header", + "type": "ContentContainer", + "appearance": { + "class": "f-page-header" + }, + "size": null, + "contents": [ + { + "id": "header-nav", + "type": "ContentContainer", + "appearance": { + "class": "f-page-header-base" + }, + "size": null, + "contents": [ + { + "id": "header-title-container", + "type": "ContentContainer", + "appearance": { + "class": "f-title" + }, + "size": null, + "contents": [ + { + "id": "page-header-title", + "type": "HtmlTemplate", + "html": "

{{'title'|lang:lang:'PC卡片测试'}}

" + } + ], + "visible": true, + "isScrollspyContainer": false, + "isLikeCardContainer": false + }, + { + "id": "page-header-toolbar", + "type": "ToolBar", + "appearance": { + "class": "col-7 f-toolbar" + }, + "size": null, + "items": [ + { + "id": "button-add", + "type": "ToolBarItem", + "text": "新增", + "appearance": { + "class": "btn-primary" + }, + "disable": "!viewModel.stateMachine['canAdd']", + "visible": true, + "click": "Add1", + "visibleControlledByRules": true, + "disableControlledByRules": true, + "items": [], + "usageMode": "button", + "modalConfig": null + }, + { + "id": "button-edit", + "type": "ToolBarItem", + "text": "编辑", + "appearance": null, + "disable": "!viewModel.stateMachine['canEdit']", + "visible": true, + "click": "Edit1", + "visibleControlledByRules": true, + "disableControlledByRules": true, + "items": [], + "usageMode": "button", + "modalConfig": null + }, + { + "id": "button-save", + "type": "ToolBarItem", + "text": "保存", + "appearance": null, + "disable": "!viewModel.stateMachine['canSave']", + "visible": true, + "click": "Save1", + "visibleControlledByRules": true, + "disableControlledByRules": true, + "items": [], + "usageMode": "button", + "modalConfig": null + }, + { + "id": "button-cancel", + "type": "ToolBarItem", + "text": "取消", + "appearance": null, + "disable": "!viewModel.stateMachine['canCancel']", + "visible": true, + "click": "Cancel1", + "visibleControlledByRules": false, + "disableControlledByRules": false, + "items": [], + "usageMode": "button", + "modalConfig": null + }, + { + "id": "button-approve", + "type": "ToolBarItem", + "appearance": null, + "disable": "!viewModel.stateMachine['canApprove']", + "text": "提交审批", + "visible": true, + "click": "submitWithBizDefKey1", + "visibleControlledByRules": true, + "disableControlledByRules": true, + "items": [], + "usageMode": "button", + "modalConfig": null + }, + { + "id": "button-cancel-approve", + "type": "ToolBarItem", + "appearance": null, + "disable": "!viewModel.stateMachine['canCancelApprove']", + "text": "取消提交审批", + "visible": true, + "click": "cancelSubmitWithDataId1", + "visibleControlledByRules": true, + "disableControlledByRules": true, + "items": [], + "usageMode": "button", + "modalConfig": null + } + ], + "visible": true, + "buttonSize": "default", + "popDirection": "default" + } + ], + "visible": true, + "isScrollspyContainer": false, + "isLikeCardContainer": false + } + ], + "visible": true, + "isScrollspyContainer": false, + "isLikeCardContainer": false + }, + { + "id": "main-container", + "type": "ContentContainer", + "appearance": { + "class": "f-page-main" + }, + "size": null, + "contents": [ + { + "id": "like-card-container", + "type": "ContentContainer", + "appearance": { + "class": "f-struct-like-card" + }, + "size": null, + "contents": [ + { + "id": "basic-form-component-ref", + "type": "ComponentRef", + "component": "basic-form-component", + "visible": true + }, + { + "id": "container_8036", + "type": "ContentContainer", + "appearance": { + "class": "f-struct-wrapper" + }, + "visible": true, + "contents": [ + { + "id": "section_8036", + "type": "Section", + "appearance": { + "class": "f-section-in-mainsubcard" + }, + "visible": true, + "mainTitle": "运行时明细1", + "subTitle": "", + "headerClass": "", + "titleClass": "", + "extendedHeaderAreaClass": "", + "toolbarClass": "", + "extendedAreaClass": "", + "contentTemplateClass": "", + "fill": false, + "expanded": true, + "enableMaximize": false, + "enableAccordion": false, + "accordionMode": "default", + "showHeader": true, + "headerTemplate": "", + "titleTemplate": "", + "extendedHeaderAreaTemplate": "", + "toolbarTemplate": "", + "extendedAreaTemplate": "", + "contents": [ + { + "id": "runtimeitem1-vgy0-component-ref", + "type": "ComponentRef", + "component": "runtimeitem1-vgy0-component", + "visible": true + } + ], + "isScrollSpyItem": false, + "toolbar": { + "type": "SectionToolbar", + "position": "inHead", + "contents": [ + { + "id": "runtimeitem1-vgy0-component-button-add", + "type": "SectionToolbarItem", + "title": "新增", + "disable": "!viewModel.stateMachine['canAddDetail']", + "appearance": { + "class": "btn btn-secondary f-btn-ml" + }, + "visible": true, + "click": "root-viewModel.runtimeitem1-vgy0-component-viewmodel.runtimeitem1vgy0AddItem1", + "items": [], + "split": false, + "visibleControlledByRules": true, + "disableControlledByRules": true + }, + { + "id": "runtimeitem1-vgy0-component-button-remove", + "type": "SectionToolbarItem", + "title": "删除", + "disable": "!viewModel.stateMachine['canRemoveDetail']", + "appearance": { + "class": "btn btn-secondary f-btn-ml" + }, + "visible": true, + "click": "root-viewModel.runtimeitem1-vgy0-component-viewmodel.runtimeitem1vgy0RemoveItem1", + "items": [], + "split": false, + "visibleControlledByRules": true, + "disableControlledByRules": true + } + ] + } + } + ], + "isScrollspyContainer": false, + "isLikeCardContainer": false + }, + { + "id": "childattachment1-egs8-component-ref", + "type": "ComponentRef", + "component": "childattachment1-egs8-component", + "visible": true + } + ], + "visible": true, + "draggable": false, + "isLikeCardContainer": true, + "isScrollspyContainer": false + } + ], + "visible": true, + "isScrollspyContainer": false, + "isLikeCardContainer": false + } + ], + "visible": true, + "isScrollspyContainer": false, + "isLikeCardContainer": false + } + ], + "appearance": null, + "visible": true, + "afterViewInit": null + }, + { + "id": "basic-form-component", + "type": "Component", + "viewModel": "basic-form-viewmodel", + "componentType": "form-col-4", + "appearance": { + "class": "f-struct-wrapper" + }, + "onInit": "", + "contents": [ + { + "id": "basic-form-section", + "type": "Section", + "appearance": { + "class": "f-section-form f-section-in-mainsubcard" + }, + "visible": true, + "mainTitle": "基本信息", + "subTitle": "", + "headerClass": "", + "titleClass": "", + "extendedHeaderAreaClass": "", + "toolbarClass": "", + "extendedAreaClass": "", + "contentTemplateClass": "", + "fill": false, + "expanded": true, + "enableMaximize": false, + "enableAccordion": true, + "accordionMode": "default", + "showHeader": true, + "headerTemplate": "", + "titleTemplate": "", + "extendedHeaderAreaTemplate": "", + "toolbarTemplate": "", + "extendedAreaTemplate": "", + "contents": [ + { + "id": "basic-form-layout", + "type": "Form", + "appearance": { + "class": "f-form-layout farris-form farris-form-controls-inline" + }, + "size": null, + "contents": [ + { + "id": "id_668b9bfb_9kgu", + "type": "TextBox", + "titleSourceType": "static", + "title": "主键", + "appearance": { + "class": "col-12 col-md-6 col-xl-3 col-el-2" + }, + "size": null, + "binding": { + "type": "Form", + "path": "id", + "field": "668b9bfb-9c29-46b7-862d-b391bb7602e2", + "fullPath": "ID" + }, + "readonly": "!viewModel.stateMachine['editable']", + "require": true, + "disable": false, + "placeHolder": "", + "format": null, + "validation": null, + "value": null, + "maxLength": 36, + "linkedLabelEnabled": false, + "linkedLabelClick": null, + "visible": true, + "holdPlace": false, + "isTextArea": true, + "isPassword": false, + "tabindex": -1, + "hasDefaultFocus": false, + "focusState": null, + "titleWidth": null, + "enableTips": true, + "path": "id", + "visibleControlledByRules": true, + "readonlyControlledByRules": false, + "requireControlledByRules": false, + "enableAppend": false, + "inputAppendType": "button", + "inputAppendDisabled": false, + "formatValidation": { + "type": "none", + "expression": "", + "message": "" + }, + "autoHeight": false, + "maxHeight": 500 + }, + { + "id": "version_30ba0d3e_s8rx", + "type": "DateBox", + "titleSourceType": "static", + "title": "版本", + "controlSource": "Farris", + "appearance": { + "class": "col-12 col-md-6 col-xl-3 col-el-2" + }, + "size": null, + "binding": { + "type": "Form", + "path": "version", + "field": "30ba0d3e-e2d0-402f-a569-646b3b191297", + "fullPath": "Version" + }, + "readonly": "!viewModel.stateMachine['editable']", + "require": false, + "disable": false, + "placeHolder": "", + "validation": null, + "value": null, + "editable": true, + "dateRange": false, + "showTime": true, + "showType": 1, + "dateFormat": "yyyy-MM-dd HH:mm:ss", + "returnFormat": "yyyy-MM-dd HH:mm:ss", + "maxValue": null, + "minValue": null, + "disableDates": [], + "showWeekNumbers": false, + "dateRangeDatesDelimiter": "~", + "shortcuts": [], + "fieldType": "DateTime", + "useDefault": false, + "holdPlace": false, + "linkedLabelEnabled": false, + "linkedLabelClick": null, + "visible": true, + "isTextArea": true, + "tabindex": -1, + "hasDefaultFocus": false, + "focusState": null, + "titleWidth": null, + "localization": false, + "path": "version", + "localizationType": "DateTime", + "visibleControlledByRules": true, + "readonlyControlledByRules": false, + "requireControlledByRules": false, + "enableAppend": false, + "inputAppendType": "button", + "inputAppendDisabled": false, + "autoHeight": false, + "maxHeight": 500, + "hourStep": 1, + "minuteStep": 1, + "secondStep": 1, + "firstDayOfWeek": "mo" + }, + { + "id": "billStatus_BillState_a54c2230_pl5h", + "type": "EnumField", + "titleSourceType": "static", + "title": "状态1", + "controlSource": "Farris", + "appearance": { + "class": "col-12 col-md-6 col-xl-3 col-el-2" + }, + "size": null, + "binding": { + "type": "Form", + "path": "billStatus_BillState", + "field": "a54c2230-0101-468f-ae3f-40c76c0f06b0", + "fullPath": "BillStatus.BillState" + }, + "placeHolder": "", + "readonly": "!viewModel.stateMachine['editable']", + "require": false, + "disable": false, + "enumData": [ + { + "disabled": false, + "name": "制单", + "value": "Billing" + }, + { + "disabled": false, + "name": "提交审批", + "value": "SubmitApproval" + }, + { + "disabled": false, + "name": "审批通过", + "value": "Approved" + }, + { + "disabled": false, + "name": "审批不通过", + "value": "ApprovalNotPassed" + } + ], + "holdPlace": false, + "isTextArea": true, + "linkedLabelEnabled": false, + "linkedLabelClick": null, + "visible": true, + "tabindex": -1, + "hasDefaultFocus": false, + "focusState": null, + "titleWidth": null, + "idField": "value", + "textField": "name", + "multiSelect": false, + "uri": "", + "autoWidth": true, + "enableClear": false, + "onClear": null, + "valueChanged": null, + "onShown": null, + "onHidden": null, + "editable": false, + "enableCancelSelected": false, + "beforeShow": null, + "beforeHide": null, + "dataSourceType": "static", + "path": "billStatus.billState", + "visibleControlledByRules": true, + "readonlyControlledByRules": false, + "requireControlledByRules": false, + "viewType": "text", + "noSearch": false, + "maxSearchLength": null, + "enableAppend": false, + "inputAppendType": "button", + "inputAppendDisabled": false, + "autoHeight": false, + "maxHeight": 500, + "showDisabledItem": true, + "labelAutoOverflow": false, + "updateOn": "change" + }, + { + "id": "processInstance_ProcessInstance_4c02d802_v27r", + "type": "TextBox", + "titleSourceType": "static", + "title": "流程实例", + "appearance": { + "class": "col-12 col-md-6 col-xl-3 col-el-2" + }, + "size": null, + "binding": { + "type": "Form", + "path": "processInstance_ProcessInstance", + "field": "4c02d802-ad8f-4da3-a430-c8a7f2162135", + "fullPath": "ProcessInstance.ProcessInstance" + }, + "readonly": "!viewModel.stateMachine['editable']", + "require": false, + "disable": false, + "placeHolder": "", + "format": null, + "validation": null, + "value": null, + "maxLength": 36, + "linkedLabelEnabled": false, + "linkedLabelClick": null, + "visible": true, + "holdPlace": false, + "isTextArea": true, + "isPassword": false, + "tabindex": -1, + "hasDefaultFocus": false, + "focusState": null, + "titleWidth": null, + "enableTips": true, + "path": "processInstance.processInstance", + "visibleControlledByRules": true, + "readonlyControlledByRules": false, + "requireControlledByRules": false, + "enableAppend": false, + "inputAppendType": "button", + "inputAppendDisabled": false, + "formatValidation": { + "type": "none", + "expression": "", + "message": "" + }, + "autoHeight": false, + "maxHeight": 500 + }, + { + "id": "code_b86fa068_y9fz", + "type": "LookupEdit", + "titleSourceType": "static", + "title": "编号", + "appearance": { + "class": "col-12 col-md-6 col-xl-3 col-el-2" + }, + "size": null, + "binding": { + "type": "Form", + "path": "code", + "field": "b86fa068-5985-419e-86f0-dbe862719192", + "fullPath": "code" + }, + "readonly": "!viewModel.stateMachine['editable']", + "require": false, + "disable": false, + "placeHolder": "", + "dataSource": { + "uri": "RuntimeTestBe.code", + "displayName": "用户组织帮助", + "idField": "id", + "type": "ViewObject", + "helpCode": "UserOrgTest" + }, + "textField": "name", + "valueField": "id", + "displayType": "NavTreeList", + "multiSelect": false, + "pageList": "10,20,30,50", + "pageSize": 20, + "pageIndex": null, + "pagination": null, + "dialogTitle": "", + "showMaxButton": null, + "showCloseButton": null, + "resizable": null, + "buttonAlign": null, + "mapFields": "", + "lookupStyle": "popup", + "holdPlace": false, + "isTextArea": true, + "useTip": false, + "useFavorite": true, + "noSearch": false, + "maxSearchLength": 36, + "enableToSelect": true, + "isRecordSize": false, + "lookupPicking": null, + "lookupPicked": null, + "linkedLabelEnabled": false, + "linkedLabelClick": null, + "visible": true, + "enableExtendLoadMethod": true, + "editable": false, + "enableFullTree": false, + "enableClear": true, + "clear": null, + "loadTreeDataType": "default", + "expandLevel": -1, + "enableCascade": false, + "cascadeStatus": "enable", + "onShown": null, + "onHidden": null, + "beforeShow": null, + "beforeHide": null, + "tabindex": -1, + "hasDefaultFocus": false, + "focusState": null, + "titleWidth": null, + "textAlign": "left", + "useExtendInfo": false, + "extInfoFields": null, + "extInfoFormatter": null, + "customFormatter": null, + "customNavFormatter": null, + "selectFirstInNav": false, + "loadDataWhenOpen": true, + "onlySelectLeaf": "default", + "viewType": "text", + "autoHeight": false, + "maxHeight": 500, + "autoWidth": true, + "showHeader": true, + "beforeSelectData": null, + "enableAppend": false, + "inputAppendType": "button", + "inputAppendDisabled": false, + "enableContextMenu": false, + "quickSelect": { + "enable": false, + "showItemsCount": 10, + "formatter": null, + "showMore": true + }, + "treeToList": false, + "navTreeToList": false, + "showNavigation": true, + "showCascadeControl": true, + "linkConfig": { + "enable": false, + "config": [] + }, + "showSelected": false, + "useNewLayout": false, + "enableMultiFieldSearch": false, + "separator": ",", + "path": "code", + "visibleControlledByRules": true, + "readonlyControlledByRules": true, + "requireControlledByRules": true, + "isRTControl": false, + "labelAutoOverflow": false, + "updateOn": "blur", + "helpId": "89f18b11-dd4f-4cd1-92c9-83d8038ef799" + }, + { + "id": "name_61595c14_rx8x", + "type": "TextBox", + "titleSourceType": "static", + "title": "名称", + "appearance": { + "class": "col-12 col-md-6 col-xl-3 col-el-2" + }, + "size": null, + "binding": { + "type": "Form", + "path": "name", + "field": "61595c14-d06a-4f6c-977e-152aeb5f7b46", + "fullPath": "name" + }, + "readonly": "!viewModel.stateMachine['editable']", + "require": false, + "disable": false, + "placeHolder": "", + "format": null, + "validation": null, + "value": null, + "maxLength": 36, + "linkedLabelEnabled": false, + "linkedLabelClick": null, + "visible": true, + "holdPlace": false, + "isTextArea": true, + "isPassword": false, + "tabindex": -1, + "hasDefaultFocus": false, + "focusState": null, + "titleWidth": null, + "enableTips": true, + "path": "name", + "visibleControlledByRules": true, + "readonlyControlledByRules": true, + "requireControlledByRules": true, + "enableAppend": false, + "inputAppendType": "button", + "inputAppendDisabled": false, + "formatValidation": { + "type": "none", + "expression": "", + "message": "" + }, + "autoHeight": false, + "maxHeight": 500, + "labelAutoOverflow": false, + "updateOn": "blur" + }, + { + "id": "enumField_e77f1a5c_to85", + "type": "EnumField", + "titleSourceType": "static", + "title": "枚举字段", + "controlSource": "Farris", + "appearance": { + "class": "col-12 col-md-6 col-xl-3 col-el-2" + }, + "size": null, + "binding": { + "type": "Form", + "path": "enumField", + "field": "e77f1a5c-3e36-4551-a157-e4903cff80fd", + "fullPath": "enumField" + }, + "placeHolder": "", + "readonly": "!viewModel.stateMachine['editable']", + "require": false, + "disable": false, + "enumData": [ + { + "disabled": false, + "name": "值1", + "value": "value1" + }, + { + "disabled": false, + "name": "值2", + "value": "value2" + } + ], + "idField": "value", + "textField": "name", + "holdPlace": false, + "isTextArea": true, + "linkedLabelEnabled": false, + "linkedLabelClick": null, + "visible": true, + "tabindex": -1, + "hasDefaultFocus": false, + "focusState": null, + "titleWidth": null, + "multiSelect": false, + "uri": "", + "autoWidth": true, + "enableClear": false, + "onClear": null, + "valueChanged": null, + "onShown": null, + "onHidden": null, + "editable": false, + "enableCancelSelected": false, + "beforeShow": null, + "beforeHide": null, + "dataSourceType": "static", + "viewType": "text", + "noSearch": false, + "maxSearchLength": null, + "enableAppend": false, + "inputAppendType": "button", + "inputAppendDisabled": false, + "autoHeight": false, + "maxHeight": 500, + "showDisabledItem": true, + "path": "enumField", + "visibleControlledByRules": true, + "readonlyControlledByRules": true, + "requireControlledByRules": true, + "labelAutoOverflow": false, + "updateOn": "change", + "fieldValueChanging": "", + "fieldValueChanged": "" + }, + { + "id": "numberField1_a53ae211_gle2", + "type": "NumericBox", + "titleSourceType": "static", + "title": "数值1", + "controlSource": "Farris", + "appearance": { + "class": "col-12 col-md-6 col-xl-3 col-el-2" + }, + "size": null, + "binding": { + "type": "Form", + "path": "numberField1", + "field": "a53ae211-98d0-4606-a68b-fd5401c5dba5", + "fullPath": "numberField1" + }, + "readonly": "!viewModel.stateMachine['editable']", + "require": false, + "disable": false, + "placeHolder": "", + "textAlign": "left", + "precisionSourceType": "static", + "precision": 0, + "validation": null, + "maxValue": 10, + "minValue": null, + "step": 1, + "useThousands": true, + "formatter": null, + "parser": null, + "canNull": true, + "bigNumber": false, + "maxLength": 0, + "holdPlace": false, + "linkedLabelEnabled": false, + "linkedLabelClick": null, + "visible": true, + "isTextArea": true, + "tabindex": -1, + "hasDefaultFocus": false, + "focusState": null, + "titleWidth": null, + "showZero": true, + "showButton": true, + "path": "numberField1", + "visibleControlledByRules": true, + "readonlyControlledByRules": true, + "requireControlledByRules": true, + "localization": false, + "enableAppend": false, + "inputAppendType": "button", + "inputAppendDisabled": false, + "autoHeight": false, + "maxHeight": 500, + "labelAutoOverflow": false, + "updateOn": "blur" + }, + { + "id": "floatField_173f0950_91tt", + "type": "NumericBox", + "titleSourceType": "static", + "title": "浮点", + "controlSource": "Farris", + "appearance": { + "class": "col-12 col-md-6 col-xl-3 col-el-2" + }, + "size": null, + "binding": { + "type": "Form", + "path": "floatField", + "field": "173f0950-1ac6-4452-a92c-76e0189c56d7", + "fullPath": "floatField" + }, + "readonly": "!viewModel.stateMachine['editable']", + "require": false, + "disable": false, + "placeHolder": "", + "textAlign": "left", + "precisionSourceType": "static", + "precision": 2, + "validation": null, + "maxValue": null, + "minValue": null, + "step": 1, + "useThousands": true, + "formatter": null, + "parser": null, + "canNull": true, + "bigNumber": false, + "maxLength": 18, + "holdPlace": false, + "linkedLabelEnabled": false, + "linkedLabelClick": null, + "visible": true, + "isTextArea": true, + "tabindex": -1, + "hasDefaultFocus": false, + "focusState": null, + "titleWidth": null, + "localization": false, + "showZero": true, + "showButton": true, + "enableAppend": false, + "inputAppendType": "button", + "inputAppendDisabled": false, + "autoHeight": false, + "maxHeight": 500, + "path": "floatField", + "visibleControlledByRules": true, + "readonlyControlledByRules": true, + "requireControlledByRules": true, + "labelAutoOverflow": false, + "updateOn": "blur" + } + ], + "controlsInline": true, + "formAutoIntl": true, + "visible": true, + "labelAutoOverflow": false + } + ], + "isScrollSpyItem": false, + "toolbar": { + "type": "SectionToolbar", + "position": "inHead", + "contents": [] + } + } + ], + "visible": true, + "afterViewInit": null + }, + { + "id": "childattachment1-egs8-component", + "type": "Component", + "viewModel": "childattachment1-egs8-component-viewmodel", + "componentType": "attachmentPanel", + "appearance": { + "class": "f-struct-wrapper" + }, + "visible": true, + "onInit": null, + "afterViewInit": null, + "contents": [ + { + "id": "childattachment1-egs8-section", + "type": "Section", + "appearance": { + "class": "f-section-form f-section-in-mainsubcard" + }, + "visible": true, + "mainTitle": "子表附件1", + "subTitle": "", + "headerClass": "", + "titleClass": "", + "extendedHeaderAreaClass": "", + "toolbarClass": "", + "extendedAreaClass": "", + "contentTemplateClass": "", + "fill": false, + "expanded": true, + "enableMaximize": false, + "enableAccordion": true, + "accordionMode": "default", + "showHeader": true, + "headerTemplate": "", + "titleTemplate": "", + "extendedHeaderAreaTemplate": "", + "toolbarTemplate": "", + "extendedAreaTemplate": "", + "contents": [ + { + "id": "childattachment1-egs8-file", + "type": "FileUploadPreview", + "appearance": { + "class": "d-block mx-3" + }, + "uploadSelectText": "上传附件", + "uploadEnableMulti": true, + "uploadVisible": "viewModel.stateMachine && viewModel.stateMachine['editable']", + "uploadDisabled": "viewModel.stateMachine && !viewModel.stateMachine['editable']", + "uploadOptions": { + "maxUploads": 3, + "maxFileSize": 12, + "allowedContentTypes": [ + ".pdf", + ".jpg", + ".png", + ".doc", + ".docx", + ".xls", + ".xlsx", + ".ppt", + ".pptx", + ".txt", + ".DOC", + ".DOCX", + ".XLS", + ".XLSX", + ".PPT", + ".PPTX", + ".wps", + ".et" + ], + "notAllowedCharsInFileName": null + }, + "rootId": "default-root", + "formId": "viewModel.bindingData && viewModel.bindingData['id']", + "enableUploadedCount": true, + "previewVisible": true, + "previewReadonly": "viewModel.stateMachine && !viewModel.stateMachine['editable']", + "previewEnableMulti": true, + "previewEnableRename": true, + "previewDefaultRename": "", + "previewShowType": "list", + "fieldIdKey": { + "type": "Form", + "path": "attachment_AttachmentId", + "field": "24040962-4fd6-49ff-a18a-f466a068f905", + "fullPath": "attachment.AttachmentId", + "bindingPath": "attachment.attachmentId" + }, + "fileNameKey": { + "type": "Form", + "path": "attachment_FileName", + "field": "24040962-1497-4526-86f9-290aab400e0b", + "fullPath": "attachment.FileName", + "bindingPath": "attachment.fileName" + }, + "fUploadDoneEvent": "childattachment1egs8AddFileRows", + "fUploadRemovedEvent": null, + "enableOrder": false, + "fileSortOrderKey": { + "type": "Form", + "path": "attachment_FileCreateTime", + "field": "24040962-a1f5-4f6c-9c82-ddb10864c652", + "fullPath": "attachment.FileCreateTime", + "bindingPath": "attachment.fileCreateTime" + }, + "fileRemoveEvent": "childattachment1egs8RemoveFileRows", + "contentFill": false, + "visible": true, + "showFileList": true, + "showHeader": true, + "disabled": false, + "noDownload": false, + "noPreview": false, + "previewEnableEditFile": false, + "previewEditFileDocMode": "normal", + "previewShowComments": false, + "previewDateFormat": "yyyy-MM-dd", + "enablePreviewColumns": false, + "enableSliceUpload": false, + "enablePreviewFileList": false, + "chunkSize": 1, + "orderType": "desc", + "noDelete": "default", + "previewModeless": false, + "attachmentFieldId": "attachment", + "allowEmpty": true + } + ], + "isScrollSpyItem": false, + "toolbar": { + "type": "SectionToolbar", + "position": "inHead", + "contents": [] + } + } + ] + }, + { + "id": "runtimeitem1-vgy0-component", + "type": "Component", + "viewModel": "runtimeitem1-vgy0-component-viewmodel", + "componentType": "dataGrid", + "appearance": { + "class": "f-struct-is-subgrid" + }, + "visible": true, + "onInit": null, + "afterViewInit": null, + "contents": [ + { + "id": "runtimeitem1-vgy0-component-layout", + "type": "ContentContainer", + "appearance": { + "class": "f-grid-is-sub f-utils-flex-column" + }, + "visible": true, + "contents": [ + { + "id": "runtimeitem1-vgy0-dataGrid", + "type": "DataGrid", + "controlSource": "Farris", + "appearance": { + "class": "f-component-grid f-utils-fill" + }, + "disable": false, + "dataSource": "runtimeItem1s", + "fields": [ + { + "id": "id_3df94820_clzf", + "type": "GridField", + "controlSource": "Farris", + "caption": "主键", + "binding": { + "type": "Form", + "path": "id", + "field": "3df94820-efa6-48a6-8d47-112ac47e3302", + "fullPath": "ID" + }, + "appearance": null, + "size": { + "width": 120 + }, + "readonly": false, + "dataField": "id", + "dataType": "string", + "displayTemplate": null, + "captionTemplate": null, + "editor": { + "id": "id_3df94820_67wq", + "type": "TextBox", + "titleSourceType": "static", + "title": "主键", + "appearance": { + "class": "" + }, + "size": null, + "binding": { + "type": "Form", + "path": "id", + "field": "3df94820-efa6-48a6-8d47-112ac47e3302", + "fullPath": "ID" + }, + "require": true, + "disable": false, + "placeHolder": "", + "format": null, + "validation": null, + "value": null, + "maxLength": 36, + "linkedLabelEnabled": false, + "linkedLabelClick": null, + "visible": true, + "holdPlace": false, + "isTextArea": true, + "isPassword": false, + "tabindex": -1, + "hasDefaultFocus": false, + "focusState": null, + "titleWidth": null, + "enableTips": true, + "path": "id", + "enableAppend": false, + "inputAppendType": "button", + "inputAppendDisabled": false, + "formatValidation": { + "type": "none", + "expression": "", + "message": "" + }, + "autoHeight": false, + "maxHeight": 500, + "requireControlledByRules": false, + "updateOn": "blur" + }, + "draggable": false, + "frozen": "none", + "sortable": true, + "enumData": null, + "idField": "value", + "textField": "name", + "aggregate": { + "type": "none", + "formatter": { + "type": "none" + } + }, + "groupAggregate": { + "type": "none", + "formatter": { + "type": "none" + } + }, + "linkedLabelEnabled": false, + "linkedLabelClick": null, + "textAlign": "left", + "hAlign": "left", + "vAlign": "middle", + "formatter": { + "type": "none" + }, + "showTips": false, + "tipContent": null, + "multiLanguage": false, + "visible": true, + "enableFilter": false, + "headerStyler": "", + "styler": "", + "localization": false, + "allowGrouping": true, + "tipMode": "auto", + "captionTipContent": "", + "captionTipStyler": "", + "enableBatchEdit": false, + "localizationType": "Date", + "visibleControlledByRules": false, + "readonlyControlledByRules": false + }, + { + "id": "parentID_ee23f329_uzdm", + "type": "GridField", + "controlSource": "Farris", + "caption": "上级对象主键", + "binding": { + "type": "Form", + "path": "parentID", + "field": "ee23f329-c1d4-489e-b691-b39b6cd12302", + "fullPath": "ParentID" + }, + "appearance": null, + "size": { + "width": 120 + }, + "readonly": false, + "dataField": "parentID", + "dataType": "string", + "displayTemplate": null, + "captionTemplate": null, + "editor": { + "id": "parentID_ee23f329_p92l", + "type": "TextBox", + "titleSourceType": "static", + "title": "上级对象主键", + "appearance": { + "class": "" + }, + "size": null, + "binding": { + "type": "Form", + "path": "parentID", + "field": "ee23f329-c1d4-489e-b691-b39b6cd12302", + "fullPath": "ParentID" + }, + "require": true, + "disable": false, + "placeHolder": "", + "format": null, + "validation": null, + "value": null, + "maxLength": 36, + "linkedLabelEnabled": false, + "linkedLabelClick": null, + "visible": true, + "holdPlace": false, + "isTextArea": true, + "isPassword": false, + "tabindex": -1, + "hasDefaultFocus": false, + "focusState": null, + "titleWidth": null, + "enableTips": true, + "path": "parentID", + "enableAppend": false, + "inputAppendType": "button", + "inputAppendDisabled": false, + "formatValidation": { + "type": "none", + "expression": "", + "message": "" + }, + "autoHeight": false, + "maxHeight": 500, + "requireControlledByRules": false + }, + "draggable": false, + "frozen": "none", + "sortable": true, + "enumData": null, + "idField": "value", + "textField": "name", + "aggregate": { + "type": "none", + "formatter": { + "type": "none" + } + }, + "groupAggregate": { + "type": "none", + "formatter": { + "type": "none" + } + }, + "linkedLabelEnabled": false, + "linkedLabelClick": null, + "textAlign": "left", + "hAlign": "left", + "vAlign": "middle", + "formatter": { + "type": "none" + }, + "showTips": false, + "tipContent": null, + "multiLanguage": false, + "visible": true, + "enableFilter": false, + "headerStyler": "", + "styler": "", + "localization": false, + "allowGrouping": true, + "tipMode": "auto", + "captionTipContent": "", + "captionTipStyler": "", + "enableBatchEdit": false, + "localizationType": "Date", + "visibleControlledByRules": false, + "readonlyControlledByRules": false + }, + { + "id": "code_c864358f_pvwg", + "type": "GridField", + "controlSource": "Farris", + "caption": "编号", + "binding": { + "type": "Form", + "path": "code", + "field": "c864358f-cb3c-4b2b-960e-423754e28ea8", + "fullPath": "code" + }, + "appearance": null, + "size": { + "width": 120 + }, + "readonly": false, + "dataField": "code", + "dataType": "string", + "displayTemplate": null, + "captionTemplate": null, + "editor": { + "id": "code_c864358f_btp2", + "type": "TextBox", + "titleSourceType": "static", + "title": "编号", + "appearance": { + "class": "" + }, + "size": null, + "binding": { + "type": "Form", + "path": "code", + "field": "c864358f-cb3c-4b2b-960e-423754e28ea8", + "fullPath": "code" + }, + "require": true, + "disable": false, + "placeHolder": "", + "format": null, + "validation": null, + "value": null, + "maxLength": 36, + "linkedLabelEnabled": false, + "linkedLabelClick": null, + "visible": true, + "holdPlace": false, + "isTextArea": true, + "isPassword": false, + "tabindex": -1, + "hasDefaultFocus": false, + "focusState": null, + "titleWidth": null, + "enableTips": true, + "path": "code", + "enableAppend": false, + "inputAppendType": "button", + "inputAppendDisabled": false, + "formatValidation": { + "type": "none", + "expression": "", + "message": "" + }, + "autoHeight": false, + "maxHeight": 500, + "requireControlledByRules": true, + "updateOn": "blur" + }, + "draggable": false, + "frozen": "none", + "sortable": true, + "enumData": null, + "idField": "value", + "textField": "name", + "aggregate": { + "type": "none", + "formatter": { + "type": "none" + } + }, + "groupAggregate": { + "type": "none", + "formatter": { + "type": "none" + } + }, + "linkedLabelEnabled": false, + "linkedLabelClick": null, + "textAlign": "left", + "hAlign": "left", + "vAlign": "middle", + "formatter": { + "type": "none" + }, + "showTips": false, + "tipContent": null, + "multiLanguage": false, + "visible": true, + "enableFilter": false, + "headerStyler": "", + "styler": "", + "localization": false, + "allowGrouping": true, + "tipMode": "auto", + "captionTipContent": "", + "captionTipStyler": "", + "enableBatchEdit": false, + "localizationType": "Date", + "visibleControlledByRules": true, + "readonlyControlledByRules": true + }, + { + "id": "name_a6c40426_ywb9", + "type": "GridField", + "controlSource": "Farris", + "caption": "名称", + "binding": { + "type": "Form", + "path": "name", + "field": "a6c40426-7529-45e3-8c53-4ae973f28c09", + "fullPath": "name" + }, + "appearance": null, + "size": { + "width": 120 + }, + "readonly": false, + "dataField": "name", + "dataType": "string", + "displayTemplate": null, + "captionTemplate": null, + "editor": { + "id": "name_a6c40426_fds8", + "type": "TextBox", + "titleSourceType": "static", + "title": "名称", + "appearance": { + "class": "" + }, + "size": null, + "binding": { + "type": "Form", + "path": "name", + "field": "a6c40426-7529-45e3-8c53-4ae973f28c09", + "fullPath": "name" + }, + "require": false, + "disable": false, + "placeHolder": "", + "format": null, + "validation": null, + "value": null, + "maxLength": 36, + "linkedLabelEnabled": false, + "linkedLabelClick": null, + "visible": true, + "holdPlace": false, + "isTextArea": true, + "isPassword": false, + "tabindex": -1, + "hasDefaultFocus": false, + "focusState": null, + "titleWidth": null, + "enableTips": true, + "path": "name", + "enableAppend": false, + "inputAppendType": "button", + "inputAppendDisabled": false, + "formatValidation": { + "type": "none", + "expression": "", + "message": "" + }, + "autoHeight": false, + "maxHeight": 500, + "requireControlledByRules": true + }, + "draggable": false, + "frozen": "none", + "sortable": true, + "enumData": null, + "idField": "value", + "textField": "name", + "aggregate": { + "type": "none", + "formatter": { + "type": "none" + } + }, + "groupAggregate": { + "type": "none", + "formatter": { + "type": "none" + } + }, + "linkedLabelEnabled": false, + "linkedLabelClick": null, + "textAlign": "left", + "hAlign": "left", + "vAlign": "middle", + "formatter": { + "type": "none" + }, + "showTips": false, + "tipContent": null, + "multiLanguage": false, + "visible": true, + "enableFilter": false, + "headerStyler": "", + "styler": "", + "localization": false, + "allowGrouping": true, + "tipMode": "auto", + "captionTipContent": "", + "captionTipStyler": "", + "enableBatchEdit": false, + "localizationType": "Date", + "visibleControlledByRules": true, + "readonlyControlledByRules": true + }, + { + "id": "booleanField_e4f457e3_2q97", + "type": "GridField", + "controlSource": "Farris", + "caption": "布尔", + "binding": { + "type": "Form", + "path": "booleanField", + "field": "e4f457e3-add6-4df6-becd-26617dd1cb46", + "fullPath": "booleanField" + }, + "appearance": null, + "size": { + "width": 120 + }, + "readonly": false, + "dataField": "booleanField", + "dataType": "boolean", + "displayTemplate": null, + "captionTemplate": null, + "editor": { + "id": "booleanField_e4f457e3_nzmm", + "type": "CheckBox", + "titleSourceType": "static", + "title": "布尔", + "require": false, + "disable": false, + "binding": { + "type": "Form", + "path": "booleanField", + "field": "e4f457e3-add6-4df6-becd-26617dd1cb46", + "fullPath": "booleanField" + }, + "visible": true, + "appearance": { + "class": "" + }, + "size": null, + "holdPlace": false, + "linkedLabelEnabled": false, + "linkedLabelClick": null, + "tabindex": -1, + "hasDefaultFocus": false, + "focusState": null, + "titleWidth": null, + "enableAppend": false, + "inputAppendType": "button", + "inputAppendDisabled": false, + "path": "booleanField", + "requireControlledByRules": true, + "isRTControl": false, + "updateOn": "change" + }, + "draggable": false, + "frozen": "none", + "sortable": true, + "enumData": null, + "idField": "value", + "textField": "name", + "aggregate": { + "type": "none", + "formatter": { + "type": "none" + } + }, + "groupAggregate": { + "type": "none", + "formatter": { + "type": "none" + } + }, + "linkedLabelEnabled": false, + "linkedLabelClick": null, + "textAlign": "left", + "hAlign": "left", + "vAlign": "middle", + "formatter": { + "type": "boolean", + "trueText": "是", + "falseText": "否" + }, + "showTips": false, + "tipContent": null, + "multiLanguage": false, + "visible": true, + "enableFilter": false, + "headerStyler": "", + "styler": "", + "localization": false, + "allowGrouping": true, + "tipMode": "auto", + "captionTipContent": "", + "captionTipStyler": "", + "enableBatchEdit": true, + "visibleControlledByRules": true, + "readonlyControlledByRules": true + } + ], + "focusedItem": null, + "focusedIndex": null, + "pagination": false, + "lockPagination": "viewModel.stateMachine&&viewModel.stateMachine['editable']", + "showPageSize": false, + "identifyField": null, + "multiSelect": false, + "showCheckbox": false, + "selectable": null, + "itemTemplate": null, + "toolBar": null, + "summary": null, + "showAllCheckbox": false, + "fieldEditable": true, + "editable": null, + "groupable": false, + "group": null, + "showGroupColumn": true, + "groupFormatter": null, + "groupStyler": null, + "groupFooter": false, + "fitColumns": false, + "onSelectionChange": "", + "styler": "", + "fixedColumns": [], + "enableCommandColumn": false, + "onEditClicked": "", + "onDeleteClicked": "", + "commandColumnWidth": 120, + "showCommandColumn": true, + "checkedChange": null, + "disableRow": null, + "beforeSelect": null, + "beforeUnSelect": null, + "beforeCheck": null, + "beforeUnCheck": null, + "multiSort": false, + "autoFitColumns": false, + "showFooter": false, + "footerTemplate": "", + "footerDataFrom": "client", + "footerDataCommand": null, + "footerHeight": 29, + "filterType": "none", + "enableFilterRow": false, + "enableSmartFilter": false, + "remoteFilter": false, + "showFilterBar": false, + "showBorder": false, + "striped": true, + "showLineNumber": false, + "lineNumberTitle": "", + "appendRow": null, + "pageChange": null, + "dblClickRow": null, + "useControlPanel": false, + "autoHeight": false, + "rowClick": null, + "showSelectedList": false, + "selectedItemFormatter": null, + "lineNumberWidth": 36, + "enableMorePageSelect": false, + "headerWrap": false, + "emptyTemplate": null, + "emptyDataHeight": 240, + "maxHeight": 300, + "rowHeight": 30, + "enableHighlightCell": false, + "enableEditCellStyle": false, + "showRowGroupPanel": false, + "enableDragColumn": false, + "groupSummaryPosition": "groupFooterRow", + "clearSelectionsWhenDataIsEmpty": true, + "keepSelect": true, + "enableEditByCard": "none", + "pageSizeChanged": null, + "visible": true, + "showGotoInput": false, + "scrollBarShowMode": "auto", + "showScrollArrow": false, + "footerPosition": "bottom", + "footerStyler": null, + "selectOnEditing": true, + "selectionMode": "custom", + "enableContextMenu": false, + "disableGroupOnEditing": true, + "enableSimpleMode": false, + "enableScheme": false, + "beforeEdit": null, + "nowrap": true, + "mergeCell": false, + "remoteSort": false, + "columnSorted": null, + "checkOnSelect": false, + "selectOnCheck": false, + "enableHeaderGroup": false, + "headerGroup": null, + "AutoColumnWidthUseDblclick": true, + "virtualized": false, + "virtualizedAsyncLoad": false, + "scrollYLoad": null, + "pagerContentTemplate": null, + "expandGroupRows": true, + "useBlankWhenDataIsEmpty": false, + "checked": null, + "unChecked": null, + "checkAll": null, + "unCheckAll": null, + "filterChanged": null, + "enableEditStateFilterSorting": false, + "showConfirmWhenSchemeChanged": false, + "enableSetMultiHeaders": false, + "allowEmpty": true + } + ], + "isScrollspyContainer": false, + "isLikeCardContainer": false + } + ] + } + ], + "webcmds": [ + { + "id": "8172a979-2c80-4637-ace7-b13074d3f393", + "path": "/projects/packages/Inspur.GS.Gsp.Web.WebCmp/webcmd", + "name": "CardController.webcmd", + "refedHandlers": [ + { + "host": "e05264fb-796d-43fb-b83b-9e2f3866c328", + "handler": "Load" + }, + { + "host": "246a275c-88c9-4c8a-aa82-be6a950a4325", + "handler": "LoadAndAdd" + }, + { + "host": "70acc053-fa15-45be-851c-cf694e1bcaf7", + "handler": "LoadAndView" + }, + { + "host": "3e72ee6f-8f7b-4f29-aa0e-5887f2861117", + "handler": "LoadAndEdit" + }, + { + "host": "f90aadfa-988c-4da5-a5db-1416c3333794", + "handler": "Add" + }, + { + "host": "a323e27b-b9c6-4848-93b9-f117403a94ff", + "handler": "Edit" + }, + { + "host": "31b814db-01e4-407d-8fad-0f08dbb01999", + "handler": "Save" + }, + { + "host": "4f5ed2ec-8def-4a3c-8e7b-397ea93010e8", + "handler": "Cancel" + }, + { + "host": "c8504c24-33e8-487a-91ce-2218b803fe01", + "handler": "ChangeItem" + }, + { + "host": "4a0cfb1a-1262-41a2-aeb9-c8edd5c09683", + "handler": "ChangeItem" + }, + { + "host": "3a2f8aee-605b-4789-a971-43ba31c60b61", + "handler": "AddItem" + }, + { + "host": "5a844e51-0196-44e6-ac4c-e9c4d235a894", + "handler": "RemoveItem" + } + ], + "code": "CardController", + "nameSpace": "Inspur.GS.Gsp.Web.WebCmp" + }, + { + "id": "a7cb7d01-9df1-4a32-8202-99c9d0f4c339", + "path": null, + "name": "ApproveController.webcmd", + "refedHandlers": [ + { + "host": "0d34f338-b601-4716-8530-493b0752483b", + "handler": "submitWithBizDefKey" + }, + { + "host": "e492063e-a22d-4f23-8aed-7fe139843220", + "handler": "cancelSubmitWithDataId" + } + ], + "code": "ApproveController", + "nameSpace": "Inspur.GS.Gsp.Web.WebApprove" + }, + { + "id": "31c1022c-ab40-4e8d-bc31-85d539f1d36c", + "path": "Gsp/Web/AttachmentCmp/bo-attachmentcmp/metadata/webcmd", + "name": "FileController.webcmd", + "refedHandlers": [ + { + "host": "childattachment1egs8AddFileRows-id", + "handler": "addFileRows" + }, + { + "host": "childattachment1egs8RemoveFileRows-id", + "handler": "removeFileRows" + } + ], + "code": "FileController", + "nameSpace": "Inspur.GS.Gsp.Web.AttachmentCmp" + } + ], + "serviceRefs": [], + "projectName": "bo-runtimetest-front", + "showType": "page", + "toolbar": { + "items": {}, + "configs": {} + }, + "declarations": { + "events": [], + "commands": [], + "states": [] + }, + "subscriptions": [], + "extraImports": [], + "expressions": [], + "metadataId": "94540a61-e3c0-4220-ba13-e5a8dc52e79e", + "actions": [ + { + "sourceComponent": { + "id": "button-add", + "viewModelId": "root-viewmodel", + "map": [ + { + "event": { + "label": "click", + "name": "点击事件" + }, + "targetComponent": { + "id": "root-component", + "viewModelId": "root-viewmodel" + }, + "command": { + "id": "f90aadfa-988c-4da5-a5db-1416c3333794", + "label": "Add1", + "name": "新增一条数据", + "handlerName": "Add", + "params": [ + { + "name": "transitionAction", + "shownName": "状态机动作", + "value": "Create", + "defaultValue": null + } + ], + "cmpId": "8172a979-2c80-4637-ace7-b13074d3f393", + "isNewGenerated": false, + "isInvalid": false + }, + "controller": { + "id": "8172a979-2c80-4637-ace7-b13074d3f393", + "label": "CardController", + "name": "卡片控制器" + } + } + ] + } + }, + { + "sourceComponent": { + "id": "button-edit", + "viewModelId": "root-viewmodel", + "map": [ + { + "event": { + "label": "click", + "name": "点击事件" + }, + "targetComponent": { + "id": "root-component", + "viewModelId": "root-viewmodel" + }, + "command": { + "id": "a323e27b-b9c6-4848-93b9-f117403a94ff", + "label": "Edit1", + "name": "编辑当前数据", + "handlerName": "Edit", + "params": [ + { + "name": "transitionAction", + "shownName": "状态机动作", + "value": "Edit", + "defaultValue": null + } + ], + "cmpId": "8172a979-2c80-4637-ace7-b13074d3f393", + "isNewGenerated": false, + "isInvalid": false + }, + "controller": { + "id": "8172a979-2c80-4637-ace7-b13074d3f393", + "label": "CardController", + "name": "卡片控制器" + } + } + ] + } + }, + { + "sourceComponent": { + "id": "button-save", + "viewModelId": "root-viewmodel", + "map": [ + { + "event": { + "label": "click", + "name": "点击事件" + }, + "targetComponent": { + "id": "root-component", + "viewModelId": "root-viewmodel" + }, + "command": { + "id": "31b814db-01e4-407d-8fad-0f08dbb01999", + "label": "Save1", + "name": "保存变更", + "handlerName": "Save", + "params": [ + { + "name": "transitionAction", + "shownName": "状态机动作", + "value": "Cancel", + "defaultValue": null + }, + { + "name": "successMsg", + "shownName": "保存成功提示信息", + "value": "", + "defaultValue": null + } + ], + "cmpId": "8172a979-2c80-4637-ace7-b13074d3f393", + "isNewGenerated": false, + "isInvalid": false + }, + "controller": { + "id": "8172a979-2c80-4637-ace7-b13074d3f393", + "label": "CardController", + "name": "卡片控制器" + } + } + ] + } + }, + { + "sourceComponent": { + "id": "button-cancel", + "viewModelId": "root-viewmodel", + "map": [ + { + "event": { + "label": "click", + "name": "点击事件" + }, + "targetComponent": { + "id": "root-component", + "viewModelId": "root-viewmodel" + }, + "command": { + "id": "4f5ed2ec-8def-4a3c-8e7b-397ea93010e8", + "label": "Cancel1", + "name": "取消变更", + "handlerName": "Cancel", + "params": [ + { + "name": "transitionAction", + "shownName": "状态机动作", + "value": "Cancel", + "defaultValue": null + } + ], + "cmpId": "8172a979-2c80-4637-ace7-b13074d3f393", + "isNewGenerated": false, + "isInvalid": false + }, + "controller": { + "id": "8172a979-2c80-4637-ace7-b13074d3f393", + "label": "CardController", + "name": "卡片控制器" + } + } + ] + } + }, + { + "sourceComponent": { + "id": "button-approve", + "viewModelId": "root-viewmodel", + "map": [ + { + "event": { + "label": "click", + "name": "点击事件" + }, + "targetComponent": { + "id": "root-component", + "viewModelId": "root-viewmodel" + }, + "command": { + "id": "0d34f338-b601-4716-8530-493b0752483b", + "label": "submitWithBizDefKey1", + "name": "提交审批", + "handlerName": "submitWithBizDefKey", + "params": [ + { + "name": "dataId", + "shownName": "表单数据id", + "value": "{DATA~/#{basic-form-component}/id}", + "defaultValue": null + }, + { + "name": "bizDefKey", + "shownName": "流程分类id", + "value": "", + "defaultValue": null + }, + { + "name": "action", + "shownName": "迁移动作(可选)", + "value": "", + "defaultValue": null + } + ], + "cmpId": "a7cb7d01-9df1-4a32-8202-99c9d0f4c339", + "isNewGenerated": false, + "isInvalid": false + }, + "controller": { + "id": "a7cb7d01-9df1-4a32-8202-99c9d0f4c339", + "label": "ApproveController", + "name": "审批控制器" + } + } + ] + } + }, + { + "sourceComponent": { + "id": "button-cancel-approve", + "viewModelId": "root-viewmodel", + "map": [ + { + "event": { + "label": "click", + "name": "点击事件" + }, + "targetComponent": { + "id": "root-component", + "viewModelId": "root-viewmodel" + }, + "command": { + "id": "e492063e-a22d-4f23-8aed-7fe139843220", + "label": "cancelSubmitWithDataId1", + "name": "取消提交", + "handlerName": "cancelSubmitWithDataId", + "params": [ + { + "name": "dataId", + "shownName": "表单数据id", + "value": "{DATA~/#{basic-form-component}/id}", + "defaultValue": null + }, + { + "name": "bizDefKey", + "shownName": "流程分类id", + "value": "", + "defaultValue": null + }, + { + "name": "action", + "shownName": "迁移动作(可选)", + "value": "", + "defaultValue": null + } + ], + "cmpId": "a7cb7d01-9df1-4a32-8202-99c9d0f4c339", + "isNewGenerated": false, + "isInvalid": false + }, + "controller": { + "id": "a7cb7d01-9df1-4a32-8202-99c9d0f4c339", + "label": "ApproveController", + "name": "审批控制器" + } + } + ] + } + }, + { + "sourceComponent": { + "id": "runtimeitem1-vgy0-component-button-add", + "viewModelId": "runtimeitem1-vgy0-component-viewmodel", + "map": [ + { + "event": { + "label": "click", + "name": "点击事件" + }, + "targetComponent": { + "id": "runtimeitem1-vgy0-component", + "viewModelId": "runtimeitem1-vgy0-component-viewmodel" + }, + "command": { + "id": "3a2f8aee-605b-4789-a971-43ba31c60b61", + "label": "runtimeitem1vgy0AddItem1", + "name": "增加一条子表数据1", + "handlerName": "AddItem", + "params": [], + "cmpId": "8172a979-2c80-4637-ace7-b13074d3f393", + "isNewGenerated": false, + "isInvalid": false + }, + "controller": { + "id": "8172a979-2c80-4637-ace7-b13074d3f393", + "label": "CardController", + "name": "卡片控制器" + } + } + ] + } + }, + { + "sourceComponent": { + "id": "runtimeitem1-vgy0-component-button-remove", + "viewModelId": "runtimeitem1-vgy0-component-viewmodel", + "map": [ + { + "event": { + "label": "click", + "name": "点击事件" + }, + "targetComponent": { + "id": "runtimeitem1-vgy0-component", + "viewModelId": "runtimeitem1-vgy0-component-viewmodel" + }, + "command": { + "id": "5a844e51-0196-44e6-ac4c-e9c4d235a894", + "label": "runtimeitem1vgy0RemoveItem1", + "name": "删除一条子表数据1", + "handlerName": "RemoveItem", + "params": [ + { + "name": "id", + "shownName": "待删除子表数据的标识", + "value": "{DATA~/#{runtimeitem1-vgy0-component}/runtimeItem1s/id}" + } + ], + "cmpId": "8172a979-2c80-4637-ace7-b13074d3f393", + "isNewGenerated": false, + "isInvalid": false + }, + "controller": { + "id": "8172a979-2c80-4637-ace7-b13074d3f393", + "label": "CardController", + "name": "卡片控制器" + } + } + ] + } + }, + { + "sourceComponent": { + "id": "root-component", + "viewModelId": "root-viewmodel", + "map": [ + { + "event": { + "label": "onInit", + "name": "初始化事件" + }, + "targetComponent": { + "id": "root-component", + "viewModelId": "root-viewmodel" + }, + "command": { + "id": "e05264fb-796d-43fb-b83b-9e2f3866c328", + "label": "Load1", + "name": "执行加载页面后初始方法", + "handlerName": "Load", + "params": [ + { + "name": "action", + "shownName": "初始方法", + "value": "{UISTATE~/#{root-component}/action}", + "defaultValue": null + } + ], + "cmpId": "8172a979-2c80-4637-ace7-b13074d3f393", + "isNewGenerated": false, + "isInvalid": false + }, + "controller": { + "id": "8172a979-2c80-4637-ace7-b13074d3f393", + "label": "CardController", + "name": "卡片控制器" + } + } + ] + } + }, + { + "sourceComponent": { + "id": "childattachment1-egs8-file", + "viewModelId": "childattachment1-egs8-component-viewmodel", + "map": [ + { + "event": { + "label": "fUploadDoneEvent", + "name": "附件上传后事件" + }, + "targetComponent": { + "id": "childattachment1-egs8-component", + "viewModelId": "childattachment1-egs8-component-viewmodel" + }, + "command": { + "id": "childattachment1egs8AddFileRows-id", + "label": "childattachment1egs8AddFileRows", + "name": "批量添加文件数据", + "handlerName": "addFileRows", + "params": [ + { + "name": "fileInfoFieldPath", + "shownName": "文件信息字段路径", + "value": "/childAttachment1s/attachment" + } + ], + "cmpId": "31c1022c-ab40-4e8d-bc31-85d539f1d36c", + "isNewGenerated": false, + "isInvalid": false + }, + "controller": { + "id": "31c1022c-ab40-4e8d-bc31-85d539f1d36c", + "label": "FileController", + "name": "文件控制器" + } + }, + { + "event": { + "label": "fileRemoveEvent", + "name": "附件预览删除事件" + }, + "targetComponent": { + "id": "childattachment1-egs8-component", + "viewModelId": "childattachment1-egs8-component-viewmodel" + }, + "command": { + "id": "childattachment1egs8RemoveFileRows-id", + "label": "childattachment1egs8RemoveFileRows", + "name": "批量删除文件数据", + "handlerName": "removeFileRows", + "params": [ + { + "name": "fileInfoFieldPath", + "shownName": "文件信息字段路径", + "value": "/childAttachment1s/attachment" + } + ], + "cmpId": "31c1022c-ab40-4e8d-bc31-85d539f1d36c", + "isNewGenerated": false, + "isInvalid": false + }, + "controller": { + "id": "31c1022c-ab40-4e8d-bc31-85d539f1d36c", + "label": "FileController", + "name": "文件控制器" + } + } + ] + } + } + ] + }, + "options": { + "enableTextArea": true, + "renderMode": "compile", + "enableDeleteSourceCode": true, + "changeSetPolicy": "valid", + "formRulePushMode": "pushToVO", + "combineFormMode": "strict", + "enableServerSideChangeDetection": true, + "mobileMetadataId": "726a19b1-263a-466e-a3e7-601f8b635410" + } +} \ No newline at end of file diff --git a/web-form-metadata/src/test/java/com/inspur/edp/web/formmetadata/webservice/PCForm-vue.json b/web-form-metadata/src/test/java/com/inspur/edp/web/formmetadata/webservice/PCForm-vue.json new file mode 100644 index 00000000..b2c6a9ab --- /dev/null +++ b/web-form-metadata/src/test/java/com/inspur/edp/web/formmetadata/webservice/PCForm-vue.json @@ -0,0 +1,2275 @@ +{ + "module": { + "id": "58c44201-64df-436c-a57c-a36f94a2414b", + "code": "PCFormTest", + "name": "PC表单测试", + "type": "Module", + "creator": "lijiangkun", + "creationDate": "2025-04-12T07:59:57.479Z", + "templateId": "card-template", + "templateRule": "card-template", + "entity": [ + { + "eapiId": "bebb83f9-499d-4fda-8466-1b6a6f721353", + "eapiCode": "PCFormTest_frm", + "eapiName": "PC表单测试_frm", + "eapiNameSpace": "Inspur.GS.MyDev.FarrisVueTest.VueFormTest.VueFormTest.Front", + "voPath": "MyDev/FarrisVueTest/VueFormTest/bo-vueformtest-front/metadata/components", + "voNameSpace": "Inspur.GS.MyDev.FarrisVueTest.VueFormTest.VueFormTest.Front", + "name": "PC表单测试_frm", + "id": "4801eb04-71d2-4420-813c-496ed48c65c0", + "sourceType": "vo", + "variables": [ + { + "$type": "SimpleField", + "defaultValue": "", + "editor": { + "$type": "TextBox" + }, + "require": false, + "multiLanguage": false, + "readonly": false, + "name": "表单流程配置", + "id": "173719ae-8346-4a0f-bc8d-5fb82d0aed91", + "type": { + "$type": "StringType", + "length": 36, + "name": "String", + "displayName": "字符串" + }, + "path": "bffSysFormConfigId", + "originalId": "173719ae-8346-4a0f-bc8d-5fb82d0aed91", + "label": "bffSysFormConfigId", + "bindingField": "bffSysFormConfigId", + "bindingPath": "bffSysFormConfigId", + "code": "bffSysFormConfigId" + } + ], + "entities": [ + { + "name": "Vue测试", + "id": "75e5f57b-3a02-4177-9846-1a5d0ba2c885", + "type": { + "$type": "EntityType", + "fields": [ + { + "$type": "SimpleField", + "defaultValue": "", + "editor": { + "$type": "TextBox" + }, + "require": true, + "multiLanguage": false, + "readonly": false, + "name": "主键", + "id": "52fc4c0e-f155-4c01-9fe6-54fd08795ae0", + "type": { + "$type": "StringType", + "length": 36, + "name": "String", + "displayName": "字符串" + }, + "path": "ID", + "originalId": "52fc4c0e-f155-4c01-9fe6-54fd08795ae0", + "label": "id", + "bindingField": "id", + "bindingPath": "id", + "code": "ID" + }, + { + "$type": "SimpleField", + "defaultValue": "", + "editor": { + "$type": "DateBox", + "format": "'yyyy-MM-dd'" + }, + "require": false, + "multiLanguage": false, + "readonly": false, + "name": "版本", + "id": "10b522a5-9dd3-437e-bd29-bf57a58b3fb3", + "type": { + "$type": "DateTimeType", + "name": "DateTime", + "displayName": "日期时间" + }, + "path": "Version", + "originalId": "10b522a5-9dd3-437e-bd29-bf57a58b3fb3", + "label": "version", + "bindingField": "version", + "bindingPath": "version", + "code": "Version" + }, + { + "$type": "ComplexField", + "name": "状态", + "id": "e7c488df-8456-48d8-be1c-2cc6cc1cba8b", + "type": { + "$type": "ObjectType", + "name": "BillStateE7c4", + "fields": [ + { + "$type": "SimpleField", + "defaultValue": "", + "editor": { + "$type": "EnumField" + }, + "require": false, + "multiLanguage": false, + "readonly": false, + "name": "状态", + "id": "e7c488df-0101-468f-ae3f-40c76c0f06b0", + "type": { + "$type": "EnumType", + "name": "Enum", + "displayName": "枚举", + "valueType": { + "$type": "StringType", + "length": 36, + "name": "String", + "displayName": "字符串" + }, + "enumValues": [ + { + "disabled": false, + "name": "制单", + "value": "Billing" + }, + { + "disabled": false, + "name": "提交审批", + "value": "SubmitApproval" + }, + { + "disabled": false, + "name": "审批通过", + "value": "Approved" + }, + { + "disabled": false, + "name": "审批不通过", + "value": "ApprovalNotPassed" + } + ] + }, + "path": "BillStatus.BillState", + "originalId": "a0b19650-0101-468f-ae3f-40c76c0f06b0", + "label": "billState", + "bindingField": "billStatus_BillState", + "bindingPath": "billStatus.billState", + "code": "BillState" + } + ], + "displayName": "状态" + }, + "path": "BillStatus", + "originalId": "e7c488df-8456-48d8-be1c-2cc6cc1cba8b", + "label": "billStatus", + "bindingField": "billStatus", + "bindingPath": "billStatus", + "code": "BillStatus" + }, + { + "$type": "ComplexField", + "name": "流程实例", + "id": "5d3fd927-71bc-4687-9be1-55d94033dd47", + "type": { + "$type": "ObjectType", + "name": "ProcessInstance5d3f", + "fields": [ + { + "$type": "SimpleField", + "defaultValue": "", + "editor": { + "$type": "TextBox" + }, + "require": false, + "multiLanguage": false, + "readonly": false, + "name": "流程实例", + "id": "5d3fd927-ad8f-4da3-a430-c8a7f2162135", + "type": { + "$type": "StringType", + "length": 36, + "name": "String", + "displayName": "字符串" + }, + "path": "ProcessInstance.ProcessInstance", + "originalId": "2e1beb7d-ad8f-4da3-a430-c8a7f2162135", + "label": "processInstance", + "bindingField": "processInstance_ProcessInstance", + "bindingPath": "processInstance.processInstance", + "code": "ProcessInstance" + } + ], + "displayName": "流程实例" + }, + "path": "ProcessInstance", + "originalId": "5d3fd927-71bc-4687-9be1-55d94033dd47", + "label": "processInstance", + "bindingField": "processInstance", + "bindingPath": "processInstance", + "code": "ProcessInstance" + }, + { + "$type": "SimpleField", + "defaultValue": "", + "editor": { + "$type": "TextBox" + }, + "require": false, + "multiLanguage": false, + "readonly": false, + "name": "编号", + "id": "d63b5e0f-ac69-486d-8dd7-9b0e154e9fc8", + "type": { + "$type": "StringType", + "length": 36, + "name": "String", + "displayName": "字符串" + }, + "path": "code", + "originalId": "d63b5e0f-ac69-486d-8dd7-9b0e154e9fc8", + "label": "code", + "bindingField": "code", + "bindingPath": "code", + "code": "code" + }, + { + "$type": "SimpleField", + "defaultValue": "", + "editor": { + "$type": "TextBox" + }, + "require": false, + "multiLanguage": false, + "readonly": false, + "name": "名称", + "id": "3410f627-358c-4a1a-99b4-800e9d0211e0", + "type": { + "$type": "StringType", + "length": 36, + "name": "String", + "displayName": "字符串" + }, + "path": "name", + "originalId": "3410f627-358c-4a1a-99b4-800e9d0211e0", + "label": "name", + "bindingField": "name", + "bindingPath": "name", + "code": "name" + }, + { + "$type": "SimpleField", + "defaultValue": "", + "editor": { + "$type": "CheckBox" + }, + "require": false, + "multiLanguage": false, + "readonly": false, + "name": "布尔字段", + "id": "c419df06-d982-44ca-8e48-b366b778049a", + "type": { + "$type": "BooleanType", + "name": "Boolean", + "displayName": "布尔" + }, + "path": "booleanField", + "originalId": "c419df06-d982-44ca-8e48-b366b778049a", + "label": "booleanField", + "bindingField": "booleanField", + "bindingPath": "booleanField", + "code": "booleanField" + }, + { + "$type": "SimpleField", + "defaultValue": "", + "editor": { + "$type": "NumericBox" + }, + "require": false, + "multiLanguage": false, + "readonly": false, + "name": "数值字段", + "id": "cc6b21b3-f721-493e-8a7d-5d0aa90b824c", + "type": { + "$type": "NumericType", + "length": 0, + "name": "Number", + "displayName": "数字", + "precision": 0 + }, + "path": "numberField", + "originalId": "cc6b21b3-f721-493e-8a7d-5d0aa90b824c", + "label": "numberField", + "bindingField": "numberField", + "bindingPath": "numberField", + "code": "numberField" + }, + { + "$type": "SimpleField", + "defaultValue": "", + "editor": { + "$type": "DateBox", + "format": "'yyyy-MM-dd'" + }, + "require": false, + "multiLanguage": false, + "readonly": false, + "name": "日期字段", + "id": "e18b1dc0-12c6-4c3e-95e6-c88f1405cfa2", + "type": { + "$type": "DateType", + "name": "Date", + "displayName": "日期" + }, + "path": "dateField", + "originalId": "e18b1dc0-12c6-4c3e-95e6-c88f1405cfa2", + "label": "dateField", + "bindingField": "dateField", + "bindingPath": "dateField", + "code": "dateField" + }, + { + "$type": "SimpleField", + "multiLanguage": false, + "require": false, + "defaultValue": "", + "editor": { + "$type": "EnumField" + }, + "readonly": false, + "originalId": "2092e529-c1cd-444d-98f5-6e11db8be5b7", + "name": "eumu1", + "id": "2092e529-c1cd-444d-98f5-6e11db8be5b7", + "type": { + "$type": "EnumType", + "displayName": "枚举", + "name": "Enum", + "enumValues": [ + { + "disabled": false, + "name": "testname", + "value": "test1" + } + ], + "valueType": { + "$type": "StringType", + "displayName": "字符串", + "length": 36, + "name": "String" + } + }, + "path": "eumu1", + "code": "eumu1", + "label": "eumu1", + "bindingField": "eumu1", + "bindingPath": "eumu1" + }, + { + "$type": "ComplexField", + "originalId": "9652a7a9-5e65-41a8-a3c0-6d0da6a7504e", + "name": "ass1", + "id": "9652a7a9-5e65-41a8-a3c0-6d0da6a7504e", + "type": { + "$type": "EntityType", + "fields": [ + { + "$type": "SimpleField", + "multiLanguage": false, + "require": false, + "defaultValue": "", + "editor": { + "$type": "TextBox" + }, + "readonly": false, + "originalId": "8760c74c-9141-46ea-a9fb-408db9a41e61", + "name": "ass1", + "id": "8760c74c-9141-46ea-a9fb-408db9a41e61", + "type": { + "$type": "StringType", + "displayName": "字符串", + "length": 36, + "name": "String" + }, + "path": "ass1.ass1", + "code": "ass1", + "label": "ass1", + "bindingField": "ass1", + "bindingPath": "ass1.ass1" + }, + { + "$type": "SimpleField", + "multiLanguage": false, + "require": false, + "defaultValue": "", + "editor": { + "$type": "TextBox" + }, + "readonly": false, + "originalId": "3c45b0e6-2695-4085-a861-e451ad139e0e", + "name": "编号", + "id": "3c45b0e6-2695-4085-a861-e451ad139e0e", + "type": { + "$type": "StringType", + "displayName": "字符串", + "length": 36, + "name": "String" + }, + "path": "ass1.ass1_Code", + "code": "Code", + "label": "ass1_Code", + "bindingField": "ass1_ass1_Code", + "bindingPath": "ass1.ass1_Code" + }, + { + "$type": "SimpleField", + "multiLanguage": false, + "require": false, + "defaultValue": "", + "editor": { + "$type": "TextBox" + }, + "readonly": false, + "originalId": "63b04a7c-b310-4a02-bd8b-c4d2e8ad87f4", + "name": "名称", + "id": "63b04a7c-b310-4a02-bd8b-c4d2e8ad87f4", + "type": { + "$type": "StringType", + "displayName": "字符串", + "length": 36, + "name": "String" + }, + "path": "ass1.ass1_Name", + "code": "Name", + "label": "ass1_Name", + "bindingField": "ass1_ass1_Name", + "bindingPath": "ass1.ass1_Name" + } + ], + "primary": "ass1", + "entities": [], + "displayName": "用户", + "name": "GspUser8760" + }, + "path": "ass1", + "code": "ass1", + "label": "ass1", + "bindingField": "ass1", + "bindingPath": "ass1" + }, + { + "$type": "ComplexField", + "originalId": "46b400d4-0f47-42f2-9f6e-df6a95c21235", + "name": "dy1", + "id": "46b400d4-0f47-42f2-9f6e-df6a95c21235", + "type": { + "$type": "DynamicObjectType", + "name": "DynamicEntity", + "displayName": null + }, + "path": "dy1", + "code": "dy1", + "label": "dy1", + "bindingField": "dy1", + "bindingPath": "dy1" + } + ], + "primary": "id", + "entities": [ + { + "name": "子表1", + "id": "9b108121-4e38-42d7-bd2c-9c7647dd8d77", + "type": { + "$type": "EntityType", + "fields": [ + { + "$type": "SimpleField", + "defaultValue": "", + "editor": { + "$type": "TextBox" + }, + "require": true, + "multiLanguage": false, + "readonly": false, + "name": "主键", + "id": "466e5a86-120a-44a1-8ca6-80e1bdfdc3eb", + "type": { + "$type": "StringType", + "length": 36, + "name": "String", + "displayName": "字符串" + }, + "path": "ID", + "originalId": "466e5a86-120a-44a1-8ca6-80e1bdfdc3eb", + "label": "id", + "bindingField": "id", + "bindingPath": "id", + "code": "ID" + }, + { + "$type": "SimpleField", + "defaultValue": "", + "editor": { + "$type": "TextBox" + }, + "require": true, + "multiLanguage": false, + "readonly": false, + "name": "上级对象主键", + "id": "bec1003e-8a76-4ce2-b6cb-cebf0b426e6a", + "type": { + "$type": "StringType", + "length": 36, + "name": "String", + "displayName": "字符串" + }, + "path": "ParentID", + "originalId": "bec1003e-8a76-4ce2-b6cb-cebf0b426e6a", + "label": "parentID", + "bindingField": "parentID", + "bindingPath": "parentID", + "code": "ParentID" + }, + { + "$type": "SimpleField", + "defaultValue": "", + "editor": { + "$type": "TextBox" + }, + "require": false, + "multiLanguage": false, + "readonly": false, + "name": "编号", + "id": "e5a6411a-c30e-4259-8682-53685c53e62a", + "type": { + "$type": "StringType", + "length": 36, + "name": "String", + "displayName": "字符串" + }, + "path": "code", + "originalId": "e5a6411a-c30e-4259-8682-53685c53e62a", + "label": "code", + "bindingField": "code", + "bindingPath": "code", + "code": "code" + }, + { + "$type": "SimpleField", + "defaultValue": "", + "editor": { + "$type": "TextBox" + }, + "require": false, + "multiLanguage": false, + "readonly": false, + "name": "名称", + "id": "49fca8d8-e64a-4e8c-a619-f051cfdf72a5", + "type": { + "$type": "StringType", + "length": 36, + "name": "String", + "displayName": "字符串" + }, + "path": "name", + "originalId": "49fca8d8-e64a-4e8c-a619-f051cfdf72a5", + "label": "name", + "bindingField": "name", + "bindingPath": "name", + "code": "name" + } + ], + "primary": "id", + "entities": [], + "name": "Child1", + "displayName": "子表1" + }, + "label": "child1s", + "code": "Child1" + }, + { + "name": "子表2", + "id": "06d00b52-4477-4c7b-a63d-01654e195364", + "type": { + "$type": "EntityType", + "fields": [ + { + "$type": "SimpleField", + "defaultValue": "", + "editor": { + "$type": "TextBox" + }, + "require": true, + "multiLanguage": false, + "readonly": false, + "name": "主键", + "id": "80fa5266-0fa2-4418-b225-61efcf2309ed", + "type": { + "$type": "StringType", + "length": 36, + "name": "String", + "displayName": "字符串" + }, + "path": "ID", + "originalId": "80fa5266-0fa2-4418-b225-61efcf2309ed", + "label": "id", + "bindingField": "id", + "bindingPath": "id", + "code": "ID" + }, + { + "$type": "SimpleField", + "defaultValue": "", + "editor": { + "$type": "TextBox" + }, + "require": true, + "multiLanguage": false, + "readonly": false, + "name": "上级对象主键", + "id": "2292dc09-74d7-44fb-9a47-73d48c1e5831", + "type": { + "$type": "StringType", + "length": 36, + "name": "String", + "displayName": "字符串" + }, + "path": "ParentID", + "originalId": "2292dc09-74d7-44fb-9a47-73d48c1e5831", + "label": "parentID", + "bindingField": "parentID", + "bindingPath": "parentID", + "code": "ParentID" + }, + { + "$type": "SimpleField", + "defaultValue": "", + "editor": { + "$type": "TextBox" + }, + "require": false, + "multiLanguage": false, + "readonly": false, + "name": "编号", + "id": "0fd1145f-2a5f-4080-aa65-b87d252515a5", + "type": { + "$type": "StringType", + "length": 36, + "name": "String", + "displayName": "字符串" + }, + "path": "code", + "originalId": "0fd1145f-2a5f-4080-aa65-b87d252515a5", + "label": "code", + "bindingField": "code", + "bindingPath": "code", + "code": "code" + }, + { + "$type": "SimpleField", + "defaultValue": "", + "editor": { + "$type": "TextBox" + }, + "require": false, + "multiLanguage": false, + "readonly": false, + "name": "名称", + "id": "52eb3ac2-decc-49f3-83b3-1549aec4b4d0", + "type": { + "$type": "StringType", + "length": 36, + "name": "String", + "displayName": "字符串" + }, + "path": "name", + "originalId": "52eb3ac2-decc-49f3-83b3-1549aec4b4d0", + "label": "name", + "bindingField": "name", + "bindingPath": "name", + "code": "name" + } + ], + "primary": "id", + "entities": [], + "name": "Child2", + "displayName": "子表2" + }, + "label": "child2s", + "code": "Child2" + } + ], + "name": "VueTest", + "displayName": "Vue测试" + }, + "label": "vueTests", + "code": "VueTest" + } + ], + "extendProperties": { + "enableStdTimeFormat": true + }, + "code": "PCFormTest_frm", + "sourceUri": "api/mydev/farrisvuetest/v1.0/PCFormTest_frm" + } + ], + "states": [], + "stateMachines": [ + { + "id": "PCFormTest_state_machine", + "name": "PC表单测试", + "uri": "ef535e87-96b6-4024-a762-41ca0ae45d6a", + "code": "PCFormTest_frm", + "nameSpace": "Inspur.GS.MyDev.FarrisVueTest.VueFormTest.VueFormTest.Front" + } + ], + "viewmodels": [ + { + "id": "root-viewmodel", + "code": "root-viewmodel", + "name": "Vue测试", + "fields": [], + "stateMachine": "PCFormTest_state_machine", + "commands": [ + { + "id": "e05264fb-796d-43fb-b83b-9e2f3866c328", + "code": "Load1", + "name": "执行加载页面后初始方法", + "params": [ + { + "name": "action", + "shownName": "初始方法", + "value": "{UISTATE~/#{root-component}/action}", + "defaultValue": null + } + ], + "handlerName": "Load", + "cmpId": "8172a979-2c80-4637-ace7-b13074d3f393", + "shortcut": {}, + "extensions": [], + "isInvalid": false, + "isNewGenerated": false, + "targetComponent": "root-component" + }, + { + "id": "246a275c-88c9-4c8a-aa82-be6a950a4325", + "code": "LoadAndAdd1", + "name": "加载并新增数据", + "params": [ + { + "name": "transitionAction", + "shownName": "状态机动作", + "value": "Create", + "defaultValue": null + } + ], + "handlerName": "LoadAndAdd", + "cmpId": "8172a979-2c80-4637-ace7-b13074d3f393", + "shortcut": {}, + "extensions": [], + "isInvalid": false + }, + { + "id": "70acc053-fa15-45be-851c-cf694e1bcaf7", + "code": "LoadAndView1", + "name": "加载并查看数据", + "params": [ + { + "name": "id", + "shownName": "待查看数据的标识", + "value": "{UISTATE~/#{root-component}/id}", + "defaultValue": null + }, + { + "name": "transitionAction", + "shownName": "状态机动作", + "value": "Cancel", + "defaultValue": null + }, + { + "name": "transitionActionParamName", + "shownName": "状态迁移动作参数编号", + "value": "", + "defaultValue": null + } + ], + "handlerName": "LoadAndView", + "cmpId": "8172a979-2c80-4637-ace7-b13074d3f393", + "shortcut": {}, + "extensions": [], + "isInvalid": false + }, + { + "id": "3e72ee6f-8f7b-4f29-aa0e-5887f2861117", + "code": "LoadAndEdit1", + "name": "加载并编辑数据", + "params": [ + { + "name": "id", + "shownName": "待编辑数据的标识", + "value": "{UISTATE~/#{root-component}/id}", + "defaultValue": null + }, + { + "name": "transitionAction", + "shownName": "状态机动作", + "value": "Edit", + "defaultValue": null + }, + { + "name": "transitionActionParamName", + "shownName": "状态迁移动作参数编号", + "value": "", + "defaultValue": null + } + ], + "handlerName": "LoadAndEdit", + "cmpId": "8172a979-2c80-4637-ace7-b13074d3f393", + "shortcut": {}, + "extensions": [], + "isInvalid": false + }, + { + "id": "f90aadfa-988c-4da5-a5db-1416c3333794", + "code": "Add1", + "name": "新增一条数据", + "params": [ + { + "name": "transitionAction", + "shownName": "状态机动作", + "value": "Create", + "defaultValue": null + } + ], + "handlerName": "Add", + "cmpId": "8172a979-2c80-4637-ace7-b13074d3f393", + "shortcut": {}, + "extensions": [], + "isInvalid": false + }, + { + "id": "a323e27b-b9c6-4848-93b9-f117403a94ff", + "code": "Edit1", + "name": "编辑当前数据", + "params": [ + { + "name": "transitionAction", + "shownName": "状态机动作", + "value": "Edit", + "defaultValue": null + } + ], + "handlerName": "Edit", + "cmpId": "8172a979-2c80-4637-ace7-b13074d3f393", + "shortcut": {}, + "extensions": [], + "isInvalid": false + }, + { + "id": "31b814db-01e4-407d-8fad-0f08dbb01999", + "code": "Save1", + "name": "保存变更", + "params": [ + { + "name": "transitionAction", + "shownName": "状态机动作", + "value": "Cancel", + "defaultValue": null + }, + { + "name": "successMsg", + "shownName": "保存成功提示信息", + "value": "", + "defaultValue": null + } + ], + "handlerName": "Save", + "cmpId": "8172a979-2c80-4637-ace7-b13074d3f393", + "shortcut": {}, + "extensions": [], + "isInvalid": false + }, + { + "id": "4f5ed2ec-8def-4a3c-8e7b-397ea93010e8", + "code": "Cancel1", + "name": "取消变更", + "params": [ + { + "name": "transitionAction", + "shownName": "状态机动作", + "value": "Cancel", + "defaultValue": null + } + ], + "handlerName": "Cancel", + "cmpId": "8172a979-2c80-4637-ace7-b13074d3f393", + "shortcut": {}, + "extensions": [], + "isInvalid": false + }, + { + "id": "20dbc06c-6e46-46f0-b8f2-a7fd951d722e", + "code": "rootTest1", + "name": "test1", + "params": [], + "handlerName": "test", + "cmpId": "1fcadf37-b42e-4bd5-ba6f-69d97b82547e", + "shortcut": {}, + "extensions": [], + "isInvalid": false, + "isNewGenerated": false + }, + { + "id": "45e98f07-494f-4171-9129-817552fb91a8", + "code": "rootTest2", + "name": "test2", + "params": [], + "handlerName": "test", + "cmpId": "1fcadf37-b42e-4bd5-ba6f-69d97b82547e", + "shortcut": {}, + "extensions": [], + "isInvalid": false, + "isNewGenerated": false, + "targetComponent": "root-component" + }, + { + "id": "01760ad7-e092-4d91-88d8-89f9e13566fa", + "code": "rootTest3", + "name": "测试3", + "params": [], + "handlerName": "test", + "cmpId": "71c01665-fe32-4539-bb68-1eb58a5e8fd9", + "shortcut": {}, + "extensions": [], + "isInvalid": false, + "isNewGenerated": false, + "targetComponent": "root-component" + }, + { + "id": "53e84e7e-ea7f-4b24-aef7-2454b9ce3f56", + "code": "rootTest4", + "name": "测试4", + "params": [], + "handlerName": "test", + "cmpId": "71c01665-fe32-4539-bb68-1eb58a5e8fd9", + "shortcut": {}, + "extensions": [], + "isInvalid": false, + "isNewGenerated": false, + "targetComponent": "root-component" + } + ], + "states": [ + { + "id": "173719ae-8346-4a0f-bc8d-5fb82d0aed91", + "code": "bffSysFormConfigId", + "name": "表单流程配置", + "type": "String", + "category": "remote" + } + ], + "bindTo": "/", + "enableValidation": false, + "enableUnifiedSession": false + }, + { + "id": "basic-form-viewmodel", + "code": "basic-form-viewmodel", + "name": "Vue测试", + "fields": [ + { + "type": "Form", + "id": "e7c488df-0101-468f-ae3f-40c76c0f06b0", + "fieldName": "billStatus_BillState", + "groupId": null, + "groupName": null, + "updateOn": "change", + "fieldSchema": { + "name": "工单状态" + } + }, + { + "type": "Form", + "id": "3410f627-358c-4a1a-99b4-800e9d0211e0", + "fieldName": "name", + "groupId": null, + "groupName": null, + "updateOn": "blur", + "fieldSchema": { + "name": "工单编号", + "editor": { + "$type": "lookup" + } + } + }, + { + "type": "Form", + "id": "cc6b21b3-f721-493e-8a7d-5d0aa90b824c", + "fieldName": "numberField", + "groupId": null, + "groupName": null, + "updateOn": "blur", + "fieldSchema": { + "name": "工时" + } + }, + { + "type": "Form", + "id": "e18b1dc0-12c6-4c3e-95e6-c88f1405cfa2", + "fieldName": "dateField", + "groupId": null, + "groupName": null, + "updateOn": "blur", + "fieldSchema": { + "name": "制单日期" + } + }, + { + "type": "Form", + "id": "5d3fd927-ad8f-4da3-a430-c8a7f2162135", + "fieldName": "processInstance_ProcessInstance", + "groupId": "", + "groupName": "", + "valueChanging": "", + "valueChanged": "", + "updateOn": "blur", + "fieldSchema": { + "editor": { + "$type": "radio-group" + }, + "name": "工单类型" + } + }, + { + "type": "Form", + "id": "c419df06-d982-44ca-8e48-b366b778049a", + "fieldName": "booleanField", + "groupId": "", + "groupName": "", + "valueChanging": "", + "valueChanged": "", + "updateOn": "change", + "fieldSchema": { + "editor": { + "$type": "switch" + }, + "name": "是否处理" + } + }, + { + "type": "Form", + "id": "d63b5e0f-ac69-486d-8dd7-9b0e154e9fc8", + "fieldName": "code", + "groupId": "", + "groupName": "", + "valueChanging": "", + "valueChanged": "", + "updateOn": "blur", + "fieldSchema": { + "editor": { + "$type": "time-picker" + }, + "name": "制单时间" + } + }, + { + "type": "Form", + "id": "2092e529-c1cd-444d-98f5-6e11db8be5b7", + "fieldName": "eumu1", + "groupId": "", + "groupName": "", + "valueChanging": "", + "valueChanged": "", + "updateOn": "change", + "fieldSchema": { + "editor": { + "$type": "combo-list" + } + } + }, + { + "type": "Form", + "id": "63b04a7c-b310-4a02-bd8b-c4d2e8ad87f4", + "fieldName": "ass1_ass1_Name", + "groupId": "", + "groupName": "", + "valueChanging": "", + "valueChanged": "", + "updateOn": "blur", + "fieldSchema": { + "editor": { + "$type": "input-group" + } + } + } + ], + "serviceRefs": [], + "commands": [], + "states": [ + { + "id": "472eb525-a024-4a49-b51f-cdcfac1df8c8", + "category": "locale", + "code": "isCodeReadonly", + "name": "isCodeReadonly", + "type": "Object", + "value": { + "sssss": 22222 + } + } + ], + "bindTo": "/", + "parent": "root-viewmodel", + "enableValidation": true + }, + { + "id": "data-grid-z5vj-component-viewmodel", + "code": "data-grid-z5vj-component-viewmodel", + "name": "子表1", + "bindTo": "/child1s", + "parent": "root-viewmodel", + "fields": [ + { + "type": "Form", + "id": "49fca8d8-e64a-4e8c-a619-f051cfdf72a5", + "fieldName": "name", + "groupId": null, + "groupName": null, + "updateOn": "blur", + "fieldSchema": {} + }, + { + "type": "Form", + "id": "e5a6411a-c30e-4259-8682-53685c53e62a", + "fieldName": "code", + "groupId": null, + "groupName": null, + "updateOn": "blur", + "fieldSchema": {} + } + ], + "commands": [ + { + "id": "d0d339b9-958b-4426-a108-e863300e4151", + "code": "datagridz5vjAddItem1", + "name": "增加一条子表数据", + "params": [], + "handlerName": "AddItem", + "cmpId": "8172a979-2c80-4637-ace7-b13074d3f393", + "shortcut": {}, + "extensions": [], + "isInvalid": false + }, + { + "id": "573952e2-118d-4773-8cf7-347e97e319ca", + "code": "datagridz5vjRemoveItem1", + "name": "删除一条子表数据", + "params": [ + { + "name": "id", + "shownName": "待删除子表数据的标识", + "value": "{DATA~/child1s/id}" + } + ], + "handlerName": "RemoveItem", + "cmpId": "8172a979-2c80-4637-ace7-b13074d3f393", + "shortcut": {}, + "extensions": [], + "isInvalid": false + } + ], + "states": [], + "enableValidation": true + } + ], + "components": [ + { + "id": "root-component", + "type": "component", + "viewModel": "root-viewmodel", + "componentType": "frame", + "onInit": "Load1", + "contents": [ + { + "id": "root-layout", + "type": "content-container", + "appearance": { + "class": "f-page f-page-card f-page-is-mainsubcard" + }, + "contents": [ + { + "id": "page-header", + "type": "page-header", + "appearance": { + "class": "f-page-header" + }, + "iconClass": "f-title-icon f-text-orna-bill", + "icon": "f-icon f-icon-page-title-record", + "title": "PC表单测试", + "toolbar": { + "type": "response-toolbar", + "buttons": [ + { + "id": "button-add", + "type": "response-toolbar-item", + "appearance": { + "class": "btn-primary" + }, + "disabled": { + "type": "StateMachine", + "status": false, + "field": "canAdd" + }, + "onClick": "Add1", + "text": "新增" + }, + { + "id": "button-edit", + "type": "response-toolbar-item", + "text": "编辑", + "disabled": "!viewModel.stateMachine['canEdit']", + "onClick": "Edit1" + }, + { + "id": "button-save", + "type": "response-toolbar-item", + "text": "保存", + "disabled": { + "type": "StateMachine", + "status": false, + "field": "canSave" + }, + "onClick": "Save1" + }, + { + "id": "button-cancel", + "type": "response-toolbar-item", + "text": "取消", + "disabled": "!viewModel.stateMachine['canCancel']", + "onClick": "Cancel1" + }, + { + "id": "toolbar_item_2362", + "type": "response-toolbar-item", + "text": "按钮", + "appearance": { + "class": "btn btn-secondary f-btn-ml" + }, + "onClick": "rootTest2" + }, + { + "id": "toolbar_item_4335", + "type": "response-toolbar-item", + "text": "触发组合表单", + "onClick": "rootTest4" + }, + { + "id": "toolbar_item_1125", + "type": "response-toolbar-item", + "text": "弹出帮助" + } + ] + } + }, + { + "id": "main-container", + "type": "content-container", + "appearance": { + "class": "f-page-main" + }, + "contents": [ + { + "id": "like-card-container", + "type": "content-container", + "appearance": { + "class": "f-struct-like-card" + }, + "contents": [ + { + "id": "basic-form-component-ref", + "type": "component-ref", + "component": "basic-form-component" + }, + { + "id": "container-0133", + "type": "content-container", + "contents": [ + { + "id": "section-0133", + "type": "section", + "contents": [ + { + "id": "data-grid-z5vj-component-ref", + "type": "component-ref", + "component": "data-grid-z5vj-component" + } + ], + "appearance": { + "class": "f-section-in-mainsubcard" + }, + "mainTitle": "子表1", + "toolbar": { + "id": "section-0133_toolbar", + "buttons": [ + { + "id": "button-add-data-grid-z5vj", + "type": "section-toolbar-item", + "text": "新增", + "disabled": "!viewModel.stateMachine['canAddDetail']", + "onClick": "root-viewModel.data-grid-z5vj-component-viewmodel.datagridz5vjAddItem1" + }, + { + "id": "button-remove-data-grid-z5vj", + "type": "section-toolbar-item", + "text": "删除", + "disabled": "!viewModel.stateMachine['canRemoveDetail']", + "onClick": "root-viewModel.data-grid-z5vj-component-viewmodel.datagridz5vjRemoveItem1" + } + ] + } + } + ], + "appearance": { + "class": "f-struct-wrapper" + } + } + ], + "isLikeCardContainer": true + } + ] + } + ] + } + ], + "name": "Vue测试", + "enableValidation": false, + "onAfterViewInit": null + }, + { + "id": "basic-form-component", + "type": "component", + "viewModel": "basic-form-viewmodel", + "componentType": "form", + "formColumns": 4, + "appearance": { + "class": "f-struct-wrapper" + }, + "contents": [ + { + "id": "basic-form-section", + "type": "section", + "appearance": { + "class": "f-section-form f-section-in-mainsubcard" + }, + "mainTitle": "基本信息", + "contents": [ + { + "id": "basic-form-layout", + "type": "response-form", + "appearance": { + "class": "f-form-layout farris-form farris-form-controls-inline" + }, + "contents": [ + { + "id": "name_3410f627_2m6a", + "type": "form-group", + "appearance": { + "class": "col-12 col-md-6 col-xl-3 col-el-2", + "style": "color:red" + }, + "label": "工单编号", + "binding": { + "type": "Form", + "path": "name", + "field": "3410f627-358c-4a1a-99b4-800e9d0211e0", + "fullPath": "name" + }, + "editor": { + "type": "lookup", + "readonly": { + "type": "StateMachine", + "status": false, + "field": "editable" + }, + "maxLength": 36, + "dataSource": { + "displayName": "系统组织帮助(sysorghlp)", + "idField": "id", + "type": "ViewObject", + "uri": "lookup.name_3410f627_2m6a" + }, + "helpId": "b524a702-7323-4d46-998e-5ba0c6abcd49", + "displayType": "TreeList", + "textField": "name", + "pagination": { + "enable": true, + "sizeLimits": [ + 10, + 20, + 30, + 50 + ], + "size": 20, + "showLimits": true, + "showGoto": false, + "mode": "server" + }, + "loadTreeDataType": "default", + "onlySelectLeaf": false, + "multiSelect": true, + "required": true + }, + "path": "name", + "updateOn": "blur" + }, + { + "id": "billStatus_BillState_e7c488df_x74m", + "type": "form-group", + "appearance": { + "class": "col-12 col-md-6 col-xl-3 col-el-2 pc-red" + }, + "label": "工单状态", + "binding": { + "type": "Form", + "path": "billStatus_BillState", + "field": "e7c488df-0101-468f-ae3f-40c76c0f06b0", + "fullPath": "BillStatus.BillState" + }, + "editor": { + "type": "combo-list", + "data": [ + { + "disabled": false, + "name": "制单", + "value": "Billing" + }, + { + "disabled": false, + "name": "提交审批", + "value": "SubmitApproval" + }, + { + "disabled": false, + "name": "审批通过", + "value": "Approved" + }, + { + "disabled": false, + "name": "审批不通过", + "value": "ApprovalNotPassed" + } + ], + "textField": "name", + "valueField": "value", + "idField": "value", + "readonly": { + "type": "StateMachine", + "status": false, + "field": "editable" + } + }, + "path": "billStatus.billState", + "updateOn": "change" + }, + { + "id": "booleanField_c419df06_drqr", + "type": "form-group", + "editor": { + "type": "switch", + "readonly": { + "type": "StateMachine", + "status": false, + "field": "editable" + } + }, + "label": "是否处理", + "appearance": { + "class": "col-12 col-md-6 col-xl-3 col-el-2" + }, + "binding": { + "type": "Form", + "path": "booleanField", + "field": "c419df06-d982-44ca-8e48-b366b778049a", + "fullPath": "booleanField" + }, + "path": "booleanField", + "updateOn": "change" + }, + { + "id": "processInstance_ProcessInstance_5d3fd927_6mxv", + "type": "form-group", + "editor": { + "type": "radio-group", + "readonly": { + "type": "StateMachine", + "status": false, + "field": "editable" + }, + "data": [], + "idField": "value", + "valueField": "value", + "textField": "name", + "maxLength": 36 + }, + "label": "工单类型", + "appearance": { + "class": "col-12 col-md-6 col-xl-3 col-el-2" + }, + "binding": { + "type": "Form", + "path": "processInstance_ProcessInstance", + "field": "5d3fd927-ad8f-4da3-a430-c8a7f2162135", + "fullPath": "ProcessInstance.ProcessInstance" + }, + "path": "processInstance.processInstance", + "updateOn": "blur" + }, + { + "id": "numberField_cc6b21b3_dyee", + "type": "form-group", + "appearance": { + "class": "col-12 col-md-6 col-xl-3 col-el-2" + }, + "label": "工时", + "binding": { + "type": "Form", + "path": "numberField", + "field": "cc6b21b3-f721-493e-8a7d-5d0aa90b824c", + "fullPath": "numberField" + }, + "editor": { + "type": "number-spinner", + "nullable": true, + "readonly": { + "type": "StateMachine", + "status": false, + "field": "editable" + }, + "precision": 0, + "maxLength": 0 + }, + "path": "numberField", + "updateOn": "blur" + }, + { + "id": "dateField_e18b1dc0_so35", + "type": "form-group", + "appearance": { + "class": "col-12 col-md-6 col-xl-3 col-el-2" + }, + "label": "制单日期", + "binding": { + "type": "Form", + "path": "dateField", + "field": "e18b1dc0-12c6-4c3e-95e6-c88f1405cfa2", + "fullPath": "dateField" + }, + "editor": { + "type": "date-picker", + "readonly": { + "type": "StateMachine", + "status": false, + "field": "editable" + }, + "fieldType": "Date" + }, + "path": "dateField", + "updateOn": "blur" + }, + { + "id": "ass1_ass1_Name_63b04a7c_p63a", + "type": "form-group", + "editor": { + "type": "input-group", + "readonly": "!viewModel.stateMachine['editable']", + "maxLength": 36 + }, + "label": "名称", + "appearance": { + "class": "col-12 col-md-6 col-xl-3 col-el-2" + }, + "binding": { + "type": "Form", + "path": "ass1_ass1_Name", + "field": "63b04a7c-b310-4a02-bd8b-c4d2e8ad87f4", + "fullPath": "ass1.ass1_Name" + }, + "path": "ass1.ass1_Name" + }, + { + "id": "code_d63b5e0f_nzbn", + "type": "form-group", + "editor": { + "type": "time-picker", + "readonly": { + "type": "StateMachine", + "status": false, + "field": "editable" + }, + "maxLength": 36 + }, + "label": "制单时间", + "appearance": { + "class": "col-12 col-md-6 col-xl-3 col-el-2" + }, + "binding": { + "type": "Form", + "path": "code", + "field": "d63b5e0f-ac69-486d-8dd7-9b0e154e9fc8", + "fullPath": "code" + }, + "path": "code", + "updateOn": "blur" + }, + { + "id": "eumu1_2092e529_k19l", + "type": "form-group", + "editor": { + "type": "combo-list", + "readonly": "!viewModel.stateMachine['editable']", + "data": [ + { + "disabled": false, + "name": "testname", + "value": "test1" + } + ], + "idField": "value", + "valueField": "value", + "textField": "name" + }, + "label": "eumu1", + "appearance": { + "class": "col-12 col-md-6 col-xl-3 col-el-2" + }, + "binding": { + "type": "Form", + "path": "eumu1", + "field": "2092e529-c1cd-444d-98f5-6e11db8be5b7", + "fullPath": "eumu1" + }, + "path": "eumu1" + } + ], + "controlsInline": true, + "formAutoIntl": true + } + ], + "enableAccordion": "default" + } + ], + "name": "Vue测试" + }, + { + "id": "data-grid-z5vj-component", + "type": "component", + "contents": [ + { + "id": "data-grid-z5vj-container", + "type": "content-container", + "contents": [ + { + "id": "data-grid-z5vj-dataGrid", + "type": "data-grid", + "columns": [ + { + "id": "name_49fca8d8_r0yy", + "type": "data-grid-column", + "title": "名称", + "field": "name", + "binding": { + "type": "Form", + "path": "name", + "field": "49fca8d8-e64a-4e8c-a619-f051cfdf72a5", + "fullPath": "name" + }, + "dataType": "string", + "editor": { + "type": "input-group", + "readonly": "!viewModel.stateMachine['editable']", + "maxLength": 36 + }, + "filter": "", + "showSetting": false, + "actualWidth": 120 + }, + { + "id": "code_e5a6411a_lvjz", + "type": "data-grid-column", + "title": "编号", + "field": "code", + "binding": { + "type": "Form", + "path": "code", + "field": "e5a6411a-c30e-4259-8682-53685c53e62a", + "fullPath": "code" + }, + "dataType": "string", + "editor": { + "type": "input-group", + "readonly": "!viewModel.stateMachine['editable']", + "maxLength": 36 + }, + "filter": "", + "showSetting": true, + "actualWidth": 120 + } + ], + "appearance": { + "class": "f-component-grid" + }, + "fieldEditable": true, + "dataSource": "child1s", + "editable": "viewModel.stateMachine['editable']", + "pagination": { + "enable": false + } + } + ], + "appearance": { + "class": "f-grid-is-sub f-utils-flex-column" + } + } + ], + "viewModel": "data-grid-z5vj-component-viewmodel", + "componentType": "data-grid", + "appearance": { + "class": "f-struct-is-subgrid" + } + } + ], + "webcmds": [ + { + "id": "8172a979-2c80-4637-ace7-b13074d3f393", + "path": "/projects/packages/Inspur.GS.Gsp.Web.WebCmp/webcmd", + "name": "CardController.webcmd", + "refedHandlers": [ + { + "host": "e05264fb-796d-43fb-b83b-9e2f3866c328", + "handler": "Load" + }, + { + "host": "246a275c-88c9-4c8a-aa82-be6a950a4325", + "handler": "LoadAndAdd" + }, + { + "host": "70acc053-fa15-45be-851c-cf694e1bcaf7", + "handler": "LoadAndView" + }, + { + "host": "3e72ee6f-8f7b-4f29-aa0e-5887f2861117", + "handler": "LoadAndEdit" + }, + { + "host": "f90aadfa-988c-4da5-a5db-1416c3333794", + "handler": "Add" + }, + { + "host": "a323e27b-b9c6-4848-93b9-f117403a94ff", + "handler": "Edit" + }, + { + "host": "31b814db-01e4-407d-8fad-0f08dbb01999", + "handler": "Save" + }, + { + "host": "4f5ed2ec-8def-4a3c-8e7b-397ea93010e8", + "handler": "Cancel" + }, + { + "host": "d0d339b9-958b-4426-a108-e863300e4151", + "handler": "AddItem" + }, + { + "host": "573952e2-118d-4773-8cf7-347e97e319ca", + "handler": "RemoveItem" + } + ], + "code": "CardController", + "nameSpace": "Inspur.GS.Gsp.Web.WebCmp" + }, + { + "id": "1fcadf37-b42e-4bd5-ba6f-69d97b82547e", + "path": "MyDev/FarrisVueTest/VueFormTest/bo-vueformtest-front/metadata/components", + "name": "PCFormTest_frm_Controller.webcmd", + "refedHandlers": [ + { + "host": "20dbc06c-6e46-46f0-b8f2-a7fd951d722e", + "handler": "test" + }, + { + "host": "45e98f07-494f-4171-9129-817552fb91a8", + "handler": "test" + } + ], + "code": "PCFormTest_frm_Controller", + "nameSpace": "Inspur.GS.MyDev.FarrisVueTest.VueFormTest.VueFormTest.Front" + }, + { + "id": "71c01665-fe32-4539-bb68-1eb58a5e8fd9", + "path": "MyDev/FarrisVueTest/VueFormTest/bo-vueformtest-front/metadata/components", + "name": "vuetest1_frm_Controller.webcmd", + "code": "vuetest1_frm_Controller", + "nameSpace": "Inspur.GS.MyDev.FarrisVueTest.VueFormTest.VueFormTest.Front", + "refedHandlers": [ + { + "host": "01760ad7-e092-4d91-88d8-89f9e13566fa", + "handler": "test" + }, + { + "host": "53e84e7e-ea7f-4b24-aef7-2454b9ce3f56", + "handler": "test" + } + ] + } + ], + "projectName": "bo-vueformtest-front", + "customClass": { + "root-component": ".pc-red{\r\n color:red\r\n}", + "card-component": ".test{\r\n color:green\r\n}", + "basic-form-component": ".test2{\r\n color:black\r\n}", + "child1-component": "" + }, + "actions": [ + { + "sourceComponent": { + "id": "button-add", + "viewModelId": "root-viewmodel", + "map": [ + { + "event": { + "label": "onClick", + "name": "点击事件" + }, + "targetComponent": { + "id": "root-component", + "viewModelId": "root-viewmodel" + }, + "command": { + "id": "f90aadfa-988c-4da5-a5db-1416c3333794", + "label": "Add1", + "name": "新增一条数据", + "handlerName": "Add", + "params": [ + { + "name": "transitionAction", + "shownName": "状态机动作", + "value": "Create", + "defaultValue": null + } + ], + "cmpId": "8172a979-2c80-4637-ace7-b13074d3f393", + "isNewGenerated": false, + "isInvalid": false + }, + "controller": { + "id": "8172a979-2c80-4637-ace7-b13074d3f393", + "label": "CardController", + "name": "卡片控制器" + } + } + ] + } + }, + { + "sourceComponent": { + "id": "button-edit", + "viewModelId": "root-viewmodel", + "map": [ + { + "event": { + "label": "onClick", + "name": "点击事件" + }, + "targetComponent": { + "id": "root-component", + "viewModelId": "root-viewmodel" + }, + "command": { + "id": "a323e27b-b9c6-4848-93b9-f117403a94ff", + "label": "Edit1", + "name": "编辑当前数据", + "handlerName": "Edit", + "params": [ + { + "name": "transitionAction", + "shownName": "状态机动作", + "value": "Edit", + "defaultValue": null + } + ], + "cmpId": "8172a979-2c80-4637-ace7-b13074d3f393", + "isNewGenerated": false, + "isInvalid": false + }, + "controller": { + "id": "8172a979-2c80-4637-ace7-b13074d3f393", + "label": "CardController", + "name": "卡片控制器" + } + } + ] + } + }, + { + "sourceComponent": { + "id": "button-save", + "viewModelId": "root-viewmodel", + "map": [ + { + "event": { + "label": "onClick", + "name": "点击事件" + }, + "targetComponent": { + "id": "root-component", + "viewModelId": "root-viewmodel" + }, + "command": { + "id": "31b814db-01e4-407d-8fad-0f08dbb01999", + "label": "Save1", + "name": "保存变更", + "handlerName": "Save", + "params": [ + { + "name": "transitionAction", + "shownName": "状态机动作", + "value": "Cancel", + "defaultValue": null + }, + { + "name": "successMsg", + "shownName": "保存成功提示信息", + "value": "", + "defaultValue": null + } + ], + "cmpId": "8172a979-2c80-4637-ace7-b13074d3f393", + "isNewGenerated": false, + "isInvalid": false + }, + "controller": { + "id": "8172a979-2c80-4637-ace7-b13074d3f393", + "label": "CardController", + "name": "卡片控制器" + } + } + ] + } + }, + { + "sourceComponent": { + "id": "button-cancel", + "viewModelId": "root-viewmodel", + "map": [ + { + "event": { + "label": "onClick", + "name": "点击事件" + }, + "targetComponent": { + "id": "root-component", + "viewModelId": "root-viewmodel" + }, + "command": { + "id": "4f5ed2ec-8def-4a3c-8e7b-397ea93010e8", + "label": "Cancel1", + "name": "取消变更", + "handlerName": "Cancel", + "params": [ + { + "name": "transitionAction", + "shownName": "状态机动作", + "value": "Cancel", + "defaultValue": null + } + ], + "cmpId": "8172a979-2c80-4637-ace7-b13074d3f393", + "isNewGenerated": false, + "isInvalid": false + }, + "controller": { + "id": "8172a979-2c80-4637-ace7-b13074d3f393", + "label": "CardController", + "name": "卡片控制器" + } + } + ] + } + }, + { + "sourceComponent": { + "id": "toolbar_item_2362", + "viewModelId": "root-viewmodel", + "map": [ + { + "event": { + "label": "onClick", + "name": "点击事件" + }, + "targetComponent": { + "id": "root-component", + "viewModelId": "root-viewmodel" + }, + "command": { + "id": "45e98f07-494f-4171-9129-817552fb91a8", + "label": "rootTest2", + "name": "test2", + "handlerName": "test", + "params": [], + "cmpId": "1fcadf37-b42e-4bd5-ba6f-69d97b82547e", + "isNewGenerated": false, + "isInvalid": false + }, + "controller": { + "id": "1fcadf37-b42e-4bd5-ba6f-69d97b82547e", + "label": "PCFormTest_frm_Controller", + "name": "PC卡片表单测试_frm_Controller" + } + } + ] + } + }, + { + "sourceComponent": { + "id": "toolbar_item_4335", + "viewModelId": "root-viewmodel", + "map": [ + { + "event": { + "label": "onClick", + "name": "点击事件" + }, + "targetComponent": { + "id": "root-component", + "viewModelId": "root-viewmodel" + }, + "command": { + "id": "53e84e7e-ea7f-4b24-aef7-2454b9ce3f56", + "label": "rootTest4", + "name": "测试4", + "handlerName": "test", + "params": [], + "cmpId": "71c01665-fe32-4539-bb68-1eb58a5e8fd9", + "isNewGenerated": false, + "isInvalid": false + }, + "controller": { + "id": "71c01665-fe32-4539-bb68-1eb58a5e8fd9", + "label": "vuetest1_frm_Controller", + "name": "vuetest1_frm_Controller" + } + } + ] + } + }, + { + "sourceComponent": { + "id": "button-add-data-grid-z5vj", + "viewModelId": "data-grid-z5vj-component-viewmodel", + "map": [ + { + "event": { + "label": "onClick", + "name": "点击事件" + }, + "targetComponent": { + "id": "data-grid-z5vj-component", + "viewModelId": "data-grid-z5vj-component-viewmodel" + }, + "command": { + "id": "d0d339b9-958b-4426-a108-e863300e4151", + "label": "datagridz5vjAddItem1", + "name": "增加一条子表数据", + "handlerName": "AddItem", + "params": [], + "cmpId": "8172a979-2c80-4637-ace7-b13074d3f393", + "isNewGenerated": false, + "isInvalid": false + }, + "controller": { + "id": "8172a979-2c80-4637-ace7-b13074d3f393", + "label": "CardController", + "name": "卡片控制器" + } + } + ] + } + }, + { + "sourceComponent": { + "id": "button-remove-data-grid-z5vj", + "viewModelId": "data-grid-z5vj-component-viewmodel", + "map": [ + { + "event": { + "label": "onClick", + "name": "点击事件" + }, + "targetComponent": { + "id": "data-grid-z5vj-component", + "viewModelId": "data-grid-z5vj-component-viewmodel" + }, + "command": { + "id": "573952e2-118d-4773-8cf7-347e97e319ca", + "label": "datagridz5vjRemoveItem1", + "name": "删除一条子表数据", + "handlerName": "RemoveItem", + "params": [ + { + "name": "id", + "shownName": "待删除子表数据的标识", + "value": "{DATA~/child1s/id}" + } + ], + "cmpId": "8172a979-2c80-4637-ace7-b13074d3f393", + "isNewGenerated": false, + "isInvalid": false + }, + "controller": { + "id": "8172a979-2c80-4637-ace7-b13074d3f393", + "label": "CardController", + "name": "卡片控制器" + } + } + ] + } + }, + { + "sourceComponent": { + "id": "root-component", + "viewModelId": "root-viewmodel", + "map": [ + { + "event": { + "label": "onInit", + "name": "初始化事件" + }, + "targetComponent": { + "id": "root-component", + "viewModelId": "root-viewmodel" + }, + "command": { + "id": "e05264fb-796d-43fb-b83b-9e2f3866c328", + "label": "Load1", + "name": "执行加载页面后初始方法", + "handlerName": "Load", + "params": [ + { + "name": "action", + "shownName": "初始方法", + "value": "{UISTATE~/#{root-component}/action}", + "defaultValue": null + } + ], + "cmpId": "8172a979-2c80-4637-ace7-b13074d3f393", + "isNewGenerated": false, + "isInvalid": false + }, + "controller": { + "id": "8172a979-2c80-4637-ace7-b13074d3f393", + "label": "CardController", + "name": "卡片控制器" + } + } + ] + } + } + ], + "communications": [], + "customStyleFile": "/apps/MyDev/FarrisVueTest/web/bo-vueformtest-front/PCFormTest/PCFormTest.css", + "externalComponents": [ + { + "id": "sysorghlp-5vsx", + "type": "lookup", + "enableToSelect": false, + "dataSource": { + "displayName": "系统组织帮助(sysorghlp)", + "idField": "id", + "type": "ViewObject", + "uri": "lookup.sysorghlp_5vsx" + }, + "helpId": "b524a702-7323-4d46-998e-5ba0c6abcd49", + "displayType": "TreeList", + "textField": "name", + "pagination": { + "enable": true, + "sizeLimits": [ + 10, + 20, + 30, + 50 + ], + "size": 20, + "showLimits": true, + "showGoto": false, + "mode": "server" + }, + "loadTreeDataType": "default", + "onlySelectLeaf": false, + "dialog": { + "title": "系统组织帮助" + }, + "name": "系统组织帮助" + }, + { + "id": "vuetest1-02de", + "type": "modal", + "name": "vuetest1", + "title": "vuetest1", + "contents": [ + { + "id": "external-container-1e92e", + "type": "external-container", + "appearance": { + "class": "position-relative h-100" + }, + "externalComponent": { + "id": "7df43f6c-35ff-429c-ab17-737a3d673ba4", + "code": "vuetest1", + "name": "vuetest1", + "fileName": "vuetest1.frm", + "relativePath": "MyDev/FarrisVueTest/VueFormTest/bo-vueformtest-front/metadata/components" + }, + "onCommunication": "" + } + ] + }, + { + "id": "UserOrgTest-t8m3", + "type": "lookup", + "enableToSelect": false, + "dataSource": { + "displayName": "用户组织帮助(UserOrgTest)", + "idField": "id", + "type": "ViewObject", + "uri": "lookup.UserOrgTest_t8m3" + }, + "helpId": "89f18b11-dd4f-4cd1-92c9-83d8038ef799", + "displayType": "NavTreeList", + "textField": "name", + "pagination": { + "enable": true, + "sizeLimits": [ + 10, + 20, + 30, + 50 + ], + "size": 20, + "showLimits": true, + "showGoto": false, + "mode": "server" + }, + "loadTreeDataType": "default", + "onlySelectLeaf": false, + "dialog": { + "title": "用户组织帮助" + }, + "name": "用户组织帮助" + } + ], + "hiddenComponents": [] + } +} \ No newline at end of file diff --git a/web-form-metadata/src/test/java/com/inspur/edp/web/formmetadata/webservice/SmartFormServiceImplTest.java b/web-form-metadata/src/test/java/com/inspur/edp/web/formmetadata/webservice/SmartFormServiceImplTest.java new file mode 100644 index 00000000..3cdde043 --- /dev/null +++ b/web-form-metadata/src/test/java/com/inspur/edp/web/formmetadata/webservice/SmartFormServiceImplTest.java @@ -0,0 +1,40 @@ +/* + * Copyright (c) 2020 - present, Inspur Genersoft Co., Ltd. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.inspur.edp.web.formmetadata.webservice; + +import com.fasterxml.jackson.databind.JsonNode; +import com.inspur.edp.web.common.io.FileUtility; +import com.inspur.edp.web.common.serialize.SerializeUtility; +import com.inspur.edp.web.formmetadata.api.entity.SmartFormEntity; +import com.inspur.edp.web.formmetadata.service.SmartFormServiceImpl; +import org.junit.jupiter.api.Test; + + +class SmartFormServiceImplTest { + + @Test + public void testExtract(){ + //String jsonContent = FileUtility.readAsString("D:\\WorkSpaces\\Projects\\Backed\\ui-model\\ui-model-ljk\\web-form-metadata\\src\\test\\java\\com\\inspur\\edp\\web\\formmetadata\\webservice\\PCForm-vue.json"); + String jsonContent = FileUtility.readAsString("D:\\WorkSpaces\\Projects\\Backed\\ui-model\\ui-model-ljk\\web-form-metadata\\src\\test\\java\\com\\inspur\\edp\\web\\formmetadata\\webservice\\PCForm-angular.json"); + + JsonNode jsonNode = SerializeUtility.getInstance().deserialize(jsonContent, JsonNode.class); + SmartFormServiceImpl SmartFormServiceImpl = new SmartFormServiceImpl(); + SmartFormEntity smartFormEntity = SmartFormServiceImpl.extract(jsonNode,false); + + System.out.println(smartFormEntity); + } +} -- Gitee From 3854ca0cad7335cc5097fcf842583c04d09d26d1 Mon Sep 17 00:00:00 2001 From: lorcan <13231947+lorcan-lv@user.noreply.gitee.com> Date: Fri, 19 Dec 2025 08:45:24 +0800 Subject: [PATCH 6/7] =?UTF-8?q?Revert=20"Revert=20"=E6=8F=90=E5=8F=96?= =?UTF-8?q?=E9=BB=98=E8=AE=A4=E5=80=BC=E5=B1=9E=E6=80=A7""?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This reverts commit df41529b16317cc37401af33c302a2c50ff43435. --- .../edp/web/formmetadata/service/SmartFormServiceImpl.java | 1 + .../inspur/edp/web/formmetadata/webservice/PCForm-angular.json | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/web-form-metadata/src/main/java/com/inspur/edp/web/formmetadata/service/SmartFormServiceImpl.java b/web-form-metadata/src/main/java/com/inspur/edp/web/formmetadata/service/SmartFormServiceImpl.java index bbd0881f..1095a79b 100644 --- a/web-form-metadata/src/main/java/com/inspur/edp/web/formmetadata/service/SmartFormServiceImpl.java +++ b/web-form-metadata/src/main/java/com/inspur/edp/web/formmetadata/service/SmartFormServiceImpl.java @@ -289,6 +289,7 @@ public class SmartFormServiceImpl implements SmartFormService { smartFormField.setDataType(getStringValue(fieldNode, "/type/valueType/$type")); } } + smartFormField.getProperties().put("defaultValue", getStringValue(fieldNode, "/defaultValue")); } private String getStringValue(JsonNode node, String key){ diff --git a/web-form-metadata/src/test/java/com/inspur/edp/web/formmetadata/webservice/PCForm-angular.json b/web-form-metadata/src/test/java/com/inspur/edp/web/formmetadata/webservice/PCForm-angular.json index 2839e4a2..c80db8a7 100644 --- a/web-form-metadata/src/test/java/com/inspur/edp/web/formmetadata/webservice/PCForm-angular.json +++ b/web-form-metadata/src/test/java/com/inspur/edp/web/formmetadata/webservice/PCForm-angular.json @@ -462,7 +462,7 @@ "editor": { "$type": "TextBox" }, - "defaultValue": "", + "defaultValue": "2", "path": "ID", "type": { "$type": "StringType", -- Gitee From dc216b5c71fca7377f5f2bff3d75b94d018be3cc Mon Sep 17 00:00:00 2001 From: lorcan <13231947+lorcan-lv@user.noreply.gitee.com> Date: Fri, 19 Dec 2025 11:46:10 +0800 Subject: [PATCH 7/7] =?UTF-8?q?vue=E8=A1=A8=E6=A0=BC=E6=93=8D=E4=BD=9C?= =?UTF-8?q?=E5=88=97=E6=8C=87=E4=BB=A4=E8=B5=84=E6=BA=90=E9=A1=B9=E6=8F=90?= =?UTF-8?q?=E5=8F=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../DataGridI18nResourceStrategy.java | 31 +++++++++++++++---- 1 file changed, 25 insertions(+), 6 deletions(-) diff --git a/web-form-metadata/src/main/java/com/inspur/edp/web/formmetadata/i18n/component/strategy/i18nresourcestrategy/DataGridI18nResourceStrategy.java b/web-form-metadata/src/main/java/com/inspur/edp/web/formmetadata/i18n/component/strategy/i18nresourcestrategy/DataGridI18nResourceStrategy.java index 79cb8f6f..c0686795 100644 --- a/web-form-metadata/src/main/java/com/inspur/edp/web/formmetadata/i18n/component/strategy/i18nresourcestrategy/DataGridI18nResourceStrategy.java +++ b/web-form-metadata/src/main/java/com/inspur/edp/web/formmetadata/i18n/component/strategy/i18nresourcestrategy/DataGridI18nResourceStrategy.java @@ -23,6 +23,7 @@ import com.inspur.edp.web.formmetadata.i18n.I18nResourceItemManager; import com.inspur.edp.web.formmetadata.i18n.component.ComponentUtility; import com.inspur.edp.web.formmetadata.i18n.component.strategy.i18nresourcestrategy.CommonStrategy.GridCommonStrategy; import com.inspur.edp.web.formmetadata.i18n.constant.I18nResourceConstant; +import jodd.util.ObjectUtil; import java.util.ArrayList; import java.util.HashMap; @@ -72,22 +73,40 @@ public class DataGridI18nResourceStrategy extends GridCommonStrategy { } //提取columns里的行内容 - if(currentComponent.containsKey("columns")){ - I18nResourceItemCollection columnsI18nResourceItemCollection=extractedColumns( i18nResourceItemBaseId, currentComponent); + if (currentComponent.containsKey("columns")) { + I18nResourceItemCollection columnsI18nResourceItemCollection = extractedColumns(i18nResourceItemBaseId, currentComponent); if (columnsI18nResourceItemCollection != null && columnsI18nResourceItemCollection.size() > 0) { i18nResourceItemCollection.addRange(columnsI18nResourceItemCollection); } } //提取handing内的行号值 - if(currentComponent.containsKey("rowNumber")){ + if (currentComponent.containsKey("rowNumber")) { String currentComponentType = ComponentUtility.getInstance().getType(currentComponent); String currentComponentId = ComponentUtility.getInstance().getId(currentComponent); - HashMaprowNumber= (HashMap) currentComponent.get("rowNumber"); - String heading= (String) rowNumber.get("heading"); - String generatedComponentId = currentComponentId + "/rowNumber/heading"; + HashMap rowNumber = (HashMap) currentComponent.get("rowNumber"); + String heading = (String) rowNumber.get("heading"); + String generatedComponentId = currentComponentId + "/rowNumber/heading"; I18nResourceItem footerButtonI18nResourceItem = I18nResourceItemManager.createI18nResourceItem(i18nResourceItemBaseId, generatedComponentId, heading, heading); this.addInCollection(i18nResourceItemCollection, footerButtonI18nResourceItem); } + //提取command + if (currentComponent.containsKey("command")) { + String currentComponentId = ComponentUtility.getInstance().getId(currentComponent); + HashMap command = (HashMap) currentComponent.get("command"); + if (command.containsKey("commands")) { + List> commands = (List>) command.get("commands"); + if(command.containsKey("enableType") && "custom".equals((String) command.get("enableType"))){ + commands.forEach(cmd -> { + if (cmd.get("value") == null || StringUtility.isNullOrEmpty((String) cmd.get("value"))) { + return; + } + String generatedComponentId = currentComponentId + "/command/commands/" + (String) cmd.get("value"); + I18nResourceItem footerButtonI18nResourceItem = I18nResourceItemManager.createI18nResourceItem(i18nResourceItemBaseId, generatedComponentId, (String) cmd.get("text"), (String) cmd.get("text")); + this.addInCollection(i18nResourceItemCollection, footerButtonI18nResourceItem); + }); + } + } + } return i18nResourceItemCollection; } -- Gitee