|
|
@ -544,6 +544,7 @@ var table = {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
var actions = [];
|
|
|
|
var actions = [];
|
|
|
|
$.each(datas, function(index, dict) {
|
|
|
|
$.each(datas, function(index, dict) {
|
|
|
|
|
|
|
|
|
|
|
|
if (dict.efficiencyLevel == ('' + value)) {
|
|
|
|
if (dict.efficiencyLevel == ('' + value)) {
|
|
|
|
var listClass = $.common.equals("default", dict.listClass) || $.common.isEmpty(dict.listClass) ? "" : "badge badge-" + dict.listClass;
|
|
|
|
var listClass = $.common.equals("default", dict.listClass) || $.common.isEmpty(dict.listClass) ? "" : "badge badge-" + dict.listClass;
|
|
|
|
actions.push($.common.sprintf("<span class='%s'>%s</span>", listClass, dict.levelName));
|
|
|
|
actions.push($.common.sprintf("<span class='%s'>%s</span>", listClass, dict.levelName));
|
|
|
@ -552,6 +553,23 @@ var table = {
|
|
|
|
});
|
|
|
|
});
|
|
|
|
return actions.join('');
|
|
|
|
return actions.join('');
|
|
|
|
},
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
selectStoreDictLabelLocation: function(datas, value) {
|
|
|
|
|
|
|
|
if ($.common.isEmpty(datas) || $.common.isEmpty(value)) {
|
|
|
|
|
|
|
|
return '';
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
var actions = [];
|
|
|
|
|
|
|
|
$.each(datas, function(index, dict) {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (dict.storeCode == ('' + value)) {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
var listClass = $.common.equals("default", dict.listClass) || $.common.isEmpty(dict.listClass) ? "" : "badge badge-" + dict.listClass;
|
|
|
|
|
|
|
|
actions.push($.common.sprintf("<span class='%s'>%s</span>", listClass, dict.storeName));
|
|
|
|
|
|
|
|
return false;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
});
|
|
|
|
|
|
|
|
return actions.join('');
|
|
|
|
|
|
|
|
},
|
|
|
|
// 回显数据字典(字符串数组)
|
|
|
|
// 回显数据字典(字符串数组)
|
|
|
|
selectDictLabels: function(datas, value, separator) {
|
|
|
|
selectDictLabels: function(datas, value, separator) {
|
|
|
|
if ($.common.isEmpty(datas) || $.common.isEmpty(value)) {
|
|
|
|
if ($.common.isEmpty(datas) || $.common.isEmpty(value)) {
|
|
|
|