From 2840f3b07b71ca8eea6a1993de3f25edaaa704a2 Mon Sep 17 00:00:00 2001 From: java110 <928255095@qq.com> Date: Thu, 2 Sep 2021 12:37:44 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=E5=AF=BC=E5=85=A5=E4=B8=8D?= =?UTF-8?q?=E6=8F=90=E7=A4=BA=E6=95=B0=E6=8D=AE=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- public/pages/property/assetImport/assetImport.js | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/public/pages/property/assetImport/assetImport.js b/public/pages/property/assetImport/assetImport.js index f2c4a5209..44e9efbde 100755 --- a/public/pages/property/assetImport/assetImport.js +++ b/public/pages/property/assetImport/assetImport.js @@ -86,17 +86,21 @@ vc.jumpToPage('/admin.html#/pages/property/listOwner') return; } - vc.toast(json,10000); + vc.toast(json, 10000); }, function (errInfo, error) { console.log('请求失败处理'); - vc.toast("数据提交导入,请到导入日志中查看导入是否成功"); + if (errInfo.indexOf("") > 0) { + vc.toast("数据提交导入,请到导入日志中查看导入是否成功"); + } else { + vc.toast(errInfo); + } }); }, _exitCommunityData: function () { - vc.jumpToPage('/callComponent/assetImport/exitCommunityData?communityId='+vc.getCurrentCommunity().communityId); + vc.jumpToPage('/callComponent/assetImport/exitCommunityData?communityId=' + vc.getCurrentCommunity().communityId); }, - _openAssetImportLog:function(){ + _openAssetImportLog: function () { vc.jumpToPage('/admin.html#/pages/property/assetImportLog') }, checkFileType: function (fileType) {