优化代码

This commit is contained in:
java110 2022-06-21 14:11:08 +08:00
parent a72c4df84b
commit 1d5484ddc7
2 changed files with 6 additions and 4 deletions

View File

@ -132,7 +132,9 @@
},
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
$('#editCarModal').modal('hide');
vc.emit('listOwnerCar', 'listOwnerCarData', {});
@ -143,7 +145,7 @@
}
return;
}
vc.toast(json);
vc.toast(_json.msg);
},
function(errInfo, error) {
console.log('请求失败处理');

View File

@ -102,7 +102,7 @@
</button>
</div>
<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>
</div>
<div class="btn-group">
@ -143,4 +143,4 @@
<vc:create path="property/addRepairSetting" callBackListener="" callBackFunction=""></vc:create>
<vc:create path="property/editRepairSetting"></vc:create>
<vc:create path="property/deleteRepairSetting"></vc:create>
</div>
</div>