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
c628aa5b
Commit
c628aa5b
authored
Aug 30, 2021
by
马小法
Browse files
修改代码生成字典回显样式
parent
4e8c6fb7
Changes
2
Hide whitespace changes
Inline
Side-by-side
ruoyi-generator/src/main/resources/vm/vue/index-tree.vue.vm
View file @
c628aa5b
...
...
@@ -106,7 +106,11 @@
</template>
</el-table-column>
#
elseif
($
column
.
list
&&
""
!=
$
column
.
dictType
)
<el-table-column
label=
"
${
comment
}
"
align=
"center"
prop=
"
${
javaField
}
"
:formatter=
"
${
javaField
}
Format"
/>
<el-table-column
label=
"
${
comment
}
"
align=
"center"
prop=
"
${
javaField
}
"
>
<template
slot-scope=
"scope"
>
<dict-tag
:options=
"
${
javaField
}
Options"
:value=
"scope.row.
${
javaField
}
"
/>
</template>
</el-table-column>
#
elseif
($
column
.
list
&&
""
!=
$
javaField
)
#
if
(${
foreach
.
index
}
==
1
)
<el-table-column
label=
"
${
comment
}
"
prop=
"
${
javaField
}
"
/>
...
...
@@ -378,20 +382,6 @@ export default {
this
.${
businessName
}
Options
.
push
(
data
);
});
},
#
foreach
($
column
in
$
columns
)
#
if
(${
column
.
dictType
}
!=
''
)
#
set
($
parentheseIndex
=
$
column
.
columnComment
.
indexOf
(
"("
))
#
if
($
parentheseIndex
!=
-
1
)
#
set
($
comment
=
$
column
.
columnComment
.
substring
(
0
,
$
parentheseIndex
))
#
else
#
set
($
comment
=
$
column
.
columnComment
)
#
end
//
$
comment
字典翻译
${
column
.
javaField
}
Format
(
row
,
column
)
{
return
this
.
selectDictLabel
#
if
($
column
.
htmlType
==
"checkbox"
)
s
#
end
(
this
.
${
column
.
javaField
}
Options
,
row
.
${
column
.
javaField
});
},
#
end
#
end
// 取消按钮
cancel
()
{
this
.
open
=
false
;
...
...
ruoyi-generator/src/main/resources/vm/vue/index.vue.vm
View file @
c628aa5b
...
...
@@ -135,7 +135,11 @@
</template>
</el-table-column>
#
elseif
($
column
.
list
&&
""
!=
$
column
.
dictType
)
<el-table-column
label=
"
${
comment
}
"
align=
"center"
prop=
"
${
javaField
}
"
:formatter=
"
${
javaField
}
Format"
/>
<el-table-column
label=
"
${
comment
}
"
align=
"center"
prop=
"
${
javaField
}
"
>
<template
slot-scope=
"scope"
>
<dict-tag
:options=
"
${
javaField
}
Options"
:value=
"scope.row.
${
javaField
}
"
/>
</template>
</el-table-column>
#
elseif
($
column
.
list
&&
""
!=
$
javaField
)
<el-table-column
label=
"
${
comment
}
"
align=
"center"
prop=
"
${
javaField
}
"
/>
#
end
...
...
@@ -426,20 +430,6 @@ export default {
this
.
loading
=
false
;
});
},
#
foreach
($
column
in
$
columns
)
#
if
(${
column
.
dictType
}
!=
''
)
#
set
($
parentheseIndex
=
$
column
.
columnComment
.
indexOf
(
"("
))
#
if
($
parentheseIndex
!=
-
1
)
#
set
($
comment
=
$
column
.
columnComment
.
substring
(
0
,
$
parentheseIndex
))
#
else
#
set
($
comment
=
$
column
.
columnComment
)
#
end
//
$
comment
字典翻译
${
column
.
javaField
}
Format
(
row
,
column
)
{
return
this
.
selectDictLabel
#
if
($
column
.
htmlType
==
"checkbox"
)
s
#
end
(
this
.
${
column
.
javaField
}
Options
,
row
.
${
column
.
javaField
});
},
#
end
#
end
// 取消按钮
cancel
()
{
this
.
open
=
false
;
...
...
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