diff --git a/app/views/utable_export/export.xlsx.axlsx b/app/views/utable_export/export.xlsx.axlsx index e3e57e5..da73807 100644 --- a/app/views/utable_export/export.xlsx.axlsx +++ b/app/views/utable_export/export.xlsx.axlsx @@ -11,6 +11,10 @@ wb.add_worksheet(name: "Structure") do |sheet| row1 = [] row2 = [] + row << "UID" + row1 << "uid" + row2 << "uid" + table.table_columns.asc(:order).each do |column| case column.type when "text" @@ -54,6 +58,7 @@ wb.add_worksheet(name: "Structure") do |sheet| table.table_entries.asc(:created_at).each do |entry| row = [] + row << entry.uid table.table_columns.asc(:order).each do |col| column = entry.column_entries.where(:table_column_id => col.id).first case col.type