优化账户界面

This commit is contained in:
季圣华
2020-04-30 23:33:04 +08:00
parent 2d237fcda8
commit a66f866591

View File

@@ -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 @@
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 @@
return; return;
} }
}); });
}
}); });
//编辑结算账户 //编辑结算账户