Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
jinli gu
RuoYi Vue
Commits
5d74ed32
Commit
5d74ed32
authored
Jul 30, 2020
by
RuoYi
Browse files
表单类型为Integer/Long设置整形默认值
parent
6afaced3
Changes
1
Hide whitespace changes
Inline
Side-by-side
ruoyi-generator/src/main/resources/vm/vue/index.vue.vm
View file @
5d74ed32
...
...
@@ -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
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment