bug
This commit is contained in:
@ -296,7 +296,17 @@
|
||||
function exportExcel() {
|
||||
var periodTypeName = $('#periodTypeList').val();
|
||||
var positionType = $('#positionTypeList').val();
|
||||
window.open(ext.contextPath + "/kpi/kpiPlan/export.do?periodTypeName=" + periodTypeName + "&positionType=" + positionType);
|
||||
let checkedItems = $("#table").bootstrapTable('getSelections');
|
||||
let ids = "";
|
||||
$.each(checkedItems, function (index, item) {
|
||||
ids += item.id + ",";
|
||||
});
|
||||
if (ids !== "") {
|
||||
ids = ids.substring(0, ids.length - 1);
|
||||
window.open(ext.contextPath + "/kpi/kpiPlan/export.do?periodTypeName=" + periodTypeName + "&positionType=" + positionType + "&ids=" + encodeURIComponent(ids));
|
||||
} else {
|
||||
window.open(ext.contextPath + "/kpi/kpiPlan/export.do?periodTypeName=" + periodTypeName + "&positionType=" + positionType);
|
||||
}
|
||||
}
|
||||
|
||||
</script>
|
||||
|
||||
@ -400,7 +400,17 @@
|
||||
|
||||
//导出
|
||||
function downloadExcelFun() {
|
||||
window.open(ext.contextPath + "/sparepart/sewage/downloadExcelFun.do");
|
||||
var checkedItems = $("#table").bootstrapTable('getSelections');
|
||||
var ids = "";
|
||||
$.each(checkedItems, function(index, item){
|
||||
ids += item.id + ",";
|
||||
});
|
||||
if(ids !== ""){
|
||||
ids = ids.substring(0, ids.length - 1);
|
||||
window.open(ext.contextPath + "/sparepart/sewage/downloadExcelFun.do?ids=" + encodeURIComponent(ids));
|
||||
}else{
|
||||
window.open(ext.contextPath + "/sparepart/sewage/downloadExcelFun.do");
|
||||
}
|
||||
}
|
||||
</script>
|
||||
</head>
|
||||
|
||||
@ -418,17 +418,12 @@
|
||||
|
||||
var getExs = function () {
|
||||
var datas = selectionIds.toString();
|
||||
if (datas === "") {
|
||||
showAlert('d', '请选中之后导出', 'mainAlertdiv');
|
||||
} else {
|
||||
// window.open(ext.contextPath + "/workorder/workorderDetail/doExportMain.do?ids=" + datas + "&type=maintain");
|
||||
var params = {
|
||||
responseType: 'blob',
|
||||
ids: datas,
|
||||
type: 'maintain'
|
||||
};
|
||||
postExcelFile(params, ext.contextPath + '/workorder/workorderDetail/doExportMain.do');
|
||||
}
|
||||
var params = {
|
||||
responseType: 'blob',
|
||||
ids: datas,
|
||||
type: 'maintain'
|
||||
};
|
||||
postExcelFile(params, ext.contextPath + '/workorder/workorderDetail/doExportMain.do');
|
||||
}
|
||||
|
||||
function postExcelFile(params, url) { //params是post请求需要的参数,url是请求url地址
|
||||
|
||||
@ -117,11 +117,7 @@
|
||||
//金山项目导出(暂时不用)
|
||||
var getExs_JS = function () {
|
||||
var datas = selectionIds;
|
||||
if (datas == 0) {
|
||||
showAlert('d', '请选中之后导出', 'mainAlertdiv');
|
||||
} else {
|
||||
window.open(ext.contextPath + "/workorder/workorderDetail/doExportRepairJS.do?ids=" + datas + "&type=repair");
|
||||
}
|
||||
window.open(ext.contextPath + "/workorder/workorderDetail/doExportRepairJS.do?ids=" + datas + "&type=repair");
|
||||
}
|
||||
|
||||
/**
|
||||
@ -129,16 +125,12 @@
|
||||
*/
|
||||
var getExs = function () {
|
||||
var datas = selectionIds;
|
||||
if (datas == 0) {
|
||||
showAlert('d', '请选中之后导出', 'mainAlertdiv');
|
||||
} else {
|
||||
var params = {
|
||||
responseType: 'blob',
|
||||
ids: datas,
|
||||
type: 'repair'
|
||||
};
|
||||
postExcelFile(params, ext.contextPath + '/workorder/workorderDetail/doExportRepair.do');
|
||||
}
|
||||
var params = {
|
||||
responseType: 'blob',
|
||||
ids: datas,
|
||||
type: 'repair'
|
||||
};
|
||||
postExcelFile(params, ext.contextPath + '/workorder/workorderDetail/doExportRepair.do');
|
||||
}
|
||||
|
||||
function postExcelFile(params, url) { //params是post请求需要的参数,url是请求url地址
|
||||
|
||||
Reference in New Issue
Block a user