When using the table.exportCsv() method to export data, there is a problem with scientific notation, such as phone numbers, ID numbers, etc. When the data is larger than 15 digits, 0 will be used instead.
To solve this problem, the solution is as follows:
Just add the tab character "\t" before the number, pay attention to the double quotes, and splice the string to achieve it< a i=2> For example:
exportData.forEach(colunm => {
colunm.applyNo = "\t" + colunm.applyNo;
})
this.$refs.table.exportCsv({
filename: "列表",
columns: this.exportColumns,
data: exportData
});
When adding the horizontal tab character "/t", it will not be converted into scientific notation.