1.页面设置
, {field: 'status',title: '状态'}
, {field: 'right',title: '操作',align:'center',templet:'#operation',width:'180'}
2.javaScript设置
<script id="operation" type="text/html">
{{# if(d.status == 1){ }}
<button type="button" lay-event="pass" class="layui-btn layui-btn-checked seraph seraph icon-xiugai">通过</button>
<button type="button" lay-event="reject" class="layui-btn layui-btn-checked seraph seraph icon-xiugai">退回</button>
{{# } }}
</script>
3.页面显示效果