Showing
1 changed file
with
33 additions
and
33 deletions
| @@ -262,42 +262,42 @@ class _ExportBookDataPageState extends State<ExportBookDataPage> { | @@ -262,42 +262,42 @@ class _ExportBookDataPageState extends State<ExportBookDataPage> { | ||
| 262 | 262 | ||
| 263 | excelUtil.Excel excel = excelUtil.Excel.createExcel(); | 263 | excelUtil.Excel excel = excelUtil.Excel.createExcel(); |
| 264 | 264 | ||
| 265 | - excelUtil.Sheet sh2 = excel['Sheet2']; | 265 | + // excelUtil.Sheet sh2 = excel['Sheet2']; |
| 266 | 266 | ||
| 267 | - //表头 | 267 | + // //表头 |
| 268 | 268 | ||
| 269 | - sh2 | ||
| 270 | - .cell(excelUtil.CellIndex.indexByColumnRow(rowIndex: 0, columnIndex: 0)) | ||
| 271 | - .value = excelUtil.TextCellValue('订单数');; | 269 | + // sh2 |
| 270 | + // .cell(excelUtil.CellIndex.indexByColumnRow(rowIndex: 0, columnIndex: 0)) | ||
| 271 | + // .value = excelUtil.TextCellValue('订单数');; | ||
| 272 | 272 | ||
| 273 | 273 | ||
| 274 | - sh2 | ||
| 275 | - .cell(excelUtil.CellIndex.indexByColumnRow(rowIndex: 0, columnIndex: 1)) | ||
| 276 | - .value = excelUtil.TextCellValue('客户经理'); | ||
| 277 | - | ||
| 278 | - for (int row = 0; | ||
| 279 | - row < customerProvider.exportInfoSunModel!.count!.length; | ||
| 280 | - row++) { | ||
| 281 | - for (int column = 0; column < 2; column++) { | ||
| 282 | - Count count = customerProvider.exportInfoSunModel!.count![row]; | ||
| 283 | - if (column == 0) { | ||
| 284 | - // inal string = listDynamic[row][column].toString(); | ||
| 285 | - | ||
| 286 | - // var cellValue = int.tryParse(string) != null | ||
| 287 | - // ? IntCellValue(int.parse(string)) | ||
| 288 | - // : TextCellValue(string); | ||
| 289 | - sh2 | ||
| 290 | - .cell(excelUtil.CellIndex.indexByColumnRow( | ||
| 291 | - rowIndex: row + 1, columnIndex: column)) | ||
| 292 | - .value = excelUtil.TextCellValue('${count.total}'); | ||
| 293 | - } else { | ||
| 294 | - sh2 | ||
| 295 | - .cell(excelUtil.CellIndex.indexByColumnRow( | ||
| 296 | - rowIndex: row + 1, columnIndex: column)) | ||
| 297 | - .value = excelUtil.TextCellValue('${count.nickName ?? ''}'); | ||
| 298 | - } | ||
| 299 | - } | ||
| 300 | - } | 274 | + // sh2 |
| 275 | + // .cell(excelUtil.CellIndex.indexByColumnRow(rowIndex: 0, columnIndex: 1)) | ||
| 276 | + // .value = excelUtil.TextCellValue('客户经理'); | ||
| 277 | + | ||
| 278 | + // for (int row = 0; | ||
| 279 | + // row < customerProvider.exportInfoSunModel!.count!.length; | ||
| 280 | + // row++) { | ||
| 281 | + // for (int column = 0; column < 2; column++) { | ||
| 282 | + // Count count = customerProvider.exportInfoSunModel!.count![row]; | ||
| 283 | + // if (column == 0) { | ||
| 284 | + // // inal string = listDynamic[row][column].toString(); | ||
| 285 | + | ||
| 286 | + // // var cellValue = int.tryParse(string) != null | ||
| 287 | + // // ? IntCellValue(int.parse(string)) | ||
| 288 | + // // : TextCellValue(string); | ||
| 289 | + // sh2 | ||
| 290 | + // .cell(excelUtil.CellIndex.indexByColumnRow( | ||
| 291 | + // rowIndex: row + 1, columnIndex: column)) | ||
| 292 | + // .value = excelUtil.TextCellValue('${count.total}'); | ||
| 293 | + // } else { | ||
| 294 | + // sh2 | ||
| 295 | + // .cell(excelUtil.CellIndex.indexByColumnRow( | ||
| 296 | + // rowIndex: row + 1, columnIndex: column)) | ||
| 297 | + // .value = excelUtil.TextCellValue('${count.nickName ?? ''}'); | ||
| 298 | + // } | ||
| 299 | + // } | ||
| 300 | + // } | ||
| 301 | 301 | ||
| 302 | // excel.delete('Sheet1'); | 302 | // excel.delete('Sheet1'); |
| 303 | excelUtil.Sheet sh = excel['Sheet1']; | 303 | excelUtil.Sheet sh = excel['Sheet1']; |
| @@ -336,7 +336,7 @@ class _ExportBookDataPageState extends State<ExportBookDataPage> { | @@ -336,7 +336,7 @@ class _ExportBookDataPageState extends State<ExportBookDataPage> { | ||
| 336 | // var sheet1rtl = excel['Sheet1'].isRTL; | 336 | // var sheet1rtl = excel['Sheet1'].isRTL; |
| 337 | // excel['Sheet1'].isRTL = true; | 337 | // excel['Sheet1'].isRTL = true; |
| 338 | excel.rename('Sheet1', '订单统计列表'); | 338 | excel.rename('Sheet1', '订单统计列表'); |
| 339 | - excel.rename('Sheet2', '排行榜列表'); | 339 | + // excel.rename('Sheet2', '排行榜列表'); |
| 340 | 340 | ||
| 341 | print('Generating executed in ${stopwatch.elapsed}'); | 341 | print('Generating executed in ${stopwatch.elapsed}'); |
| 342 | stopwatch.reset(); | 342 | stopwatch.reset(); |
-
Please register or login to post a comment