mirror of
https://gitee.com/hhyykk/ipms-sjy.git
synced 2025-08-04 13:24:07 +08:00
feat: vue3 vben 代码生成支持创建和更新两种表单
This commit is contained in:
@@ -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
|
||||
]
|
Reference in New Issue
Block a user