正在显示
1 个修改的文件
包含
2 行增加
和
0 行删除
@@ -298,6 +298,7 @@ define(['jquery', 'bootstrap', 'moment', 'moment/locale/zh-cn', 'bootstrap-table | @@ -298,6 +298,7 @@ define(['jquery', 'bootstrap', 'moment', 'moment/locale/zh-cn', 'bootstrap-table | ||
298 | return '<i class="' + value + '"></i> ' + value; | 298 | return '<i class="' + value + '"></i> ' + value; |
299 | }, | 299 | }, |
300 | image: function (value, row, index) { | 300 | image: function (value, row, index) { |
301 | + value=value?value:'/assets/img/blank.gif'; | ||
301 | var classname = typeof this.classname !== 'undefined' ? this.classname : 'img-sm img-center'; | 302 | var classname = typeof this.classname !== 'undefined' ? this.classname : 'img-sm img-center'; |
302 | return '<img class="' + classname + '" src="' + Fast.api.cdnurl(value) + '" />'; | 303 | return '<img class="' + classname + '" src="' + Fast.api.cdnurl(value) + '" />'; |
303 | }, | 304 | }, |
@@ -306,6 +307,7 @@ define(['jquery', 'bootstrap', 'moment', 'moment/locale/zh-cn', 'bootstrap-table | @@ -306,6 +307,7 @@ define(['jquery', 'bootstrap', 'moment', 'moment/locale/zh-cn', 'bootstrap-table | ||
306 | var arr = value.split(','); | 307 | var arr = value.split(','); |
307 | var html = []; | 308 | var html = []; |
308 | $.each(arr, function (i, value) { | 309 | $.each(arr, function (i, value) { |
310 | + value=value?value:'/assets/img/blank.gif'; | ||
309 | html.push('<img class="' + classname + '" src="' + Fast.api.cdnurl(value) + '" />'); | 311 | html.push('<img class="' + classname + '" src="' + Fast.api.cdnurl(value) + '" />'); |
310 | }); | 312 | }); |
311 | return html.join(' '); | 313 | return html.join(' '); |
-
请 注册 或 登录 后发表评论