Browse Source

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

tags/v2.1
RuoYi 4 years ago
parent
commit
17d5751452
  1. 2
      ruoyi-modules/ruoyi-gen/src/main/resources/vm/vue/index-tree.vue.vm
  2. 2
      ruoyi-modules/ruoyi-gen/src/main/resources/vm/vue/index.vue.vm

2
ruoyi-modules/ruoyi-gen/src/main/resources/vm/vue/index-tree.vue.vm

@ -343,7 +343,7 @@ export default { @@ -343,7 +343,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

2
ruoyi-modules/ruoyi-gen/src/main/resources/vm/vue/index.vue.vm

@ -357,7 +357,7 @@ export default { @@ -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

Loading…
Cancel
Save