fastadmin list hide Delete / Edit button

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); // hide list page editor operate-edit - Delete button del-Operate.
that.table = the Table;
return Table.api.formatter.operate.call (that , value, Row, index);
}}
]
]
method II:

Remove

Table.api.init ({
Extend: {
index_url: 'Tenant / User / index' + location.search,
add_url: '',
edit_url: 'go and change the parameter',
del_url: 'go and change the parameter',
multi_url: ' ',
the Table:' tenant_user ',
}
});
 
----------------
copyright: original article is CSDN blogger "json_s", and follow CC 4.0 BY-SA copyright agreement, reproduced, please attach the original source link and this statement.
Original link: https: //blog.csdn.net/u013791858/article/details/97568568

Guess you like

Origin www.cnblogs.com/xiaogou/p/12381774.html