@baosight/er4j 0.0.18 → 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.
package/er4j-dist/er4j.es.js
CHANGED
|
@@ -11786,32 +11786,32 @@ var g;
|
|
|
11786
11786
|
}
|
|
11787
11787
|
}
|
|
11788
11788
|
if (typeof e == "string") {
|
|
11789
|
-
|
|
11790
|
-
p.addBlock(this.getAllControlValueAsEiBlock(t, void 0, i == null ? void 0 : i.filterBlockId)), a.push(this.callService(e, p, (i == null ? void 0 : i.loadingOptions) || { show: !0 }, (i == null ? void 0 : i.callServiceOptions) || { toCamelCase: !0 }));
|
|
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, "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) {
|
|
11794
11794
|
const h = this.getGridDeletedRowsAsBlock(o);
|
|
11795
11795
|
if (h.getMappedRows().length > 0) {
|
|
11796
11796
|
h.rename("result");
|
|
11797
|
-
|
|
11798
|
-
T.addBlock(p), T.addBlock(h), a.push(this.callService(e.deleteService, T, (i == null ? void 0 : i.loadingOptions) || { show: !0 }, (i == null ? void 0 : i.callServiceOptions) || { toCamelCase: !0 }));
|
|
11797
|
+
let T = new It();
|
|
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) {
|
|
11802
11802
|
const h = this.getGridModifyRowsAsBlock(o);
|
|
11803
11803
|
if (h.getMappedRows().length > 0) {
|
|
11804
11804
|
h.rename("result");
|
|
11805
|
-
|
|
11806
|
-
T.addBlock(p), T.addBlock(h), a.push(this.callService(e.updateService, T, (i == null ? void 0 : i.loadingOptions) || { show: !0 }, (i == null ? void 0 : i.callServiceOptions) || { toCamelCase: !0 }));
|
|
11805
|
+
let T = new It();
|
|
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) {
|
|
11810
11810
|
const h = this.getGridCreatedRowsAsBlock(o);
|
|
11811
11811
|
if (h.getMappedRows().length > 0) {
|
|
11812
11812
|
h.rename("result");
|
|
11813
|
-
|
|
11814
|
-
T.addBlock(p), T.addBlock(h), a.push(this.callService(e.insertService, T, (i == null ? void 0 : i.loadingOptions) || { show: !0 }, (i == null ? void 0 : i.callServiceOptions) || { toCamelCase: !0 }));
|
|
11813
|
+
let T = new It();
|
|
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;
|