方法一: [ {checkbox: true}, {field: 'id', title: __('Id')}, {field: 'name', title: __('Name')}, {field: 'industry_type', title: __('Industry_type')}, {field: 'contacts', title: __('Contacts')}, {field: 'class_user', title: __('Class_user')}, {field: 'operate', title: __('Operate'), table: table, events: Table.api.events.operate, buttons: [{ name: '11', text: '33', icon: 'fa fa-list', classname: 'btn btn-info btn-xs btn-detail btn-dialog', url: '' }], formatter: function (value, row, index) { var that = $.extend({}, this); $(table).data("operate-del", null); // 列表页面隐藏 .编辑operate-edit - 删除按钮operate-del that.table = table; return Table.api.formatter.operate.call(that, value, row, index); }} ] ]
方法二:
去掉
Table.api.init({ extend: { index_url: 'tenant/user/index' + location.search, add_url: '', edit_url: '去改该参数', del_url: '去改该参数', multi_url: '', table: 'tenant_user', } });