fastadmin 列表 隐藏删除/编辑按钮

fastadmin 列表 隐藏删除/编辑按钮
 

方法一:
[
{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',
}
});
 
————————————————
版权声明:本文为CSDN博主「json_s」的原创文章,遵循 CC 4.0 BY-SA 版权协议,转载请附上原文出处链接及本声明。
原文链接:https://blog.csdn.net/u013791858/article/details/97568568

猜你喜欢

转载自www.cnblogs.com/xiaogou/p/12381774.html
今日推荐