提交 dafcbb8a 编写于 作者: Skyeye云's avatar Skyeye云

导出功能添加header属性

上级 ad283b5f
......@@ -162,7 +162,7 @@ layui.config({
// 个人考勤情况导出
$("body").on("click", "#download", function(){
postDownLoadFile({
url : flowableBasePath + 'checkwork017?userToken=' + getCookie('userToken') + '&loginPCIp=' + returnCitySN["cip"],
url : flowableBasePath + 'checkwork017?loginPCIp=' + returnCitySN["cip"],
params: getTableParams(),
method : 'post'
});
......
......@@ -274,7 +274,7 @@ layui.config({
//导出
$("body").on("click", "#download", function(){
postDownLoadFile({
url : flowableBasePath + 'checkwork020?userToken=' + getCookie('userToken') + '&loginPCIp=' + returnCitySN["cip"],
url : flowableBasePath + 'checkwork020?loginPCIp=' + returnCitySN["cip"],
params: getTableParams(),
method : 'post'
});
......
......@@ -153,7 +153,7 @@ layui.config({
// 导出excel
$("body").on("click", "#downloadExcel", function () {
postDownLoadFile({
url : flowableBasePath + 'allocation005?userToken=' + getCookie('userToken') + '&loginPCIp=' + returnCitySN["cip"],
url : flowableBasePath + 'allocation005?loginPCIp=' + returnCitySN["cip"],
params: getTableParams(),
method : 'post'
});
......
......@@ -153,7 +153,7 @@ layui.config({
// 导出excel
$("body").on("click", "#downloadExcel", function () {
postDownLoadFile({
url : flowableBasePath + 'assemblysheet005?userToken=' + getCookie('userToken') + '&loginPCIp=' + returnCitySN["cip"],
url : flowableBasePath + 'assemblysheet005?loginPCIp=' + returnCitySN["cip"],
params: getTableParams(),
method : 'post'
});
......
......@@ -160,7 +160,7 @@ layui.config({
// 导出excel
$("body").on("click", "#downloadExcel", function () {
postDownLoadFile({
url : flowableBasePath + 'otheroutlets005?userToken=' + getCookie('userToken') + '&loginPCIp=' + returnCitySN["cip"],
url : flowableBasePath + 'otheroutlets005?loginPCIp=' + returnCitySN["cip"],
params: getTableParams(),
method : 'post'
});
......
......@@ -160,7 +160,7 @@ layui.config({
// 导出excel
$("body").on("click", "#downloadExcel", function () {
postDownLoadFile({
url : flowableBasePath + 'otherwarehous005?userToken=' + getCookie('userToken') + '&loginPCIp=' + returnCitySN["cip"],
url : flowableBasePath + 'otherwarehous005?loginPCIp=' + returnCitySN["cip"],
params: getTableParams(),
method : 'post'
});
......
......@@ -204,7 +204,7 @@ layui.config({
// 导出excel
$("body").on("click", "#downloadExcel", function () {
postDownLoadFile({
url : flowableBasePath + 'purchaseorder010?userToken=' + getCookie('userToken') + '&loginPCIp=' + returnCitySN["cip"],
url : flowableBasePath + 'purchaseorder010?loginPCIp=' + returnCitySN["cip"],
params: getTableParams(),
method : 'post'
});
......
......@@ -180,7 +180,7 @@ layui.config({
// 导出excel
$("body").on("click", "#downloadExcel", function () {
postDownLoadFile({
url : flowableBasePath + 'purchaseput005?userToken=' + getCookie('userToken') + '&loginPCIp=' + returnCitySN["cip"],
url : flowableBasePath + 'purchaseput005?loginPCIp=' + returnCitySN["cip"],
params: getTableParams(),
method : 'post'
});
......
......@@ -169,7 +169,7 @@ layui.config({
// 导出excel
$("body").on("click", "#downloadExcel", function () {
postDownLoadFile({
url : flowableBasePath + 'purchasereturns005?userToken=' + getCookie('userToken') + '&loginPCIp=' + returnCitySN["cip"],
url : flowableBasePath + 'purchasereturns005?loginPCIp=' + returnCitySN["cip"],
params: getTableParams(),
method : 'post'
});
......
......@@ -161,7 +161,7 @@ layui.config({
// 导出excel
$("body").on("click", "#downloadExcel", function () {
postDownLoadFile({
url : flowableBasePath + 'retailoutlet005?userToken=' + getCookie('userToken') + '&loginPCIp=' + returnCitySN["cip"],
url : flowableBasePath + 'retailoutlet005?loginPCIp=' + returnCitySN["cip"],
params: getTableParams(),
method : 'post'
});
......
......@@ -161,7 +161,7 @@ layui.config({
//导出excel
$("body").on("click", "#downloadExcel", function () {
postDownLoadFile({
url : flowableBasePath + 'retailreturns005?userToken=' + getCookie('userToken') + '&loginPCIp=' + returnCitySN["cip"],
url : flowableBasePath + 'retailreturns005?loginPCIp=' + returnCitySN["cip"],
params: getTableParams(),
method : 'post'
});
......
......@@ -186,7 +186,7 @@ layui.config({
// 导出excel
$("body").on("click", "#downloadExcel", function () {
postDownLoadFile({
url : flowableBasePath + 'salesorder010?userToken=' + getCookie('userToken') + '&loginPCIp=' + returnCitySN["cip"],
url : flowableBasePath + 'salesorder010?loginPCIp=' + returnCitySN["cip"],
params: getTableParams(),
method : 'post'
});
......
......@@ -172,7 +172,7 @@ layui.config({
//导出excel
$("body").on("click", "#downloadExcel", function () {
postDownLoadFile({
url : flowableBasePath + 'salesoutlet005?userToken=' + getCookie('userToken') + '&loginPCIp=' + returnCitySN["cip"],
url : flowableBasePath + 'salesoutlet005?loginPCIp=' + returnCitySN["cip"],
params: getTableParams(),
method : 'post'
});
......
......@@ -172,7 +172,7 @@ layui.config({
// 导出excel
$("body").on("click", "#downloadExcel", function () {
postDownLoadFile({
url : flowableBasePath + 'salesreturns005?userToken=' + getCookie('userToken') + '&loginPCIp=' + returnCitySN["cip"],
url : flowableBasePath + 'salesreturns005?loginPCIp=' + returnCitySN["cip"],
params: getTableParams(),
method : 'post'
});
......
......@@ -153,7 +153,7 @@ layui.config({
// 导出excel
$("body").on("click", "#downloadExcel", function () {
postDownLoadFile({
url : flowableBasePath + 'splitlist005?userToken=' + getCookie('userToken') + '&loginPCIp=' + returnCitySN["cip"],
url : flowableBasePath + 'splitlist005?loginPCIp=' + returnCitySN["cip"],
params: getTableParams(),
method : 'post'
});
......
......@@ -56,9 +56,9 @@ layui.config({
UE.Editor.prototype._bkGetActionUrl = UE.Editor.prototype.getActionUrl;
UE.Editor.prototype.getActionUrl = function(action){
if (action == 'uploadimage' || action == 'uploadfile' || action == 'uploadvideo' || action == 'uploadimage'){//上传单个图片,上传附件,上传视频,多图上传
return reqBasePath + '/upload/editUploadController/uploadContentPic?userToken=' + getCookie('userToken');
return reqBasePath + '/upload/editUploadController/uploadContentPic';
} else if(action == 'listimage'){
return reqBasePath + '/upload/editUploadController/downloadContentPic?userToken=' + getCookie('userToken');
return reqBasePath + '/upload/editUploadController/downloadContentPic';
}else{
return this._bkGetActionUrl.call(this, action);
}
......
......@@ -23,9 +23,9 @@ layui.config({
UE.Editor.prototype._bkGetActionUrl = UE.Editor.prototype.getActionUrl;
UE.Editor.prototype.getActionUrl = function(action){
if (action == 'uploadimage' || action == 'uploadfile' || action == 'uploadvideo' || action == 'uploadimage'){//上传单个图片,上传附件,上传视频,多图上传
return reqBasePath + '/upload/editUploadController/uploadContentPic?userToken=' + getCookie('userToken');
return reqBasePath + '/upload/editUploadController/uploadContentPic';
} else if(action == 'listimage'){
return reqBasePath + '/upload/editUploadController/downloadContentPic?userToken=' + getCookie('userToken');
return reqBasePath + '/upload/editUploadController/downloadContentPic';
}else{
return this._bkGetActionUrl.call(this, action);
}
......
......@@ -243,7 +243,7 @@ layui.config({
// 导出excel
$("body").on("click", "#downloadExcel", function () {
postDownLoadFile({
url : flowableBasePath + 'income007?userToken=' + getCookie('userToken') + '&loginPCIp=' + returnCitySN["cip"],
url : flowableBasePath + 'income007?loginPCIp=' + returnCitySN["cip"],
params: getTableParams(),
method : 'post'
});
......
......@@ -22,9 +22,9 @@ layui.config({
UE.Editor.prototype._bkGetActionUrl = UE.Editor.prototype.getActionUrl;
UE.Editor.prototype.getActionUrl = function(action){
if (action == 'uploadimage' || action == 'uploadfile' || action == 'uploadvideo' || action == 'uploadimage'){//上传单个图片,上传附件,上传视频,多图上传
return reqBasePath + '/upload/editUploadController/uploadContentPic?userToken=' + getCookie('userToken');
return reqBasePath + '/upload/editUploadController/uploadContentPic';
} else if(action == 'listimage'){
return reqBasePath + '/upload/editUploadController/downloadContentPic?userToken=' + getCookie('userToken');
return reqBasePath + '/upload/editUploadController/downloadContentPic';
}else{
return this._bkGetActionUrl.call(this, action);
}
......
......@@ -54,9 +54,9 @@ layui.config({
UE.Editor.prototype._bkGetActionUrl = UE.Editor.prototype.getActionUrl;
UE.Editor.prototype.getActionUrl = function(action){
if (action == 'uploadimage' || action == 'uploadfile' || action == 'uploadvideo' || action == 'uploadimage'){//上传单个图片,上传附件,上传视频,多图上传
return reqBasePath + '/upload/editUploadController/uploadContentPic?userToken=' + getCookie('userToken');
return reqBasePath + '/upload/editUploadController/uploadContentPic';
} else if(action == 'listimage'){
return reqBasePath + '/upload/editUploadController/downloadContentPic?userToken=' + getCookie('userToken');
return reqBasePath + '/upload/editUploadController/downloadContentPic';
}else{
return this._bkGetActionUrl.call(this, action);
}
......
......@@ -20,9 +20,9 @@ layui.config({
UE.Editor.prototype._bkGetActionUrl = UE.Editor.prototype.getActionUrl;
UE.Editor.prototype.getActionUrl = function(action){
if (action == 'uploadimage' || action == 'uploadfile' || action == 'uploadvideo' || action == 'uploadimage'){//上传单个图片,上传附件,上传视频,多图上传
return reqBasePath + '/upload/editUploadController/uploadContentPic?userToken=' + getCookie('userToken');
return reqBasePath + '/upload/editUploadController/uploadContentPic';
} else if(action == 'listimage'){
return reqBasePath + '/upload/editUploadController/downloadContentPic?userToken=' + getCookie('userToken');
return reqBasePath + '/upload/editUploadController/downloadContentPic';
}else{
return this._bkGetActionUrl.call(this, action);
}
......
......@@ -32,9 +32,9 @@ layui.config({
UE.Editor.prototype._bkGetActionUrl = UE.Editor.prototype.getActionUrl;
UE.Editor.prototype.getActionUrl = function(action){
if (action == 'uploadimage' || action == 'uploadfile' || action == 'uploadvideo' || action == 'uploadimage'){//上传单个图片,上传附件,上传视频,多图上传
return reqBasePath + '/upload/editUploadController/uploadContentPic?userToken=' + getCookie('userToken');
return reqBasePath + '/upload/editUploadController/uploadContentPic';
} else if(action == 'listimage'){
return reqBasePath + '/upload/editUploadController/downloadContentPic?userToken=' + getCookie('userToken');
return reqBasePath + '/upload/editUploadController/downloadContentPic';
}else{
return this._bkGetActionUrl.call(this, action);
}
......
......@@ -20,9 +20,9 @@ layui.config({
UE.Editor.prototype._bkGetActionUrl = UE.Editor.prototype.getActionUrl;
UE.Editor.prototype.getActionUrl = function(action){
if (action == 'uploadimage' || action == 'uploadfile' || action == 'uploadvideo' || action == 'uploadimage'){//上传单个图片,上传附件,上传视频,多图上传
return reqBasePath + '/upload/editUploadController/uploadContentPic?userToken=' + getCookie('userToken');
return reqBasePath + '/upload/editUploadController/uploadContentPic';
} else if(action == 'listimage'){
return reqBasePath + '/upload/editUploadController/downloadContentPic?userToken=' + getCookie('userToken');
return reqBasePath + '/upload/editUploadController/downloadContentPic';
}else{
return this._bkGetActionUrl.call(this, action);
}
......
......@@ -37,9 +37,9 @@ layui.config({
UE.Editor.prototype._bkGetActionUrl = UE.Editor.prototype.getActionUrl;
UE.Editor.prototype.getActionUrl = function(action){
if (action == 'uploadimage' || action == 'uploadfile' || action == 'uploadvideo' || action == 'uploadimage'){//上传单个图片,上传附件,上传视频,多图上传
return reqBasePath + '/upload/editUploadController/uploadContentPic?userToken=' + getCookie('userToken');
return reqBasePath + '/upload/editUploadController/uploadContentPic';
} else if(action == 'listimage'){
return reqBasePath + '/upload/editUploadController/downloadContentPic?userToken=' + getCookie('userToken');
return reqBasePath + '/upload/editUploadController/downloadContentPic';
}else{
return this._bkGetActionUrl.call(this, action);
}
......
......@@ -60,9 +60,9 @@ layui.config({
UE.Editor.prototype._bkGetActionUrl = UE.Editor.prototype.getActionUrl;
UE.Editor.prototype.getActionUrl = function(action){
if (action == 'uploadimage' || action == 'uploadfile' || action == 'uploadvideo' || action == 'uploadimage'){//上传单个图片,上传附件,上传视频,多图上传
return reqBasePath + '/upload/editUploadController/uploadContentPic?userToken=' + getCookie('userToken');
return reqBasePath + '/upload/editUploadController/uploadContentPic';
} else if(action == 'listimage'){
return reqBasePath + '/upload/editUploadController/downloadContentPic?userToken=' + getCookie('userToken');
return reqBasePath + '/upload/editUploadController/downloadContentPic';
}else{
return this._bkGetActionUrl.call(this, action);
}
......
......@@ -62,9 +62,9 @@ layui.config({
UE.Editor.prototype._bkGetActionUrl = UE.Editor.prototype.getActionUrl;
UE.Editor.prototype.getActionUrl = function(action){
if (action == 'uploadimage' || action == 'uploadfile' || action == 'uploadvideo' || action == 'uploadimage'){//上传单个图片,上传附件,上传视频,多图上传
return reqBasePath + '/upload/editUploadController/uploadContentPic?userToken=' + getCookie('userToken');
return reqBasePath + '/upload/editUploadController/uploadContentPic';
} else if(action == 'listimage'){
return reqBasePath + '/upload/editUploadController/downloadContentPic?userToken=' + getCookie('userToken');
return reqBasePath + '/upload/editUploadController/downloadContentPic';
}else{
return this._bkGetActionUrl.call(this, action);
}
......
......@@ -50,9 +50,9 @@ layui.config({
UE.Editor.prototype._bkGetActionUrl = UE.Editor.prototype.getActionUrl;
UE.Editor.prototype.getActionUrl = function(action){
if (action == 'uploadimage' || action == 'uploadfile' || action == 'uploadvideo' || action == 'uploadimage'){//上传单个图片,上传附件,上传视频,多图上传
return reqBasePath + '/upload/editUploadController/uploadContentPic?userToken=' + getCookie('userToken');
return reqBasePath + '/upload/editUploadController/uploadContentPic';
} else if(action == 'listimage'){
return reqBasePath + '/upload/editUploadController/downloadContentPic?userToken=' + getCookie('userToken');
return reqBasePath + '/upload/editUploadController/downloadContentPic';
}else{
return this._bkGetActionUrl.call(this, action);
}
......
......@@ -28,9 +28,9 @@ layui.config({
UE.Editor.prototype._bkGetActionUrl = UE.Editor.prototype.getActionUrl;
UE.Editor.prototype.getActionUrl = function(action){
if (action == 'uploadimage' || action == 'uploadfile' || action == 'uploadvideo' || action == 'uploadimage'){//上传单个图片,上传附件,上传视频,多图上传
return reqBasePath + '/upload/editUploadController/uploadContentPic?userToken=' + getCookie('userToken');
return reqBasePath + '/upload/editUploadController/uploadContentPic';
} else if(action == 'listimage'){
return reqBasePath + '/upload/editUploadController/downloadContentPic?userToken=' + getCookie('userToken');
return reqBasePath + '/upload/editUploadController/downloadContentPic';
}else{
return this._bkGetActionUrl.call(this, action);
}
......
......@@ -51,9 +51,9 @@ layui.config({
UE.Editor.prototype._bkGetActionUrl = UE.Editor.prototype.getActionUrl;
UE.Editor.prototype.getActionUrl = function(action){
if (action == 'uploadimage' || action == 'uploadfile' || action == 'uploadvideo' || action == 'uploadimage'){//上传单个图片,上传附件,上传视频,多图上传
return reqBasePath + '/upload/editUploadController/uploadContentPic?userToken=' + getCookie('userToken');
return reqBasePath + '/upload/editUploadController/uploadContentPic';
} else if(action == 'listimage'){
return reqBasePath + '/upload/editUploadController/downloadContentPic?userToken=' + getCookie('userToken');
return reqBasePath + '/upload/editUploadController/downloadContentPic';
}else{
return this._bkGetActionUrl.call(this, action);
}
......
......@@ -42,9 +42,9 @@ layui.config({
UE.Editor.prototype._bkGetActionUrl = UE.Editor.prototype.getActionUrl;
UE.Editor.prototype.getActionUrl = function(action){
if (action == 'uploadimage' || action == 'uploadfile' || action == 'uploadvideo' || action == 'uploadimage'){//上传单个图片,上传附件,上传视频,多图上传
return reqBasePath + '/upload/editUploadController/uploadContentPic?userToken=' + getCookie('userToken');
return reqBasePath + '/upload/editUploadController/uploadContentPic';
} else if(action == 'listimage'){
return reqBasePath + '/upload/editUploadController/downloadContentPic?userToken=' + getCookie('userToken');
return reqBasePath + '/upload/editUploadController/downloadContentPic';
}else{
return this._bkGetActionUrl.call(this, action);
}
......
......@@ -157,7 +157,7 @@ layui.config({
// 下载模板
$("body").on("click", "#download", function(){
postDownLoadFile({
url : reqBasePath + 'syseveschedule009?userToken=' + getCookie('userToken') + '&loginPCIp=' + returnCitySN["cip"],
url : reqBasePath + 'syseveschedule009?loginPCIp=' + returnCitySN["cip"],
method : 'post'
});
});
......@@ -173,10 +173,11 @@ layui.config({
formData.append("file", $("#upfile")[0].files[0]);
formData.append("name", name);
$.ajax({
url : reqBasePath + 'syseveschedule010?userToken=' + getCookie('userToken') + '&loginPCIp=' + returnCitySN["cip"],
url : reqBasePath + 'syseveschedule010?loginPCIp=' + returnCitySN["cip"],
type : 'POST',
async : false,
data : formData,
headers: getRequestHeaders(),
// 告诉jQuery不要去处理发送的数据
processData : false,
// 告诉jQuery不要去设置Content-Type请求头
......
......@@ -19,9 +19,9 @@ layui.config({
UE.Editor.prototype._bkGetActionUrl = UE.Editor.prototype.getActionUrl;
UE.Editor.prototype.getActionUrl = function(action){
if (action == 'uploadimage' || action == 'uploadfile' || action == 'uploadvideo' || action == 'uploadimage'){//上传单个图片,上传附件,上传视频,多图上传
return reqBasePath + '/upload/editUploadController/uploadContentPic?userToken=' + getCookie('userToken');
return reqBasePath + '/upload/editUploadController/uploadContentPic';
} else if(action == 'listimage'){
return reqBasePath + '/upload/editUploadController/downloadContentPic?userToken=' + getCookie('userToken');
return reqBasePath + '/upload/editUploadController/downloadContentPic';
}else{
return this._bkGetActionUrl.call(this, action);
}
......
......@@ -116,9 +116,9 @@ layui.config({
UE.Editor.prototype._bkGetActionUrl = UE.Editor.prototype.getActionUrl;
UE.Editor.prototype.getActionUrl = function(action){
if (action == 'uploadimage' || action == 'uploadfile' || action == 'uploadvideo' || action == 'uploadimage'){//上传单个图片,上传附件,上传视频,多图上传
return reqBasePath + '/upload/editUploadController/uploadContentPic?userToken=' + getCookie('userToken');
return reqBasePath + '/upload/editUploadController/uploadContentPic';
} else if(action == 'listimage'){
return reqBasePath + '/upload/editUploadController/downloadContentPic?userToken=' + getCookie('userToken');
return reqBasePath + '/upload/editUploadController/downloadContentPic';
}else{
return this._bkGetActionUrl.call(this, action);
}
......
......@@ -169,7 +169,7 @@ layui.config({
// 下载模板
$("body").on("click", "#exportStudentModel", function(){
postDownLoadFile({
url : reqBasePath + 'studentmation009?userToken=' + getCookie('userToken') + '&loginPCIp=' + returnCitySN["cip"],
url : reqBasePath + 'studentmation009?loginPCIp=' + returnCitySN["cip"],
params: getTableParams(),
method : 'post'
});
......
......@@ -227,6 +227,7 @@ var postDownLoadFile = function(options) {
for (var key in config.params) {
$form.append('<input type="hidden" name="' + key + '" value="' + config.params[key] + '" />');
}
$form.append('<input type="hidden" name="userToken" value="' + getCookie('userToken') + '" />');
}
// 图片
if(!isNull(config.data)){
......
......@@ -56,7 +56,6 @@ var AjaxPostUtil = {
var paramValue = params[pro];
paramsArray.push(pro + "=" + paramValue);
}
paramsArray.push("userToken=" + getCookie('userToken'));
paramsArray.push("loginPCIp=" + returnCitySN["cip"]);
return paramsArray.join("&");
},
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册