Commit a66f8665 authored by 季圣华's avatar 季圣华
Browse files

优化账户界面

parent 2d237fcd
...@@ -425,6 +425,10 @@ ...@@ -425,6 +425,10 @@
if (checkAccountName()) { if (checkAccountName()) {
return; return;
} }
if(!$('#accountFM').form('validate')){
return;
}
else {
$.ajax({ $.ajax({
url: url, url: url,
type: "post", type: "post",
...@@ -432,8 +436,8 @@ ...@@ -432,8 +436,8 @@
data: ({ data: ({
info: JSON.stringify($("#accountFM").serializeObject()) info: JSON.stringify($("#accountFM").serializeObject())
}), }),
success: function(res) { success: function (res) {
if(res && res.code === 200) { if (res && res.code === 200) {
$('#accountDlg').dialog('close'); $('#accountDlg').dialog('close');
//加载完以后重新初始化 //加载完以后重新初始化
var opts = $("#tableData").datagrid('options'); var opts = $("#tableData").datagrid('options');
...@@ -446,6 +450,7 @@ ...@@ -446,6 +450,7 @@
return; return;
} }
}); });
}
}); });
//编辑结算账户 //编辑结算账户
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment