@fecp/designer 5.2.7 → 5.2.9
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/es/designer.css +94 -92
- package/es/packages/designer/package.json.mjs +1 -1
- package/es/packages/designer/src/packages/table/queryModule/DynamicModeConfig.vue.mjs +1 -1
- package/es/packages/vue/src/components/dialog/DialogRenderer.vue2.mjs +11 -11
- package/es/packages/vue/src/components/forms/form/Form.vue.mjs +2 -2
- package/es/packages/vue/src/components/forms/subTable/SubTable.vue.mjs +10 -5
- package/es/packages/vue/src/components/table/CustomButtons.vue.mjs +1 -1
- package/es/packages/vue/src/components/table/DynamicQuery.vue.mjs +1 -1
- package/es/packages/vue/src/components/table/Table.vue.mjs +11 -2
- package/es/packages/vue/src/utils/eventFlow/actionHandlers.mjs +1 -0
- package/es/packages/vue/src/utils/getJsonAsyncUtil.mjs +2 -1
- package/lib/designer.css +94 -92
- package/lib/packages/designer/package.json.js +1 -1
- package/lib/packages/designer/src/packages/table/queryModule/DynamicModeConfig.vue.js +1 -1
- package/lib/packages/vue/src/components/dialog/DialogRenderer.vue2.js +11 -11
- package/lib/packages/vue/src/components/forms/form/Form.vue.js +2 -2
- package/lib/packages/vue/src/components/forms/subTable/SubTable.vue.js +10 -5
- package/lib/packages/vue/src/components/table/CustomButtons.vue.js +1 -1
- package/lib/packages/vue/src/components/table/DynamicQuery.vue.js +1 -1
- package/lib/packages/vue/src/components/table/Table.vue.js +11 -2
- package/lib/packages/vue/src/utils/eventFlow/actionHandlers.js +1 -0
- package/lib/packages/vue/src/utils/getJsonAsyncUtil.js +2 -1
- package/package.json +1 -1
|
@@ -147,7 +147,7 @@ const _sfc_main = {
|
|
|
147
147
|
};
|
|
148
148
|
const dialogTableRef = vue.ref();
|
|
149
149
|
const handleConfirm = () => {
|
|
150
|
-
var _a, _b, _c, _d, _e;
|
|
150
|
+
var _a, _b, _c, _d, _e, _f, _g;
|
|
151
151
|
const contentSource = (_a = currentDialogConfig.value) == null ? void 0 : _a.contentSource;
|
|
152
152
|
if (contentSource === "table") {
|
|
153
153
|
if (tableSelectionRows.value.length == 0) {
|
|
@@ -184,20 +184,20 @@ const _sfc_main = {
|
|
|
184
184
|
}
|
|
185
185
|
const callbackEventConfig = currentDialogConfig.value.callbackEventConfig;
|
|
186
186
|
if (callbackEventConfig && Object.keys(callbackEventConfig).length > 0 && ((_e = callbackEventConfig == null ? void 0 : callbackEventConfig.next) == null ? void 0 : _e.id) != "end") {
|
|
187
|
-
const fieldsData = dialogTableRef.value.localConfig.fieldsData;
|
|
188
187
|
eventFlowHandler.executeEventFlow({
|
|
189
188
|
eventFlow: callbackEventConfig,
|
|
190
|
-
fields:
|
|
189
|
+
fields: props.fieldsList,
|
|
191
190
|
instance: props.instance,
|
|
192
|
-
localConfig:
|
|
191
|
+
localConfig: ((_g = (_f = props.componentCtx) == null ? void 0 : _f.$) == null ? void 0 : _g.exposed.localConfig.value) || {},
|
|
193
192
|
components: {
|
|
194
|
-
table: {
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
}
|
|
193
|
+
// table: {
|
|
194
|
+
// $: {
|
|
195
|
+
// exposed: dialogTableRef.value,
|
|
196
|
+
// },
|
|
197
|
+
// },
|
|
198
|
+
table: props.componentCtx
|
|
199
199
|
},
|
|
200
|
-
row:
|
|
200
|
+
row: props.formData,
|
|
201
201
|
item: {}
|
|
202
202
|
});
|
|
203
203
|
}
|
|
@@ -412,5 +412,5 @@ const _sfc_main = {
|
|
|
412
412
|
};
|
|
413
413
|
}
|
|
414
414
|
};
|
|
415
|
-
const DialogRenderer = /* @__PURE__ */ _pluginVue_exportHelper.default(_sfc_main, [["__scopeId", "data-v-
|
|
415
|
+
const DialogRenderer = /* @__PURE__ */ _pluginVue_exportHelper.default(_sfc_main, [["__scopeId", "data-v-871f9831"]]);
|
|
416
416
|
exports.default = DialogRenderer;
|
|
@@ -155,7 +155,7 @@ const _sfc_main = /* @__PURE__ */ Object.assign({
|
|
|
155
155
|
);
|
|
156
156
|
if (onCreatedEvent) {
|
|
157
157
|
console.log("🚀 页面 onCreated 事件触发");
|
|
158
|
-
pageEvents.executeEvent("onCreated");
|
|
158
|
+
await pageEvents.executeEvent("onCreated");
|
|
159
159
|
}
|
|
160
160
|
}
|
|
161
161
|
} catch (error) {
|
|
@@ -682,5 +682,5 @@ const _sfc_main = /* @__PURE__ */ Object.assign({
|
|
|
682
682
|
};
|
|
683
683
|
}
|
|
684
684
|
});
|
|
685
|
-
const _Form = /* @__PURE__ */ _pluginVue_exportHelper.default(_sfc_main, [["__scopeId", "data-v-
|
|
685
|
+
const _Form = /* @__PURE__ */ _pluginVue_exportHelper.default(_sfc_main, [["__scopeId", "data-v-016bcba6"]]);
|
|
686
686
|
exports.default = _Form;
|
|
@@ -55,13 +55,18 @@ const _sfc_main = /* @__PURE__ */ Object.assign({
|
|
|
55
55
|
}
|
|
56
56
|
return [];
|
|
57
57
|
});
|
|
58
|
-
const
|
|
58
|
+
const fieldList = vue.computed(() => {
|
|
59
|
+
return [
|
|
60
|
+
...props.localConfig.fieldsData.map((item) => item.component),
|
|
61
|
+
...props.localConfig.hiddenFields
|
|
62
|
+
];
|
|
63
|
+
});
|
|
64
|
+
const initHiddenData = vue.computed(() => {
|
|
59
65
|
if (props.config.dataSourceFrom == "self") {
|
|
60
|
-
const fields = props.localConfig.fieldsData.map((item) => item.component);
|
|
61
66
|
const params = parseRouteParams.parseRouteParams(
|
|
62
67
|
props.config.subTableParams,
|
|
63
68
|
formData.value,
|
|
64
|
-
|
|
69
|
+
fieldList.value
|
|
65
70
|
);
|
|
66
71
|
return params;
|
|
67
72
|
}
|
|
@@ -97,10 +102,10 @@ const _sfc_main = /* @__PURE__ */ Object.assign({
|
|
|
97
102
|
hasPagination: __props.config.isSubTablePagination,
|
|
98
103
|
height: __props.config.subTableHeight,
|
|
99
104
|
tableData: vue.unref(subTableData),
|
|
100
|
-
|
|
105
|
+
initHiddenData: vue.unref(initHiddenData),
|
|
101
106
|
canLoadBySearchData: __props.config.reloadOnParamsChange,
|
|
102
107
|
readonly: __props.config.isSubTableReadOnly
|
|
103
|
-
}, null, 8, ["templateKey", "mode", "hasPagination", "height", "tableData", "
|
|
108
|
+
}, null, 8, ["templateKey", "mode", "hasPagination", "height", "tableData", "initHiddenData", "canLoadBySearchData", "readonly"])
|
|
104
109
|
], 64);
|
|
105
110
|
};
|
|
106
111
|
}
|
|
@@ -131,5 +131,5 @@ const _sfc_main = {
|
|
|
131
131
|
};
|
|
132
132
|
}
|
|
133
133
|
};
|
|
134
|
-
const CustomButtons = /* @__PURE__ */ _pluginVue_exportHelper.default(_sfc_main, [["__scopeId", "data-v-
|
|
134
|
+
const CustomButtons = /* @__PURE__ */ _pluginVue_exportHelper.default(_sfc_main, [["__scopeId", "data-v-827a5895"]]);
|
|
135
135
|
exports.default = CustomButtons;
|
|
@@ -421,5 +421,5 @@ const _sfc_main = {
|
|
|
421
421
|
};
|
|
422
422
|
}
|
|
423
423
|
};
|
|
424
|
-
const DynamicQuery = /* @__PURE__ */ _pluginVue_exportHelper.default(_sfc_main, [["__scopeId", "data-v-
|
|
424
|
+
const DynamicQuery = /* @__PURE__ */ _pluginVue_exportHelper.default(_sfc_main, [["__scopeId", "data-v-59950eea"]]);
|
|
425
425
|
exports.default = DynamicQuery;
|
|
@@ -477,6 +477,11 @@ const _sfc_main = /* @__PURE__ */ Object.assign({
|
|
|
477
477
|
isShow: false
|
|
478
478
|
}))
|
|
479
479
|
];
|
|
480
|
+
localConfig.value.hiddenFields.forEach((item) => {
|
|
481
|
+
if (!hiddenFormData.value[item.fieldName]) {
|
|
482
|
+
hiddenFormData.value[item.fieldName] = item.value;
|
|
483
|
+
}
|
|
484
|
+
});
|
|
480
485
|
initHandleEvent();
|
|
481
486
|
emit("loaded", option);
|
|
482
487
|
} catch (error) {
|
|
@@ -518,6 +523,9 @@ const _sfc_main = /* @__PURE__ */ Object.assign({
|
|
|
518
523
|
dataSourceManager.value.destroy();
|
|
519
524
|
}
|
|
520
525
|
});
|
|
526
|
+
const setFormData = (data) => {
|
|
527
|
+
Object.assign(hiddenFormData.value, data);
|
|
528
|
+
};
|
|
521
529
|
__expose({
|
|
522
530
|
tableRef,
|
|
523
531
|
refresh,
|
|
@@ -526,7 +534,8 @@ const _sfc_main = /* @__PURE__ */ Object.assign({
|
|
|
526
534
|
getSelection,
|
|
527
535
|
clearSelection,
|
|
528
536
|
exportData: handleExport,
|
|
529
|
-
localConfig
|
|
537
|
+
localConfig,
|
|
538
|
+
setFormData
|
|
530
539
|
});
|
|
531
540
|
return (_ctx, _cache) => {
|
|
532
541
|
const _component_el_container = index.ElContainer;
|
|
@@ -633,5 +642,5 @@ const _sfc_main = /* @__PURE__ */ Object.assign({
|
|
|
633
642
|
};
|
|
634
643
|
}
|
|
635
644
|
});
|
|
636
|
-
const _Table = /* @__PURE__ */ _pluginVue_exportHelper.default(_sfc_main, [["__scopeId", "data-v-
|
|
645
|
+
const _Table = /* @__PURE__ */ _pluginVue_exportHelper.default(_sfc_main, [["__scopeId", "data-v-b8d760e0"]]);
|
|
637
646
|
exports.default = _Table;
|
|
@@ -141,6 +141,7 @@ async function handlePageGoBack(node, data, fields, context) {
|
|
|
141
141
|
}
|
|
142
142
|
async function handleApiCall(node, data, fields, context, params) {
|
|
143
143
|
console.log("[EventFlow] 执行API调用:", node.basic);
|
|
144
|
+
debugger;
|
|
144
145
|
const basic = node.basic || {};
|
|
145
146
|
if (!basic.dataSourceId) {
|
|
146
147
|
return {
|