mirror of
https://gitee.com/java110/MicroCommunityWeb.git
synced 2026-06-12 10:00:56 +08:00
优化代码
This commit is contained in:
parent
a72c4df84b
commit
1d5484ddc7
@ -132,7 +132,9 @@
|
|||||||
},
|
},
|
||||||
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
|
||||||
$('#editCarModal').modal('hide');
|
$('#editCarModal').modal('hide');
|
||||||
vc.emit('listOwnerCar', 'listOwnerCarData', {});
|
vc.emit('listOwnerCar', 'listOwnerCarData', {});
|
||||||
@ -143,7 +145,7 @@
|
|||||||
}
|
}
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
vc.toast(json);
|
vc.toast(_json.msg);
|
||||||
},
|
},
|
||||||
function(errInfo, error) {
|
function(errInfo, error) {
|
||||||
console.log('请求失败处理');
|
console.log('请求失败处理');
|
||||||
|
|||||||
@ -102,7 +102,7 @@
|
|||||||
</button>
|
</button>
|
||||||
</div>
|
</div>
|
||||||
<div class="btn-group">
|
<div class="btn-group">
|
||||||
<button class="btn-white btn btn-xs" v-on:click="_viewRepairTypeUser(repairSetting)"><span><vc:i18n name="维修师傅" namespace="repairSettingManage"></vc:i18n></span>
|
<button class="btn-white btn btn-xs" v-on:click="_viewRepairTypeUser(repairSetting)"><span><vc:i18n name="绑定维修师傅" namespace="repairSettingManage"></vc:i18n></span>
|
||||||
</button>
|
</button>
|
||||||
</div>
|
</div>
|
||||||
<div class="btn-group">
|
<div class="btn-group">
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user