0.11.2 下载当前检索结果

This commit is contained in:
gotoeasy 2023-09-14 07:43:23 +08:00
parent 54779c2dd5
commit ffef53e2cf

View File

@ -288,12 +288,14 @@ function fnDownload() {
tableData.value.forEach(item => {
let flg = false;
tableConfigStore.columns.forEach(oCol => {
if (!oCol.hidden && !oCol.editType.startsWith('$')) {
flg && (fileContent += ', ');
fileContent += item.detail || item[oCol.field];
if (!oCol.hidden && !oCol.editType.startsWith('$') && oCol.editType != 'text') {
flg && (fileContent += ',');
fileContent += item[oCol.field];
flg = true;
}
})
fileContent += ',';
fileContent += (item.detail || item.text);
fileContent += '\r\n';
})