mirror of https://gitee.com/y_project/RuoYi.git
修复字典值为0/1时无法输出问题
parent
29e20870fc
commit
4f84560710
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
|
@ -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} 服务层实现
|
||||||
|
|
Loading…
Reference in New Issue