回显数据字典(字符串数组)增加空值判断

pull/207/MERGE
Ricky 2020-10-10 12:01:19 +08:00
parent 5fd26b2d47
commit be47059951
2 changed files with 4 additions and 1 deletions

View File

@ -50,7 +50,7 @@ a:focus {
color: #fff; color: #fff;
font-size: 14px; font-size: 14px;
height: 50px; height: 50px;
padding: 18px 15px; padding: 15px 15px;
} }
.nav>li.active>a { .nav>li.active>a {

View File

@ -499,6 +499,9 @@ var table = {
}, },
// 回显数据字典(字符串数组) // 回显数据字典(字符串数组)
selectDictLabels: function(datas, value, separator) { selectDictLabels: function(datas, value, separator) {
if ($.common.isEmpty(value)){
return '';
}
var currentSeparator = $.common.isEmpty(separator) ? "," : separator; var currentSeparator = $.common.isEmpty(separator) ? "," : separator;
var actions = []; var actions = [];
$.each(value.split(currentSeparator), function(i, val) { $.each(value.split(currentSeparator), function(i, val) {