function save(){
var ids=${ids}; var ret_remark=$("#ret_remark").val(); $.ajax({ url:"/busi/tackle/TackledurableAction.ered?reqCode=backsave", data:{ret_remark : ret_remark,ids : ids}, success:function(response){ if(response=="true"){ parent.showMsg("保存成功"); parent.refresh(); parent.Dialog.close(); } } }) }function formSubmit() {
var valid = $('#roleForm').validationEngine({returnIsValid: true}); if(valid){ $("#roleForm").ajaxSubmit({ //表单提交成功后的回调 success: function(responseText, statusText, xhr, $form){ var result = $.parseJSON(responseText); parent.showMsg(result.msg); if(result.success) { parent.refresh(); parent.dialog.close(); } } }); } } function onDelete(rowindex){ var row = datagrid.getRow(rowindex); Dialog.confirm('您确定要删除当前所选分类吗?|请确认', function(){ $.post('/busi/tackle/TackleCategoryAction.ered?reqCode=delete', {cate_id : row.cate_id}, function(data){ var result = $.parseJSON(data); if(result.success){ $.messager.show(0, result.msg); refresh(); } }); },function(){}); }