mirror of
https://github.com/wekan/wekan.git
synced 2025-04-22 04:57:07 -04:00
Export to Excel XLSX. Does work, but does not export all fields yet correctly. In Progress. Part 2.
Thanks to xet7 !
This commit is contained in:
parent
a1dbeda9ce
commit
56a530058b
1 changed files with 3 additions and 2 deletions
|
@ -201,6 +201,7 @@ export class ExporterExcel {
|
|||
|
||||
const jdata = result;
|
||||
//init exceljs workbook
|
||||
const Excel = require('exceljs');
|
||||
const workbook = new Excel.Workbook();
|
||||
workbook.creator = TAPi18n.__('export-board');
|
||||
workbook.lastModifiedBy = TAPi18n.__('export-board');
|
||||
|
@ -299,12 +300,12 @@ export class ExporterExcel {
|
|||
//get kanban list info
|
||||
const jlist = {};
|
||||
for (const klist in jdata.lists) {
|
||||
jlist[jdata.lists[k]._id] = jdata.lists[klist].title;
|
||||
jlist[jdata.lists[klist]._id] = jdata.lists[klist].title;
|
||||
}
|
||||
//get kanban label info
|
||||
const jlabel = {};
|
||||
for (const klabel in jdata.labels) {
|
||||
jlabel[jdata.labels[k]._id] = jdata.labels[klabel].name;
|
||||
jlabel[jdata.labels[klabel]._id] = jdata.labels[klabel].name;
|
||||
}
|
||||
//add data +8 hours
|
||||
function add8hours(jdate) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue