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

按钮功能

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