mirror of
https://gitee.com/java110/MicroCommunityWeb.git
synced 2026-02-24 21:59:12 +08:00
优化文件大肉
This commit is contained in:
parent
816682da34
commit
af2bd02b2f
2
app.js
2
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());
|
||||
|
||||
@ -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'];
|
||||
|
||||
Loading…
Reference in New Issue
Block a user