优化合同报错

This commit is contained in:
wuxw 2022-09-08 00:30:45 +08:00
parent ec77e4f858
commit 56a74e7bc5

View File

@ -106,17 +106,17 @@
}, },
function(json, res) { function(json, res) {
//vm.menus = vm.refreshMenuActive(JSON.parse(json),0); //vm.menus = vm.refreshMenuActive(JSON.parse(json),0);
if (res.status == 200) { let _json = JSON.parse(json);
if (_json.code == 0) {
//关闭model //关闭model
var _json = JSON.parse(json);
$('#contractCreateFeeAddModel').modal('hide'); $('#contractCreateFeeAddModel').modal('hide');
$that.clearAddFeeConfigInfo(); $that.clearAddFeeConfigInfo();
vc.toast("创建收费成功,总共[" + _json.totalRoom + "]合同,成功[" + _json.successRoom + "],失败[" + _json.errorRoom + "]", 8000); vc.toast("创建收费成功,总共[" + _json.data.totalRoom + "]合同,成功[" + _json.data.successRoom + "],失败[" + _json.data.errorRoom + "]", 8000);
vc.emit('listContractFee', 'notify', {}); vc.emit('listContractFee', 'notify', {});
vc.emit('simplifyContractFee', 'notify', {}); vc.emit('simplifyContractFee', 'notify', {});
return; return;
} }
vc.toast(json); vc.toast(_json.msg);
}, },
function(errInfo, error) { function(errInfo, error) {
console.log('请求失败处理'); console.log('请求失败处理');