@fecp/designer 5.3.4 → 5.3.5
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 +208 -179
- package/es/packages/designer/package.json.mjs +1 -1
- package/es/packages/designer/src/components/FilterConfigDisplay.vue.mjs +5 -3
- package/es/packages/designer/src/packages/advancedFilter/ValueInput.vue2.mjs +2 -2
- package/es/packages/designer/src/packages/dataLinkage/index.vue.mjs +85 -75
- package/es/packages/designer/src/packages/dialogGlobal/index.vue.mjs +2 -0
- package/es/packages/designer/src/packages/eventFlow/dialog/action/TableChildRefresh.vue2.mjs +94 -0
- package/es/packages/designer/src/packages/eventFlow/dialog/action/TableRowDelete.vue2.mjs +54 -0
- package/es/packages/designer/src/packages/eventFlow/dialog/action/config.mjs +12 -1
- package/es/packages/designer/src/packages/formulaEditor/index.vue2.mjs +10 -1
- package/es/packages/designer/src/packages/table/headerBtn.vue.mjs +2 -0
- package/es/packages/designer/src/packages/table/queryModule/DynamicModeConfig.vue.mjs +12 -5
- package/es/packages/designer/src/packages/table/queryModule/index.vue.mjs +11 -16
- package/es/packages/vue/src/components/bus/approvalHistory/ApprovalHistory.vue.mjs +5 -4
- package/es/packages/vue/src/components/forms/form/Form.vue.mjs +234 -139
- package/es/packages/vue/src/components/forms/formItem/FormItem.vue.mjs +20 -3
- package/es/packages/vue/src/components/forms/subForm/SubForm.vue.mjs +4 -4
- package/es/packages/vue/src/components/forms/subTable/SubTable.vue.mjs +11 -5
- package/es/packages/vue/src/components/table/CustomButtons.vue.mjs +11 -3
- package/es/packages/vue/src/components/table/DynamicQuery.vue.mjs +16 -8
- package/es/packages/vue/src/components/table/Table.vue.mjs +7 -5
- package/es/packages/vue/src/utils/eventFlow/actionHandlers.mjs +86 -5
- package/es/packages/vue/src/utils/parseFilterConfig.mjs +44 -0
- package/lib/designer.css +208 -179
- package/lib/packages/designer/package.json.js +1 -1
- package/lib/packages/designer/src/components/FilterConfigDisplay.vue.js +5 -3
- package/lib/packages/designer/src/packages/advancedFilter/ValueInput.vue2.js +2 -2
- package/lib/packages/designer/src/packages/dataLinkage/index.vue.js +93 -83
- package/lib/packages/designer/src/packages/dialogGlobal/index.vue.js +2 -0
- package/lib/packages/designer/src/packages/eventFlow/dialog/action/TableChildRefresh.vue2.js +94 -0
- package/lib/packages/designer/src/packages/eventFlow/dialog/action/TableRowDelete.vue2.js +54 -0
- package/lib/packages/designer/src/packages/eventFlow/dialog/action/config.js +12 -1
- package/lib/packages/designer/src/packages/formulaEditor/index.vue2.js +10 -1
- package/lib/packages/designer/src/packages/table/headerBtn.vue.js +2 -0
- package/lib/packages/designer/src/packages/table/queryModule/DynamicModeConfig.vue.js +12 -5
- package/lib/packages/designer/src/packages/table/queryModule/index.vue.js +11 -16
- package/lib/packages/vue/src/components/bus/approvalHistory/ApprovalHistory.vue.js +5 -4
- package/lib/packages/vue/src/components/forms/form/Form.vue.js +232 -137
- package/lib/packages/vue/src/components/forms/formItem/FormItem.vue.js +19 -2
- package/lib/packages/vue/src/components/forms/subForm/SubForm.vue.js +4 -4
- package/lib/packages/vue/src/components/forms/subTable/SubTable.vue.js +11 -5
- package/lib/packages/vue/src/components/table/CustomButtons.vue.js +11 -3
- package/lib/packages/vue/src/components/table/DynamicQuery.vue.js +16 -8
- package/lib/packages/vue/src/components/table/Table.vue.js +7 -5
- package/lib/packages/vue/src/utils/eventFlow/actionHandlers.js +92 -11
- package/lib/packages/vue/src/utils/parseFilterConfig.js +44 -0
- package/package.json +1 -1
|
@@ -16,7 +16,7 @@ const _sfc_main = {
|
|
|
16
16
|
setup(__props) {
|
|
17
17
|
const operatorMap = {
|
|
18
18
|
eq: "等于",
|
|
19
|
-
|
|
19
|
+
ne: "不等于",
|
|
20
20
|
gt: "大于",
|
|
21
21
|
gte: "大于等于",
|
|
22
22
|
lt: "小于",
|
|
@@ -75,6 +75,7 @@ const _sfc_main = {
|
|
|
75
75
|
parts.push(vue.h("span", { class: "field-value" }, `「${fieldName}」`));
|
|
76
76
|
const operator = operatorMap[condition.operator] || condition.operator;
|
|
77
77
|
parts.push(vue.h("span", { class: "operator-text" }, operator));
|
|
78
|
+
debugger;
|
|
78
79
|
let value = "";
|
|
79
80
|
if (condition.operator === "is_null" || condition.operator === "is_not_null") {
|
|
80
81
|
value = "";
|
|
@@ -90,7 +91,8 @@ const _sfc_main = {
|
|
|
90
91
|
} else {
|
|
91
92
|
value = formatValue(condition.showText, condition.operator);
|
|
92
93
|
}
|
|
93
|
-
|
|
94
|
+
debugger;
|
|
95
|
+
if (value || value == 0) {
|
|
94
96
|
parts.push(vue.h("span", { class: "field-value" }, value));
|
|
95
97
|
}
|
|
96
98
|
return parts;
|
|
@@ -141,5 +143,5 @@ const _sfc_main = {
|
|
|
141
143
|
};
|
|
142
144
|
}
|
|
143
145
|
};
|
|
144
|
-
const FilterConfigDisplay = /* @__PURE__ */ _pluginVue_exportHelper.default(_sfc_main, [["__scopeId", "data-v-
|
|
146
|
+
const FilterConfigDisplay = /* @__PURE__ */ _pluginVue_exportHelper.default(_sfc_main, [["__scopeId", "data-v-38a751da"]]);
|
|
145
147
|
exports.default = FilterConfigDisplay;
|
|
@@ -241,7 +241,7 @@ const _sfc_main = {
|
|
|
241
241
|
{ deep: true, immediate: true }
|
|
242
242
|
);
|
|
243
243
|
const showText = vue.computed(() => {
|
|
244
|
-
if (!data.value) return "";
|
|
244
|
+
if (!data.value && data.value != 0) return "";
|
|
245
245
|
if ($props.fieldType === "select") {
|
|
246
246
|
const options = selectOptions.value || [];
|
|
247
247
|
if (isMultiple.value && Array.isArray(data.value)) {
|
|
@@ -420,5 +420,5 @@ const _sfc_main = {
|
|
|
420
420
|
};
|
|
421
421
|
}
|
|
422
422
|
};
|
|
423
|
-
const ValueInput = /* @__PURE__ */ _pluginVue_exportHelper.default(_sfc_main, [["__scopeId", "data-v-
|
|
423
|
+
const ValueInput = /* @__PURE__ */ _pluginVue_exportHelper.default(_sfc_main, [["__scopeId", "data-v-a69dcc90"]]);
|
|
424
424
|
exports.default = ValueInput;
|
|
@@ -44,9 +44,10 @@ const FormulaEditorInput = require("../../components/FormulaEditorInput.vue.js")
|
|
|
44
44
|
const index = require("../../../../../node_modules/.pnpm/element-plus@2.13.2_vue@3.5.13_typescript@5.7.3_/node_modules/element-plus/es/components/container/index.js");
|
|
45
45
|
const index$1 = require("../../../../../node_modules/.pnpm/element-plus@2.13.2_vue@3.5.13_typescript@5.7.3_/node_modules/element-plus/es/components/tabs/index.js");
|
|
46
46
|
const index$2 = require("../../../../../node_modules/.pnpm/element-plus@2.13.2_vue@3.5.13_typescript@5.7.3_/node_modules/element-plus/es/components/button/index.js");
|
|
47
|
-
const index$4 = require("../../../../../node_modules/.pnpm/element-plus@2.13.2_vue@3.5.13_typescript@5.7.3_/node_modules/element-plus/es/components/
|
|
48
|
-
const index$5 = require("../../../../../node_modules/.pnpm/element-plus@2.13.2_vue@3.5.13_typescript@5.7.3_/node_modules/element-plus/es/components/
|
|
49
|
-
const index$6 = require("../../../../../node_modules/.pnpm/element-plus@2.13.2_vue@3.5.13_typescript@5.7.3_/node_modules/element-plus/es/components/
|
|
47
|
+
const index$4 = require("../../../../../node_modules/.pnpm/element-plus@2.13.2_vue@3.5.13_typescript@5.7.3_/node_modules/element-plus/es/components/scrollbar/index.js");
|
|
48
|
+
const index$5 = require("../../../../../node_modules/.pnpm/element-plus@2.13.2_vue@3.5.13_typescript@5.7.3_/node_modules/element-plus/es/components/card/index.js");
|
|
49
|
+
const index$6 = require("../../../../../node_modules/.pnpm/element-plus@2.13.2_vue@3.5.13_typescript@5.7.3_/node_modules/element-plus/es/components/empty/index.js");
|
|
50
|
+
const index$7 = require("../../../../../node_modules/.pnpm/element-plus@2.13.2_vue@3.5.13_typescript@5.7.3_/node_modules/element-plus/es/components/select/index.js");
|
|
50
51
|
const _hoisted_1 = { class: "tab-content" };
|
|
51
52
|
const _hoisted_2 = {
|
|
52
53
|
key: 0,
|
|
@@ -118,7 +119,7 @@ const _sfc_main = {
|
|
|
118
119
|
{
|
|
119
120
|
label: "数据",
|
|
120
121
|
name: "dataLink",
|
|
121
|
-
desc: "
|
|
122
|
+
desc: "根据触发方式和触发条件让字段的值根据其他字段的值自动变化,"
|
|
122
123
|
},
|
|
123
124
|
{
|
|
124
125
|
label: "显隐",
|
|
@@ -267,15 +268,16 @@ const _sfc_main = {
|
|
|
267
268
|
};
|
|
268
269
|
return (_ctx, _cache) => {
|
|
269
270
|
const _component_el_button = index$2.ElButton;
|
|
270
|
-
const _component_el_card = index$
|
|
271
|
-
const
|
|
271
|
+
const _component_el_card = index$5.ElCard;
|
|
272
|
+
const _component_el_scrollbar = index$4.ElScrollbar;
|
|
273
|
+
const _component_el_empty = index$6.ElEmpty;
|
|
272
274
|
const _component_el_tab_pane = index$1.ElTabPane;
|
|
273
275
|
const _component_el_tabs = index$1.ElTabs;
|
|
274
276
|
const _component_el_main = index.ElMain;
|
|
275
277
|
const _component_el_container = index.ElContainer;
|
|
276
|
-
const _component_el_option = index$
|
|
277
|
-
const _component_el_select = index$
|
|
278
|
-
const _component_el_option_group = index$
|
|
278
|
+
const _component_el_option = index$7.ElOption;
|
|
279
|
+
const _component_el_select = index$7.ElSelect;
|
|
280
|
+
const _component_el_option_group = index$7.ElOptionGroup;
|
|
279
281
|
return vue.openBlock(), vue.createElementBlock(vue.Fragment, null, [
|
|
280
282
|
vue.createVNode(_component_el_container, { style: { "border": "1px solid #ebeef5", "border-radius": "4px" } }, {
|
|
281
283
|
default: vue.withCtx(() => [
|
|
@@ -294,7 +296,7 @@ const _sfc_main = {
|
|
|
294
296
|
name: tab.name
|
|
295
297
|
}, {
|
|
296
298
|
default: vue.withCtx(() => {
|
|
297
|
-
var _a, _b, _c, _d
|
|
299
|
+
var _a, _b, _c, _d;
|
|
298
300
|
return [
|
|
299
301
|
vue.createElementVNode("div", _hoisted_1, [
|
|
300
302
|
((_b = (_a = props.linkedConfig) == null ? void 0 : _a[tab.name]) == null ? void 0 : _b.length) ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_2, [
|
|
@@ -311,79 +313,87 @@ const _sfc_main = {
|
|
|
311
313
|
}, 1032, ["icon", "onClick"]),
|
|
312
314
|
vue.createElementVNode("span", _hoisted_4, vue.toDisplayString(tab.desc), 1)
|
|
313
315
|
]),
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
vue.
|
|
351
|
-
|
|
352
|
-
"
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
vue.createElementVNode("div", _hoisted_11, vue.toDisplayString(getFieldTitle(tab.name)), 1),
|
|
359
|
-
vue.createElementVNode("div", _hoisted_12, [
|
|
360
|
-
tab.name === "dataLink" && item.fieldAssignments && item.fieldAssignments.length > 0 ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_13, [
|
|
361
|
-
(vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(item.fieldAssignments, (assignment, index2) => {
|
|
362
|
-
return vue.openBlock(), vue.createElementBlock("div", {
|
|
363
|
-
key: index2,
|
|
364
|
-
class: "field-assignment-display-item"
|
|
365
|
-
}, [
|
|
366
|
-
vue.createElementVNode("span", _hoisted_14, "「" + vue.toDisplayString(getFieldLabel(assignment.fieldId)) + "」", 1),
|
|
367
|
-
_cache[6] || (_cache[6] = vue.createElementVNode("span", { class: "field-operator" }, "=", -1)),
|
|
368
|
-
vue.createElementVNode("span", _hoisted_15, [
|
|
369
|
-
assignment.isField ? (vue.openBlock(), vue.createElementBlock(vue.Fragment, { key: 0 }, [
|
|
370
|
-
vue.createTextVNode(" 「" + vue.toDisplayString(getFieldLabel(assignment.value)) + "」 ", 1)
|
|
371
|
-
], 64)) : (vue.openBlock(), vue.createElementBlock(vue.Fragment, { key: 1 }, [
|
|
372
|
-
vue.createTextVNode(vue.toDisplayString(formatFormulaText(assignment)), 1)
|
|
373
|
-
], 64))
|
|
316
|
+
vue.createVNode(_component_el_scrollbar, { class: "rule-content-scrollbar" }, {
|
|
317
|
+
default: vue.withCtx(() => {
|
|
318
|
+
var _a2;
|
|
319
|
+
return [
|
|
320
|
+
(vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList((_a2 = props.linkedConfig) == null ? void 0 : _a2[tab.name], (item, idx) => {
|
|
321
|
+
return vue.openBlock(), vue.createBlock(_component_el_card, {
|
|
322
|
+
key: idx,
|
|
323
|
+
class: "rule-card",
|
|
324
|
+
shadow: "hover"
|
|
325
|
+
}, {
|
|
326
|
+
default: vue.withCtx(() => [
|
|
327
|
+
vue.createElementVNode("div", _hoisted_5, [
|
|
328
|
+
vue.createElementVNode("div", _hoisted_6, [
|
|
329
|
+
vue.createVNode(_component_el_button, {
|
|
330
|
+
type: "primary",
|
|
331
|
+
link: "",
|
|
332
|
+
size: "small",
|
|
333
|
+
onClick: ($event) => handleEditRule(tab, item, idx)
|
|
334
|
+
}, {
|
|
335
|
+
default: vue.withCtx(() => _cache[3] || (_cache[3] = [
|
|
336
|
+
vue.createTextVNode(" 编辑 ")
|
|
337
|
+
])),
|
|
338
|
+
_: 2
|
|
339
|
+
}, 1032, ["onClick"]),
|
|
340
|
+
vue.createVNode(_component_el_button, {
|
|
341
|
+
type: "danger",
|
|
342
|
+
link: "",
|
|
343
|
+
size: "small",
|
|
344
|
+
onClick: ($event) => handleDeleteRule(tab, idx)
|
|
345
|
+
}, {
|
|
346
|
+
default: vue.withCtx(() => _cache[4] || (_cache[4] = [
|
|
347
|
+
vue.createTextVNode(" 删除 ")
|
|
348
|
+
])),
|
|
349
|
+
_: 2
|
|
350
|
+
}, 1032, ["onClick"])
|
|
351
|
+
]),
|
|
352
|
+
item.filterConfig ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_7, [
|
|
353
|
+
_cache[5] || (_cache[5] = vue.createElementVNode("div", { class: "rule-section-title" }, "触发条件", -1)),
|
|
354
|
+
vue.createElementVNode("div", _hoisted_8, [
|
|
355
|
+
vue.createElementVNode("div", _hoisted_9, [
|
|
356
|
+
vue.createVNode(FilterConfigDisplay.default, {
|
|
357
|
+
config: item.filterConfig,
|
|
358
|
+
"field-label-getter": getFieldLabel
|
|
359
|
+
}, null, 8, ["config"])
|
|
374
360
|
])
|
|
375
|
-
])
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
361
|
+
])
|
|
362
|
+
])) : vue.createCommentVNode("", true),
|
|
363
|
+
vue.createElementVNode("div", _hoisted_10, [
|
|
364
|
+
vue.createElementVNode("div", _hoisted_11, vue.toDisplayString(getFieldTitle(tab.name)), 1),
|
|
365
|
+
vue.createElementVNode("div", _hoisted_12, [
|
|
366
|
+
tab.name === "dataLink" && item.fieldAssignments && item.fieldAssignments.length > 0 ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_13, [
|
|
367
|
+
(vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(item.fieldAssignments, (assignment, index2) => {
|
|
368
|
+
return vue.openBlock(), vue.createElementBlock("div", {
|
|
369
|
+
key: index2,
|
|
370
|
+
class: "field-assignment-display-item"
|
|
371
|
+
}, [
|
|
372
|
+
vue.createElementVNode("span", _hoisted_14, "「" + vue.toDisplayString(getFieldLabel(assignment.fieldId)) + "」", 1),
|
|
373
|
+
_cache[6] || (_cache[6] = vue.createElementVNode("span", { class: "field-operator" }, "=", -1)),
|
|
374
|
+
vue.createElementVNode("span", _hoisted_15, [
|
|
375
|
+
assignment.isField ? (vue.openBlock(), vue.createElementBlock(vue.Fragment, { key: 0 }, [
|
|
376
|
+
vue.createTextVNode(" 「" + vue.toDisplayString(getFieldLabel(assignment.value)) + "」 ", 1)
|
|
377
|
+
], 64)) : (vue.openBlock(), vue.createElementBlock(vue.Fragment, { key: 1 }, [
|
|
378
|
+
vue.createTextVNode(vue.toDisplayString(formatFormulaText(assignment)), 1)
|
|
379
|
+
], 64))
|
|
380
|
+
])
|
|
381
|
+
]);
|
|
382
|
+
}), 128))
|
|
383
|
+
])) : (vue.openBlock(), vue.createElementBlock("span", _hoisted_16, vue.toDisplayString(item.dataLinkFieldList.map((fieldId) => `${getFieldLabel(fieldId)}`).join(", ")), 1))
|
|
384
|
+
])
|
|
385
|
+
])
|
|
386
|
+
])
|
|
387
|
+
]),
|
|
388
|
+
_: 2
|
|
389
|
+
}, 1024);
|
|
390
|
+
}), 128))
|
|
391
|
+
];
|
|
392
|
+
}),
|
|
393
|
+
_: 2
|
|
394
|
+
}, 1024)
|
|
385
395
|
])) : vue.createCommentVNode("", true),
|
|
386
|
-
!((
|
|
396
|
+
!((_d = (_c = props.linkedConfig) == null ? void 0 : _c[tab.name]) == null ? void 0 : _d.length) ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_17, [
|
|
387
397
|
vue.createVNode(_component_el_empty, {
|
|
388
398
|
description: tab.desc
|
|
389
399
|
}, {
|
|
@@ -498,7 +508,7 @@ const _sfc_main = {
|
|
|
498
508
|
}, 1032, ["modelValue", "onUpdate:modelValue"]),
|
|
499
509
|
assignment.fieldId ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_22, [
|
|
500
510
|
vue.createVNode(vue.unref(FormulaEditorInput.default), {
|
|
501
|
-
title: "
|
|
511
|
+
title: "公式配置",
|
|
502
512
|
formulaConf: assignment.formula.value,
|
|
503
513
|
"onUpdate:formulaConf": ($event) => assignment.formula.value = $event,
|
|
504
514
|
modelValue: assignment.formula.text,
|
|
@@ -537,5 +547,5 @@ const _sfc_main = {
|
|
|
537
547
|
};
|
|
538
548
|
}
|
|
539
549
|
};
|
|
540
|
-
const DataLinkage = /* @__PURE__ */ _pluginVue_exportHelper.default(_sfc_main, [["__scopeId", "data-v-
|
|
550
|
+
const DataLinkage = /* @__PURE__ */ _pluginVue_exportHelper.default(_sfc_main, [["__scopeId", "data-v-57b0714c"]]);
|
|
541
551
|
exports.default = DataLinkage;
|
|
@@ -57,6 +57,8 @@ require("../../../../../node_modules/.pnpm/element-plus@2.13.2_vue@3.5.13_typesc
|
|
|
57
57
|
;/* empty css */
|
|
58
58
|
;/* empty css */
|
|
59
59
|
;/* empty css */
|
|
60
|
+
;/* empty css */
|
|
61
|
+
;/* empty css */
|
|
60
62
|
require("../../../../../node_modules/.pnpm/vue-codemirror@6.1.1_codemi_73012f469d7d7603a19ccbabfd8e6a05/node_modules/vue-codemirror/dist/vue-codemirror.esm.js");
|
|
61
63
|
require("../formulaEditor/core/functionCore.js");
|
|
62
64
|
;/* empty css */
|
|
@@ -0,0 +1,94 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
|
|
3
|
+
;/* empty css */
|
|
4
|
+
;/* empty css */
|
|
5
|
+
;/* empty css */
|
|
6
|
+
;/* empty css */
|
|
7
|
+
;/* empty css */
|
|
8
|
+
;/* empty css */
|
|
9
|
+
;/* empty css */
|
|
10
|
+
;/* empty css */
|
|
11
|
+
;/* empty css */
|
|
12
|
+
const vue = require("vue");
|
|
13
|
+
const common = require("../../../utils/common.js");
|
|
14
|
+
;/* empty css */
|
|
15
|
+
const _pluginVue_exportHelper = require("../../../../../../../_virtual/_plugin-vue_export-helper.js");
|
|
16
|
+
const index = require("../../../../../../../node_modules/.pnpm/element-plus@2.13.2_vue@3.5.13_typescript@5.7.3_/node_modules/element-plus/es/components/form/index.js");
|
|
17
|
+
const index$1 = require("../../../../../../../node_modules/.pnpm/element-plus@2.13.2_vue@3.5.13_typescript@5.7.3_/node_modules/element-plus/es/components/select/index.js");
|
|
18
|
+
const index$2 = require("../../../../../../../node_modules/.pnpm/element-plus@2.13.2_vue@3.5.13_typescript@5.7.3_/node_modules/element-plus/es/components/switch/index.js");
|
|
19
|
+
const _sfc_main = {
|
|
20
|
+
__name: "TableChildRefresh",
|
|
21
|
+
props: {
|
|
22
|
+
formData: Object
|
|
23
|
+
},
|
|
24
|
+
setup(__props) {
|
|
25
|
+
const fieldList = vue.computed(() => {
|
|
26
|
+
return common.getEditConfigDataFields().filter(
|
|
27
|
+
(item) => item.fieldType == "subTable"
|
|
28
|
+
);
|
|
29
|
+
});
|
|
30
|
+
return (_ctx, _cache) => {
|
|
31
|
+
const _component_el_option = index$1.ElOption;
|
|
32
|
+
const _component_el_select = index$1.ElSelect;
|
|
33
|
+
const _component_el_form_item = index.ElFormItem;
|
|
34
|
+
const _component_el_switch = index$2.ElSwitch;
|
|
35
|
+
return vue.openBlock(), vue.createElementBlock(vue.Fragment, null, [
|
|
36
|
+
vue.createVNode(_component_el_form_item, { label: "选择子列表" }, {
|
|
37
|
+
default: vue.withCtx(() => [
|
|
38
|
+
vue.createVNode(_component_el_select, {
|
|
39
|
+
modelValue: __props.formData.selectSubTableFieldId,
|
|
40
|
+
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => __props.formData.selectSubTableFieldId = $event),
|
|
41
|
+
filterable: "",
|
|
42
|
+
size: "small",
|
|
43
|
+
clearable: ""
|
|
44
|
+
}, {
|
|
45
|
+
default: vue.withCtx(() => [
|
|
46
|
+
(vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(vue.unref(fieldList), (item) => {
|
|
47
|
+
return vue.openBlock(), vue.createBlock(_component_el_option, {
|
|
48
|
+
key: item.id,
|
|
49
|
+
label: item.label,
|
|
50
|
+
value: item.id
|
|
51
|
+
}, null, 8, ["label", "value"]);
|
|
52
|
+
}), 128))
|
|
53
|
+
]),
|
|
54
|
+
_: 1
|
|
55
|
+
}, 8, ["modelValue"])
|
|
56
|
+
]),
|
|
57
|
+
_: 1
|
|
58
|
+
}),
|
|
59
|
+
vue.createVNode(_component_el_form_item, { label: "重置排序" }, {
|
|
60
|
+
default: vue.withCtx(() => [
|
|
61
|
+
vue.createVNode(_component_el_switch, {
|
|
62
|
+
modelValue: __props.formData.resetSort,
|
|
63
|
+
"onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) => __props.formData.resetSort = $event)
|
|
64
|
+
}, null, 8, ["modelValue"]),
|
|
65
|
+
_cache[4] || (_cache[4] = vue.createElementVNode("span", { class: "form-item-tip" }, "刷新后是否重置表格排序", -1))
|
|
66
|
+
]),
|
|
67
|
+
_: 1
|
|
68
|
+
}),
|
|
69
|
+
vue.createVNode(_component_el_form_item, { label: "重置筛选" }, {
|
|
70
|
+
default: vue.withCtx(() => [
|
|
71
|
+
vue.createVNode(_component_el_switch, {
|
|
72
|
+
modelValue: __props.formData.resetFilter,
|
|
73
|
+
"onUpdate:modelValue": _cache[2] || (_cache[2] = ($event) => __props.formData.resetFilter = $event)
|
|
74
|
+
}, null, 8, ["modelValue"]),
|
|
75
|
+
_cache[5] || (_cache[5] = vue.createElementVNode("span", { class: "form-item-tip" }, "刷新后是否重置筛选条件", -1))
|
|
76
|
+
]),
|
|
77
|
+
_: 1
|
|
78
|
+
}),
|
|
79
|
+
vue.createVNode(_component_el_form_item, { label: "重置翻页" }, {
|
|
80
|
+
default: vue.withCtx(() => [
|
|
81
|
+
vue.createVNode(_component_el_switch, {
|
|
82
|
+
modelValue: __props.formData.resetPagination,
|
|
83
|
+
"onUpdate:modelValue": _cache[3] || (_cache[3] = ($event) => __props.formData.resetPagination = $event)
|
|
84
|
+
}, null, 8, ["modelValue"]),
|
|
85
|
+
_cache[6] || (_cache[6] = vue.createElementVNode("span", { class: "form-item-tip" }, "刷新后是否重置页码到第一页", -1))
|
|
86
|
+
]),
|
|
87
|
+
_: 1
|
|
88
|
+
})
|
|
89
|
+
], 64);
|
|
90
|
+
};
|
|
91
|
+
}
|
|
92
|
+
};
|
|
93
|
+
const TableChildRefresh = /* @__PURE__ */ _pluginVue_exportHelper.default(_sfc_main, [["__scopeId", "data-v-4bc691cb"]]);
|
|
94
|
+
exports.default = TableChildRefresh;
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
|
|
3
|
+
;/* empty css */
|
|
4
|
+
;/* empty css */
|
|
5
|
+
;/* empty css */
|
|
6
|
+
const vue = require("vue");
|
|
7
|
+
const DataSourceSelect = require("../../../../components/DataSourceSelect.vue.js");
|
|
8
|
+
;/* empty css */
|
|
9
|
+
const _pluginVue_exportHelper = require("../../../../../../../_virtual/_plugin-vue_export-helper.js");
|
|
10
|
+
const index = require("../../../../../../../node_modules/.pnpm/element-plus@2.13.2_vue@3.5.13_typescript@5.7.3_/node_modules/element-plus/es/components/form/index.js");
|
|
11
|
+
const index$1 = require("../../../../../../../node_modules/.pnpm/element-plus@2.13.2_vue@3.5.13_typescript@5.7.3_/node_modules/element-plus/es/components/switch/index.js");
|
|
12
|
+
const _sfc_main = {
|
|
13
|
+
__name: "TableRowDelete",
|
|
14
|
+
props: {
|
|
15
|
+
formData: Object
|
|
16
|
+
},
|
|
17
|
+
setup(__props) {
|
|
18
|
+
return (_ctx, _cache) => {
|
|
19
|
+
const _component_el_form_item = index.ElFormItem;
|
|
20
|
+
const _component_el_switch = index$1.ElSwitch;
|
|
21
|
+
return vue.openBlock(), vue.createElementBlock(vue.Fragment, null, [
|
|
22
|
+
vue.createVNode(_component_el_form_item, { label: "选择数据源" }, {
|
|
23
|
+
default: vue.withCtx(() => [
|
|
24
|
+
vue.createVNode(DataSourceSelect.default, {
|
|
25
|
+
modelValue: __props.formData.dataSourceId,
|
|
26
|
+
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => __props.formData.dataSourceId = $event)
|
|
27
|
+
}, null, 8, ["modelValue"])
|
|
28
|
+
]),
|
|
29
|
+
_: 1
|
|
30
|
+
}),
|
|
31
|
+
vue.createVNode(_component_el_form_item, { label: "确认弹窗" }, {
|
|
32
|
+
default: vue.withCtx(() => [
|
|
33
|
+
vue.createVNode(_component_el_switch, {
|
|
34
|
+
modelValue: __props.formData.showConfirmDeleteMessage,
|
|
35
|
+
"onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) => __props.formData.showConfirmDeleteMessage = $event)
|
|
36
|
+
}, null, 8, ["modelValue"])
|
|
37
|
+
]),
|
|
38
|
+
_: 1
|
|
39
|
+
}),
|
|
40
|
+
vue.createVNode(_component_el_form_item, { label: "删除后刷新列表" }, {
|
|
41
|
+
default: vue.withCtx(() => [
|
|
42
|
+
vue.createVNode(_component_el_switch, {
|
|
43
|
+
modelValue: __props.formData.resetTableAfterDelete,
|
|
44
|
+
"onUpdate:modelValue": _cache[2] || (_cache[2] = ($event) => __props.formData.resetTableAfterDelete = $event)
|
|
45
|
+
}, null, 8, ["modelValue"])
|
|
46
|
+
]),
|
|
47
|
+
_: 1
|
|
48
|
+
})
|
|
49
|
+
], 64);
|
|
50
|
+
};
|
|
51
|
+
}
|
|
52
|
+
};
|
|
53
|
+
const TableRowDelete = /* @__PURE__ */ _pluginVue_exportHelper.default(_sfc_main, [["__scopeId", "data-v-d7cde321"]]);
|
|
54
|
+
exports.default = TableRowDelete;
|
|
@@ -8,6 +8,8 @@ const FormSetValue = require("./FormSetValue.vue2.js");
|
|
|
8
8
|
const Message = require("./Message.vue.js");
|
|
9
9
|
const Confirm = require("./Confirm.vue.js");
|
|
10
10
|
const TableRefresh = require("./TableRefresh.vue2.js");
|
|
11
|
+
const TableChildRefresh = require("./TableChildRefresh.vue2.js");
|
|
12
|
+
const TableRowDelete = require("./TableRowDelete.vue2.js");
|
|
11
13
|
const Dialog = require("./Dialog.vue.js");
|
|
12
14
|
const menuData = [
|
|
13
15
|
{
|
|
@@ -65,7 +67,16 @@ const menuData = [
|
|
|
65
67
|
index: "table",
|
|
66
68
|
label: "列表",
|
|
67
69
|
items: [
|
|
68
|
-
{ index: "table-refresh", label: "
|
|
70
|
+
{ index: "table-refresh", label: "列表数据刷新", desc: "刷新表格的数据列表", component: TableRefresh.default, default: {
|
|
71
|
+
resetSort: false,
|
|
72
|
+
resetFilter: false,
|
|
73
|
+
resetPagination: false
|
|
74
|
+
} },
|
|
75
|
+
{ index: "table-row-delete", label: "列表数据删除", desc: "删除列表的行数据", component: TableRowDelete.default, default: {
|
|
76
|
+
showConfirmDeleteMessage: true,
|
|
77
|
+
resetTableAfterDelete: true
|
|
78
|
+
} },
|
|
79
|
+
{ index: "table-child-refresh", label: "子列表数据刷新", desc: "刷新子列表的数据列表", component: TableChildRefresh.default, default: {
|
|
69
80
|
resetSort: false,
|
|
70
81
|
resetFilter: false,
|
|
71
82
|
resetPagination: false
|
|
@@ -144,6 +144,15 @@ const _sfc_main = {
|
|
|
144
144
|
)) || { error: false };
|
|
145
145
|
validInfo.value = error ? message : "";
|
|
146
146
|
});
|
|
147
|
+
vue.watch(
|
|
148
|
+
() => props.formulaConf,
|
|
149
|
+
(newVal) => {
|
|
150
|
+
if (editorCore.value && newVal) {
|
|
151
|
+
editorCore.value.renderData(newVal);
|
|
152
|
+
}
|
|
153
|
+
},
|
|
154
|
+
{ deep: true }
|
|
155
|
+
);
|
|
147
156
|
const reset = () => {
|
|
148
157
|
var _a;
|
|
149
158
|
currentFormula.value = null;
|
|
@@ -226,5 +235,5 @@ const _sfc_main = {
|
|
|
226
235
|
};
|
|
227
236
|
}
|
|
228
237
|
};
|
|
229
|
-
const FormulaEditor = /* @__PURE__ */ _pluginVue_exportHelper.default(_sfc_main, [["__scopeId", "data-v-
|
|
238
|
+
const FormulaEditor = /* @__PURE__ */ _pluginVue_exportHelper.default(_sfc_main, [["__scopeId", "data-v-432eb74e"]]);
|
|
230
239
|
exports.default = FormulaEditor;
|
|
@@ -53,7 +53,10 @@ const _hoisted_5 = {
|
|
|
53
53
|
class: "tab-display-section"
|
|
54
54
|
};
|
|
55
55
|
const _hoisted_6 = { class: "search-display-section" };
|
|
56
|
-
const _hoisted_7 = {
|
|
56
|
+
const _hoisted_7 = {
|
|
57
|
+
key: 0,
|
|
58
|
+
class: "search-input-group"
|
|
59
|
+
};
|
|
57
60
|
const _hoisted_8 = ["onMouseenter", "onClick"];
|
|
58
61
|
const _hoisted_9 = {
|
|
59
62
|
key: 0,
|
|
@@ -67,6 +70,10 @@ const _sfc_main = {
|
|
|
67
70
|
modelValue: {
|
|
68
71
|
type: Object,
|
|
69
72
|
default: () => ({})
|
|
73
|
+
},
|
|
74
|
+
enabled: {
|
|
75
|
+
type: Boolean,
|
|
76
|
+
default: false
|
|
70
77
|
}
|
|
71
78
|
},
|
|
72
79
|
emits: ["update:modelValue"],
|
|
@@ -274,7 +281,7 @@ const _sfc_main = {
|
|
|
274
281
|
})
|
|
275
282
|
])) : vue.createCommentVNode("", true),
|
|
276
283
|
editConfigData.value.showTitle ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_4, vue.toDisplayString(editConfigData.value.templateName), 1)) : vue.createCommentVNode("", true),
|
|
277
|
-
tabConfigs.value.length > 0 ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_5, [
|
|
284
|
+
__props.enabled && tabConfigs.value.length > 0 ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_5, [
|
|
278
285
|
vue.createVNode(_component_el_tabs, {
|
|
279
286
|
modelValue: activeTab.value,
|
|
280
287
|
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => activeTab.value = $event),
|
|
@@ -293,7 +300,7 @@ const _sfc_main = {
|
|
|
293
300
|
}, 8, ["modelValue"])
|
|
294
301
|
])) : vue.createCommentVNode("", true),
|
|
295
302
|
vue.createElementVNode("div", _hoisted_6, [
|
|
296
|
-
vue.
|
|
303
|
+
__props.enabled ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_7, [
|
|
297
304
|
vue.createVNode(_component_el_input, {
|
|
298
305
|
placeholder: "请输入关键词搜索...",
|
|
299
306
|
class: "search-input",
|
|
@@ -312,7 +319,7 @@ const _sfc_main = {
|
|
|
312
319
|
key: "0"
|
|
313
320
|
} : void 0
|
|
314
321
|
]), 1032, ["prefix-icon"])
|
|
315
|
-
]),
|
|
322
|
+
])) : vue.createCommentVNode("", true),
|
|
316
323
|
vue.createVNode(vue.unref(vueDraggablePlus.VueDraggable), {
|
|
317
324
|
modelValue: editConfigData.value.customBtns.right,
|
|
318
325
|
"onUpdate:modelValue": _cache[2] || (_cache[2] = ($event) => editConfigData.value.customBtns.right = $event),
|
|
@@ -488,5 +495,5 @@ const _sfc_main = {
|
|
|
488
495
|
};
|
|
489
496
|
}
|
|
490
497
|
};
|
|
491
|
-
const DynamicModeConfig = /* @__PURE__ */ _pluginVue_exportHelper.default(_sfc_main, [["__scopeId", "data-v-
|
|
498
|
+
const DynamicModeConfig = /* @__PURE__ */ _pluginVue_exportHelper.default(_sfc_main, [["__scopeId", "data-v-69373462"]]);
|
|
492
499
|
exports.default = DynamicModeConfig;
|
|
@@ -49,10 +49,6 @@ const _hoisted_5 = { class: "tab-config-list" };
|
|
|
49
49
|
const _hoisted_6 = { class: "drag-handle" };
|
|
50
50
|
const _hoisted_7 = { class: "add-field-label" };
|
|
51
51
|
const _hoisted_8 = { class: "add-field-label" };
|
|
52
|
-
const _hoisted_9 = {
|
|
53
|
-
key: 1,
|
|
54
|
-
class: "empty-state"
|
|
55
|
-
};
|
|
56
52
|
const _sfc_main = {
|
|
57
53
|
__name: "index",
|
|
58
54
|
setup(__props) {
|
|
@@ -541,22 +537,21 @@ const _sfc_main = {
|
|
|
541
537
|
})
|
|
542
538
|
], 64)) : vue.createCommentVNode("", true)
|
|
543
539
|
]),
|
|
544
|
-
queryConfig.value.enabled ? (vue.openBlock(), vue.
|
|
545
|
-
|
|
546
|
-
|
|
547
|
-
|
|
548
|
-
|
|
549
|
-
|
|
550
|
-
|
|
551
|
-
|
|
552
|
-
|
|
553
|
-
|
|
554
|
-
], 64)) : (vue.openBlock(), vue.createElementBlock("div", _hoisted_9, "未开启筛选功能"))
|
|
540
|
+
queryConfig.value.mode === "fixed" && queryConfig.value.enabled ? (vue.openBlock(), vue.createBlock(FixedModeConfig.default, {
|
|
541
|
+
key: 0,
|
|
542
|
+
modelValue: queryConfig.value.filterFields,
|
|
543
|
+
"onUpdate:modelValue": _cache[9] || (_cache[9] = ($event) => queryConfig.value.filterFields = $event)
|
|
544
|
+
}, null, 8, ["modelValue"])) : queryConfig.value.mode === "dynamic" ? (vue.openBlock(), vue.createBlock(DynamicModeConfig.default, {
|
|
545
|
+
key: 1,
|
|
546
|
+
modelValue: queryConfig.value.dynamicConfig,
|
|
547
|
+
"onUpdate:modelValue": _cache[10] || (_cache[10] = ($event) => queryConfig.value.dynamicConfig = $event),
|
|
548
|
+
enabled: queryConfig.value.enabled
|
|
549
|
+
}, null, 8, ["modelValue", "enabled"])) : vue.createCommentVNode("", true)
|
|
555
550
|
]),
|
|
556
551
|
queryConfig.value.mode === "fixed" ? (vue.openBlock(), vue.createBlock(tableBtn.default, { key: 0 })) : vue.createCommentVNode("", true)
|
|
557
552
|
], 64);
|
|
558
553
|
};
|
|
559
554
|
}
|
|
560
555
|
};
|
|
561
|
-
const QueryModule = /* @__PURE__ */ _pluginVue_exportHelper.default(_sfc_main, [["__scopeId", "data-v-
|
|
556
|
+
const QueryModule = /* @__PURE__ */ _pluginVue_exportHelper.default(_sfc_main, [["__scopeId", "data-v-aa46506b"]]);
|
|
562
557
|
exports.default = QueryModule;
|