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
eec5c58b
Commit
eec5c58b
authored
Apr 29, 2020
by
RuoYi
Browse files
修改代码生成字典字段int类型没有自动选中问题
parent
a34edef6
Changes
2
Hide whitespace changes
Inline
Side-by-side
ruoyi/src/main/resources/vm/vue/index-tree.vue.vm
View file @
eec5c58b
...
...
@@ -146,7 +146,8 @@
v-for=
"dict in
${
field
}
Options"
:key=
"dict.dictValue"
:label=
"dict.dictLabel"
:value=
"dict.dictValue"
#
if
($
column
.
javaType
==
"Integer"
)
:value=
"parseInt(dict.dictValue)"
#
else
:value=
"dict.dictValue"
#
end
></el-option>
</el-select>
</el-form-item>
...
...
@@ -162,7 +163,8 @@
<el-radio
v-for=
"dict in
${
field
}
Options"
:key=
"dict.dictValue"
:label=
"dict.dictValue"
#
if
($
column
.
javaType
==
"Integer"
)
:label=
"parseInt(dict.dictValue)"
#
else
:label=
"dict.dictValue"
#
end
>
{{
dict.dictLabel}}
</el-radio>
</el-radio-group>
</el-form-item>
...
...
ruoyi/src/main/resources/vm/vue/index.vue.vm
View file @
eec5c58b
...
...
@@ -174,7 +174,8 @@
v-for=
"dict in
${
field
}
Options"
:key=
"dict.dictValue"
:label=
"dict.dictLabel"
:value=
"dict.dictValue"
#
if
($
column
.
javaType
==
"Integer"
)
:value=
"parseInt(dict.dictValue)"
#
else
:value=
"dict.dictValue"
#
end
></el-option>
</el-select>
</el-form-item>
...
...
@@ -190,7 +191,8 @@
<el-radio
v-for=
"dict in
${
field
}
Options"
:key=
"dict.dictValue"
:label=
"dict.dictValue"
#
if
($
column
.
javaType
==
"Integer"
)
:label=
"parseInt(dict.dictValue)"
#
else
:label=
"dict.dictValue"
#
end
>
{{
dict.dictLabel}}
</el-radio>
</el-radio-group>
</el-form-item>
...
...
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