提交修改

hangao
dshclm 5 months ago
parent cb3a433d08
commit 7ebebdaa25

@ -59,7 +59,7 @@
<a class="btn btn-success" onclick="openAdd()" shiro:hasPermission="system:check:add"> <a class="btn btn-success" onclick="openAdd()" shiro:hasPermission="system:check:add">
<i class="fa fa-plus"></i> 添加 <i class="fa fa-plus"></i> 添加
</a> </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> 修改 <i class="fa fa-edit"></i> 修改
</a> </a>
<a class="btn btn-danger multiple disabled" onclick="$.operate.removeAll()" shiro:hasPermission="system:check:remove"> <a class="btn btn-danger multiple disabled" onclick="$.operate.removeAll()" shiro:hasPermission="system:check:remove">
@ -170,7 +170,7 @@
formatter: function(value, row, index) { formatter: function(value, row, index) {
var actions = []; 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 ' + 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>'); 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(''); return actions.join('');
} }
@ -240,9 +240,9 @@
$.modal.openTab("添加" + table.options.modalName, prefix + '/add'); $.modal.openTab("添加" + table.options.modalName, prefix + '/add');
} }
// $.modal.open("修改" + table.options.modalName, ); // $.modal.open("修改" + table.options.modalName, );
function openEdit(id){ // function openEdit(id){
$.modal.openTab("修改" + table.options.modalName, prefix + '/edit' + '/' + id); // $.modal.openTab("修改" + table.options.modalName, prefix + '/edit' + '/' + id);
} // }
</script> </script>
</body> </body>
</html> </html>

Loading…
Cancel
Save