修复字典值为0/1时无法输出问题

pull/77/head
RuoYi 2019-03-08 16:31:02 +08:00
parent 29e20870fc
commit 4f84560710
2 changed files with 2 additions and 2 deletions

View File

@ -259,7 +259,7 @@
selectDictLabel: function(datas, value) { selectDictLabel: function(datas, value) {
var actions = []; var actions = [];
$.each(datas, function(index, dict) { $.each(datas, function(index, dict) {
if (dict.dictValue == value) { if (dict.dictValue == ('' + value)) {
actions.push("<span class='badge badge-" + dict.listClass + "'>" + dict.dictLabel + "</span>"); actions.push("<span class='badge badge-" + dict.listClass + "'>" + dict.dictLabel + "</span>");
return false; return false;
} }

View File

@ -6,7 +6,7 @@ import org.springframework.stereotype.Service;
import ${package}.mapper.${className}Mapper; import ${package}.mapper.${className}Mapper;
import ${package}.domain.${className}; import ${package}.domain.${className};
import ${package}.service.I${className}Service; import ${package}.service.I${className}Service;
import com.ruoyi.common.support.Convert; import com.ruoyi.common.core.text.Convert;
/** /**
* ${tableComment} 服务层实现 * ${tableComment} 服务层实现