@baosight/er4j 0.0.19 → 0.0.20

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.
@@ -11787,7 +11787,7 @@ var g;
11787
11787
  }
11788
11788
  if (typeof e == "string") {
11789
11789
  let p = this.getGridChangedRowsAsEiInfo(o);
11790
- p.addBlock(this.getAllControlValueAsEiBlock(t, void 0, i == null ? void 0 : i.filterBlockId)), i != null && i.processInInfo && i.processInInfo instanceof Function && (p = i.processInInfo(p)), a.push(this.callService(e, p, (i == null ? void 0 : i.loadingOptions) || { show: !0 }, (i == null ? void 0 : i.callServiceOptions) || { toCamelCase: !0 }));
11790
+ p.addBlock(this.getAllControlValueAsEiBlock(t, void 0, i == null ? void 0 : i.filterBlockId)), i != null && i.processInInfo && i.processInInfo instanceof Function && (p = i.processInInfo(p, "save")), a.push(this.callService(e, p, (i == null ? void 0 : i.loadingOptions) || { show: !0 }, (i == null ? void 0 : i.callServiceOptions) || { toCamelCase: !0 }));
11791
11791
  } else if ($o.isPlainObject(e)) {
11792
11792
  const p = this.getAllControlValueAsEiBlock(t, void 0, i == null ? void 0 : i.filterBlockId);
11793
11793
  if (e.deleteService && e.deleteService.trim().length > 0) {
@@ -11795,7 +11795,7 @@ var g;
11795
11795
  if (h.getMappedRows().length > 0) {
11796
11796
  h.rename("result");
11797
11797
  let T = new It();
11798
- T.addBlock(p), T.addBlock(h), i != null && i.processInInfo && i.processInInfo instanceof Function && (T = i.processInInfo(T)), a.push(this.callService(e.deleteService, T, (i == null ? void 0 : i.loadingOptions) || { show: !0 }, (i == null ? void 0 : i.callServiceOptions) || { toCamelCase: !0 }));
11798
+ T.addBlock(p), T.addBlock(h), i != null && i.processInInfo && i.processInInfo instanceof Function && (T = i.processInInfo(T, "delete")), a.push(this.callService(e.deleteService, T, (i == null ? void 0 : i.loadingOptions) || { show: !0 }, (i == null ? void 0 : i.callServiceOptions) || { toCamelCase: !0 }));
11799
11799
  }
11800
11800
  }
11801
11801
  if (e.updateService && e.updateService.trim().length > 0) {
@@ -11803,7 +11803,7 @@ var g;
11803
11803
  if (h.getMappedRows().length > 0) {
11804
11804
  h.rename("result");
11805
11805
  let T = new It();
11806
- T.addBlock(p), T.addBlock(h), i != null && i.processInInfo && i.processInInfo instanceof Function && (T = i.processInInfo(T)), a.push(this.callService(e.updateService, T, (i == null ? void 0 : i.loadingOptions) || { show: !0 }, (i == null ? void 0 : i.callServiceOptions) || { toCamelCase: !0 }));
11806
+ T.addBlock(p), T.addBlock(h), i != null && i.processInInfo && i.processInInfo instanceof Function && (T = i.processInInfo(T, "update")), a.push(this.callService(e.updateService, T, (i == null ? void 0 : i.loadingOptions) || { show: !0 }, (i == null ? void 0 : i.callServiceOptions) || { toCamelCase: !0 }));
11807
11807
  }
11808
11808
  }
11809
11809
  if (e.insertService && e.insertService.trim().length > 0) {
@@ -11811,7 +11811,7 @@ var g;
11811
11811
  if (h.getMappedRows().length > 0) {
11812
11812
  h.rename("result");
11813
11813
  let T = new It();
11814
- T.addBlock(p), T.addBlock(h), i != null && i.processInInfo && i.processInInfo instanceof Function && (T = i.processInInfo(T)), a.push(this.callService(e.insertService, T, (i == null ? void 0 : i.loadingOptions) || { show: !0 }, (i == null ? void 0 : i.callServiceOptions) || { toCamelCase: !0 }));
11814
+ T.addBlock(p), T.addBlock(h), i != null && i.processInInfo && i.processInInfo instanceof Function && (T = i.processInInfo(T, "insert")), a.push(this.callService(e.insertService, T, (i == null ? void 0 : i.loadingOptions) || { show: !0 }, (i == null ? void 0 : i.callServiceOptions) || { toCamelCase: !0 }));
11815
11815
  }
11816
11816
  }
11817
11817
  }
@@ -11819,7 +11819,7 @@ var g;
11819
11819
  let c = !0;
11820
11820
  u.forEach((p) => {
11821
11821
  p.status === "fulfilled" && p.value.getStatus() < 0 ? (this.messageError(p.value.getMsg()), c = !1) : p.status !== "fulfilled" && (c = !1);
11822
- }), c && (i != null && i.queryService) && this.queryDataToGrid(i.queryService, t, o, i), s({ results: u, success: c, message: c ? "保存成功" : "保存失败" });
11822
+ }), c && (i != null && i.queryService) && this.queryDataToGrid(i.queryService, t, o, { ...i, processInInfo: void 0 }), s({ results: u, success: c, message: c ? "保存成功" : "保存失败" });
11823
11823
  } else {
11824
11824
  s({ results: [], success: !0, message: "没有数据变更,无需保存" }), this.messageInfo("没有数据变更,无需保存");
11825
11825
  return;