Commit 9cc2a778 authored by 何波's avatar 何波

按钮功能

parent bed21a9c
......@@ -1505,23 +1505,39 @@ document.querySelectorAll('.downloadBox li').forEach((el, index) => {
});
});
function submitSelect(scope, type) {
console.log(type,'type');
// scope: 0 当前页 / 1 全部(你可以扩展)
// type: 1 txt 2 excel 3 csv 4 pdf
var data = getTableData();
switch (type) {
case '1':
case '5':
case '21':
case '25':
downloadTXT(data);
break;
case '2':
case '6':
case '22':
case '26':
downloadExcel(data);
break;
case '3':
case '7':
case '23':
case '27':
downloadCSV(data);
break;
case '4':
case '8':
case '24':
case '28':
downloadPDF(data);
break;
}
}
}
function downloadTXT() {
var table = document.getElementById("rsTable2");
......
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