|
@@ -9942,9 +9942,9 @@ define('table',['jquery', 'bootstrap', 'moment', 'moment/locale/zh-cn', 'bootstr
|
|
|
return '<img class="' + classname + '" src="' + Fast.api.cdnurl(value) + '" />';
|
|
return '<img class="' + classname + '" src="' + Fast.api.cdnurl(value) + '" />';
|
|
|
},
|
|
},
|
|
|
images: function (value, row, index) {
|
|
images: function (value, row, index) {
|
|
|
- value = value.toString();
|
|
|
|
|
|
|
+ value = value === null ? '' : value.toString();
|
|
|
var classname = typeof this.classname !== 'undefined' ? this.classname : 'img-sm img-center';
|
|
var classname = typeof this.classname !== 'undefined' ? this.classname : 'img-sm img-center';
|
|
|
- var arr = value.toString().split(',');
|
|
|
|
|
|
|
+ var arr = value.split(',');
|
|
|
var html = [];
|
|
var html = [];
|
|
|
$.each(arr, function (i, value) {
|
|
$.each(arr, function (i, value) {
|
|
|
value = value ? value : '/assets/img/blank.gif';
|
|
value = value ? value : '/assets/img/blank.gif';
|
|
@@ -9959,7 +9959,7 @@ define('table',['jquery', 'bootstrap', 'moment', 'moment/locale/zh-cn', 'bootstr
|
|
|
if (typeof this.custom !== 'undefined') {
|
|
if (typeof this.custom !== 'undefined') {
|
|
|
colorArr = $.extend(colorArr, this.custom);
|
|
colorArr = $.extend(colorArr, this.custom);
|
|
|
}
|
|
}
|
|
|
- value = value.toString();
|
|
|
|
|
|
|
+ value = value === null ? '' : value.toString();
|
|
|
var color = value && typeof colorArr[value] !== 'undefined' ? colorArr[value] : 'primary';
|
|
var color = value && typeof colorArr[value] !== 'undefined' ? colorArr[value] : 'primary';
|
|
|
value = value.charAt(0).toUpperCase() + value.slice(1);
|
|
value = value.charAt(0).toUpperCase() + value.slice(1);
|
|
|
//渲染状态
|
|
//渲染状态
|
|
@@ -9983,6 +9983,7 @@ define('table',['jquery', 'bootstrap', 'moment', 'moment/locale/zh-cn', 'bootstr
|
|
|
return '<a href="' + Fast.api.fixurl(url) + '" class="dialogit" data-value="' + value + '" title="' + title + '">' + value + '</a>';
|
|
return '<a href="' + Fast.api.fixurl(url) + '" class="dialogit" data-value="' + value + '" title="' + title + '">' + value + '</a>';
|
|
|
},
|
|
},
|
|
|
flag: function (value, row, index) {
|
|
flag: function (value, row, index) {
|
|
|
|
|
+ value = value === null ? '' : value.toString();
|
|
|
var colorArr = {index: 'success', hot: 'warning', recommend: 'danger', 'new': 'info'};
|
|
var colorArr = {index: 'success', hot: 'warning', recommend: 'danger', 'new': 'info'};
|
|
|
//如果字段列有定义custom
|
|
//如果字段列有定义custom
|
|
|
if (typeof this.custom !== 'undefined') {
|
|
if (typeof this.custom !== 'undefined') {
|
|
@@ -9993,9 +9994,9 @@ define('table',['jquery', 'bootstrap', 'moment', 'moment/locale/zh-cn', 'bootstr
|
|
|
}
|
|
}
|
|
|
//渲染Flag
|
|
//渲染Flag
|
|
|
var html = [];
|
|
var html = [];
|
|
|
- var arr = value.toString().split(',');
|
|
|
|
|
|
|
+ var arr = value.split(',');
|
|
|
$.each(arr, function (i, value) {
|
|
$.each(arr, function (i, value) {
|
|
|
- value = value.toString();
|
|
|
|
|
|
|
+ value = value === null ? '' : value.toString();
|
|
|
if (value == '')
|
|
if (value == '')
|
|
|
return true;
|
|
return true;
|
|
|
var color = value && typeof colorArr[value] !== 'undefined' ? colorArr[value] : 'primary';
|
|
var color = value && typeof colorArr[value] !== 'undefined' ? colorArr[value] : 'primary';
|
|
@@ -14394,6 +14395,10 @@ define("addtabs", function(){});
|
|
|
if ($(elem.combo_input).attr('placeholder'))
|
|
if ($(elem.combo_input).attr('placeholder'))
|
|
|
$(elem.combo_input).attr('placeholder_bak', $(elem.combo_input).attr('placeholder'));
|
|
$(elem.combo_input).attr('placeholder_bak', $(elem.combo_input).attr('placeholder'));
|
|
|
}
|
|
}
|
|
|
|
|
+
|
|
|
|
|
+ if ($(elem.container).parent().hasClass("input-group")) {
|
|
|
|
|
+ $(elem.container).height($(elem.container).parent().height());
|
|
|
|
|
+ }
|
|
|
|
|
|
|
|
this.elem = elem;
|
|
this.elem = elem;
|
|
|
};
|
|
};
|