var auditFlag = [[${@permission.hasPermi('module:kndAd:audit')}]];
{ title: '操作', align: 'center', with:100, formatter: function(value, row, index) { var actions = []; if (row.auditStatus == '0') { actions.push('<a class="btn btn-warning btn-xs ' + auditFlag + '" href="#" οnclick="audit(\'' + row.id + '\')"><i class="fa fa-shield"></i>审核</a> '); } actions.push('<a class="btn btn-success btn-xs ' + editFlag + '" href="javascript:void(0)" οnclick="$.operate.edit(\'' + row.id + '\')"><i class="fa fa-edit"></i>编辑</a> '); actions.push('<a class="btn btn-danger btn-xs ' + removeFlag + '" href="javascript:void(0)" οnclick="$.operate.remove(\'' + row.id + '\')"><i class="fa fa-remove"></i>删除</a>'); return actions.join(''); } }
点击事件:
//审核状态 function audit(id) { layer.msg('请选择审核状态!', { skin: 'layui-layer-photos',//样式类名 自定义样式 time: 60000, //60s后自动关闭 area: '400px', shade: 0.3,//遮罩层透明度 anim: 3, //动画类型 btn: ['通过', '不通过', '返回'], yes: function (index, layero) { $.operate.post(prefix + "/edit", {"id": id, "checkStatus": 1}); return true } , btn2: function (index, layero) { $.operate.post(prefix + "/edit", {"id": id, "checkStatus": 2}); return true } }); }
springboot-bootstrap框架表格操作添加(审核)
猜你喜欢
转载自blog.csdn.net/qq_42307369/article/details/100743986
今日推荐
周排行