Bläddra i källkod

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

Ricky 4 år sedan
förälder
incheckning
be47059951

+ 1 - 1
ruoyi-admin/src/main/resources/static/css/style.css

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

+ 3 - 0
ruoyi-admin/src/main/resources/static/ruoyi/js/ry-ui.js

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