处理错误
This commit is contained in:
parent
fe115b963e
commit
89168202b2
|
|
@ -69,11 +69,12 @@ define(['jquery', 'bootstrap', 'backend', 'table', 'form', 'cascader'], function
|
|||
url: $.fn.bootstrapTable.defaults.extend.index_url,
|
||||
pk: 'id',
|
||||
sortName: 'id',
|
||||
|
||||
fixedRightNumber: 1,
|
||||
fixedNumber: 3,
|
||||
fixedColumns: true,
|
||||
renderDefault:true,
|
||||
searchFormVisible:true,
|
||||
search:false,
|
||||
columns: [
|
||||
[
|
||||
{checkbox: true},
|
||||
|
|
|
|||
|
|
@ -771,7 +771,7 @@ define(['jquery', 'bootstrap', 'moment', 'moment/locale/zh-cn', 'bootstrap-table
|
|||
content: function (value, row, index) {
|
||||
var width = this.width != undefined ? (this.width.toString().match(/^\d+$/) ? this.width + "px" : this.width) : "250px";
|
||||
var hover = this.hover != undefined && this.hover ? "autocontent-hover" : "";
|
||||
return "<div class='autocontent-item " + hover + "' style='white-space: nowrap; text-overflow:ellipsis; overflow: hidden; max-width:" + width + ";'>" + value + "</div>";
|
||||
return "<div class='autocontent-item " + hover + "' style='white-space: nowrap; text-overflow:ellipsis; overflow: hidden; max-width:" + width + ";'>" + (value??'') + "</div>";
|
||||
},
|
||||
status: function (value, row, index) {
|
||||
var custom = {normal: 'success', hidden: 'gray', deleted: 'danger', locked: 'info'};
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user