Authored by weiqingting

导出

... ... @@ -5,4 +5,6 @@ module.exports=function(app) {
app.post("/ajax/upload","common_multipart");
app.post("/ajax/ueditor","common_baiduUeditor");
app.post("/ajax/proxy","common_proxy");
app.get("/ajax/download","common_download")
}
... ...
... ... @@ -188,7 +188,10 @@ module.exports={
body:JSON.stringify(req.body)
});
return callback(null, result)
},
download:function(req, callback){
var result = request.get(config.domain + "/batch/download?path=" + req.query.path);
return callback(null, result);
}
}
}
\ No newline at end of file
... ...
... ... @@ -124,7 +124,7 @@
<input id="upload-input" name="file" class="btn btn-default excel-upload" type="file">
</span>
<a class="excel-model" href="/ajax/link/{{download}}">表头下载</a>
<a class="excel-model" href="/ajax/link/batchUpdatePrice">表头下载</a>
<input id="sure-change" class="btn btn-primary" type="button" value="确定变价">
</div>
... ...
... ... @@ -461,5 +461,5 @@ $('#sure-change').on('click', function() {
});
$('#download-btn').on('click', function() {
location.href = $(this).data('domain') + '/batch/download?path=' + path;
location.href = '/ajax/download?path=' + path;
});
\ No newline at end of file
... ...
... ... @@ -5,4 +5,6 @@ module.exports=function(app) {
app.post("/ajax/upload","common_multipart");
app.post("/ajax/ueditor","common_baiduUeditor");
app.post("/ajax/proxy","common_proxy");
app.get("/ajax/download","common_download")
}
... ...
... ... @@ -188,7 +188,10 @@ module.exports={
body:JSON.stringify(req.body)
});
return callback(null, result)
},
download:function(req, callback){
var result = request.get(config.domain + "/batch/download?path=" + req.query.path);
return callback(null, result);
}
}
}
\ No newline at end of file
... ...
... ... @@ -124,7 +124,7 @@
<input id="upload-input" name="file" class="btn btn-default excel-upload" type="file">
</span>
<a class="excel-model" href="/ajax/link/{{download}}">表头下载</a>
<a class="excel-model" href="/ajax/link/batchUpdatePrice">表头下载</a>
<input id="sure-change" class="btn btn-primary" type="button" value="确定变价">
</div>
... ...