阡陌博客 - 固定栏
type: channel
link: https://www.kinmor.com/tag/固定栏/
items: fastadmin 根据条件隐藏固定栏oprate

fastadmin 根据条件隐藏固定栏oprate
type: item
date: 2021-10-12T14:05:00+08:00
description: {field: 'operate', title: __('Operate'), table: table, events: Table.api.events.operate, formatter: function (value, row, index) { var that = $.extend({}, this); var table = $(that.table).clone(true); if (row.is_stock==1){ $(table).data("operate-del", null); $(table).data("operate-edit", null); } that.table = table; return Table.api.formatter.operate.call(that, value, row, index); }} 以上是根据is_stock=1隐藏