@fecp/designer 5.3.3 → 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/form/property/approvalHistory.vue.mjs +18 -18
- package/es/packages/designer/src/packages/form/property/subForm.vue.mjs +18 -18
- package/es/packages/designer/src/packages/form/property/subTable.vue.mjs +17 -17
- 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/form/property/approvalHistory.vue.js +20 -20
- package/lib/packages/designer/src/packages/form/property/subForm.vue.js +20 -20
- package/lib/packages/designer/src/packages/form/property/subTable.vue.js +19 -19
- 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
|
@@ -14,7 +14,7 @@ const _sfc_main = {
|
|
|
14
14
|
setup(__props) {
|
|
15
15
|
const operatorMap = {
|
|
16
16
|
eq: "等于",
|
|
17
|
-
|
|
17
|
+
ne: "不等于",
|
|
18
18
|
gt: "大于",
|
|
19
19
|
gte: "大于等于",
|
|
20
20
|
lt: "小于",
|
|
@@ -73,6 +73,7 @@ const _sfc_main = {
|
|
|
73
73
|
parts.push(h("span", { class: "field-value" }, `「${fieldName}」`));
|
|
74
74
|
const operator = operatorMap[condition.operator] || condition.operator;
|
|
75
75
|
parts.push(h("span", { class: "operator-text" }, operator));
|
|
76
|
+
debugger;
|
|
76
77
|
let value = "";
|
|
77
78
|
if (condition.operator === "is_null" || condition.operator === "is_not_null") {
|
|
78
79
|
value = "";
|
|
@@ -88,7 +89,8 @@ const _sfc_main = {
|
|
|
88
89
|
} else {
|
|
89
90
|
value = formatValue(condition.showText, condition.operator);
|
|
90
91
|
}
|
|
91
|
-
|
|
92
|
+
debugger;
|
|
93
|
+
if (value || value == 0) {
|
|
92
94
|
parts.push(h("span", { class: "field-value" }, value));
|
|
93
95
|
}
|
|
94
96
|
return parts;
|
|
@@ -139,7 +141,7 @@ const _sfc_main = {
|
|
|
139
141
|
};
|
|
140
142
|
}
|
|
141
143
|
};
|
|
142
|
-
const FilterConfigDisplay = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-
|
|
144
|
+
const FilterConfigDisplay = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-38a751da"]]);
|
|
143
145
|
export {
|
|
144
146
|
FilterConfigDisplay as default
|
|
145
147
|
};
|
|
@@ -239,7 +239,7 @@ const _sfc_main = {
|
|
|
239
239
|
{ deep: true, immediate: true }
|
|
240
240
|
);
|
|
241
241
|
const showText = computed(() => {
|
|
242
|
-
if (!data.value) return "";
|
|
242
|
+
if (!data.value && data.value != 0) return "";
|
|
243
243
|
if ($props.fieldType === "select") {
|
|
244
244
|
const options = selectOptions.value || [];
|
|
245
245
|
if (isMultiple.value && Array.isArray(data.value)) {
|
|
@@ -418,7 +418,7 @@ const _sfc_main = {
|
|
|
418
418
|
};
|
|
419
419
|
}
|
|
420
420
|
};
|
|
421
|
-
const ValueInput = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-
|
|
421
|
+
const ValueInput = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-a69dcc90"]]);
|
|
422
422
|
export {
|
|
423
423
|
ValueInput as default
|
|
424
424
|
};
|
|
@@ -42,6 +42,7 @@ import _sfc_main$1 from "../../components/FormulaEditorInput.vue.mjs";
|
|
|
42
42
|
import { ElContainer, ElMain } from "../../../../../node_modules/.pnpm/element-plus@2.13.2_vue@3.5.13_typescript@5.7.3_/node_modules/element-plus/es/components/container/index.mjs";
|
|
43
43
|
import { ElTabs, ElTabPane } from "../../../../../node_modules/.pnpm/element-plus@2.13.2_vue@3.5.13_typescript@5.7.3_/node_modules/element-plus/es/components/tabs/index.mjs";
|
|
44
44
|
import { ElButton } from "../../../../../node_modules/.pnpm/element-plus@2.13.2_vue@3.5.13_typescript@5.7.3_/node_modules/element-plus/es/components/button/index.mjs";
|
|
45
|
+
import { ElScrollbar } from "../../../../../node_modules/.pnpm/element-plus@2.13.2_vue@3.5.13_typescript@5.7.3_/node_modules/element-plus/es/components/scrollbar/index.mjs";
|
|
45
46
|
import { ElCard } from "../../../../../node_modules/.pnpm/element-plus@2.13.2_vue@3.5.13_typescript@5.7.3_/node_modules/element-plus/es/components/card/index.mjs";
|
|
46
47
|
import { ElEmpty } from "../../../../../node_modules/.pnpm/element-plus@2.13.2_vue@3.5.13_typescript@5.7.3_/node_modules/element-plus/es/components/empty/index.mjs";
|
|
47
48
|
import { ElSelect, ElOption, ElOptionGroup } from "../../../../../node_modules/.pnpm/element-plus@2.13.2_vue@3.5.13_typescript@5.7.3_/node_modules/element-plus/es/components/select/index.mjs";
|
|
@@ -116,7 +117,7 @@ const _sfc_main = {
|
|
|
116
117
|
{
|
|
117
118
|
label: "数据",
|
|
118
119
|
name: "dataLink",
|
|
119
|
-
desc: "
|
|
120
|
+
desc: "根据触发方式和触发条件让字段的值根据其他字段的值自动变化,"
|
|
120
121
|
},
|
|
121
122
|
{
|
|
122
123
|
label: "显隐",
|
|
@@ -266,6 +267,7 @@ const _sfc_main = {
|
|
|
266
267
|
return (_ctx, _cache) => {
|
|
267
268
|
const _component_el_button = ElButton;
|
|
268
269
|
const _component_el_card = ElCard;
|
|
270
|
+
const _component_el_scrollbar = ElScrollbar;
|
|
269
271
|
const _component_el_empty = ElEmpty;
|
|
270
272
|
const _component_el_tab_pane = ElTabPane;
|
|
271
273
|
const _component_el_tabs = ElTabs;
|
|
@@ -292,7 +294,7 @@ const _sfc_main = {
|
|
|
292
294
|
name: tab.name
|
|
293
295
|
}, {
|
|
294
296
|
default: withCtx(() => {
|
|
295
|
-
var _a, _b, _c, _d
|
|
297
|
+
var _a, _b, _c, _d;
|
|
296
298
|
return [
|
|
297
299
|
createElementVNode("div", _hoisted_1, [
|
|
298
300
|
((_b = (_a = props.linkedConfig) == null ? void 0 : _a[tab.name]) == null ? void 0 : _b.length) ? (openBlock(), createElementBlock("div", _hoisted_2, [
|
|
@@ -309,79 +311,87 @@ const _sfc_main = {
|
|
|
309
311
|
}, 1032, ["icon", "onClick"]),
|
|
310
312
|
createElementVNode("span", _hoisted_4, toDisplayString(tab.desc), 1)
|
|
311
313
|
]),
|
|
312
|
-
(
|
|
313
|
-
|
|
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
|
-
"
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
createElementVNode("div", _hoisted_11, toDisplayString(getFieldTitle(tab.name)), 1),
|
|
357
|
-
createElementVNode("div", _hoisted_12, [
|
|
358
|
-
tab.name === "dataLink" && item.fieldAssignments && item.fieldAssignments.length > 0 ? (openBlock(), createElementBlock("div", _hoisted_13, [
|
|
359
|
-
(openBlock(true), createElementBlock(Fragment, null, renderList(item.fieldAssignments, (assignment, index) => {
|
|
360
|
-
return openBlock(), createElementBlock("div", {
|
|
361
|
-
key: index,
|
|
362
|
-
class: "field-assignment-display-item"
|
|
363
|
-
}, [
|
|
364
|
-
createElementVNode("span", _hoisted_14, "「" + toDisplayString(getFieldLabel(assignment.fieldId)) + "」", 1),
|
|
365
|
-
_cache[6] || (_cache[6] = createElementVNode("span", { class: "field-operator" }, "=", -1)),
|
|
366
|
-
createElementVNode("span", _hoisted_15, [
|
|
367
|
-
assignment.isField ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
|
|
368
|
-
createTextVNode(" 「" + toDisplayString(getFieldLabel(assignment.value)) + "」 ", 1)
|
|
369
|
-
], 64)) : (openBlock(), createElementBlock(Fragment, { key: 1 }, [
|
|
370
|
-
createTextVNode(toDisplayString(formatFormulaText(assignment)), 1)
|
|
371
|
-
], 64))
|
|
314
|
+
createVNode(_component_el_scrollbar, { class: "rule-content-scrollbar" }, {
|
|
315
|
+
default: withCtx(() => {
|
|
316
|
+
var _a2;
|
|
317
|
+
return [
|
|
318
|
+
(openBlock(true), createElementBlock(Fragment, null, renderList((_a2 = props.linkedConfig) == null ? void 0 : _a2[tab.name], (item, idx) => {
|
|
319
|
+
return openBlock(), createBlock(_component_el_card, {
|
|
320
|
+
key: idx,
|
|
321
|
+
class: "rule-card",
|
|
322
|
+
shadow: "hover"
|
|
323
|
+
}, {
|
|
324
|
+
default: withCtx(() => [
|
|
325
|
+
createElementVNode("div", _hoisted_5, [
|
|
326
|
+
createElementVNode("div", _hoisted_6, [
|
|
327
|
+
createVNode(_component_el_button, {
|
|
328
|
+
type: "primary",
|
|
329
|
+
link: "",
|
|
330
|
+
size: "small",
|
|
331
|
+
onClick: ($event) => handleEditRule(tab, item, idx)
|
|
332
|
+
}, {
|
|
333
|
+
default: withCtx(() => _cache[3] || (_cache[3] = [
|
|
334
|
+
createTextVNode(" 编辑 ")
|
|
335
|
+
])),
|
|
336
|
+
_: 2
|
|
337
|
+
}, 1032, ["onClick"]),
|
|
338
|
+
createVNode(_component_el_button, {
|
|
339
|
+
type: "danger",
|
|
340
|
+
link: "",
|
|
341
|
+
size: "small",
|
|
342
|
+
onClick: ($event) => handleDeleteRule(tab, idx)
|
|
343
|
+
}, {
|
|
344
|
+
default: withCtx(() => _cache[4] || (_cache[4] = [
|
|
345
|
+
createTextVNode(" 删除 ")
|
|
346
|
+
])),
|
|
347
|
+
_: 2
|
|
348
|
+
}, 1032, ["onClick"])
|
|
349
|
+
]),
|
|
350
|
+
item.filterConfig ? (openBlock(), createElementBlock("div", _hoisted_7, [
|
|
351
|
+
_cache[5] || (_cache[5] = createElementVNode("div", { class: "rule-section-title" }, "触发条件", -1)),
|
|
352
|
+
createElementVNode("div", _hoisted_8, [
|
|
353
|
+
createElementVNode("div", _hoisted_9, [
|
|
354
|
+
createVNode(FilterConfigDisplay, {
|
|
355
|
+
config: item.filterConfig,
|
|
356
|
+
"field-label-getter": getFieldLabel
|
|
357
|
+
}, null, 8, ["config"])
|
|
372
358
|
])
|
|
373
|
-
])
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
359
|
+
])
|
|
360
|
+
])) : createCommentVNode("", true),
|
|
361
|
+
createElementVNode("div", _hoisted_10, [
|
|
362
|
+
createElementVNode("div", _hoisted_11, toDisplayString(getFieldTitle(tab.name)), 1),
|
|
363
|
+
createElementVNode("div", _hoisted_12, [
|
|
364
|
+
tab.name === "dataLink" && item.fieldAssignments && item.fieldAssignments.length > 0 ? (openBlock(), createElementBlock("div", _hoisted_13, [
|
|
365
|
+
(openBlock(true), createElementBlock(Fragment, null, renderList(item.fieldAssignments, (assignment, index) => {
|
|
366
|
+
return openBlock(), createElementBlock("div", {
|
|
367
|
+
key: index,
|
|
368
|
+
class: "field-assignment-display-item"
|
|
369
|
+
}, [
|
|
370
|
+
createElementVNode("span", _hoisted_14, "「" + toDisplayString(getFieldLabel(assignment.fieldId)) + "」", 1),
|
|
371
|
+
_cache[6] || (_cache[6] = createElementVNode("span", { class: "field-operator" }, "=", -1)),
|
|
372
|
+
createElementVNode("span", _hoisted_15, [
|
|
373
|
+
assignment.isField ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
|
|
374
|
+
createTextVNode(" 「" + toDisplayString(getFieldLabel(assignment.value)) + "」 ", 1)
|
|
375
|
+
], 64)) : (openBlock(), createElementBlock(Fragment, { key: 1 }, [
|
|
376
|
+
createTextVNode(toDisplayString(formatFormulaText(assignment)), 1)
|
|
377
|
+
], 64))
|
|
378
|
+
])
|
|
379
|
+
]);
|
|
380
|
+
}), 128))
|
|
381
|
+
])) : (openBlock(), createElementBlock("span", _hoisted_16, toDisplayString(item.dataLinkFieldList.map((fieldId) => `${getFieldLabel(fieldId)}`).join(", ")), 1))
|
|
382
|
+
])
|
|
383
|
+
])
|
|
384
|
+
])
|
|
385
|
+
]),
|
|
386
|
+
_: 2
|
|
387
|
+
}, 1024);
|
|
388
|
+
}), 128))
|
|
389
|
+
];
|
|
390
|
+
}),
|
|
391
|
+
_: 2
|
|
392
|
+
}, 1024)
|
|
383
393
|
])) : createCommentVNode("", true),
|
|
384
|
-
!((
|
|
394
|
+
!((_d = (_c = props.linkedConfig) == null ? void 0 : _c[tab.name]) == null ? void 0 : _d.length) ? (openBlock(), createElementBlock("div", _hoisted_17, [
|
|
385
395
|
createVNode(_component_el_empty, {
|
|
386
396
|
description: tab.desc
|
|
387
397
|
}, {
|
|
@@ -496,7 +506,7 @@ const _sfc_main = {
|
|
|
496
506
|
}, 1032, ["modelValue", "onUpdate:modelValue"]),
|
|
497
507
|
assignment.fieldId ? (openBlock(), createElementBlock("div", _hoisted_22, [
|
|
498
508
|
createVNode(unref(_sfc_main$1), {
|
|
499
|
-
title: "
|
|
509
|
+
title: "公式配置",
|
|
500
510
|
formulaConf: assignment.formula.value,
|
|
501
511
|
"onUpdate:formulaConf": ($event) => assignment.formula.value = $event,
|
|
502
512
|
modelValue: assignment.formula.text,
|
|
@@ -535,7 +545,7 @@ const _sfc_main = {
|
|
|
535
545
|
};
|
|
536
546
|
}
|
|
537
547
|
};
|
|
538
|
-
const DataLinkage = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-
|
|
548
|
+
const DataLinkage = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-57b0714c"]]);
|
|
539
549
|
export {
|
|
540
550
|
DataLinkage as default
|
|
541
551
|
};
|
|
@@ -55,6 +55,8 @@ import "../../../../../node_modules/.pnpm/element-plus@2.13.2_vue@3.5.13_typescr
|
|
|
55
55
|
/* empty css */
|
|
56
56
|
/* empty css */
|
|
57
57
|
/* empty css */
|
|
58
|
+
/* empty css */
|
|
59
|
+
/* empty css */
|
|
58
60
|
import "../../../../../node_modules/.pnpm/vue-codemirror@6.1.1_codemi_73012f469d7d7603a19ccbabfd8e6a05/node_modules/vue-codemirror/dist/vue-codemirror.esm.mjs";
|
|
59
61
|
import "../formulaEditor/core/functionCore.mjs";
|
|
60
62
|
/* empty css */
|
|
@@ -0,0 +1,94 @@
|
|
|
1
|
+
/* empty css */
|
|
2
|
+
/* empty css */
|
|
3
|
+
/* empty css */
|
|
4
|
+
/* empty css */
|
|
5
|
+
/* empty css */
|
|
6
|
+
/* empty css */
|
|
7
|
+
/* empty css */
|
|
8
|
+
/* empty css */
|
|
9
|
+
/* empty css */
|
|
10
|
+
import { computed, createElementBlock, openBlock, Fragment, createVNode, withCtx, renderList, unref, createBlock, createElementVNode } from "vue";
|
|
11
|
+
import { getEditConfigDataFields } from "../../../utils/common.mjs";
|
|
12
|
+
/* empty css */
|
|
13
|
+
import _export_sfc from "../../../../../../../_virtual/_plugin-vue_export-helper.mjs";
|
|
14
|
+
import { ElFormItem } from "../../../../../../../node_modules/.pnpm/element-plus@2.13.2_vue@3.5.13_typescript@5.7.3_/node_modules/element-plus/es/components/form/index.mjs";
|
|
15
|
+
import { ElSelect, ElOption } from "../../../../../../../node_modules/.pnpm/element-plus@2.13.2_vue@3.5.13_typescript@5.7.3_/node_modules/element-plus/es/components/select/index.mjs";
|
|
16
|
+
import { ElSwitch } from "../../../../../../../node_modules/.pnpm/element-plus@2.13.2_vue@3.5.13_typescript@5.7.3_/node_modules/element-plus/es/components/switch/index.mjs";
|
|
17
|
+
const _sfc_main = {
|
|
18
|
+
__name: "TableChildRefresh",
|
|
19
|
+
props: {
|
|
20
|
+
formData: Object
|
|
21
|
+
},
|
|
22
|
+
setup(__props) {
|
|
23
|
+
const fieldList = computed(() => {
|
|
24
|
+
return getEditConfigDataFields().filter(
|
|
25
|
+
(item) => item.fieldType == "subTable"
|
|
26
|
+
);
|
|
27
|
+
});
|
|
28
|
+
return (_ctx, _cache) => {
|
|
29
|
+
const _component_el_option = ElOption;
|
|
30
|
+
const _component_el_select = ElSelect;
|
|
31
|
+
const _component_el_form_item = ElFormItem;
|
|
32
|
+
const _component_el_switch = ElSwitch;
|
|
33
|
+
return openBlock(), createElementBlock(Fragment, null, [
|
|
34
|
+
createVNode(_component_el_form_item, { label: "选择子列表" }, {
|
|
35
|
+
default: withCtx(() => [
|
|
36
|
+
createVNode(_component_el_select, {
|
|
37
|
+
modelValue: __props.formData.selectSubTableFieldId,
|
|
38
|
+
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => __props.formData.selectSubTableFieldId = $event),
|
|
39
|
+
filterable: "",
|
|
40
|
+
size: "small",
|
|
41
|
+
clearable: ""
|
|
42
|
+
}, {
|
|
43
|
+
default: withCtx(() => [
|
|
44
|
+
(openBlock(true), createElementBlock(Fragment, null, renderList(unref(fieldList), (item) => {
|
|
45
|
+
return openBlock(), createBlock(_component_el_option, {
|
|
46
|
+
key: item.id,
|
|
47
|
+
label: item.label,
|
|
48
|
+
value: item.id
|
|
49
|
+
}, null, 8, ["label", "value"]);
|
|
50
|
+
}), 128))
|
|
51
|
+
]),
|
|
52
|
+
_: 1
|
|
53
|
+
}, 8, ["modelValue"])
|
|
54
|
+
]),
|
|
55
|
+
_: 1
|
|
56
|
+
}),
|
|
57
|
+
createVNode(_component_el_form_item, { label: "重置排序" }, {
|
|
58
|
+
default: withCtx(() => [
|
|
59
|
+
createVNode(_component_el_switch, {
|
|
60
|
+
modelValue: __props.formData.resetSort,
|
|
61
|
+
"onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) => __props.formData.resetSort = $event)
|
|
62
|
+
}, null, 8, ["modelValue"]),
|
|
63
|
+
_cache[4] || (_cache[4] = createElementVNode("span", { class: "form-item-tip" }, "刷新后是否重置表格排序", -1))
|
|
64
|
+
]),
|
|
65
|
+
_: 1
|
|
66
|
+
}),
|
|
67
|
+
createVNode(_component_el_form_item, { label: "重置筛选" }, {
|
|
68
|
+
default: withCtx(() => [
|
|
69
|
+
createVNode(_component_el_switch, {
|
|
70
|
+
modelValue: __props.formData.resetFilter,
|
|
71
|
+
"onUpdate:modelValue": _cache[2] || (_cache[2] = ($event) => __props.formData.resetFilter = $event)
|
|
72
|
+
}, null, 8, ["modelValue"]),
|
|
73
|
+
_cache[5] || (_cache[5] = createElementVNode("span", { class: "form-item-tip" }, "刷新后是否重置筛选条件", -1))
|
|
74
|
+
]),
|
|
75
|
+
_: 1
|
|
76
|
+
}),
|
|
77
|
+
createVNode(_component_el_form_item, { label: "重置翻页" }, {
|
|
78
|
+
default: withCtx(() => [
|
|
79
|
+
createVNode(_component_el_switch, {
|
|
80
|
+
modelValue: __props.formData.resetPagination,
|
|
81
|
+
"onUpdate:modelValue": _cache[3] || (_cache[3] = ($event) => __props.formData.resetPagination = $event)
|
|
82
|
+
}, null, 8, ["modelValue"]),
|
|
83
|
+
_cache[6] || (_cache[6] = createElementVNode("span", { class: "form-item-tip" }, "刷新后是否重置页码到第一页", -1))
|
|
84
|
+
]),
|
|
85
|
+
_: 1
|
|
86
|
+
})
|
|
87
|
+
], 64);
|
|
88
|
+
};
|
|
89
|
+
}
|
|
90
|
+
};
|
|
91
|
+
const TableChildRefresh = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-4bc691cb"]]);
|
|
92
|
+
export {
|
|
93
|
+
TableChildRefresh as default
|
|
94
|
+
};
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
/* empty css */
|
|
2
|
+
/* empty css */
|
|
3
|
+
/* empty css */
|
|
4
|
+
import { createElementBlock, openBlock, Fragment, createVNode, withCtx } from "vue";
|
|
5
|
+
import _sfc_main$1 from "../../../../components/DataSourceSelect.vue.mjs";
|
|
6
|
+
/* empty css */
|
|
7
|
+
import _export_sfc from "../../../../../../../_virtual/_plugin-vue_export-helper.mjs";
|
|
8
|
+
import { ElFormItem } from "../../../../../../../node_modules/.pnpm/element-plus@2.13.2_vue@3.5.13_typescript@5.7.3_/node_modules/element-plus/es/components/form/index.mjs";
|
|
9
|
+
import { ElSwitch } from "../../../../../../../node_modules/.pnpm/element-plus@2.13.2_vue@3.5.13_typescript@5.7.3_/node_modules/element-plus/es/components/switch/index.mjs";
|
|
10
|
+
const _sfc_main = {
|
|
11
|
+
__name: "TableRowDelete",
|
|
12
|
+
props: {
|
|
13
|
+
formData: Object
|
|
14
|
+
},
|
|
15
|
+
setup(__props) {
|
|
16
|
+
return (_ctx, _cache) => {
|
|
17
|
+
const _component_el_form_item = ElFormItem;
|
|
18
|
+
const _component_el_switch = ElSwitch;
|
|
19
|
+
return openBlock(), createElementBlock(Fragment, null, [
|
|
20
|
+
createVNode(_component_el_form_item, { label: "选择数据源" }, {
|
|
21
|
+
default: withCtx(() => [
|
|
22
|
+
createVNode(_sfc_main$1, {
|
|
23
|
+
modelValue: __props.formData.dataSourceId,
|
|
24
|
+
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => __props.formData.dataSourceId = $event)
|
|
25
|
+
}, null, 8, ["modelValue"])
|
|
26
|
+
]),
|
|
27
|
+
_: 1
|
|
28
|
+
}),
|
|
29
|
+
createVNode(_component_el_form_item, { label: "确认弹窗" }, {
|
|
30
|
+
default: withCtx(() => [
|
|
31
|
+
createVNode(_component_el_switch, {
|
|
32
|
+
modelValue: __props.formData.showConfirmDeleteMessage,
|
|
33
|
+
"onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) => __props.formData.showConfirmDeleteMessage = $event)
|
|
34
|
+
}, null, 8, ["modelValue"])
|
|
35
|
+
]),
|
|
36
|
+
_: 1
|
|
37
|
+
}),
|
|
38
|
+
createVNode(_component_el_form_item, { label: "删除后刷新列表" }, {
|
|
39
|
+
default: withCtx(() => [
|
|
40
|
+
createVNode(_component_el_switch, {
|
|
41
|
+
modelValue: __props.formData.resetTableAfterDelete,
|
|
42
|
+
"onUpdate:modelValue": _cache[2] || (_cache[2] = ($event) => __props.formData.resetTableAfterDelete = $event)
|
|
43
|
+
}, null, 8, ["modelValue"])
|
|
44
|
+
]),
|
|
45
|
+
_: 1
|
|
46
|
+
})
|
|
47
|
+
], 64);
|
|
48
|
+
};
|
|
49
|
+
}
|
|
50
|
+
};
|
|
51
|
+
const TableRowDelete = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-d7cde321"]]);
|
|
52
|
+
export {
|
|
53
|
+
TableRowDelete as default
|
|
54
|
+
};
|
|
@@ -6,6 +6,8 @@ import FormSetValue from "./FormSetValue.vue2.mjs";
|
|
|
6
6
|
import _sfc_main$3 from "./Message.vue.mjs";
|
|
7
7
|
import _sfc_main$4 from "./Confirm.vue.mjs";
|
|
8
8
|
import TableRefresh from "./TableRefresh.vue2.mjs";
|
|
9
|
+
import TableChildRefresh from "./TableChildRefresh.vue2.mjs";
|
|
10
|
+
import TableRowDelete from "./TableRowDelete.vue2.mjs";
|
|
9
11
|
import _sfc_main$2 from "./Dialog.vue.mjs";
|
|
10
12
|
const menuData = [
|
|
11
13
|
{
|
|
@@ -63,7 +65,16 @@ const menuData = [
|
|
|
63
65
|
index: "table",
|
|
64
66
|
label: "列表",
|
|
65
67
|
items: [
|
|
66
|
-
{ index: "table-refresh", label: "
|
|
68
|
+
{ index: "table-refresh", label: "列表数据刷新", desc: "刷新表格的数据列表", component: TableRefresh, default: {
|
|
69
|
+
resetSort: false,
|
|
70
|
+
resetFilter: false,
|
|
71
|
+
resetPagination: false
|
|
72
|
+
} },
|
|
73
|
+
{ index: "table-row-delete", label: "列表数据删除", desc: "删除列表的行数据", component: TableRowDelete, default: {
|
|
74
|
+
showConfirmDeleteMessage: true,
|
|
75
|
+
resetTableAfterDelete: true
|
|
76
|
+
} },
|
|
77
|
+
{ index: "table-child-refresh", label: "子列表数据刷新", desc: "刷新子列表的数据列表", component: TableChildRefresh, default: {
|
|
67
78
|
resetSort: false,
|
|
68
79
|
resetFilter: false,
|
|
69
80
|
resetPagination: false
|
|
@@ -3,18 +3,18 @@
|
|
|
3
3
|
/* empty css */
|
|
4
4
|
/* empty css */
|
|
5
5
|
/* empty css */
|
|
6
|
-
/* empty css */
|
|
7
|
-
/* empty css */
|
|
8
6
|
/* empty css */
|
|
9
7
|
/* empty css */
|
|
8
|
+
/* empty css */
|
|
9
|
+
/* empty css */
|
|
10
10
|
import { computed, ref, watch, createBlock, openBlock, unref, isRef, withCtx, createVNode, createElementBlock, createCommentVNode, createTextVNode, Fragment } from "vue";
|
|
11
11
|
import { getCurrentItem, getEditConfigData } from "../../utils/common.mjs";
|
|
12
12
|
import emitter from "../../utils/eventBus.mjs";
|
|
13
13
|
import ValueSelector from "../../../components/ValueSelector.vue2.mjs";
|
|
14
14
|
import { ElCollapse, ElCollapseItem } from "../../../../../../node_modules/.pnpm/element-plus@2.13.2_vue@3.5.13_typescript@5.7.3_/node_modules/element-plus/es/components/collapse/index.mjs";
|
|
15
15
|
import { ElForm, ElFormItem } from "../../../../../../node_modules/.pnpm/element-plus@2.13.2_vue@3.5.13_typescript@5.7.3_/node_modules/element-plus/es/components/form/index.mjs";
|
|
16
|
-
import { ElRadioGroup, ElRadioButton } from "../../../../../../node_modules/.pnpm/element-plus@2.13.2_vue@3.5.13_typescript@5.7.3_/node_modules/element-plus/es/components/radio/index.mjs";
|
|
17
16
|
import { ElInput } from "../../../../../../node_modules/.pnpm/element-plus@2.13.2_vue@3.5.13_typescript@5.7.3_/node_modules/element-plus/es/components/input/index.mjs";
|
|
17
|
+
import { ElRadioGroup, ElRadioButton } from "../../../../../../node_modules/.pnpm/element-plus@2.13.2_vue@3.5.13_typescript@5.7.3_/node_modules/element-plus/es/components/radio/index.mjs";
|
|
18
18
|
const _sfc_main = {
|
|
19
19
|
__name: "approvalHistory",
|
|
20
20
|
setup(__props) {
|
|
@@ -44,10 +44,10 @@ const _sfc_main = {
|
|
|
44
44
|
}
|
|
45
45
|
}
|
|
46
46
|
return (_ctx, _cache) => {
|
|
47
|
+
const _component_el_input = ElInput;
|
|
48
|
+
const _component_el_form_item = ElFormItem;
|
|
47
49
|
const _component_el_radio_button = ElRadioButton;
|
|
48
50
|
const _component_el_radio_group = ElRadioGroup;
|
|
49
|
-
const _component_el_form_item = ElFormItem;
|
|
50
|
-
const _component_el_input = ElInput;
|
|
51
51
|
const _component_el_form = ElForm;
|
|
52
52
|
const _component_el_collapse_item = ElCollapseItem;
|
|
53
53
|
const _component_el_collapse = ElCollapse;
|
|
@@ -68,11 +68,23 @@ const _sfc_main = {
|
|
|
68
68
|
model: unref(currentItem)
|
|
69
69
|
}, {
|
|
70
70
|
default: withCtx(() => [
|
|
71
|
+
createVNode(_component_el_form_item, {
|
|
72
|
+
label: "标题",
|
|
73
|
+
required: ""
|
|
74
|
+
}, {
|
|
75
|
+
default: withCtx(() => [
|
|
76
|
+
createVNode(_component_el_input, {
|
|
77
|
+
modelValue: unref(currentItem).label,
|
|
78
|
+
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => unref(currentItem).label = $event)
|
|
79
|
+
}, null, 8, ["modelValue"])
|
|
80
|
+
]),
|
|
81
|
+
_: 1
|
|
82
|
+
}),
|
|
71
83
|
createVNode(_component_el_form_item, { label: "标题模式" }, {
|
|
72
84
|
default: withCtx(() => [
|
|
73
85
|
createVNode(_component_el_radio_group, {
|
|
74
86
|
modelValue: unref(currentItem).titleMode,
|
|
75
|
-
"onUpdate:modelValue": _cache[
|
|
87
|
+
"onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) => unref(currentItem).titleMode = $event),
|
|
76
88
|
size: "small",
|
|
77
89
|
onChange: handleTitleModeChange
|
|
78
90
|
}, {
|
|
@@ -102,18 +114,6 @@ const _sfc_main = {
|
|
|
102
114
|
_: 1
|
|
103
115
|
}),
|
|
104
116
|
unref(currentItem).titleMode != "none" ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
|
|
105
|
-
createVNode(_component_el_form_item, {
|
|
106
|
-
label: "标题",
|
|
107
|
-
required: ""
|
|
108
|
-
}, {
|
|
109
|
-
default: withCtx(() => [
|
|
110
|
-
createVNode(_component_el_input, {
|
|
111
|
-
modelValue: unref(currentItem).label,
|
|
112
|
-
"onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) => unref(currentItem).label = $event)
|
|
113
|
-
}, null, 8, ["modelValue"])
|
|
114
|
-
]),
|
|
115
|
-
_: 1
|
|
116
|
-
}),
|
|
117
117
|
unref(currentItem).titleMode == "label" ? (openBlock(), createBlock(_component_el_form_item, {
|
|
118
118
|
key: 0,
|
|
119
119
|
label: "副标题"
|
|
@@ -4,18 +4,18 @@
|
|
|
4
4
|
/* empty css */
|
|
5
5
|
/* empty css */
|
|
6
6
|
/* empty css */
|
|
7
|
-
/* empty css */
|
|
8
|
-
/* empty css */
|
|
9
7
|
/* empty css */
|
|
10
8
|
/* empty css */
|
|
9
|
+
/* empty css */
|
|
10
|
+
/* empty css */
|
|
11
11
|
import { computed, ref, createBlock, openBlock, unref, isRef, withCtx, createVNode, createElementBlock, createCommentVNode, createTextVNode, Fragment } from "vue";
|
|
12
12
|
import { getCurrentItem, getEditConfigData } from "../../utils/common.mjs";
|
|
13
13
|
import TemplateSelector from "../../../components/TemplateSelector.vue.mjs";
|
|
14
14
|
import emitter from "../../utils/eventBus.mjs";
|
|
15
15
|
import { ElCollapse, ElCollapseItem } from "../../../../../../node_modules/.pnpm/element-plus@2.13.2_vue@3.5.13_typescript@5.7.3_/node_modules/element-plus/es/components/collapse/index.mjs";
|
|
16
16
|
import { ElForm, ElFormItem } from "../../../../../../node_modules/.pnpm/element-plus@2.13.2_vue@3.5.13_typescript@5.7.3_/node_modules/element-plus/es/components/form/index.mjs";
|
|
17
|
-
import { ElRadioGroup, ElRadioButton } from "../../../../../../node_modules/.pnpm/element-plus@2.13.2_vue@3.5.13_typescript@5.7.3_/node_modules/element-plus/es/components/radio/index.mjs";
|
|
18
17
|
import { ElInput } from "../../../../../../node_modules/.pnpm/element-plus@2.13.2_vue@3.5.13_typescript@5.7.3_/node_modules/element-plus/es/components/input/index.mjs";
|
|
18
|
+
import { ElRadioGroup, ElRadioButton } from "../../../../../../node_modules/.pnpm/element-plus@2.13.2_vue@3.5.13_typescript@5.7.3_/node_modules/element-plus/es/components/radio/index.mjs";
|
|
19
19
|
import { ElSwitch } from "../../../../../../node_modules/.pnpm/element-plus@2.13.2_vue@3.5.13_typescript@5.7.3_/node_modules/element-plus/es/components/switch/index.mjs";
|
|
20
20
|
const _sfc_main = {
|
|
21
21
|
__name: "subForm",
|
|
@@ -37,10 +37,10 @@ const _sfc_main = {
|
|
|
37
37
|
}
|
|
38
38
|
}
|
|
39
39
|
return (_ctx, _cache) => {
|
|
40
|
+
const _component_el_input = ElInput;
|
|
41
|
+
const _component_el_form_item = ElFormItem;
|
|
40
42
|
const _component_el_radio_button = ElRadioButton;
|
|
41
43
|
const _component_el_radio_group = ElRadioGroup;
|
|
42
|
-
const _component_el_form_item = ElFormItem;
|
|
43
|
-
const _component_el_input = ElInput;
|
|
44
44
|
const _component_el_switch = ElSwitch;
|
|
45
45
|
const _component_el_form = ElForm;
|
|
46
46
|
const _component_el_collapse_item = ElCollapseItem;
|
|
@@ -63,11 +63,23 @@ const _sfc_main = {
|
|
|
63
63
|
key: unref(currentItem).id
|
|
64
64
|
}, {
|
|
65
65
|
default: withCtx(() => [
|
|
66
|
+
createVNode(_component_el_form_item, {
|
|
67
|
+
label: "标题",
|
|
68
|
+
required: ""
|
|
69
|
+
}, {
|
|
70
|
+
default: withCtx(() => [
|
|
71
|
+
createVNode(_component_el_input, {
|
|
72
|
+
modelValue: unref(currentItem).label,
|
|
73
|
+
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => unref(currentItem).label = $event)
|
|
74
|
+
}, null, 8, ["modelValue"])
|
|
75
|
+
]),
|
|
76
|
+
_: 1
|
|
77
|
+
}),
|
|
66
78
|
createVNode(_component_el_form_item, { label: "标题模式" }, {
|
|
67
79
|
default: withCtx(() => [
|
|
68
80
|
createVNode(_component_el_radio_group, {
|
|
69
81
|
modelValue: unref(currentItem).titleMode,
|
|
70
|
-
"onUpdate:modelValue": _cache[
|
|
82
|
+
"onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) => unref(currentItem).titleMode = $event),
|
|
71
83
|
size: "small",
|
|
72
84
|
onChange: handleTitleModeChange
|
|
73
85
|
}, {
|
|
@@ -97,18 +109,6 @@ const _sfc_main = {
|
|
|
97
109
|
_: 1
|
|
98
110
|
}),
|
|
99
111
|
unref(currentItem).titleMode != "none" ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
|
|
100
|
-
createVNode(_component_el_form_item, {
|
|
101
|
-
label: "标题",
|
|
102
|
-
required: ""
|
|
103
|
-
}, {
|
|
104
|
-
default: withCtx(() => [
|
|
105
|
-
createVNode(_component_el_input, {
|
|
106
|
-
modelValue: unref(currentItem).label,
|
|
107
|
-
"onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) => unref(currentItem).label = $event)
|
|
108
|
-
}, null, 8, ["modelValue"])
|
|
109
|
-
]),
|
|
110
|
-
_: 1
|
|
111
|
-
}),
|
|
112
112
|
unref(currentItem).titleMode == "label" ? (openBlock(), createBlock(_component_el_form_item, {
|
|
113
113
|
key: 0,
|
|
114
114
|
label: "副标题"
|