mirror of
https://gitee.com/java110/MicroCommunityWeb.git
synced 2026-06-12 10:00:56 +08:00
优化删除
This commit is contained in:
parent
06c2b057ea
commit
c5d1585bb8
@ -20,19 +20,19 @@
|
||||
vc.component.deleteOwnerCarInfo.communityId = vc.getCurrentCommunity().communityId;
|
||||
vc.http.apiPost(
|
||||
'owner.deleteOwnerCars',
|
||||
JSON.stringify(vc.component.deleteOwnerCarInfo),
|
||||
{
|
||||
JSON.stringify(vc.component.deleteOwnerCarInfo), {
|
||||
emulateJSON: true
|
||||
},
|
||||
function(json, res) {
|
||||
//vm.menus = vm.refreshMenuActive(JSON.parse(json),0);
|
||||
if(res.status == 200){
|
||||
let _json = JSON.parse(json)
|
||||
if (_json.code == 0) {
|
||||
//关闭model
|
||||
$('#deleteOwnerCarModel').modal('hide');
|
||||
vc.emit($props.notifyLoadDataComponentName, 'listOwnerCarData', {});
|
||||
return;
|
||||
}
|
||||
vc.component.deleteOwnerCarnfo.errorInfo = json;
|
||||
vc.toast(_json.msg);
|
||||
},
|
||||
function(errInfo, error) {
|
||||
vc.toast(errInfo);
|
||||
|
||||
Loading…
Reference in New Issue
Block a user