隐藏列表按钮
在开发过程中,发现字段为weigh的排序功能好像没有用,所以先去除了了列表的按钮。
{field: "operate", title: __("Operate"), table: table, events: Table.api.events.operate, formatter: function (value, row, index) {
var that = $.extend({}, this);
var table = $(that.table).clone(true);
$(table).data("operate-dragsort", null);
that.table = table;
return Table.api.formatter.operate.call(that, value, row, index);
}}
修改位置:在对应菜单js里,如下