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


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM