{
field: 'operate',
title: __('Operate'),
table: table,
events: Table.api.events.operate,
// formatter: Table.api.formatter.operate,
formatter:function (value, row, index) {
var that = $.extend({}, this);
var table = $(that.table).clone(true);
$(table).data("operate-del", null);
that.table = table;
return Table.api.formatter.operate.call(that, value, row, index);
},
buttons: [
{
name: 'admin',
title: __('xxxxx'),
classname: 'btn btn-xs btn-info btn-dialog',
icon: 'fa fa-users',
url: 'xxxx/xxxxx/index?xxx={supplier_id}',
callback: function (data) {
Layer.alert("接收到回传数据:" + JSON.stringify(data), {title: "回传数据"});
}
},
{
name: 'supplierInventory',
title: __('xxxx'),
classname: 'btn btn-xs btn-info btn-dialog',
icon: 'fa fa-list-alt',
url: 'supplier/xxx/index?xxx={xxx}',
callback: function (data) {
Layer.alert("接收到回传数据:" + JSON.stringify(data), {title: "回传数据"});
}
}
],
}
fastadmin 去除列表去除删除按钮
最新推荐文章于 2024-03-06 11:28:43 发布