From af2bd02b2ff6da4de3eab195f4c2da0d73a52744 Mon Sep 17 00:00:00 2001 From: java110 <928255095@qq.com> Date: Tue, 16 Jun 2020 15:23:02 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=E6=96=87=E4=BB=B6=E5=A4=A7?= =?UTF-8?q?=E8=82=89?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app.js | 2 +- .../pages/property/assetImport/assetImport.js | 30 +------------------ 2 files changed, 2 insertions(+), 30 deletions(-) diff --git a/app.js b/app.js index c5bb07c08..a656fe1ef 100644 --- a/app.js +++ b/app.js @@ -32,7 +32,7 @@ let opts = { //app.use('/callComponent',proxy('http://192.168.0.103:8012',opts)); //app.use('/callComponent',proxy('https://hc.demo.winqi.cn',opts)); -app.use('/callComponent',proxy('http://bmhome.java110.com',opts)); +app.use('/callComponent',proxy('http://127.0.0.1:8888',opts)); //app.listen(3000); app.use(express.json()); diff --git a/public/pages/property/assetImport/assetImport.js b/public/pages/property/assetImport/assetImport.js index 905102287..9afdab457 100644 --- a/public/pages/property/assetImport/assetImport.js +++ b/public/pages/property/assetImport/assetImport.js @@ -51,6 +51,7 @@ _importData: function () { if (!vc.component.assetImportValidate()) { + vc.toast(vc.validate.errInfo); return; } // 导入数据 @@ -95,35 +96,6 @@ }, _exitCommunityData: function () { vc.jumpToPage('/callComponent/assetImport/exitCommunityData?communityId='+vc.getCurrentCommunity().communityId); - /*var param = { - params:{ - communityId: vc.getCurrentCommunity().communityId - } - }; - vc.http.get( - 'assetImport', - 'exitCommunityData', - param, - { - emulateJSON: true, - //添加请求头 - /!*headers: { - "Content-Type": "multipart/form-data" - }*!/ - }, - function (json, res) { - //vm.menus = vm.refreshMenuActive(JSON.parse(json),0); - if (res.status == 200) { - //关闭model - vc.toast("导出成功"); - return; - } - vc.toast(json); - }, - function (errInfo, error) { - console.log('请求失败处理'); - vc.toast(errInfo); - });*/ }, checkFileType: function (fileType) { const acceptTypes = ['xls', 'xlsx'];