记得上下班打卡 | git大法好,push需谨慎

Commit eb09a23d authored by dongchun's avatar dongchun

yb导出

parent 3c4d31de
...@@ -112,6 +112,7 @@ ...@@ -112,6 +112,7 @@
removeUrl: prefix + "/cancel/{id}", removeUrl: prefix + "/cancel/{id}",
openTab: prefix2 + "/activityStoreList/id={id}", openTab: prefix2 + "/activityStoreList/id={id}",
// exportUrl: prefix + "/export", // exportUrl: prefix + "/export",
exportUrl:'/sweet/activity/export',
onCheck: onCheck, onCheck: onCheck,
// onCheckAll: onCheckAll, // onCheckAll: onCheckAll,
sortName: "createdAt", sortName: "createdAt",
...@@ -220,10 +221,14 @@ ...@@ -220,10 +221,14 @@
return bodyDom.document.getElementById(name); return bodyDom.document.getElementById(name);
} }
function exportData(id) { function exportData(id) {
promiseMethods('/sweet/activity/export', 'post', {activityId:id}).then(res => { let param = {
title: ''
}
// promiseMethods('/sweet/activity/export', 'post', {title: ''}).then(res => {
// $.operate.successCallback(res); // $.operate.successCallback(res);
window.open(res); // window.open(res.msg);
}) $.table.exportExcel("", param)
// })
} }
function onCheck (row, $element) { function onCheck (row, $element) {
rowData = row; rowData = row;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment