按钮的条件判断
直接在表格渲染的cols判断
, {field: 'pool_able', title: '操作', align: 'center', width: 200, templet: function (d) {
if (d.pool_able == "0") {
return "删除";
} else {
return "删除";}
}
}
项目需求:根据后台传递的参数,判断操作按钮是否显示。
, {field: 'lock', title: '操作', templet: '#checkboxTpl', align: 'center',width:320}
{if in_array('4',$authArr)}
关注
打赏