feat: vue3 vben 代码生成支持创建和更新两种表单

This commit is contained in:
xingyu 2023-04-27 13:17:03 +08:00
parent 1df0fd1bf8
commit c88794f212

View File

@ -154,13 +154,13 @@ export const updateFormSchema: FormSchema[] = [
show: false,
component: 'Input'
},
#foreach($column in $columns)
#if ($column.updateOperation)
#set ($dictType = $column.dictType)
#set ($javaField = $column.javaField)
#set ($AttrName = $column.javaField.substring(0,1).toUpperCase() + ${column.javaField.substring(1)})
#set ($comment = $column.columnComment)
#if (!$column.primaryKey)## 忽略主键,不用在表单里
#foreach($column in $columns)
#if ($column.updateOperation)
#set ($dictType = $column.dictType)
#set ($javaField = $column.javaField)
#set ($AttrName = $column.javaField.substring(0,1).toUpperCase() + ${column.javaField.substring(1)})
#set ($comment = $column.columnComment)
#if (!$column.primaryKey)## 忽略主键,不用在表单里
{
label: '${comment}',
field: '${javaField}',
@ -215,7 +215,7 @@ export const updateFormSchema: FormSchema[] = [
component: 'InputTextArea'
#end
},
#end
#end
#end
#end
#end
#end
]