@ebiz/designer-components 0.0.57 → 0.0.58
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/dist/index.mjs
CHANGED
@@ -59801,8 +59801,8 @@ const lW = /* @__PURE__ */ Qe(e8, [["render", t8], ["__scopeId", "data-v-d22af56
|
|
59801
59801
|
const A = { ...d.value, ...a.formData };
|
59802
59802
|
c.value && (A.id = c.value), s.value && Object.keys(s.value).length > 0 && Object.keys(s.value).forEach((D) => {
|
59803
59803
|
D !== "formData" && (A[D] = s.value[D]);
|
59804
|
-
});
|
59805
|
-
const $ = await _t.fetch({ detailId: A.id }, j);
|
59804
|
+
}), j.apiType = "PROCESS";
|
59805
|
+
const $ = await _t.fetch({ detailId: A.detailId || A.id, saveData: { ...A } }, j);
|
59806
59806
|
if (a.showResultMessage) {
|
59807
59807
|
const D = a.dialogType === "delete" ? "删除成功" : a.dialogType === "add" ? "添加成功" : a.dialogType === "edit" ? "修改成功" : "操作成功";
|
59808
59808
|
Mt.success(D);
|
@@ -60020,7 +60020,7 @@ const lW = /* @__PURE__ */ Qe(e8, [["render", t8], ["__scopeId", "data-v-d22af56
|
|
60020
60020
|
}, 8, ["visible", "header", "width", "top", "attach", "destroy-on-close", "mode", "placement", "show-overlay", "close-on-esc-keydown", "close-on-overlay-click", "show-footer"])
|
60021
60021
|
]));
|
60022
60022
|
}
|
60023
|
-
}, kW = /* @__PURE__ */ Qe(QK, [["__scopeId", "data-v-
|
60023
|
+
}, kW = /* @__PURE__ */ Qe(QK, [["__scopeId", "data-v-d1c85ab0"]]);
|
60024
60024
|
export {
|
60025
60025
|
sW as EbizAlert,
|
60026
60026
|
wW as EbizApproval,
|
package/package.json
CHANGED
@@ -355,7 +355,8 @@ const callApi = async (config = props.apiConfig) => {
|
|
355
355
|
}
|
356
356
|
|
357
357
|
// 调用dataService进行API请求,直接使用config
|
358
|
-
|
358
|
+
config.apiType = 'PROCESS'
|
359
|
+
const response = await dataService.fetch({ detailId: fetchParams.detailId || fetchParams.id, saveData: { ...fetchParams} }, config)
|
359
360
|
|
360
361
|
// 显示成功消息
|
361
362
|
if (props.showResultMessage) {
|