@fecp/designer 5.3.5 → 5.3.6
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 +7 -7
- package/es/packages/designer/package.json.mjs +1 -1
- package/es/packages/vue/src/components/bus/approvalHistory/ApprovalHistory.vue.mjs +2 -2
- package/es/packages/vue/src/components/forms/form/Form.vue.mjs +20 -8
- package/es/packages/vue/src/components/forms/subForm/SubForm.vue.mjs +2 -3
- package/es/packages/vue/src/components/forms/subTable/SubTable.vue.mjs +1 -1
- package/es/packages/vue/src/utils/eventFlow/actionHandlers.mjs +8 -3
- package/lib/designer.css +7 -7
- package/lib/packages/designer/package.json.js +1 -1
- package/lib/packages/vue/src/components/bus/approvalHistory/ApprovalHistory.vue.js +2 -2
- package/lib/packages/vue/src/components/forms/form/Form.vue.js +20 -8
- package/lib/packages/vue/src/components/forms/subForm/SubForm.vue.js +2 -3
- package/lib/packages/vue/src/components/forms/subTable/SubTable.vue.js +1 -1
- package/lib/packages/vue/src/utils/eventFlow/actionHandlers.js +8 -3
- package/package.json +1 -1
package/es/designer.css
CHANGED
|
@@ -5372,7 +5372,7 @@ body,
|
|
|
5372
5372
|
.flowchart-canvas[data-v-d06c15b1] {
|
|
5373
5373
|
height: 100%;
|
|
5374
5374
|
}
|
|
5375
|
-
.approval-history-content.flowChart[data-v-
|
|
5375
|
+
.approval-history-content.flowChart[data-v-f7d02612] {
|
|
5376
5376
|
background-color: #f9fafc;
|
|
5377
5377
|
}.dialog-header-content[data-v-7e9fd985] {
|
|
5378
5378
|
font-size: 16px;
|
|
@@ -5570,27 +5570,27 @@ body,
|
|
|
5570
5570
|
width: 80px;
|
|
5571
5571
|
font-size: var(--el-font-size-extra-small);
|
|
5572
5572
|
}
|
|
5573
|
-
.fec-form[data-v-
|
|
5573
|
+
.fec-form[data-v-a3082b55] {
|
|
5574
5574
|
height: 100%;
|
|
5575
5575
|
}
|
|
5576
|
-
[data-v-
|
|
5576
|
+
[data-v-a3082b55] .vgl-item {
|
|
5577
5577
|
transition: none;
|
|
5578
5578
|
}
|
|
5579
|
-
[data-v-
|
|
5579
|
+
[data-v-a3082b55] .vgl-item > .el-form-item {
|
|
5580
5580
|
width: 100%;
|
|
5581
5581
|
padding: 12px 8px 0 8px;
|
|
5582
5582
|
height: calc(100% - 15px);
|
|
5583
5583
|
display: flex;
|
|
5584
5584
|
}
|
|
5585
|
-
[data-v-
|
|
5585
|
+
[data-v-a3082b55] .vgl-item > .el-form-item.el-form-item--label-top {
|
|
5586
5586
|
flex-direction: column;
|
|
5587
5587
|
}
|
|
5588
|
-
[data-v-
|
|
5588
|
+
[data-v-a3082b55] .vgl-item > .el-form-item .el-form-item__label {
|
|
5589
5589
|
line-height: 20px;
|
|
5590
5590
|
display: flex;
|
|
5591
5591
|
align-items: center;
|
|
5592
5592
|
}
|
|
5593
|
-
[data-v-
|
|
5593
|
+
[data-v-a3082b55] .vgl-item > .el-container {
|
|
5594
5594
|
height: auto !important;
|
|
5595
5595
|
}.cell-content .cell-text[data-v-2352d631] {
|
|
5596
5596
|
display: inline-block;
|
|
@@ -68,7 +68,7 @@ const _sfc_main = /* @__PURE__ */ Object.assign({
|
|
|
68
68
|
if (foundItem) {
|
|
69
69
|
foundItem.fixedH = true;
|
|
70
70
|
foundItem.h = dom.offsetHeight + titleHeight;
|
|
71
|
-
setFormItemHeight(props.config.id, dom.offsetHeight + titleHeight);
|
|
71
|
+
setFormItemHeight(props.config.id, true, dom.offsetHeight + titleHeight);
|
|
72
72
|
}
|
|
73
73
|
}
|
|
74
74
|
return (_ctx, _cache) => {
|
|
@@ -125,7 +125,7 @@ const _sfc_main = /* @__PURE__ */ Object.assign({
|
|
|
125
125
|
};
|
|
126
126
|
}
|
|
127
127
|
});
|
|
128
|
-
const _ApprovalHistory = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-
|
|
128
|
+
const _ApprovalHistory = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-f7d02612"]]);
|
|
129
129
|
export {
|
|
130
130
|
_ApprovalHistory as default
|
|
131
131
|
};
|
|
@@ -152,6 +152,7 @@ const _sfc_main = /* @__PURE__ */ Object.assign({
|
|
|
152
152
|
mergeOptionsToFields();
|
|
153
153
|
loadFormData();
|
|
154
154
|
loadEventFlow();
|
|
155
|
+
initGridLayoutDataConfig();
|
|
155
156
|
if (pageEvents && localConfig.value.pageEventConfig) {
|
|
156
157
|
const onCreatedEvent = localConfig.value.pageEventConfig.find(
|
|
157
158
|
(e) => e.name === "onCreated"
|
|
@@ -708,6 +709,7 @@ const _sfc_main = /* @__PURE__ */ Object.assign({
|
|
|
708
709
|
return result;
|
|
709
710
|
};
|
|
710
711
|
const applyLinkageEffectsForChangedFields = (changedFieldNames) => {
|
|
712
|
+
var _a;
|
|
711
713
|
console.log(
|
|
712
714
|
"🚀 ~ applyLinkageEffectsForChangedFields ~ 变化的字段:",
|
|
713
715
|
changedFieldNames
|
|
@@ -723,9 +725,9 @@ const _sfc_main = /* @__PURE__ */ Object.assign({
|
|
|
723
725
|
if (checkFilterMatch(item.filterConfig, formData.value, fields)) {
|
|
724
726
|
const fieldAssignments = item.fieldAssignments || [];
|
|
725
727
|
fieldAssignments.forEach((assignment) => {
|
|
726
|
-
var
|
|
728
|
+
var _a2, _b;
|
|
727
729
|
const fieldId = assignment.fieldId;
|
|
728
|
-
const formulaText = (_b = (
|
|
730
|
+
const formulaText = (_b = (_a2 = assignment.formula) == null ? void 0 : _a2.value) == null ? void 0 : _b.text;
|
|
729
731
|
const field = fields.find((f) => f.id == fieldId);
|
|
730
732
|
if (field && formulaText) {
|
|
731
733
|
const calcResult = calculate({
|
|
@@ -825,11 +827,11 @@ const _sfc_main = /* @__PURE__ */ Object.assign({
|
|
|
825
827
|
}
|
|
826
828
|
});
|
|
827
829
|
gridLayoutFieldsData.value = updatedLayoutData.filter((item) => !item.hidden);
|
|
830
|
+
(_a = gridLayout == null ? void 0 : gridLayout.value) == null ? void 0 : _a.resizeEvent();
|
|
828
831
|
};
|
|
829
832
|
watch(
|
|
830
833
|
formData,
|
|
831
834
|
(newVal, oldVal) => {
|
|
832
|
-
initGridLayoutDataConfig();
|
|
833
835
|
const changedFields = findChangedFields(newVal, prevFormData.value);
|
|
834
836
|
if (changedFields.length > 0) {
|
|
835
837
|
applyLinkageEffectsForChangedFields(changedFields);
|
|
@@ -839,11 +841,21 @@ const _sfc_main = /* @__PURE__ */ Object.assign({
|
|
|
839
841
|
},
|
|
840
842
|
{ deep: true }
|
|
841
843
|
);
|
|
842
|
-
function setFormItemHeight(id, h) {
|
|
844
|
+
function setFormItemHeight(id, fixedH, h) {
|
|
845
|
+
var _a;
|
|
843
846
|
const item = gridLayoutFieldsData.value.find((item2) => item2.id == id);
|
|
844
|
-
if (
|
|
845
|
-
item.h = h;
|
|
846
|
-
}
|
|
847
|
+
if (!fixedH) {
|
|
848
|
+
item.h = h * 60;
|
|
849
|
+
} else if (fixedH) {
|
|
850
|
+
item.h = h / (localConfig.value.labelPosition == "top" ? 1.5 : 1);
|
|
851
|
+
}
|
|
852
|
+
const oriItem = oriGridLayoutData.value.find((item2) => item2.id == id);
|
|
853
|
+
if (!fixedH) {
|
|
854
|
+
oriItem.h = h * 60;
|
|
855
|
+
} else if (fixedH) {
|
|
856
|
+
oriItem.h = h / (localConfig.value.labelPosition == "top" ? 1.5 : 1);
|
|
857
|
+
}
|
|
858
|
+
(_a = gridLayout == null ? void 0 : gridLayout.value) == null ? void 0 : _a.resizeEvent();
|
|
847
859
|
}
|
|
848
860
|
provide("formData", formData);
|
|
849
861
|
provide("localConfig", localConfig);
|
|
@@ -945,7 +957,7 @@ const _sfc_main = /* @__PURE__ */ Object.assign({
|
|
|
945
957
|
};
|
|
946
958
|
}
|
|
947
959
|
});
|
|
948
|
-
const _Form = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-
|
|
960
|
+
const _Form = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-a3082b55"]]);
|
|
949
961
|
export {
|
|
950
962
|
_Form as default
|
|
951
963
|
};
|
|
@@ -59,11 +59,10 @@ const _sfc_main = /* @__PURE__ */ Object.assign({
|
|
|
59
59
|
const foundItem = props.localConfig.fieldsData.find(
|
|
60
60
|
(item) => item.id == props.config.id
|
|
61
61
|
);
|
|
62
|
-
const y = 1;
|
|
63
62
|
const titleHeight = props.config.titleMode != "none" ? 1 : 0;
|
|
64
63
|
if (foundItem) {
|
|
65
|
-
foundItem.h = maxY +
|
|
66
|
-
setFormItemHeight(props.config.id, maxY +
|
|
64
|
+
foundItem.h = maxY + titleHeight;
|
|
65
|
+
setFormItemHeight(props.config.id, false, maxY + titleHeight);
|
|
67
66
|
}
|
|
68
67
|
}
|
|
69
68
|
return (_ctx, _cache) => {
|
|
@@ -79,7 +79,6 @@ const _sfc_main = /* @__PURE__ */ Object.assign({
|
|
|
79
79
|
});
|
|
80
80
|
function subTableLoaded(subOption) {
|
|
81
81
|
subTableOption.value = subOption;
|
|
82
|
-
console.log("🚀 ~ subTableLoaded ~ subOption:", subOption);
|
|
83
82
|
const foundItem = props.localConfig.fieldsData.find(
|
|
84
83
|
(item) => item.id == props.config.id
|
|
85
84
|
);
|
|
@@ -89,6 +88,7 @@ const _sfc_main = /* @__PURE__ */ Object.assign({
|
|
|
89
88
|
foundItem.h = props.config.subTableHeight + titleHeight;
|
|
90
89
|
setFormItemHeight(
|
|
91
90
|
props.config.id,
|
|
91
|
+
true,
|
|
92
92
|
props.config.subTableHeight + titleHeight
|
|
93
93
|
);
|
|
94
94
|
}
|
|
@@ -262,7 +262,7 @@ async function handleTableRefresh(node, data, fields, context) {
|
|
|
262
262
|
var _a, _b, _c;
|
|
263
263
|
console.log("[EventFlow] 执行表格刷新:", node.basic);
|
|
264
264
|
const basic = node.basic || {};
|
|
265
|
-
const
|
|
265
|
+
const refreshOptions = {
|
|
266
266
|
resetSort: basic.resetSort !== false,
|
|
267
267
|
// 默认 true
|
|
268
268
|
resetFilter: basic.resetFilter !== false,
|
|
@@ -270,11 +270,11 @@ async function handleTableRefresh(node, data, fields, context) {
|
|
|
270
270
|
resetPagination: basic.resetPagination !== false
|
|
271
271
|
// 默认 true
|
|
272
272
|
};
|
|
273
|
-
console.log("[EventFlow] 刷新选项:",
|
|
273
|
+
console.log("[EventFlow] 刷新选项:", refreshOptions);
|
|
274
274
|
const tableComponent = (_a = context.components) == null ? void 0 : _a.table;
|
|
275
275
|
const refreshMethod = (_c = (_b = tableComponent == null ? void 0 : tableComponent.$) == null ? void 0 : _b.exposed) == null ? void 0 : _c.refresh;
|
|
276
276
|
if (typeof refreshMethod === "function") {
|
|
277
|
-
await refreshMethod(
|
|
277
|
+
await refreshMethod(refreshOptions);
|
|
278
278
|
return {
|
|
279
279
|
success: true,
|
|
280
280
|
message: "表格已刷新"
|
|
@@ -346,6 +346,11 @@ async function handleTableRowDelete(node, data, fields, context) {
|
|
|
346
346
|
const tableComponent = (_a = context.components) == null ? void 0 : _a.table;
|
|
347
347
|
const refreshMethod = (_c = (_b = tableComponent == null ? void 0 : tableComponent.$) == null ? void 0 : _b.exposed) == null ? void 0 : _c.refresh;
|
|
348
348
|
if (typeof refreshMethod === "function") {
|
|
349
|
+
const refreshOptions = {
|
|
350
|
+
resetSort: false,
|
|
351
|
+
resetFilter: false,
|
|
352
|
+
resetPagination: false
|
|
353
|
+
};
|
|
349
354
|
await refreshMethod(refreshOptions);
|
|
350
355
|
return {
|
|
351
356
|
success: true,
|
package/lib/designer.css
CHANGED
|
@@ -5372,7 +5372,7 @@ body,
|
|
|
5372
5372
|
.flowchart-canvas[data-v-d06c15b1] {
|
|
5373
5373
|
height: 100%;
|
|
5374
5374
|
}
|
|
5375
|
-
.approval-history-content.flowChart[data-v-
|
|
5375
|
+
.approval-history-content.flowChart[data-v-f7d02612] {
|
|
5376
5376
|
background-color: #f9fafc;
|
|
5377
5377
|
}.dialog-header-content[data-v-7e9fd985] {
|
|
5378
5378
|
font-size: 16px;
|
|
@@ -5570,27 +5570,27 @@ body,
|
|
|
5570
5570
|
width: 80px;
|
|
5571
5571
|
font-size: var(--el-font-size-extra-small);
|
|
5572
5572
|
}
|
|
5573
|
-
.fec-form[data-v-
|
|
5573
|
+
.fec-form[data-v-a3082b55] {
|
|
5574
5574
|
height: 100%;
|
|
5575
5575
|
}
|
|
5576
|
-
[data-v-
|
|
5576
|
+
[data-v-a3082b55] .vgl-item {
|
|
5577
5577
|
transition: none;
|
|
5578
5578
|
}
|
|
5579
|
-
[data-v-
|
|
5579
|
+
[data-v-a3082b55] .vgl-item > .el-form-item {
|
|
5580
5580
|
width: 100%;
|
|
5581
5581
|
padding: 12px 8px 0 8px;
|
|
5582
5582
|
height: calc(100% - 15px);
|
|
5583
5583
|
display: flex;
|
|
5584
5584
|
}
|
|
5585
|
-
[data-v-
|
|
5585
|
+
[data-v-a3082b55] .vgl-item > .el-form-item.el-form-item--label-top {
|
|
5586
5586
|
flex-direction: column;
|
|
5587
5587
|
}
|
|
5588
|
-
[data-v-
|
|
5588
|
+
[data-v-a3082b55] .vgl-item > .el-form-item .el-form-item__label {
|
|
5589
5589
|
line-height: 20px;
|
|
5590
5590
|
display: flex;
|
|
5591
5591
|
align-items: center;
|
|
5592
5592
|
}
|
|
5593
|
-
[data-v-
|
|
5593
|
+
[data-v-a3082b55] .vgl-item > .el-container {
|
|
5594
5594
|
height: auto !important;
|
|
5595
5595
|
}.cell-content .cell-text[data-v-2352d631] {
|
|
5596
5596
|
display: inline-block;
|
|
@@ -70,7 +70,7 @@ const _sfc_main = /* @__PURE__ */ Object.assign({
|
|
|
70
70
|
if (foundItem) {
|
|
71
71
|
foundItem.fixedH = true;
|
|
72
72
|
foundItem.h = dom.offsetHeight + titleHeight;
|
|
73
|
-
setFormItemHeight(props.config.id, dom.offsetHeight + titleHeight);
|
|
73
|
+
setFormItemHeight(props.config.id, true, dom.offsetHeight + titleHeight);
|
|
74
74
|
}
|
|
75
75
|
}
|
|
76
76
|
return (_ctx, _cache) => {
|
|
@@ -127,5 +127,5 @@ const _sfc_main = /* @__PURE__ */ Object.assign({
|
|
|
127
127
|
};
|
|
128
128
|
}
|
|
129
129
|
});
|
|
130
|
-
const _ApprovalHistory = /* @__PURE__ */ _pluginVue_exportHelper.default(_sfc_main, [["__scopeId", "data-v-
|
|
130
|
+
const _ApprovalHistory = /* @__PURE__ */ _pluginVue_exportHelper.default(_sfc_main, [["__scopeId", "data-v-f7d02612"]]);
|
|
131
131
|
exports.default = _ApprovalHistory;
|
|
@@ -154,6 +154,7 @@ const _sfc_main = /* @__PURE__ */ Object.assign({
|
|
|
154
154
|
mergeOptionsToFields();
|
|
155
155
|
loadFormData();
|
|
156
156
|
loadEventFlow();
|
|
157
|
+
initGridLayoutDataConfig();
|
|
157
158
|
if (pageEvents && localConfig.value.pageEventConfig) {
|
|
158
159
|
const onCreatedEvent = localConfig.value.pageEventConfig.find(
|
|
159
160
|
(e) => e.name === "onCreated"
|
|
@@ -710,6 +711,7 @@ const _sfc_main = /* @__PURE__ */ Object.assign({
|
|
|
710
711
|
return result;
|
|
711
712
|
};
|
|
712
713
|
const applyLinkageEffectsForChangedFields = (changedFieldNames) => {
|
|
714
|
+
var _a;
|
|
713
715
|
console.log(
|
|
714
716
|
"🚀 ~ applyLinkageEffectsForChangedFields ~ 变化的字段:",
|
|
715
717
|
changedFieldNames
|
|
@@ -725,9 +727,9 @@ const _sfc_main = /* @__PURE__ */ Object.assign({
|
|
|
725
727
|
if (parseFilterConfig.checkFilterMatch(item.filterConfig, formData.value, fields)) {
|
|
726
728
|
const fieldAssignments = item.fieldAssignments || [];
|
|
727
729
|
fieldAssignments.forEach((assignment) => {
|
|
728
|
-
var
|
|
730
|
+
var _a2, _b;
|
|
729
731
|
const fieldId = assignment.fieldId;
|
|
730
|
-
const formulaText = (_b = (
|
|
732
|
+
const formulaText = (_b = (_a2 = assignment.formula) == null ? void 0 : _a2.value) == null ? void 0 : _b.text;
|
|
731
733
|
const field = fields.find((f) => f.id == fieldId);
|
|
732
734
|
if (field && formulaText) {
|
|
733
735
|
const calcResult = calculate.calculate({
|
|
@@ -827,11 +829,11 @@ const _sfc_main = /* @__PURE__ */ Object.assign({
|
|
|
827
829
|
}
|
|
828
830
|
});
|
|
829
831
|
gridLayoutFieldsData.value = updatedLayoutData.filter((item) => !item.hidden);
|
|
832
|
+
(_a = gridLayout == null ? void 0 : gridLayout.value) == null ? void 0 : _a.resizeEvent();
|
|
830
833
|
};
|
|
831
834
|
vue.watch(
|
|
832
835
|
formData,
|
|
833
836
|
(newVal, oldVal) => {
|
|
834
|
-
initGridLayoutDataConfig();
|
|
835
837
|
const changedFields = findChangedFields(newVal, prevFormData.value);
|
|
836
838
|
if (changedFields.length > 0) {
|
|
837
839
|
applyLinkageEffectsForChangedFields(changedFields);
|
|
@@ -841,11 +843,21 @@ const _sfc_main = /* @__PURE__ */ Object.assign({
|
|
|
841
843
|
},
|
|
842
844
|
{ deep: true }
|
|
843
845
|
);
|
|
844
|
-
function setFormItemHeight(id, h) {
|
|
846
|
+
function setFormItemHeight(id, fixedH, h) {
|
|
847
|
+
var _a;
|
|
845
848
|
const item = gridLayoutFieldsData.value.find((item2) => item2.id == id);
|
|
846
|
-
if (
|
|
847
|
-
item.h = h;
|
|
848
|
-
}
|
|
849
|
+
if (!fixedH) {
|
|
850
|
+
item.h = h * 60;
|
|
851
|
+
} else if (fixedH) {
|
|
852
|
+
item.h = h / (localConfig.value.labelPosition == "top" ? 1.5 : 1);
|
|
853
|
+
}
|
|
854
|
+
const oriItem = oriGridLayoutData.value.find((item2) => item2.id == id);
|
|
855
|
+
if (!fixedH) {
|
|
856
|
+
oriItem.h = h * 60;
|
|
857
|
+
} else if (fixedH) {
|
|
858
|
+
oriItem.h = h / (localConfig.value.labelPosition == "top" ? 1.5 : 1);
|
|
859
|
+
}
|
|
860
|
+
(_a = gridLayout == null ? void 0 : gridLayout.value) == null ? void 0 : _a.resizeEvent();
|
|
849
861
|
}
|
|
850
862
|
vue.provide("formData", formData);
|
|
851
863
|
vue.provide("localConfig", localConfig);
|
|
@@ -947,5 +959,5 @@ const _sfc_main = /* @__PURE__ */ Object.assign({
|
|
|
947
959
|
};
|
|
948
960
|
}
|
|
949
961
|
});
|
|
950
|
-
const _Form = /* @__PURE__ */ _pluginVue_exportHelper.default(_sfc_main, [["__scopeId", "data-v-
|
|
962
|
+
const _Form = /* @__PURE__ */ _pluginVue_exportHelper.default(_sfc_main, [["__scopeId", "data-v-a3082b55"]]);
|
|
951
963
|
exports.default = _Form;
|
|
@@ -61,11 +61,10 @@ const _sfc_main = /* @__PURE__ */ Object.assign({
|
|
|
61
61
|
const foundItem = props.localConfig.fieldsData.find(
|
|
62
62
|
(item) => item.id == props.config.id
|
|
63
63
|
);
|
|
64
|
-
const y = 1;
|
|
65
64
|
const titleHeight = props.config.titleMode != "none" ? 1 : 0;
|
|
66
65
|
if (foundItem) {
|
|
67
|
-
foundItem.h = maxY +
|
|
68
|
-
setFormItemHeight(props.config.id, maxY +
|
|
66
|
+
foundItem.h = maxY + titleHeight;
|
|
67
|
+
setFormItemHeight(props.config.id, false, maxY + titleHeight);
|
|
69
68
|
}
|
|
70
69
|
}
|
|
71
70
|
return (_ctx, _cache) => {
|
|
@@ -81,7 +81,6 @@ const _sfc_main = /* @__PURE__ */ Object.assign({
|
|
|
81
81
|
});
|
|
82
82
|
function subTableLoaded(subOption) {
|
|
83
83
|
subTableOption.value = subOption;
|
|
84
|
-
console.log("🚀 ~ subTableLoaded ~ subOption:", subOption);
|
|
85
84
|
const foundItem = props.localConfig.fieldsData.find(
|
|
86
85
|
(item) => item.id == props.config.id
|
|
87
86
|
);
|
|
@@ -91,6 +90,7 @@ const _sfc_main = /* @__PURE__ */ Object.assign({
|
|
|
91
90
|
foundItem.h = props.config.subTableHeight + titleHeight;
|
|
92
91
|
setFormItemHeight(
|
|
93
92
|
props.config.id,
|
|
93
|
+
true,
|
|
94
94
|
props.config.subTableHeight + titleHeight
|
|
95
95
|
);
|
|
96
96
|
}
|
|
@@ -264,7 +264,7 @@ async function handleTableRefresh(node, data, fields, context) {
|
|
|
264
264
|
var _a, _b, _c;
|
|
265
265
|
console.log("[EventFlow] 执行表格刷新:", node.basic);
|
|
266
266
|
const basic = node.basic || {};
|
|
267
|
-
const
|
|
267
|
+
const refreshOptions = {
|
|
268
268
|
resetSort: basic.resetSort !== false,
|
|
269
269
|
// 默认 true
|
|
270
270
|
resetFilter: basic.resetFilter !== false,
|
|
@@ -272,11 +272,11 @@ async function handleTableRefresh(node, data, fields, context) {
|
|
|
272
272
|
resetPagination: basic.resetPagination !== false
|
|
273
273
|
// 默认 true
|
|
274
274
|
};
|
|
275
|
-
console.log("[EventFlow] 刷新选项:",
|
|
275
|
+
console.log("[EventFlow] 刷新选项:", refreshOptions);
|
|
276
276
|
const tableComponent = (_a = context.components) == null ? void 0 : _a.table;
|
|
277
277
|
const refreshMethod = (_c = (_b = tableComponent == null ? void 0 : tableComponent.$) == null ? void 0 : _b.exposed) == null ? void 0 : _c.refresh;
|
|
278
278
|
if (typeof refreshMethod === "function") {
|
|
279
|
-
await refreshMethod(
|
|
279
|
+
await refreshMethod(refreshOptions);
|
|
280
280
|
return {
|
|
281
281
|
success: true,
|
|
282
282
|
message: "表格已刷新"
|
|
@@ -348,6 +348,11 @@ async function handleTableRowDelete(node, data, fields, context) {
|
|
|
348
348
|
const tableComponent = (_a = context.components) == null ? void 0 : _a.table;
|
|
349
349
|
const refreshMethod = (_c = (_b = tableComponent == null ? void 0 : tableComponent.$) == null ? void 0 : _b.exposed) == null ? void 0 : _c.refresh;
|
|
350
350
|
if (typeof refreshMethod === "function") {
|
|
351
|
+
const refreshOptions = {
|
|
352
|
+
resetSort: false,
|
|
353
|
+
resetFilter: false,
|
|
354
|
+
resetPagination: false
|
|
355
|
+
};
|
|
351
356
|
await refreshMethod(refreshOptions);
|
|
352
357
|
return {
|
|
353
358
|
success: true,
|