时间:2020-11-21 14:43:33 | 栏目:JavaScript代码 | 点击:次
1、根据表格数据动态显示操作列按钮
<script type="text/html" id="barDemo"> {{# if (d.event_level ==4){}} <a class="layui-btn layui-btn-xs layui-btn-danger" lay-event="known"><i class="layui-icon">စ</i>已知</a> {{# } else if(d.event_level ==2){ }} {{# if(d.event_type_state ==0){ }} <a class="layui-btn layui-btn-xs layui-btn-danger" lay-event="known"><i class="layui-icon">စ</i>已知</a> {{# }if(d.event_type_state ==1) { }} <a class="layui-btn layui-btn-xs layui-btn-danger" lay-event="process"><i class="layui-icon"></i>处理</a> {{# } }} {{# } }} </script>
2、效果