Commit ce4d5c9be60925ea72b307121af1a18c83a0b3b3

Authored by weixin_45529955
1 parent 8d11270f

客情导出数据的列表去掉总排行sheet2

... ... @@ -262,42 +262,42 @@ class _ExportBookDataPageState extends State<ExportBookDataPage> {
excelUtil.Excel excel = excelUtil.Excel.createExcel();
excelUtil.Sheet sh2 = excel['Sheet2'];
// excelUtil.Sheet sh2 = excel['Sheet2'];
//表头
// //表头
sh2
.cell(excelUtil.CellIndex.indexByColumnRow(rowIndex: 0, columnIndex: 0))
.value = excelUtil.TextCellValue('订单数');;
// sh2
// .cell(excelUtil.CellIndex.indexByColumnRow(rowIndex: 0, columnIndex: 0))
// .value = excelUtil.TextCellValue('订单数');;
sh2
.cell(excelUtil.CellIndex.indexByColumnRow(rowIndex: 0, columnIndex: 1))
.value = excelUtil.TextCellValue('客户经理');
for (int row = 0;
row < customerProvider.exportInfoSunModel!.count!.length;
row++) {
for (int column = 0; column < 2; column++) {
Count count = customerProvider.exportInfoSunModel!.count![row];
if (column == 0) {
// inal string = listDynamic[row][column].toString();
// var cellValue = int.tryParse(string) != null
// ? IntCellValue(int.parse(string))
// : TextCellValue(string);
sh2
.cell(excelUtil.CellIndex.indexByColumnRow(
rowIndex: row + 1, columnIndex: column))
.value = excelUtil.TextCellValue('${count.total}');
} else {
sh2
.cell(excelUtil.CellIndex.indexByColumnRow(
rowIndex: row + 1, columnIndex: column))
.value = excelUtil.TextCellValue('${count.nickName ?? ''}');
}
}
}
// sh2
// .cell(excelUtil.CellIndex.indexByColumnRow(rowIndex: 0, columnIndex: 1))
// .value = excelUtil.TextCellValue('客户经理');
// for (int row = 0;
// row < customerProvider.exportInfoSunModel!.count!.length;
// row++) {
// for (int column = 0; column < 2; column++) {
// Count count = customerProvider.exportInfoSunModel!.count![row];
// if (column == 0) {
// // inal string = listDynamic[row][column].toString();
// // var cellValue = int.tryParse(string) != null
// // ? IntCellValue(int.parse(string))
// // : TextCellValue(string);
// sh2
// .cell(excelUtil.CellIndex.indexByColumnRow(
// rowIndex: row + 1, columnIndex: column))
// .value = excelUtil.TextCellValue('${count.total}');
// } else {
// sh2
// .cell(excelUtil.CellIndex.indexByColumnRow(
// rowIndex: row + 1, columnIndex: column))
// .value = excelUtil.TextCellValue('${count.nickName ?? ''}');
// }
// }
// }
// excel.delete('Sheet1');
excelUtil.Sheet sh = excel['Sheet1'];
... ... @@ -336,7 +336,7 @@ class _ExportBookDataPageState extends State<ExportBookDataPage> {
// var sheet1rtl = excel['Sheet1'].isRTL;
// excel['Sheet1'].isRTL = true;
excel.rename('Sheet1', '订单统计列表');
excel.rename('Sheet2', '排行榜列表');
// excel.rename('Sheet2', '排行榜列表');
print('Generating executed in ${stopwatch.elapsed}');
stopwatch.reset();
... ...