优化代码

This commit is contained in:
wuxw 2024-04-23 16:37:12 +08:00
parent 29332e0453
commit 279f251e3b
3 changed files with 3 additions and 3 deletions

View File

@ -95,7 +95,7 @@
vc.emit('repairPoolManage', 'listRepairPool', {}); vc.emit('repairPoolManage', 'listRepairPool', {});
vc.emit('repairDispatchManage', 'listOwnerRepair', {}); vc.emit('repairDispatchManage', 'listOwnerRepair', {});
vc.toast("操作成功"); vc.toast("操作成功");
} else if (_json.code == 5010) { } else {
vc.toast(_json.msg); vc.toast(_json.msg);
} }
}, },

View File

@ -120,7 +120,7 @@
}, },
function (json, res) { function (json, res) {
//vm.menus = vm.refreshMenuActive(JSON.parse(json),0); //vm.menus = vm.refreshMenuActive(JSON.parse(json),0);
if (JSON.parse(json).code == 5010) { if (JSON.parse(json).code != 0) {
vc.toast(JSON.parse(json).msg); vc.toast(JSON.parse(json).msg);
} else if (res.status == 200) { } else if (res.status == 200) {
//关闭model //关闭model

View File

@ -58,7 +58,7 @@
vc.component.clearStopRepairInfo(); vc.component.clearStopRepairInfo();
vc.emit('repairDispatchManage', 'listOwnerRepair', {}); vc.emit('repairDispatchManage', 'listOwnerRepair', {});
vc.toast("暂停成功"); vc.toast("暂停成功");
} else if (_json.code == 5010) { } else{
vc.toast(_json.msg); vc.toast(_json.msg);
} }
}, },