修复不能设置账户默认值的bug

This commit is contained in:
季圣华
2018-12-23 00:08:35 +08:00
parent 2ff7c900fc
commit e5dcaef99c
3 changed files with 34 additions and 11 deletions

View File

@@ -321,24 +321,21 @@
function setDefault(accountID, isDefault) {
$.ajax({
type: "post",
url: "/account/updateAmountIsDefault.action",
url: "/account/updateAmountIsDefault",
dataType: "json",
async: false,
data: ({
AccountID: accountID,
IsDefault: isDefault
accountId: accountID,
isDefault: isDefault
}),
success: function (res) {
if (res == "true" && isDefault) {
}
else {
}
},
//此处添加错误处理
error: function () {
$.messager.alert('删除提示', '删除结算账户异常,请稍后再试!', 'error');
$.messager.alert('提示', '设为默认账户异常,请稍后再试!', 'error');
return;
}
});