|
|
|
@ -59,7 +59,7 @@
|
|
|
|
|
<a class="btn btn-success" onclick="openAdd()" shiro:hasPermission="system:check:add">
|
|
|
|
|
<i class="fa fa-plus"></i> 添加
|
|
|
|
|
</a>
|
|
|
|
|
<a class="btn btn-primary single disabled" onclick="openEdit()" shiro:hasPermission="system:check:edit">
|
|
|
|
|
<a class="btn btn-primary single disabled" onclick="$.operate.editTab()" shiro:hasPermission="system:check:edit">
|
|
|
|
|
<i class="fa fa-edit"></i> 修改
|
|
|
|
|
</a>
|
|
|
|
|
<a class="btn btn-danger multiple disabled" onclick="$.operate.removeAll()" shiro:hasPermission="system:check:remove">
|
|
|
|
@ -170,7 +170,7 @@
|
|
|
|
|
formatter: function(value, row, index) {
|
|
|
|
|
var actions = [];
|
|
|
|
|
actions.push('<a class="btn btn-success btn-xs ' + detailFlag + '" href="javascript:void(0)" onclick="$.operate.detailTab(\'' + row.checkId + '\')"><i class="fa fa-edit"></i>详情</a> ');
|
|
|
|
|
actions.push('<a class="btn btn-success btn-xs ' + editFlag + '" href="javascript:void(0)" onclick="openEdit(\'' + row.checkId + '\')"><i class="fa fa-edit"></i>编辑</a> ');
|
|
|
|
|
actions.push('<a class="btn btn-success btn-xs ' + editFlag + '" href="javascript:void(0)" onclick="$.operate.editTab(\'' + row.checkId + '\')"><i class="fa fa-edit"></i>编辑</a> ');
|
|
|
|
|
actions.push('<a class="btn btn-danger btn-xs ' + removeFlag + '" href="javascript:void(0)" onclick="$.operate.remove(\'' + row.checkId + '\')"><i class="fa fa-remove"></i>删除</a>');
|
|
|
|
|
return actions.join('');
|
|
|
|
|
}
|
|
|
|
@ -240,9 +240,9 @@
|
|
|
|
|
$.modal.openTab("添加" + table.options.modalName, prefix + '/add');
|
|
|
|
|
}
|
|
|
|
|
// $.modal.open("修改" + table.options.modalName, );
|
|
|
|
|
function openEdit(id){
|
|
|
|
|
$.modal.openTab("修改" + table.options.modalName, prefix + '/edit' + '/' + id);
|
|
|
|
|
}
|
|
|
|
|
// function openEdit(id){
|
|
|
|
|
// $.modal.openTab("修改" + table.options.modalName, prefix + '/edit' + '/' + id);
|
|
|
|
|
// }
|
|
|
|
|
</script>
|
|
|
|
|
</body>
|
|
|
|
|
</html>
|
|
|
|
|