mirror of
https://gitee.com/java110/MicroCommunityWeb.git
synced 2026-06-12 10:00:56 +08:00
优化代码
This commit is contained in:
parent
29332e0453
commit
279f251e3b
@ -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);
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|||||||
@ -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
|
||||||
|
|||||||
@ -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);
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user