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
Springboot Plus
Commits
29f96386
"...java/net/mingsoft/git@ustchcs.com:gujinli1118/MCMS.git" did not exist on "6a59a6d7c22da19948a48438c6be96bf76c934aa"
Commit
29f96386
authored
Mar 12, 2018
by
李家智
Browse files
add readonly support
parent
9c09fc44
Changes
1
Hide whitespace changes
Inline
Side-by-side
admin-core/src/main/resources/templates/common/tag/simpleDictSelect.tag.html
View file @
29f96386
<!--# /*简单一级字典下拉列表控件*/ -->
<div
class=
"${style!'layui-input-inline'}"
>
<select
data-group=
"${group!}"
name=
"${name}"
${
has
(
id
)?("
id=
"+id):''}>
<option value="
"
>
请选择
</option>
<!--#
if(has(readonly)){
var dicts = [];
var selectedDict = null;
if(isNotEmpty(type)){
dicts = dict.dictDownQuery(type);
}else if(isNotEmpty(group)&&isNotEmpty(value)){
//级联选择
dicts = dict.dictListByValue(group,value);
}
var expected = value!"";
for(dict in dicts){
if(dict.value==(expected+"")){
selectedDict = dict;
break;
}
}
-->
<input
type=
"text"
class=
"layui-input"
value=
"${selectedDict.name}"
></input>
<input
type=
"hidden"
name=
"${name}"
class=
"layui-input"
value=
"${expected}"
></input>
<!--#}else{ -->
<select
data-group=
"${group!}"
name=
"${name}"
${
has
(
id
)?("
id=
"+id):''}>
<option value="
"
>
请选择
</option>
<!--#
var dicts = [];
if(isNotEmpty(type)){
...
...
@@ -18,4 +41,5 @@
<!--#}-->
</select>
<!--#} -->
</div>
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