mirror of
https://gitee.com/java110/MicroCommunityWeb.git
synced 2026-02-26 08:16:47 +08:00
优化代码
This commit is contained in:
parent
29332e0453
commit
279f251e3b
@ -95,7 +95,7 @@
|
||||
vc.emit('repairPoolManage', 'listRepairPool', {});
|
||||
vc.emit('repairDispatchManage', 'listOwnerRepair', {});
|
||||
vc.toast("操作成功");
|
||||
} else if (_json.code == 5010) {
|
||||
} else {
|
||||
vc.toast(_json.msg);
|
||||
}
|
||||
},
|
||||
|
||||
@ -120,7 +120,7 @@
|
||||
},
|
||||
function (json, res) {
|
||||
//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);
|
||||
} else if (res.status == 200) {
|
||||
//关闭model
|
||||
|
||||
@ -58,7 +58,7 @@
|
||||
vc.component.clearStopRepairInfo();
|
||||
vc.emit('repairDispatchManage', 'listOwnerRepair', {});
|
||||
vc.toast("暂停成功");
|
||||
} else if (_json.code == 5010) {
|
||||
} else{
|
||||
vc.toast(_json.msg);
|
||||
}
|
||||
},
|
||||
|
||||
Loading…
Reference in New Issue
Block a user