@baosight/er4j 0.0.45 → 0.0.47

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -37637,7 +37637,7 @@ var D;
37637
37637
  });
37638
37638
  const m = { flag: -1, msg: "", data: void 0, total: 0 }, F = (Z = (M = this.getGrid(r).gridOptions.context) == null ? void 0 : M.pageOptions) == null ? void 0 : Z.pageSize;
37639
37639
  E.addBlock(e.Core.buildEiBlock([{ PAGE_NUM: c, PAGE_SIZE: F }], "PAGEINFO")), await this.callService(n.trim(), E, { messageError: !0 }).then((N) => {
37640
- N.getStatus() >= 0 && (m.flag = 0, m.data = N.getBlockByIndex(0), m.total = N.getBlockByIndex(0).length, N.contains("PAGEINFO") && (m.total = N.getBlock("PAGEINFO").data[0].TOTAL_RECORD));
37640
+ N.getStatus() >= 0 && (m.flag = 0, m.data = N.getBlockByIndex(0), m.total = N.getBlockByIndex(0).length, N.containsBlock("PAGEINFO") && (m.total = N.getBlock("PAGEINFO").getMappedRows()[0].TOTAL_RECORD));
37641
37641
  }), h(m);
37642
37642
  }), s);
37643
37643
  }
@@ -37658,7 +37658,7 @@ var D;
37658
37658
  });
37659
37659
  const I = { flag: -1, msg: "", data: void 0, total: 0 }, M = (N = (Z = this.getGrid(r).gridOptions.context) == null ? void 0 : Z.pageOptions) == null ? void 0 : N.pageSize;
37660
37660
  m.addBlock(e.Core.buildEiBlock([{ FUNCTION_ID: n }], "DATA_SOURCE")), m.addBlock(e.Core.buildEiBlock([{ PAGE_NUM: h, PAGE_SIZE: M }], "PAGEINFO")), await this.callService(s.trim(), m).then((G) => {
37661
- G.getStatus() >= 0 && (I.flag = 0, I.data = G.getBlockByIndex(0), I.total = G.getBlockByIndex(0).length, G.contains("PAGEINFO") && (I.total = G.getBlock("PAGEINFO").data[0].TOTAL_RECORD));
37661
+ G.getStatus() >= 0 && (I.flag = 0, I.data = G.getBlockByIndex(0), I.total = G.getBlockByIndex(0).length, G.containsBlock("PAGEINFO") && (I.total = G.getBlock("PAGEINFO").getMappedRows()[0].TOTAL_RECORD));
37662
37662
  }), p(I);
37663
37663
  }), c);
37664
37664
  }