zoukankan      html  css  js  c++  java
  • 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

  • 相关阅读:
    查询长事务和SQL执行等待间隔时间
    一条诡异的SQL
    查询表的使用空间和可用空间
    查询SQL Server存储过程的执行信息
    清理大批量数据例子
    sql server 清理日志存储过程
    BCP 实例
    SQL Server 查询Job中的存储过程
    下车扫描五次优化全过程
    empty、isset和is_null的比较
  • 原文地址:https://www.cnblogs.com/xiaogou/p/12381774.html
Copyright © 2011-2022 走看看