mirror of https://gitee.com/y_project/RuoYi.git
回显数据字典(字符串数组)增加空值判断
parent
5fd26b2d47
commit
be47059951
|
@ -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 {
|
||||||
|
|
|
@ -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) {
|
||||||
|
|
Loading…
Reference in New Issue