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

This commit is contained in:
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) {
var actions = [];
$.each(datas, function(index, dict) {
if (dict.dictValue == value) {
if (dict.dictValue == ('' + value)) {
actions.push("<span class='badge badge-" + dict.listClass + "'>" + dict.dictLabel + "</span>");
return false;
}