表单类型为Integer/Long设置整形默认值

This commit is contained in:
RuoYi 2020-07-30 16:03:44 +08:00
parent 6afaced3cf
commit 5d74ed32bd
1 changed files with 1 additions and 1 deletions

View File

@ -357,7 +357,7 @@ export default {
this.form = {
#foreach ($column in $columns)
#if($column.htmlType == "radio")
$column.javaField: "0"#if($velocityCount != $columns.size()),#end
$column.javaField: #if($column.javaType == "Integer" || $column.javaType == "Long")0#else"0"#end#if($velocityCount != $columns.size()),#end
#elseif($column.htmlType == "checkbox")
$column.javaField: []#if($velocityCount != $columns.size()),#end