Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Export the table into an Excel file, processing 2024-09.03T16:48:59.000Z date format can only get 2024-9-4 no specific time #208

Open
web-zlinc opened this issue Sep 5, 2024 · 0 comments

Comments

@web-zlinc
Copy link

web-zlinc commented Sep 5, 2024

records.forEach(({ order_id, queue_id, repeat_count, first_auditor, repeat_auditor1, repeat_auditor2, is_equal, createdAt }) => {
const isEqual = is_equal === 1 ? '是' : '否';
const _createdAt = createdAt instanceof Date ? createdAt : new Date(createdAt);
list[0].data.push([order_id, queue_id, repeat_count, first_auditor, repeat_auditor1, repeat_auditor2, isEqual, _createdAt]);
});
const _xlsx = xlsx.build(list);

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant