Commit 5d74ed32bd0b40753c1e6cda2c27adfc41c32953
1 parent
6afaced3
表单类型为Integer/Long设置整形默认值
Showing
1 changed file
with
1 additions
and
1 deletions
ruoyi-generator/src/main/resources/vm/vue/index.vue.vm
| @@ -357,7 +357,7 @@ export default { | @@ -357,7 +357,7 @@ export default { | ||
| 357 | this.form = { | 357 | this.form = { |
| 358 | #foreach ($column in $columns) | 358 | #foreach ($column in $columns) |
| 359 | #if($column.htmlType == "radio") | 359 | #if($column.htmlType == "radio") |
| 360 | - $column.javaField: "0"#if($velocityCount != $columns.size()),#end | 360 | + $column.javaField: #if($column.javaType == "Integer" || $column.javaType == "Long")0#else"0"#end#if($velocityCount != $columns.size()),#end |
| 361 | 361 | ||
| 362 | #elseif($column.htmlType == "checkbox") | 362 | #elseif($column.htmlType == "checkbox") |
| 363 | $column.javaField: []#if($velocityCount != $columns.size()),#end | 363 | $column.javaField: []#if($velocityCount != $columns.size()),#end |