提交 4815e846 authored 作者: 贺阳's avatar 贺阳

导出表格的宽度优化

上级 cabb3198
...@@ -80,9 +80,9 @@ class ExportBlAndPackageXlsx(http.Controller): ...@@ -80,9 +80,9 @@ class ExportBlAndPackageXlsx(http.Controller):
""" """
sheet1 = worksheet.add_sheet('Sheet(%s)' % num, cell_overwrite_ok=True) sheet1 = worksheet.add_sheet('Sheet(%s)' % num, cell_overwrite_ok=True)
index = 0 index = 0
for i in range(35): for i in range(37):
sheet1.col(i).width = 500 * 11 sheet1.col(i).width = 500 * 11
sheet1.col(6).width = 600 * 11 sheet1.col(8).width = 600 * 11
sheet1.write(index, 0, u'CUSTOMS PROVIDER ORDER ID', font_style) # CUSTOMS PROVIDER ORDER ID sheet1.write(index, 0, u'CUSTOMS PROVIDER ORDER ID', font_style) # CUSTOMS PROVIDER ORDER ID
sheet1.write(index, 1, u'BIG BAG NO', font_style) # BIG BAG NO sheet1.write(index, 1, u'BIG BAG NO', font_style) # BIG BAG NO
sheet1.write(index, 2, u'TRACKING NO', font_style) # TRACKING NO sheet1.write(index, 2, u'TRACKING NO', font_style) # TRACKING NO
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论