+
+
+ <${vue.feature}-table ref="table"
+ @openAdd="() => modal.openAdd()"
+ @openUpdate="(e) => modal.openUpdate(e)" />
+
+ <${vue.feature}-form-modal ref="modal"
+ @added="() => table.addedCallback()"
+ @updated="() => table.updatedCallback()" />
+
+
+
+
+
+
+
+
diff --git a/orion-ops-launch/src/main/resources/templates/orion-vue-views-types-enum.types.ts.vm b/orion-ops-launch/src/main/resources/templates/orion-vue-views-types-enum.types.ts.vm
index 63c6a1d7..ec68b4b1 100644
--- a/orion-ops-launch/src/main/resources/templates/orion-vue-views-types-enum.types.ts.vm
+++ b/orion-ops-launch/src/main/resources/templates/orion-vue-views-types-enum.types.ts.vm
@@ -11,7 +11,7 @@ export const $enumEntity.key = {
#foreach($enumEntityItemFields in $enumEntityItem.value.entrySet())
$enumEntityItemFields.key: '$enumEntityItemFields.value',
#end
- }
+ },
#end
}
diff --git a/orion-ops-launch/src/main/resources/templates/orion-vue-views-types-form.rules.ts.vm b/orion-ops-launch/src/main/resources/templates/orion-vue-views-types-form.rules.ts.vm
index 38ecafb8..2e163a8c 100644
--- a/orion-ops-launch/src/main/resources/templates/orion-vue-views-types-form.rules.ts.vm
+++ b/orion-ops-launch/src/main/resources/templates/orion-vue-views-types-form.rules.ts.vm
@@ -1,6 +1,6 @@
import { FieldRule } from '@arco-design/web-vue';
-
#foreach($field in ${table.fields})
+#if("$!field.propertyName" != "id")
#if(${field.propertyType} == 'String')
export const ${field.propertyName} = [{
required: true,
@@ -15,10 +15,13 @@ export const ${field.propertyName} = [{
message: '请输入${field.comment}'
}] as FieldRule[];
#end
+#end
#end
export default {
#foreach($field in ${table.fields})
+#if("$!field.propertyName" != "id")
${field.propertyName},
#end
+#end
} as Record