Use elementui's table to export files

Change the code of "predecessors", the time format in the exported file shows ##### or refers to displaying the year, month, day, hour and minute, and the second is missing.

I saw that the code is exported by the exportCsv of the elementUi table component used by the front end. I wanted to provide an export interface for the back end to finish the job. However, the back end does not write, haha, then I can only find the problem by myself

Looking at the file, you will find that the second is actually there, but it is not displayed in the cell. It is useless to set the cell properties once

insert image description here

Solution

After unremitting efforts, I finally found a solution.
Add \t after the time value
insert image description here

If this article solves your problem, please give it a compliment~

Guess you like

Origin blog.csdn.net/weixin_42255789/article/details/131164097