优化文件大肉

This commit is contained in:
java110 2020-06-16 15:23:02 +08:00
parent 816682da34
commit af2bd02b2f
2 changed files with 2 additions and 30 deletions

2
app.js
View File

@ -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());

View File

@ -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'];