处理多个字典值回显
This commit is contained in:
parent
e4984b85f2
commit
c900ece15f
|
|
@ -396,6 +396,20 @@
|
||||||
});
|
});
|
||||||
return actions.join('');
|
return actions.join('');
|
||||||
},
|
},
|
||||||
|
// 回显数据字典,指定分隔符的
|
||||||
|
selectDictLabels: function(datas, value,separator) {
|
||||||
|
var actions = [];
|
||||||
|
$.each(value.split(separator),function (i,val) {
|
||||||
|
$.each(datas, function(index, dict) {
|
||||||
|
if (dict.dictValue == ('' + val)) {
|
||||||
|
var listClass = $.common.equals("default", dict.listClass) ? "" : "badge badge-" + dict.listClass;
|
||||||
|
actions.push($.common.sprintf("<span class='%s'>%s</span>", listClass, dict.dictLabel));
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
});
|
||||||
|
})
|
||||||
|
return actions.join('');
|
||||||
|
},
|
||||||
// 显示表格指定列
|
// 显示表格指定列
|
||||||
showColumn: function(column) {
|
showColumn: function(column) {
|
||||||
$.btTable.bootstrapTable('showColumn', column);
|
$.btTable.bootstrapTable('showColumn', column);
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue