mirror of
https://github.com/silenty4ng/k5web
synced 2025-01-09 13:24:38 +00:00
update
This commit is contained in:
parent
75296d3b84
commit
a44fa906bd
1 changed files with 8 additions and 2 deletions
|
@ -110,7 +110,7 @@
|
||||||
import { useAppStore } from '@/store';
|
import { useAppStore } from '@/store';
|
||||||
import { MoveIcon } from 'tdesign-icons-vue-next';
|
import { MoveIcon } from 'tdesign-icons-vue-next';
|
||||||
import Chinese from 'chinese-s2t';
|
import Chinese from 'chinese-s2t';
|
||||||
import { read as xlsxRead, writeFile as xlsxWrite, utils as xlsxUtils } from "xlsx";
|
import { read as xlsxRead, writeXLSX } from "xlsx";
|
||||||
import { useI18n } from 'vue-i18n';
|
import { useI18n } from 'vue-i18n';
|
||||||
const { t } = useI18n();
|
const { t } = useI18n();
|
||||||
|
|
||||||
|
@ -864,7 +864,13 @@
|
||||||
worksheet['T' + i].v = cstate.renderData[i - 2]?.scanlist.join(',')
|
worksheet['T' + i].v = cstate.renderData[i - 2]?.scanlist.join(',')
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
xlsxWrite(workbook, 'K5Channel.xlsx');
|
const blob = new Blob([writeXLSX(workbook, { type: 'buffer' })], { type: 'application/octet-stream' });
|
||||||
|
const a = document.createElement('a');
|
||||||
|
a.href = URL.createObjectURL(blob);
|
||||||
|
a.download = 'K5Channel.xlsx';
|
||||||
|
document.body.appendChild(a);
|
||||||
|
a.click();
|
||||||
|
document.body.removeChild(a);
|
||||||
}
|
}
|
||||||
|
|
||||||
const restoreExcelChannel = () => {
|
const restoreExcelChannel = () => {
|
||||||
|
|
Loading…
Reference in a new issue