单选框和下拉框控件只显示字典类型的根节点数据
This commit is contained in:
@@ -59,8 +59,13 @@ var body = {
|
||||
var checked, title;
|
||||
for (var item in p.items){
|
||||
checked = (@ObjectUtils.toString(p.value) == item[p.itemValue] ? ' checked' : '');
|
||||
if (type.name(item) == 'DictData' && isNotBlank(item['description'])){
|
||||
title = ' title="' + item['description'] + '"';
|
||||
if (type.name(item) == 'DictData'){
|
||||
if (!item['isRoot']) {
|
||||
continue;
|
||||
}
|
||||
if (isNotBlank(item['description'])){
|
||||
title = ' title="' + item['description'] + '"';
|
||||
}
|
||||
}
|
||||
%><label${title}><input type="radio" id="${p.id}${itemLP.index}" name="${p.name}"
|
||||
value="${item[p.itemValue]}"${p.attrs}${checked}> ${item[p.itemLabel]}</label><%
|
||||
|
||||
@@ -94,6 +94,9 @@ var body = {
|
||||
attr = attr + (@ObjectUtils.toString(p.value) == iv ? ' selected' : '');
|
||||
}
|
||||
if (type.name(item) == 'DictData'){
|
||||
if (!item['isRoot']) {
|
||||
continue;
|
||||
}
|
||||
if (isNotBlank(item['description'])){
|
||||
attr = attr + ' title="' + item['description'] + '"';
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user