优化资产导入

This commit is contained in:
java110 2022-03-08 18:32:54 +08:00
parent a831040571
commit 2f3d052ca4

View File

@ -60,15 +60,16 @@
}, },
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
vc.toast("处理成功"); vc.toast(_json.data);
$('#importOwnerRoomModel').modal('hide'); $('#importOwnerRoomModel').modal('hide');
// vc.jumpToPage('/#/pages/property/listOwner') // vc.jumpToPage('/#/pages/property/listOwner')
vc.emit('room', 'listRoom', {}); vc.emit('room', 'listRoom', {});
return; return;
} }
vc.toast(json, 10000); vc.toast(_json.msg, 10000);
}, },
function(errInfo, error) { function(errInfo, error) {
console.log('请求失败处理'); console.log('请求失败处理');