@fecp/designer 5.3.12 → 5.3.14
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 +165 -87
- package/es/packages/designer/package.json.mjs +1 -1
- package/es/packages/designer/src/api/index.mjs +3 -3
- package/es/packages/designer/src/components/OnlyFLowConfigButton.vue2.mjs +8 -3
- package/es/packages/designer/src/packages/form/property/index.vue.mjs +6 -6
- package/es/packages/designer/src/packages/form/property/subTable.vue.mjs +211 -57
- package/es/packages/designer/src/packages/form/property/widgets.vue.mjs +21 -4
- package/es/packages/designer/src/packages/table/property/customBtn.vue.mjs +10 -0
- package/es/packages/vue/src/components/forms/form/Form.vue.mjs +2 -2
- package/es/packages/vue/src/components/forms/formItem/FormItem.vue.mjs +4 -3
- package/es/packages/vue/src/components/forms/subTable/SubTable.vue.mjs +58 -29
- package/es/packages/vue/src/components/table/CustomButtons.vue.mjs +29 -3
- package/es/packages/vue/src/components/table/DynamicQuery.vue.mjs +21 -2
- package/es/packages/vue/src/components/table/Table.vue.mjs +27 -12
- package/es/packages/vue/src/components/table/TableColumn.vue.mjs +26 -16
- package/lib/designer.css +165 -87
- package/lib/packages/designer/package.json.js +1 -1
- package/lib/packages/designer/src/api/index.js +3 -3
- package/lib/packages/designer/src/components/OnlyFLowConfigButton.vue2.js +8 -3
- package/lib/packages/designer/src/packages/form/property/subTable.vue.js +210 -56
- package/lib/packages/designer/src/packages/form/property/widgets.vue.js +44 -27
- package/lib/packages/designer/src/packages/table/property/customBtn.vue.js +10 -0
- package/lib/packages/vue/src/components/forms/form/Form.vue.js +2 -2
- package/lib/packages/vue/src/components/forms/formItem/FormItem.vue.js +4 -3
- package/lib/packages/vue/src/components/forms/subTable/SubTable.vue.js +58 -29
- package/lib/packages/vue/src/components/table/CustomButtons.vue.js +29 -3
- package/lib/packages/vue/src/components/table/DynamicQuery.vue.js +21 -2
- package/lib/packages/vue/src/components/table/Table.vue.js +27 -12
- package/lib/packages/vue/src/components/table/TableColumn.vue.js +25 -15
- package/package.json +1 -1
|
@@ -4,13 +4,18 @@ Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toString
|
|
|
4
4
|
;/* empty css */
|
|
5
5
|
;/* empty css */
|
|
6
6
|
;/* empty css */
|
|
7
|
+
;/* empty css */
|
|
8
|
+
;/* empty css */
|
|
9
|
+
;/* empty css */
|
|
10
|
+
;/* empty css */
|
|
11
|
+
;/* empty css */
|
|
12
|
+
require("../../../../../../node_modules/.pnpm/element-plus@2.13.2_vue@3.5.13_typescript@5.7.3_/node_modules/element-plus/theme-chalk/el-dropdown-menu.css.js");
|
|
13
|
+
require("../../../../../../node_modules/.pnpm/element-plus@2.13.2_vue@3.5.13_typescript@5.7.3_/node_modules/element-plus/theme-chalk/el-dropdown-item.css.js");
|
|
7
14
|
;/* empty css */
|
|
8
15
|
;/* empty css */
|
|
9
16
|
;/* empty css */
|
|
10
17
|
;/* empty css */
|
|
11
18
|
;/* empty css */
|
|
12
|
-
;/* empty css */
|
|
13
|
-
;/* empty css */
|
|
14
19
|
;/* empty css */
|
|
15
20
|
;/* empty css */
|
|
16
21
|
;/* empty css */
|
|
@@ -23,6 +28,9 @@ const TemplateSelector = require("../../../components/TemplateSelector.vue.js");
|
|
|
23
28
|
const eventBus = require("../../utils/eventBus.js");
|
|
24
29
|
const ParamsConfig = require("../../../components/ParamsConfig.vue2.js");
|
|
25
30
|
const index = require("../../../api/index.js");
|
|
31
|
+
const OnlyFLowConfigButton = require("../../../components/OnlyFLowConfigButton.vue2.js");
|
|
32
|
+
;/* empty css */
|
|
33
|
+
const _pluginVue_exportHelper = require("../../../../../../_virtual/_plugin-vue_export-helper.js");
|
|
26
34
|
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/collapse/index.js");
|
|
27
35
|
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/form/index.js");
|
|
28
36
|
const index$3 = require("../../../../../../node_modules/.pnpm/element-plus@2.13.2_vue@3.5.13_typescript@5.7.3_/node_modules/element-plus/es/components/input/index.js");
|
|
@@ -30,41 +38,96 @@ const index$4 = require("../../../../../../node_modules/.pnpm/element-plus@2.13.
|
|
|
30
38
|
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/switch/index.js");
|
|
31
39
|
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/select/index.js");
|
|
32
40
|
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/input-number/index.js");
|
|
41
|
+
const index$8 = 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");
|
|
42
|
+
const index$9 = require("../../../../../../node_modules/.pnpm/element-plus@2.13.2_vue@3.5.13_typescript@5.7.3_/node_modules/element-plus/es/components/dropdown/index.js");
|
|
43
|
+
const _hoisted_1 = { class: "buttons-config-container" };
|
|
44
|
+
const _hoisted_2 = {
|
|
45
|
+
key: 0,
|
|
46
|
+
class: "buttons-table"
|
|
47
|
+
};
|
|
48
|
+
const _hoisted_3 = { class: "buttons-body" };
|
|
49
|
+
const _hoisted_4 = { class: "buttons-cell name-cell" };
|
|
50
|
+
const _hoisted_5 = { class: "buttons-cell action-cell" };
|
|
51
|
+
const _hoisted_6 = { class: "buttons-footer" };
|
|
52
|
+
const _hoisted_7 = { class: "button-dropdown-content" };
|
|
53
|
+
const _hoisted_8 = { class: "button-name" };
|
|
54
|
+
const _hoisted_9 = { class: "button-type" };
|
|
33
55
|
const _sfc_main = {
|
|
34
56
|
__name: "subTable",
|
|
35
57
|
setup(__props) {
|
|
36
|
-
var _a;
|
|
37
58
|
const currentItem = vue.computed(() => {
|
|
38
|
-
|
|
59
|
+
const item = common.getCurrentItem();
|
|
60
|
+
if (!item.btnRollback) {
|
|
61
|
+
item.btnRollback = [];
|
|
62
|
+
}
|
|
63
|
+
return item;
|
|
39
64
|
});
|
|
40
65
|
const activeName = vue.ref(["common"]);
|
|
41
66
|
const subTableOptions = vue.ref(null);
|
|
42
|
-
const
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
subTableOptions.value
|
|
46
|
-
|
|
47
|
-
|
|
67
|
+
const subTableBtns = vue.computed(() => {
|
|
68
|
+
var _a, _b, _c;
|
|
69
|
+
const customBtns = ((_b = subTableOptions.value) == null ? void 0 : _b.customBtns.left.concat(
|
|
70
|
+
(_a = subTableOptions.value) == null ? void 0 : _a.customBtns.right
|
|
71
|
+
)) || [];
|
|
72
|
+
return customBtns.concat(((_c = subTableOptions.value) == null ? void 0 : _c.optBtns) || []);
|
|
73
|
+
});
|
|
74
|
+
vue.watch(
|
|
75
|
+
() => {
|
|
76
|
+
var _a;
|
|
77
|
+
return (_a = currentItem.value) == null ? void 0 : _a.subTableId;
|
|
78
|
+
},
|
|
79
|
+
(pkId) => {
|
|
80
|
+
if (pkId) {
|
|
81
|
+
index.default.getById(pkId).then((data) => {
|
|
82
|
+
subTableOptions.value = JSON.parse(data.context);
|
|
83
|
+
});
|
|
84
|
+
}
|
|
85
|
+
},
|
|
86
|
+
{
|
|
87
|
+
immediate: true
|
|
88
|
+
}
|
|
89
|
+
);
|
|
48
90
|
function templateSelectorConfirm(data) {
|
|
49
91
|
subTableOptions.value = data;
|
|
50
|
-
currentItem.subTableMode = null;
|
|
92
|
+
currentItem.value.subTableMode = null;
|
|
51
93
|
}
|
|
52
94
|
const tableMode = vue.computed(() => {
|
|
53
|
-
var
|
|
54
|
-
return (
|
|
95
|
+
var _a;
|
|
96
|
+
return ((_a = subTableOptions.value) == null ? void 0 : _a.mode) || [];
|
|
55
97
|
});
|
|
56
98
|
function handleTitleModeChange(value) {
|
|
57
99
|
const item = currentItem.value;
|
|
58
100
|
const fieldsData = common.getEditConfigData().fieldsData;
|
|
59
101
|
const fieldInData = fieldsData == null ? void 0 : fieldsData.find((f) => {
|
|
60
|
-
var
|
|
61
|
-
return ((
|
|
102
|
+
var _a;
|
|
103
|
+
return ((_a = f.component) == null ? void 0 : _a.id) === item.id;
|
|
62
104
|
});
|
|
63
105
|
if (fieldInData) {
|
|
64
106
|
fieldInData.h = value === "none" ? 2 : 3;
|
|
65
107
|
eventBus.default.emit("resizeEvent");
|
|
66
108
|
}
|
|
67
109
|
}
|
|
110
|
+
function handleButtonSelect(buttonConfig) {
|
|
111
|
+
addButton(buttonConfig);
|
|
112
|
+
}
|
|
113
|
+
function addButton(buttonConfig) {
|
|
114
|
+
if (!currentItem.value.btnRollback) {
|
|
115
|
+
currentItem.value.btnRollback = [];
|
|
116
|
+
}
|
|
117
|
+
currentItem.value.btnRollback.push({
|
|
118
|
+
id: buttonConfig.id,
|
|
119
|
+
label: buttonConfig.label,
|
|
120
|
+
type: buttonConfig.type
|
|
121
|
+
});
|
|
122
|
+
}
|
|
123
|
+
function removeButton(index2) {
|
|
124
|
+
if (currentItem.value.btnRollback && index2 >= 0 && index2 < currentItem.value.btnRollback.length) {
|
|
125
|
+
currentItem.value.btnRollback.splice(index2, 1);
|
|
126
|
+
}
|
|
127
|
+
}
|
|
128
|
+
function handleOnlyFlowConfirm(button, data) {
|
|
129
|
+
button.callbackEventConfig = data;
|
|
130
|
+
}
|
|
68
131
|
return (_ctx, _cache) => {
|
|
69
132
|
const _component_el_input = index$3.ElInput;
|
|
70
133
|
const _component_el_form_item = index$2.ElFormItem;
|
|
@@ -74,13 +137,17 @@ const _sfc_main = {
|
|
|
74
137
|
const _component_el_option = index$6.ElOption;
|
|
75
138
|
const _component_el_select = index$6.ElSelect;
|
|
76
139
|
const _component_el_input_number = index$7.ElInputNumber;
|
|
140
|
+
const _component_el_button = index$8.ElButton;
|
|
141
|
+
const _component_el_dropdown_item = index$9.ElDropdownItem;
|
|
142
|
+
const _component_el_dropdown_menu = index$9.ElDropdownMenu;
|
|
143
|
+
const _component_el_dropdown = index$9.ElDropdown;
|
|
77
144
|
const _component_el_form = index$2.ElForm;
|
|
78
145
|
const _component_el_collapse_item = index$1.ElCollapseItem;
|
|
79
146
|
const _component_el_collapse = index$1.ElCollapse;
|
|
80
147
|
return vue.openBlock(), vue.createBlock(_component_el_collapse, {
|
|
81
148
|
class: "setting",
|
|
82
|
-
modelValue:
|
|
83
|
-
"onUpdate:modelValue": _cache[15] || (_cache[15] = ($event) =>
|
|
149
|
+
modelValue: activeName.value,
|
|
150
|
+
"onUpdate:modelValue": _cache[15] || (_cache[15] = ($event) => activeName.value = $event)
|
|
84
151
|
}, {
|
|
85
152
|
default: vue.withCtx(() => [
|
|
86
153
|
vue.createVNode(_component_el_collapse_item, {
|
|
@@ -91,8 +158,8 @@ const _sfc_main = {
|
|
|
91
158
|
(vue.openBlock(), vue.createBlock(_component_el_form, {
|
|
92
159
|
"label-position": "top",
|
|
93
160
|
"label-width": "auto",
|
|
94
|
-
model:
|
|
95
|
-
key:
|
|
161
|
+
model: currentItem.value,
|
|
162
|
+
key: currentItem.value.id
|
|
96
163
|
}, {
|
|
97
164
|
default: vue.withCtx(() => [
|
|
98
165
|
vue.createVNode(_component_el_form_item, {
|
|
@@ -101,8 +168,8 @@ const _sfc_main = {
|
|
|
101
168
|
}, {
|
|
102
169
|
default: vue.withCtx(() => [
|
|
103
170
|
vue.createVNode(_component_el_input, {
|
|
104
|
-
modelValue:
|
|
105
|
-
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) =>
|
|
171
|
+
modelValue: currentItem.value.label,
|
|
172
|
+
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => currentItem.value.label = $event)
|
|
106
173
|
}, null, 8, ["modelValue"])
|
|
107
174
|
]),
|
|
108
175
|
_: 1
|
|
@@ -110,8 +177,8 @@ const _sfc_main = {
|
|
|
110
177
|
vue.createVNode(_component_el_form_item, { label: "标题模式" }, {
|
|
111
178
|
default: vue.withCtx(() => [
|
|
112
179
|
vue.createVNode(_component_el_radio_group, {
|
|
113
|
-
modelValue:
|
|
114
|
-
"onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) =>
|
|
180
|
+
modelValue: currentItem.value.titleMode,
|
|
181
|
+
"onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) => currentItem.value.titleMode = $event),
|
|
115
182
|
size: "small",
|
|
116
183
|
onChange: handleTitleModeChange
|
|
117
184
|
}, {
|
|
@@ -140,15 +207,15 @@ const _sfc_main = {
|
|
|
140
207
|
]),
|
|
141
208
|
_: 1
|
|
142
209
|
}),
|
|
143
|
-
|
|
144
|
-
|
|
210
|
+
currentItem.value.titleMode != "none" ? (vue.openBlock(), vue.createElementBlock(vue.Fragment, { key: 0 }, [
|
|
211
|
+
currentItem.value.titleMode == "label" ? (vue.openBlock(), vue.createBlock(_component_el_form_item, {
|
|
145
212
|
key: 0,
|
|
146
213
|
label: "副标题"
|
|
147
214
|
}, {
|
|
148
215
|
default: vue.withCtx(() => [
|
|
149
216
|
vue.createVNode(_component_el_input, {
|
|
150
|
-
modelValue:
|
|
151
|
-
"onUpdate:modelValue": _cache[2] || (_cache[2] = ($event) =>
|
|
217
|
+
modelValue: currentItem.value.subLabel,
|
|
218
|
+
"onUpdate:modelValue": _cache[2] || (_cache[2] = ($event) => currentItem.value.subLabel = $event),
|
|
152
219
|
rows: 2,
|
|
153
220
|
type: "textarea",
|
|
154
221
|
resize: "none"
|
|
@@ -160,8 +227,8 @@ const _sfc_main = {
|
|
|
160
227
|
vue.createVNode(_component_el_form_item, { label: "数据来源" }, {
|
|
161
228
|
default: vue.withCtx(() => [
|
|
162
229
|
vue.createVNode(_component_el_radio_group, {
|
|
163
|
-
modelValue:
|
|
164
|
-
"onUpdate:modelValue": _cache[3] || (_cache[3] = ($event) =>
|
|
230
|
+
modelValue: currentItem.value.dataSourceFrom,
|
|
231
|
+
"onUpdate:modelValue": _cache[3] || (_cache[3] = ($event) => currentItem.value.dataSourceFrom = $event),
|
|
165
232
|
size: "small"
|
|
166
233
|
}, {
|
|
167
234
|
default: vue.withCtx(() => [
|
|
@@ -183,25 +250,25 @@ const _sfc_main = {
|
|
|
183
250
|
]),
|
|
184
251
|
_: 1
|
|
185
252
|
}),
|
|
186
|
-
|
|
253
|
+
currentItem.value.dataSourceFrom == "main" ? (vue.openBlock(), vue.createBlock(_component_el_form_item, {
|
|
187
254
|
key: 1,
|
|
188
255
|
label: "字段名称"
|
|
189
256
|
}, {
|
|
190
257
|
default: vue.withCtx(() => [
|
|
191
258
|
vue.createVNode(_component_el_input, {
|
|
192
|
-
modelValue:
|
|
193
|
-
"onUpdate:modelValue": _cache[4] || (_cache[4] = ($event) =>
|
|
259
|
+
modelValue: currentItem.value.fieldName,
|
|
260
|
+
"onUpdate:modelValue": _cache[4] || (_cache[4] = ($event) => currentItem.value.fieldName = $event),
|
|
194
261
|
placeholder: "主页面数据中存储子列表数据的字段名"
|
|
195
262
|
}, null, 8, ["modelValue"])
|
|
196
263
|
]),
|
|
197
264
|
_: 1
|
|
198
265
|
})) : vue.createCommentVNode("", true),
|
|
199
|
-
|
|
266
|
+
currentItem.value.dataSourceFrom == "self" ? (vue.openBlock(), vue.createElementBlock(vue.Fragment, { key: 2 }, [
|
|
200
267
|
vue.createVNode(_component_el_form_item, { label: "列表参数" }, {
|
|
201
268
|
default: vue.withCtx(() => [
|
|
202
269
|
vue.createVNode(ParamsConfig.default, {
|
|
203
|
-
modelValue:
|
|
204
|
-
"onUpdate:modelValue": _cache[5] || (_cache[5] = ($event) =>
|
|
270
|
+
modelValue: currentItem.value.subTableParams,
|
|
271
|
+
"onUpdate:modelValue": _cache[5] || (_cache[5] = ($event) => currentItem.value.subTableParams = $event)
|
|
205
272
|
}, null, 8, ["modelValue"])
|
|
206
273
|
]),
|
|
207
274
|
_: 1
|
|
@@ -209,8 +276,8 @@ const _sfc_main = {
|
|
|
209
276
|
vue.createVNode(_component_el_form_item, { label: "参数更新重新加载列表" }, {
|
|
210
277
|
default: vue.withCtx(() => [
|
|
211
278
|
vue.createVNode(_component_el_switch, {
|
|
212
|
-
modelValue:
|
|
213
|
-
"onUpdate:modelValue": _cache[6] || (_cache[6] = ($event) =>
|
|
279
|
+
modelValue: currentItem.value.reloadOnParamsChange,
|
|
280
|
+
"onUpdate:modelValue": _cache[6] || (_cache[6] = ($event) => currentItem.value.reloadOnParamsChange = $event)
|
|
214
281
|
}, null, 8, ["modelValue"])
|
|
215
282
|
]),
|
|
216
283
|
_: 1
|
|
@@ -219,8 +286,8 @@ const _sfc_main = {
|
|
|
219
286
|
vue.createVNode(_component_el_form_item, { label: "权限标识" }, {
|
|
220
287
|
default: vue.withCtx(() => [
|
|
221
288
|
vue.createVNode(_component_el_input, {
|
|
222
|
-
modelValue:
|
|
223
|
-
"onUpdate:modelValue": _cache[7] || (_cache[7] = ($event) =>
|
|
289
|
+
modelValue: currentItem.value.permission,
|
|
290
|
+
"onUpdate:modelValue": _cache[7] || (_cache[7] = ($event) => currentItem.value.permission = $event)
|
|
224
291
|
}, null, 8, ["modelValue"])
|
|
225
292
|
]),
|
|
226
293
|
_: 1
|
|
@@ -228,28 +295,28 @@ const _sfc_main = {
|
|
|
228
295
|
vue.createVNode(_component_el_form_item, { label: "选择子列表" }, {
|
|
229
296
|
default: vue.withCtx(() => [
|
|
230
297
|
vue.createVNode(TemplateSelector.default, {
|
|
231
|
-
modelValue:
|
|
232
|
-
"onUpdate:modelValue": _cache[8] || (_cache[8] = ($event) =>
|
|
233
|
-
templateKey:
|
|
234
|
-
"onUpdate:templateKey": _cache[9] || (_cache[9] = ($event) =>
|
|
235
|
-
templateId:
|
|
236
|
-
"onUpdate:templateId": _cache[10] || (_cache[10] = ($event) =>
|
|
298
|
+
modelValue: currentItem.value.subTableName,
|
|
299
|
+
"onUpdate:modelValue": _cache[8] || (_cache[8] = ($event) => currentItem.value.subTableName = $event),
|
|
300
|
+
templateKey: currentItem.value.subTableKey,
|
|
301
|
+
"onUpdate:templateKey": _cache[9] || (_cache[9] = ($event) => currentItem.value.subTableKey = $event),
|
|
302
|
+
templateId: currentItem.value.subTableId,
|
|
303
|
+
"onUpdate:templateId": _cache[10] || (_cache[10] = ($event) => currentItem.value.subTableId = $event),
|
|
237
304
|
templateType: "table",
|
|
238
305
|
onConfirm: templateSelectorConfirm
|
|
239
306
|
}, null, 8, ["modelValue", "templateKey", "templateId"])
|
|
240
307
|
]),
|
|
241
308
|
_: 1
|
|
242
309
|
}),
|
|
243
|
-
|
|
310
|
+
currentItem.value.subTableId ? (vue.openBlock(), vue.createElementBlock(vue.Fragment, { key: 3 }, [
|
|
244
311
|
vue.createVNode(_component_el_form_item, { label: "列表模式" }, {
|
|
245
312
|
default: vue.withCtx(() => [
|
|
246
313
|
vue.createVNode(_component_el_select, {
|
|
247
|
-
modelValue:
|
|
248
|
-
"onUpdate:modelValue": _cache[11] || (_cache[11] = ($event) =>
|
|
314
|
+
modelValue: currentItem.value.subTableMode,
|
|
315
|
+
"onUpdate:modelValue": _cache[11] || (_cache[11] = ($event) => currentItem.value.subTableMode = $event),
|
|
249
316
|
clearable: ""
|
|
250
317
|
}, {
|
|
251
318
|
default: vue.withCtx(() => [
|
|
252
|
-
(vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(
|
|
319
|
+
(vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(tableMode.value, (mode) => {
|
|
253
320
|
return vue.openBlock(), vue.createBlock(_component_el_option, {
|
|
254
321
|
key: mode.key,
|
|
255
322
|
label: mode.name,
|
|
@@ -265,8 +332,8 @@ const _sfc_main = {
|
|
|
265
332
|
vue.createVNode(_component_el_form_item, { label: "高度" }, {
|
|
266
333
|
default: vue.withCtx(() => [
|
|
267
334
|
vue.createVNode(_component_el_input_number, {
|
|
268
|
-
modelValue:
|
|
269
|
-
"onUpdate:modelValue": _cache[12] || (_cache[12] = ($event) =>
|
|
335
|
+
modelValue: currentItem.value.subTableHeight,
|
|
336
|
+
"onUpdate:modelValue": _cache[12] || (_cache[12] = ($event) => currentItem.value.subTableHeight = $event),
|
|
270
337
|
min: 300,
|
|
271
338
|
"controls-position": "right",
|
|
272
339
|
controls: false,
|
|
@@ -283,8 +350,8 @@ const _sfc_main = {
|
|
|
283
350
|
vue.createVNode(_component_el_form_item, { label: "是否翻页" }, {
|
|
284
351
|
default: vue.withCtx(() => [
|
|
285
352
|
vue.createVNode(_component_el_switch, {
|
|
286
|
-
modelValue:
|
|
287
|
-
"onUpdate:modelValue": _cache[13] || (_cache[13] = ($event) =>
|
|
353
|
+
modelValue: currentItem.value.isSubTablePagination,
|
|
354
|
+
"onUpdate:modelValue": _cache[13] || (_cache[13] = ($event) => currentItem.value.isSubTablePagination = $event)
|
|
288
355
|
}, null, 8, ["modelValue"])
|
|
289
356
|
]),
|
|
290
357
|
_: 1
|
|
@@ -292,11 +359,97 @@ const _sfc_main = {
|
|
|
292
359
|
vue.createVNode(_component_el_form_item, { label: "是否只读" }, {
|
|
293
360
|
default: vue.withCtx(() => [
|
|
294
361
|
vue.createVNode(_component_el_switch, {
|
|
295
|
-
modelValue:
|
|
296
|
-
"onUpdate:modelValue": _cache[14] || (_cache[14] = ($event) =>
|
|
362
|
+
modelValue: currentItem.value.isSubTableReadOnly,
|
|
363
|
+
"onUpdate:modelValue": _cache[14] || (_cache[14] = ($event) => currentItem.value.isSubTableReadOnly = $event)
|
|
297
364
|
}, null, 8, ["modelValue"])
|
|
298
365
|
]),
|
|
299
366
|
_: 1
|
|
367
|
+
}),
|
|
368
|
+
vue.createVNode(_component_el_form_item, { label: "列表按钮回调事件" }, {
|
|
369
|
+
default: vue.withCtx(() => [
|
|
370
|
+
vue.createElementVNode("div", _hoisted_1, [
|
|
371
|
+
currentItem.value.btnRollback && currentItem.value.btnRollback.length > 0 ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_2, [
|
|
372
|
+
_cache[22] || (_cache[22] = vue.createElementVNode("div", { class: "buttons-header" }, [
|
|
373
|
+
vue.createElementVNode("div", { class: "buttons-cell name-header" }, "按钮"),
|
|
374
|
+
vue.createElementVNode("div", { class: "buttons-cell action-header" }, "回调事件")
|
|
375
|
+
], -1)),
|
|
376
|
+
vue.createElementVNode("div", _hoisted_3, [
|
|
377
|
+
(vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(currentItem.value.btnRollback, (button, index2) => {
|
|
378
|
+
return vue.openBlock(), vue.createElementBlock("div", {
|
|
379
|
+
key: button.id,
|
|
380
|
+
class: "buttons-row"
|
|
381
|
+
}, [
|
|
382
|
+
vue.createElementVNode("div", _hoisted_4, [
|
|
383
|
+
vue.createElementVNode("span", null, vue.toDisplayString(button.label), 1)
|
|
384
|
+
]),
|
|
385
|
+
vue.createElementVNode("div", _hoisted_5, [
|
|
386
|
+
vue.createVNode(OnlyFLowConfigButton.default, {
|
|
387
|
+
size: "small",
|
|
388
|
+
config: button.callbackEventConfig,
|
|
389
|
+
onConfirm: (data) => {
|
|
390
|
+
handleOnlyFlowConfirm(button, data);
|
|
391
|
+
}
|
|
392
|
+
}, null, 8, ["config", "onConfirm"]),
|
|
393
|
+
vue.createVNode(_component_el_button, {
|
|
394
|
+
type: "danger",
|
|
395
|
+
size: "small",
|
|
396
|
+
onClick: ($event) => removeButton(index2),
|
|
397
|
+
icon: "Delete",
|
|
398
|
+
text: "",
|
|
399
|
+
style: { "padding": "0", "background": "transparent" }
|
|
400
|
+
}, null, 8, ["onClick"])
|
|
401
|
+
])
|
|
402
|
+
]);
|
|
403
|
+
}), 128))
|
|
404
|
+
])
|
|
405
|
+
])) : vue.createCommentVNode("", true),
|
|
406
|
+
vue.createElementVNode("div", _hoisted_6, [
|
|
407
|
+
vue.createVNode(_component_el_dropdown, {
|
|
408
|
+
onCommand: handleButtonSelect,
|
|
409
|
+
trigger: "click",
|
|
410
|
+
size: "small"
|
|
411
|
+
}, {
|
|
412
|
+
dropdown: vue.withCtx(() => [
|
|
413
|
+
vue.createVNode(_component_el_dropdown_menu, null, {
|
|
414
|
+
default: vue.withCtx(() => [
|
|
415
|
+
(vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(subTableBtns.value, (button) => {
|
|
416
|
+
return vue.openBlock(), vue.createBlock(_component_el_dropdown_item, {
|
|
417
|
+
key: button.id,
|
|
418
|
+
command: button,
|
|
419
|
+
class: "button-dropdown-item"
|
|
420
|
+
}, {
|
|
421
|
+
default: vue.withCtx(() => [
|
|
422
|
+
vue.createElementVNode("div", _hoisted_7, [
|
|
423
|
+
vue.createElementVNode("span", _hoisted_8, vue.toDisplayString(button.label), 1),
|
|
424
|
+
vue.createElementVNode("span", _hoisted_9, vue.toDisplayString(button.type === "optBtn" ? "行级" : "自定义"), 1)
|
|
425
|
+
])
|
|
426
|
+
]),
|
|
427
|
+
_: 2
|
|
428
|
+
}, 1032, ["command"]);
|
|
429
|
+
}), 128))
|
|
430
|
+
]),
|
|
431
|
+
_: 1
|
|
432
|
+
})
|
|
433
|
+
]),
|
|
434
|
+
default: vue.withCtx(() => [
|
|
435
|
+
vue.createVNode(_component_el_button, {
|
|
436
|
+
type: "primary",
|
|
437
|
+
size: "small",
|
|
438
|
+
icon: "Plus",
|
|
439
|
+
link: ""
|
|
440
|
+
}, {
|
|
441
|
+
default: vue.withCtx(() => _cache[23] || (_cache[23] = [
|
|
442
|
+
vue.createTextVNode(" 新增按钮 ")
|
|
443
|
+
])),
|
|
444
|
+
_: 1
|
|
445
|
+
})
|
|
446
|
+
]),
|
|
447
|
+
_: 1
|
|
448
|
+
})
|
|
449
|
+
])
|
|
450
|
+
])
|
|
451
|
+
]),
|
|
452
|
+
_: 1
|
|
300
453
|
})
|
|
301
454
|
], 64)) : vue.createCommentVNode("", true)
|
|
302
455
|
]),
|
|
@@ -311,4 +464,5 @@ const _sfc_main = {
|
|
|
311
464
|
};
|
|
312
465
|
}
|
|
313
466
|
};
|
|
314
|
-
|
|
467
|
+
const subTable = /* @__PURE__ */ _pluginVue_exportHelper.default(_sfc_main, [["__scopeId", "data-v-8ebdd5a8"]]);
|
|
468
|
+
exports.default = subTable;
|
|
@@ -31,17 +31,17 @@ const eventBus = require("../../utils/eventBus.js");
|
|
|
31
31
|
const FieldSetMapping = require("../../../components/FieldSetMapping.vue2.js");
|
|
32
32
|
const OnlyFLowConfigButton = require("../../../components/OnlyFLowConfigButton.vue2.js");
|
|
33
33
|
const FormulaEditorInput = require("../../../components/FormulaEditorInput.vue.js");
|
|
34
|
-
const index$
|
|
34
|
+
const index$1 = require("../../../api/index.js");
|
|
35
35
|
;/* empty css */
|
|
36
36
|
const _pluginVue_exportHelper = require("../../../../../../_virtual/_plugin-vue_export-helper.js");
|
|
37
|
-
const index$
|
|
38
|
-
const index$
|
|
39
|
-
const index$
|
|
40
|
-
const index$
|
|
41
|
-
const index$
|
|
42
|
-
const index$
|
|
43
|
-
const index$
|
|
44
|
-
const index$
|
|
37
|
+
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/collapse/index.js");
|
|
38
|
+
const index$3 = 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");
|
|
39
|
+
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/form/index.js");
|
|
40
|
+
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/input/index.js");
|
|
41
|
+
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/checkbox/index.js");
|
|
42
|
+
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/radio/index.js");
|
|
43
|
+
const index$8 = require("../../../../../../node_modules/.pnpm/element-plus@2.13.2_vue@3.5.13_typescript@5.7.3_/node_modules/element-plus/es/components/input-number/index.js");
|
|
44
|
+
const index$9 = 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");
|
|
45
45
|
const _hoisted_1 = {
|
|
46
46
|
key: 0,
|
|
47
47
|
class: "data-source-fields"
|
|
@@ -195,7 +195,7 @@ const _sfc_main = {
|
|
|
195
195
|
const loadGlobalDialogs = async () => {
|
|
196
196
|
dialogLoading.value = true;
|
|
197
197
|
try {
|
|
198
|
-
const response = await index$
|
|
198
|
+
const response = await index$1.default.getAllTemplateDialog();
|
|
199
199
|
globalDialogs.value = [];
|
|
200
200
|
for (let dialog of response) {
|
|
201
201
|
globalDialogs.value.push({
|
|
@@ -214,9 +214,13 @@ const _sfc_main = {
|
|
|
214
214
|
vue.watch(
|
|
215
215
|
() => currentItem.value.dialogSource,
|
|
216
216
|
async (newSource, oldSource) => {
|
|
217
|
+
var _a, _b;
|
|
217
218
|
if (newSource === "global" && oldSource !== "global") {
|
|
218
219
|
await loadGlobalDialogs();
|
|
219
220
|
}
|
|
221
|
+
if ((_a = currentItem.value) == null ? void 0 : _a.suffixDialogId) {
|
|
222
|
+
handleDialogChange((_b = currentItem.value) == null ? void 0 : _b.suffixDialogId);
|
|
223
|
+
}
|
|
220
224
|
},
|
|
221
225
|
{ immediate: true }
|
|
222
226
|
);
|
|
@@ -236,7 +240,7 @@ const _sfc_main = {
|
|
|
236
240
|
const tableId = currDialog.value.subTableId;
|
|
237
241
|
if (tableId) {
|
|
238
242
|
try {
|
|
239
|
-
const response = await index$
|
|
243
|
+
const response = await index$1.default.getById(tableId, false);
|
|
240
244
|
tableOptions.value = JSON.parse(response.context);
|
|
241
245
|
console.log("🚀 ~ 需要获取表格配置,表格ID:", tableId);
|
|
242
246
|
} catch (error) {
|
|
@@ -258,20 +262,34 @@ const _sfc_main = {
|
|
|
258
262
|
const isSysSelect = vue.computed(() => {
|
|
259
263
|
return currentItem.value.fieldType == "userSelect" || currentItem.value.fieldType == "roleSelect" || currentItem.value.fieldType == "orgSelect";
|
|
260
264
|
});
|
|
265
|
+
vue.watch(
|
|
266
|
+
() => {
|
|
267
|
+
var _a;
|
|
268
|
+
return (_a = currentItem.value) == null ? void 0 : _a.suffixDialogId;
|
|
269
|
+
},
|
|
270
|
+
(dialogId) => {
|
|
271
|
+
if (dialogId) {
|
|
272
|
+
handleDialogChange(dialogId);
|
|
273
|
+
}
|
|
274
|
+
}
|
|
275
|
+
// {
|
|
276
|
+
// immediate: true,
|
|
277
|
+
// }
|
|
278
|
+
);
|
|
261
279
|
return (_ctx, _cache) => {
|
|
262
|
-
const _component_el_option = index$
|
|
263
|
-
const _component_el_select = index$
|
|
264
|
-
const _component_el_input = index$
|
|
265
|
-
const _component_el_form_item = index$
|
|
266
|
-
const _component_el_checkbox = index$
|
|
267
|
-
const _component_el_radio_button = index$
|
|
268
|
-
const _component_el_radio_group = index$
|
|
269
|
-
const _component_el_input_number = index$
|
|
270
|
-
const _component_el_switch = index$
|
|
280
|
+
const _component_el_option = index$3.ElOption;
|
|
281
|
+
const _component_el_select = index$3.ElSelect;
|
|
282
|
+
const _component_el_input = index$5.ElInput;
|
|
283
|
+
const _component_el_form_item = index$4.ElFormItem;
|
|
284
|
+
const _component_el_checkbox = index$6.ElCheckbox;
|
|
285
|
+
const _component_el_radio_button = index$7.ElRadioButton;
|
|
286
|
+
const _component_el_radio_group = index$7.ElRadioGroup;
|
|
287
|
+
const _component_el_input_number = index$8.ElInputNumber;
|
|
288
|
+
const _component_el_switch = index$9.ElSwitch;
|
|
271
289
|
const _component_ParamsConfig = ParamsConfig.default;
|
|
272
|
-
const _component_el_form = index$
|
|
273
|
-
const _component_el_collapse_item = index$
|
|
274
|
-
const _component_el_collapse = index$
|
|
290
|
+
const _component_el_form = index$4.ElForm;
|
|
291
|
+
const _component_el_collapse_item = index$2.ElCollapseItem;
|
|
292
|
+
const _component_el_collapse = index$2.ElCollapse;
|
|
275
293
|
return vue.openBlock(), vue.createBlock(_component_el_collapse, {
|
|
276
294
|
class: "setting",
|
|
277
295
|
modelValue: vue.unref(activeName),
|
|
@@ -560,7 +578,6 @@ const _sfc_main = {
|
|
|
560
578
|
filterable: "",
|
|
561
579
|
loading: vue.unref(dialogLoading),
|
|
562
580
|
clearable: "",
|
|
563
|
-
onChange: handleDialogChange,
|
|
564
581
|
style: { "width": "100%" }
|
|
565
582
|
}, {
|
|
566
583
|
default: vue.withCtx(() => [
|
|
@@ -608,7 +625,7 @@ const _sfc_main = {
|
|
|
608
625
|
]),
|
|
609
626
|
vue.unref(currentItem).selectionMode != "none" ? (vue.openBlock(), vue.createElementBlock(vue.Fragment, { key: 0 }, [
|
|
610
627
|
vue.createElementVNode("div", _hoisted_6, [
|
|
611
|
-
_cache[70] || (_cache[70] = vue.createElementVNode("span", { class: "field-label" }, "
|
|
628
|
+
_cache[70] || (_cache[70] = vue.createElementVNode("span", { class: "field-label" }, "反显格式", -1)),
|
|
612
629
|
vue.createVNode(vue.unref(FormulaEditorInput.default), {
|
|
613
630
|
title: "反显格式配置",
|
|
614
631
|
formulaConf: vue.unref(currentItem).displayFormat,
|
|
@@ -635,7 +652,7 @@ const _sfc_main = {
|
|
|
635
652
|
])
|
|
636
653
|
], 64)) : vue.createCommentVNode("", true),
|
|
637
654
|
vue.createElementVNode("div", _hoisted_8, [
|
|
638
|
-
_cache[72] || (_cache[72] = vue.createElementVNode("span", { class: "field-label" }, "
|
|
655
|
+
_cache[72] || (_cache[72] = vue.createElementVNode("span", { class: "field-label" }, "回调事件", -1)),
|
|
639
656
|
vue.createVNode(OnlyFLowConfigButton.default, {
|
|
640
657
|
config: vue.unref(currentItem).callbackEventConfig,
|
|
641
658
|
onConfirm: handleOnlyFlowConfirm
|
|
@@ -1118,5 +1135,5 @@ const _sfc_main = {
|
|
|
1118
1135
|
};
|
|
1119
1136
|
}
|
|
1120
1137
|
};
|
|
1121
|
-
const widgets = /* @__PURE__ */ _pluginVue_exportHelper.default(_sfc_main, [["__scopeId", "data-v-
|
|
1138
|
+
const widgets = /* @__PURE__ */ _pluginVue_exportHelper.default(_sfc_main, [["__scopeId", "data-v-705ff290"]]);
|
|
1122
1139
|
exports.default = widgets;
|
|
@@ -15,6 +15,7 @@ Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toString
|
|
|
15
15
|
const vue = require("vue");
|
|
16
16
|
const EventConfigButton = require("../../../components/EventConfigButton.vue.js");
|
|
17
17
|
const common = require("../../utils/common.js");
|
|
18
|
+
const ConditionConfigButton = require("../../../components/ConditionConfigButton.vue2.js");
|
|
18
19
|
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/collapse/index.js");
|
|
19
20
|
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/form/index.js");
|
|
20
21
|
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/select/index.js");
|
|
@@ -107,6 +108,15 @@ const _sfc_main = {
|
|
|
107
108
|
]),
|
|
108
109
|
_: 1
|
|
109
110
|
}),
|
|
111
|
+
vue.createVNode(_component_el_form_item, { label: "显示条件" }, {
|
|
112
|
+
default: vue.withCtx(() => [
|
|
113
|
+
vue.createVNode(ConditionConfigButton.default, {
|
|
114
|
+
condition: vue.unref(currentItem).showCondition,
|
|
115
|
+
onConfirm: (data) => vue.unref(currentItem).showCondition = data
|
|
116
|
+
}, null, 8, ["condition", "onConfirm"])
|
|
117
|
+
]),
|
|
118
|
+
_: 1
|
|
119
|
+
}),
|
|
110
120
|
vue.createVNode(_component_el_form_item, { label: "风格" }, {
|
|
111
121
|
default: vue.withCtx(() => [
|
|
112
122
|
vue.createVNode(_component_el_select, {
|
|
@@ -207,7 +207,6 @@ const _sfc_main = /* @__PURE__ */ Object.assign({
|
|
|
207
207
|
hiddenFields.value.forEach((field) => {
|
|
208
208
|
if (field.fieldName) {
|
|
209
209
|
if (typeof field.value == "object") {
|
|
210
|
-
debugger;
|
|
211
210
|
const value = parseRouteParams.parseSingleParamValue(field.value, defaultData, [
|
|
212
211
|
...fieldsData.value,
|
|
213
212
|
...hiddenFields.value
|
|
@@ -892,6 +891,7 @@ const _sfc_main = /* @__PURE__ */ Object.assign({
|
|
|
892
891
|
vue.provide("gridLayoutFieldsData", gridLayoutFieldsData);
|
|
893
892
|
vue.provide("setFormItemHeight", setFormItemHeight);
|
|
894
893
|
vue.provide("formCtx", ctx);
|
|
894
|
+
vue.provide("handleEvent", handleEvent);
|
|
895
895
|
__expose({
|
|
896
896
|
validate,
|
|
897
897
|
resetFields,
|
|
@@ -983,5 +983,5 @@ const _sfc_main = /* @__PURE__ */ Object.assign({
|
|
|
983
983
|
};
|
|
984
984
|
}
|
|
985
985
|
});
|
|
986
|
-
const _Form = /* @__PURE__ */ _pluginVue_exportHelper.default(_sfc_main, [["__scopeId", "data-v-
|
|
986
|
+
const _Form = /* @__PURE__ */ _pluginVue_exportHelper.default(_sfc_main, [["__scopeId", "data-v-01bfaf4f"]]);
|
|
987
987
|
exports.default = _Form;
|