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
5680d91a
Commit
5680d91a
authored
Jun 07, 2020
by
RuoYi
Browse files
代码生成字典Integer/Long使用parseInt
parent
40185f27
Changes
2
Hide whitespace changes
Inline
Side-by-side
ruoyi/src/main/resources/vm/vue/index-tree.vue.vm
View file @
5680d91a
...
...
@@ -146,7 +146,7 @@
v-for=
"dict in
${
field
}
Options"
:key=
"dict.dictValue"
:label=
"dict.dictLabel"
#
if
($
column
.
javaType
==
"Integer"
)
:value=
"parseInt(dict.dictValue)"
#
else
:value=
"dict.dictValue"
#
end
#
if
($
column
.
javaType
==
"Integer"
||
$
column
.
javaType
==
"Long"
)
:value=
"parseInt(dict.dictValue)"
#
else
:value=
"dict.dictValue"
#
end
></el-option>
</el-select>
...
...
@@ -163,7 +163,7 @@
<el-radio
v-for=
"dict in
${
field
}
Options"
:key=
"dict.dictValue"
#
if
($
column
.
javaType
==
"Integer"
)
:label=
"parseInt(dict.dictValue)"
#
else
:label=
"dict.dictValue"
#
end
#
if
($
column
.
javaType
==
"Integer"
||
$
column
.
javaType
==
"Long"
)
:label=
"parseInt(dict.dictValue)"
#
else
:label=
"dict.dictValue"
#
end
>
{{
dict.dictLabel}}
</el-radio>
</el-radio-group>
...
...
ruoyi/src/main/resources/vm/vue/index.vue.vm
View file @
5680d91a
...
...
@@ -174,7 +174,7 @@
v-for=
"dict in
${
field
}
Options"
:key=
"dict.dictValue"
:label=
"dict.dictLabel"
#
if
($
column
.
javaType
==
"Integer"
)
:value=
"parseInt(dict.dictValue)"
#
else
:value=
"dict.dictValue"
#
end
#
if
($
column
.
javaType
==
"Integer"
||
$
column
.
javaType
==
"Long"
)
:value=
"parseInt(dict.dictValue)"
#
else
:value=
"dict.dictValue"
#
end
></el-option>
</el-select>
...
...
@@ -191,7 +191,7 @@
<el-radio
v-for=
"dict in
${
field
}
Options"
:key=
"dict.dictValue"
#
if
($
column
.
javaType
==
"Integer"
)
:label=
"parseInt(dict.dictValue)"
#
else
:label=
"dict.dictValue"
#
end
#
if
($
column
.
javaType
==
"Integer"
||
$
column
.
javaType
==
"Long"
)
:label=
"parseInt(dict.dictValue)"
#
else
:label=
"dict.dictValue"
#
end
>
{{
dict.dictLabel}}
</el-radio>
</el-radio-group>
...
...
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