mirror of
https://github.com/wekan/wekan.git
synced 2025-12-21 18:00:12 +01: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;
|
const jdata = result;
|
||||||
//init exceljs workbook
|
//init exceljs workbook
|
||||||
|
const Excel = require('exceljs');
|
||||||
const workbook = new Excel.Workbook();
|
const workbook = new Excel.Workbook();
|
||||||
workbook.creator = TAPi18n.__('export-board');
|
workbook.creator = TAPi18n.__('export-board');
|
||||||
workbook.lastModifiedBy = TAPi18n.__('export-board');
|
workbook.lastModifiedBy = TAPi18n.__('export-board');
|
||||||
|
|
@ -299,12 +300,12 @@ export class ExporterExcel {
|
||||||
//get kanban list info
|
//get kanban list info
|
||||||
const jlist = {};
|
const jlist = {};
|
||||||
for (const klist in jdata.lists) {
|
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
|
//get kanban label info
|
||||||
const jlabel = {};
|
const jlabel = {};
|
||||||
for (const klabel in jdata.labels) {
|
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
|
//add data +8 hours
|
||||||
function add8hours(jdate) {
|
function add8hours(jdate) {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue