@fecp/designer 5.6.36 → 5.6.39
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/package.json.mjs +1 -1
- package/es/designer/src/components/DataSourceSelect.vue.mjs +10 -4
- package/es/designer/src/packages/dialog/index.vue.mjs +28 -11
- package/es/designer/src/packages/dialog/index.vue2.mjs +28 -11
- package/es/designer/src/packages/dialog/useDialogDialog.mjs +1 -1
- package/es/designer/src/packages/dialogGlobal/index.vue.mjs +28 -11
- package/es/designer/src/packages/dialogGlobal/index.vue2.mjs +28 -11
- package/es/designer/src/packages/dialogGlobal/useDialogGlobalDialog.mjs +1 -1
- package/es/designer/src/packages/form/index.vue.mjs +2 -2
- package/es/designer/src/packages/form/property/widgets.vue.mjs +2 -2
- package/es/designer/src/packages/utils/common.mjs +17 -0
- package/es/designer.css +162 -161
- package/es/packages/vue/src/components/forms/formItem/FormItem.vue.mjs +1 -1
- package/es/packages/vue/src/components/table/Table.vue.mjs +13 -10
- package/es/packages/vue/src/components/table/TableColumn.vue.mjs +55 -2
- package/lib/designer/package.json.js +1 -1
- package/lib/designer/src/components/DataSourceSelect.vue.js +9 -3
- package/lib/designer/src/packages/dialog/index.vue.js +26 -9
- package/lib/designer/src/packages/dialog/index.vue2.js +351 -334
- package/lib/designer/src/packages/dialog/useDialogDialog.js +1 -1
- package/lib/designer/src/packages/dialogGlobal/index.vue.js +26 -9
- package/lib/designer/src/packages/dialogGlobal/index.vue2.js +321 -304
- package/lib/designer/src/packages/dialogGlobal/useDialogGlobalDialog.js +1 -1
- package/lib/designer/src/packages/form/index.vue.js +2 -2
- package/lib/designer/src/packages/form/property/widgets.vue.js +2 -2
- package/lib/designer/src/packages/utils/common.js +17 -0
- package/lib/designer.css +162 -161
- package/lib/packages/vue/src/components/forms/formItem/FormItem.vue.js +1 -1
- package/lib/packages/vue/src/components/table/Table.vue.js +13 -10
- package/lib/packages/vue/src/components/table/TableColumn.vue.js +55 -2
- package/package.json +23 -23
|
@@ -26,7 +26,7 @@ require("../../../../node_modules/element-plus/es/index.js");
|
|
|
26
26
|
;/* empty css */
|
|
27
27
|
;/* empty css */
|
|
28
28
|
;/* empty css */
|
|
29
|
-
const
|
|
29
|
+
const vue = require("vue");
|
|
30
30
|
const vueDraggablePlus = require("../../../../node_modules/vue-draggable-plus/dist/vue-draggable-plus.js");
|
|
31
31
|
const index$4 = require("../../../../node_modules/@element-plus/icons-vue/dist/index.js");
|
|
32
32
|
const common = require("../utils/common.js");
|
|
@@ -35,7 +35,7 @@ const index = require("../../api/index.js");
|
|
|
35
35
|
const ParamsConfig = require("../../components/ParamsConfig.vue2.js");
|
|
36
36
|
const DataSourceSelect = require("../../components/DataSourceSelect.vue.js");
|
|
37
37
|
const FieldSetMapping = require("../../components/FieldSetMapping.vue2.js");
|
|
38
|
-
const OnlyFLowConfigButton =
|
|
38
|
+
const OnlyFLowConfigButton = require("../../components/OnlyFLowConfigButton.vue2.js");
|
|
39
39
|
const FormulaEditorInput = require("../../components/FormulaEditorInput.vue.js");
|
|
40
40
|
const index$g = require("../table/aside/index.js");
|
|
41
41
|
const _default = require("../table/default.js");
|
|
@@ -94,28 +94,42 @@ const _sfc_main = {
|
|
|
94
94
|
},
|
|
95
95
|
emits: ["update:modelValue"],
|
|
96
96
|
setup(__props) {
|
|
97
|
-
const currentInstance =
|
|
97
|
+
const currentInstance = vue.getCurrentInstance();
|
|
98
98
|
const ctx = currentInstance.proxy;
|
|
99
|
-
const
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
99
|
+
const dialogVisible = vue.useModel(__props, "modelValue");
|
|
100
|
+
const selectedDialogs = vue.ref([]);
|
|
101
|
+
const activeDialogIndex = vue.ref(-1);
|
|
102
|
+
function normalizeDataSourceConfigs(dialogs) {
|
|
103
|
+
const globalDataSources = common.getEditConfigDataSources() || [];
|
|
104
|
+
(dialogs || []).forEach((dialog) => {
|
|
105
|
+
if (dialog.contentSource !== "table" || dialog.tableContent !== "custom") {
|
|
106
|
+
return;
|
|
107
|
+
}
|
|
108
|
+
if (!dialog.customTableConfig) {
|
|
109
|
+
dialog.customTableConfig = common.cloneDeep(_default.defaultTableConfig);
|
|
110
|
+
dialog.customTableConfig.fieldsData = [];
|
|
111
|
+
}
|
|
112
|
+
dialog.customTableConfig.dataSources = common.mergeDataSources(
|
|
113
|
+
globalDataSources,
|
|
114
|
+
dialog.customTableConfig.dataSources
|
|
115
|
+
);
|
|
116
|
+
});
|
|
117
|
+
}
|
|
118
|
+
vue.watch(dialogVisible, (val) => {
|
|
106
119
|
if (val) {
|
|
107
120
|
isEditingNew.value = false;
|
|
108
121
|
editingDialogIndex.value = -1;
|
|
109
122
|
selectedDialogs.value = common.cloneDeep(common.getEditConfigDialogs());
|
|
123
|
+
normalizeDataSourceConfigs(selectedDialogs.value);
|
|
110
124
|
if (selectedDialogs.value.length > 0 && activeDialogIndex.value === -1) {
|
|
111
125
|
activeDialogIndex.value = 0;
|
|
112
126
|
}
|
|
113
127
|
}
|
|
114
128
|
});
|
|
115
|
-
const isEditingNew =
|
|
116
|
-
const newDialogName =
|
|
117
|
-
const editingDialogIndex =
|
|
118
|
-
const editingDialogName =
|
|
129
|
+
const isEditingNew = vue.ref(false);
|
|
130
|
+
const newDialogName = vue.ref("");
|
|
131
|
+
const editingDialogIndex = vue.ref(-1);
|
|
132
|
+
const editingDialogName = vue.ref("");
|
|
119
133
|
const startAddDialog = () => {
|
|
120
134
|
isEditingNew.value = true;
|
|
121
135
|
newDialogName.value = "";
|
|
@@ -178,12 +192,13 @@ const _sfc_main = {
|
|
|
178
192
|
}
|
|
179
193
|
};
|
|
180
194
|
const onConfirm = () => {
|
|
195
|
+
normalizeDataSourceConfigs(selectedDialogs.value);
|
|
181
196
|
common.setEditConfigDialogs(selectedDialogs.value);
|
|
182
197
|
dialogVisible.value = false;
|
|
183
198
|
};
|
|
184
|
-
const tableOptions =
|
|
185
|
-
const formOptions =
|
|
186
|
-
const currentDialog =
|
|
199
|
+
const tableOptions = vue.ref(null);
|
|
200
|
+
const formOptions = vue.ref(null);
|
|
201
|
+
const currentDialog = vue.computed(() => {
|
|
187
202
|
const data = selectedDialogs.value[activeDialogIndex.value];
|
|
188
203
|
if (!data.fieldMapping) {
|
|
189
204
|
data.fieldMapping = [];
|
|
@@ -191,10 +206,11 @@ const _sfc_main = {
|
|
|
191
206
|
if (!data.customTableConfig) {
|
|
192
207
|
data.customTableConfig = common.cloneDeep(_default.defaultTableConfig);
|
|
193
208
|
data.customTableConfig.fieldsData = [];
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
data.customTableConfig.dataSources = editConfigData.value.dataSources;
|
|
209
|
+
}
|
|
210
|
+
if (data.customTableConfig.queryConfig) {
|
|
197
211
|
data.customTableConfig.queryConfig.enabled = false;
|
|
212
|
+
} else {
|
|
213
|
+
data.customTableConfig.queryConfig = { enabled: false };
|
|
198
214
|
}
|
|
199
215
|
if ((data == null ? void 0 : data.contentSource) == "table") {
|
|
200
216
|
const pkId = data == null ? void 0 : data.subTableId;
|
|
@@ -220,11 +236,11 @@ const _sfc_main = {
|
|
|
220
236
|
function formSelectorConfirm(data) {
|
|
221
237
|
formOptions.value = data;
|
|
222
238
|
}
|
|
223
|
-
const tableMode =
|
|
239
|
+
const tableMode = vue.computed(() => {
|
|
224
240
|
var _a;
|
|
225
241
|
return (_a = tableOptions.value) == null ? void 0 : _a.mode;
|
|
226
242
|
});
|
|
227
|
-
const tableFields =
|
|
243
|
+
const tableFields = vue.computed(() => {
|
|
228
244
|
var _a, _b, _c, _d;
|
|
229
245
|
if (currentDialog.value.tableContent === "custom") {
|
|
230
246
|
return ((_b = (_a = currentDialog.value) == null ? void 0 : _a.customTableConfig) == null ? void 0 : _b.fieldsData) || [];
|
|
@@ -235,7 +251,7 @@ const _sfc_main = {
|
|
|
235
251
|
];
|
|
236
252
|
}
|
|
237
253
|
});
|
|
238
|
-
const formFooterBtn =
|
|
254
|
+
const formFooterBtn = vue.computed(() => {
|
|
239
255
|
var _a;
|
|
240
256
|
const btnList = (_a = formOptions.value) == null ? void 0 : _a.pageFooterConfig.actions;
|
|
241
257
|
if (btnList) {
|
|
@@ -292,7 +308,7 @@ const _sfc_main = {
|
|
|
292
308
|
const _component_el_checkbox = index$e.ElCheckbox;
|
|
293
309
|
const _component_el_form = index$9.ElForm;
|
|
294
310
|
const _component_el_dialog = index$1.ElDialog;
|
|
295
|
-
return
|
|
311
|
+
return vue.openBlock(), vue.createBlock(_component_el_dialog, {
|
|
296
312
|
modelValue: dialogVisible.value,
|
|
297
313
|
"onUpdate:modelValue": _cache[31] || (_cache[31] = ($event) => dialogVisible.value = $event),
|
|
298
314
|
width: "50%",
|
|
@@ -302,130 +318,130 @@ const _sfc_main = {
|
|
|
302
318
|
"append-to-body": "",
|
|
303
319
|
class: "fec-dev-designer-dialog"
|
|
304
320
|
}, {
|
|
305
|
-
footer:
|
|
306
|
-
|
|
307
|
-
|
|
321
|
+
footer: vue.withCtx(() => [
|
|
322
|
+
vue.createElementVNode("div", _hoisted_19, [
|
|
323
|
+
vue.createVNode(_component_el_button, {
|
|
308
324
|
onClick: _cache[30] || (_cache[30] = ($event) => dialogVisible.value = false)
|
|
309
325
|
}, {
|
|
310
|
-
default:
|
|
311
|
-
|
|
326
|
+
default: vue.withCtx(() => _cache[51] || (_cache[51] = [
|
|
327
|
+
vue.createTextVNode("取消")
|
|
312
328
|
])),
|
|
313
329
|
_: 1
|
|
314
330
|
}),
|
|
315
|
-
|
|
331
|
+
vue.createVNode(_component_el_button, {
|
|
316
332
|
type: "primary",
|
|
317
333
|
onClick: onConfirm
|
|
318
334
|
}, {
|
|
319
|
-
default:
|
|
320
|
-
|
|
335
|
+
default: vue.withCtx(() => _cache[52] || (_cache[52] = [
|
|
336
|
+
vue.createTextVNode("确定")
|
|
321
337
|
])),
|
|
322
338
|
_: 1
|
|
323
339
|
})
|
|
324
340
|
])
|
|
325
341
|
]),
|
|
326
|
-
default:
|
|
327
|
-
|
|
328
|
-
default:
|
|
329
|
-
|
|
330
|
-
default:
|
|
331
|
-
|
|
332
|
-
default:
|
|
333
|
-
|
|
342
|
+
default: vue.withCtx(() => [
|
|
343
|
+
vue.createVNode(_component_el_container, { style: { "border": "1px solid #ebeef5", "border-radius": "4px", "height": "600px" } }, {
|
|
344
|
+
default: vue.withCtx(() => [
|
|
345
|
+
vue.createVNode(_component_el_aside, { width: "300px" }, {
|
|
346
|
+
default: vue.withCtx(() => [
|
|
347
|
+
vue.createVNode(_component_el_container, null, {
|
|
348
|
+
default: vue.withCtx(() => [
|
|
349
|
+
vue.createVNode(_component_el_header, {
|
|
334
350
|
height: "40px",
|
|
335
351
|
style: { "background-color": "#f2f2f2", "line-height": "40px" }
|
|
336
352
|
}, {
|
|
337
|
-
default:
|
|
338
|
-
|
|
353
|
+
default: vue.withCtx(() => [
|
|
354
|
+
vue.createVNode(_component_el_button, {
|
|
339
355
|
type: "primary",
|
|
340
356
|
link: "",
|
|
341
|
-
icon:
|
|
357
|
+
icon: vue.unref(index$4.Plus),
|
|
342
358
|
onClick: startAddDialog
|
|
343
359
|
}, {
|
|
344
|
-
default:
|
|
345
|
-
|
|
360
|
+
default: vue.withCtx(() => _cache[32] || (_cache[32] = [
|
|
361
|
+
vue.createTextVNode(" 新增弹层 ")
|
|
346
362
|
])),
|
|
347
363
|
_: 1
|
|
348
364
|
}, 8, ["icon"])
|
|
349
365
|
]),
|
|
350
366
|
_: 1
|
|
351
367
|
}),
|
|
352
|
-
|
|
353
|
-
default:
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
modelValue:
|
|
359
|
-
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) =>
|
|
368
|
+
vue.createVNode(_component_el_main, { style: { "padding": "10px" } }, {
|
|
369
|
+
default: vue.withCtx(() => [
|
|
370
|
+
vue.unref(isEditingNew) ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_1, [
|
|
371
|
+
vue.createElementVNode("div", _hoisted_2, [
|
|
372
|
+
vue.createElementVNode("div", _hoisted_3, [
|
|
373
|
+
vue.createVNode(_component_el_input, {
|
|
374
|
+
modelValue: vue.unref(newDialogName),
|
|
375
|
+
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => vue.isRef(newDialogName) ? newDialogName.value = $event : null),
|
|
360
376
|
placeholder: "请输入弹层名称",
|
|
361
377
|
size: "default",
|
|
362
|
-
onKeyup:
|
|
378
|
+
onKeyup: vue.withKeys(confirmAddDialog, ["enter"]),
|
|
363
379
|
class: "new-item-input"
|
|
364
380
|
}, null, 8, ["modelValue"]),
|
|
365
|
-
|
|
366
|
-
|
|
381
|
+
vue.createElementVNode("div", _hoisted_4, [
|
|
382
|
+
vue.createVNode(_component_el_button, {
|
|
367
383
|
size: "small",
|
|
368
|
-
icon:
|
|
384
|
+
icon: vue.unref(index$4.Close),
|
|
369
385
|
onClick: cancelAddDialog
|
|
370
386
|
}, {
|
|
371
|
-
default:
|
|
372
|
-
|
|
387
|
+
default: vue.withCtx(() => _cache[33] || (_cache[33] = [
|
|
388
|
+
vue.createTextVNode(" 取消 ")
|
|
373
389
|
])),
|
|
374
390
|
_: 1
|
|
375
391
|
}, 8, ["icon"]),
|
|
376
|
-
|
|
392
|
+
vue.createVNode(_component_el_button, {
|
|
377
393
|
type: "primary",
|
|
378
394
|
size: "small",
|
|
379
|
-
icon:
|
|
395
|
+
icon: vue.unref(index$4.Check),
|
|
380
396
|
onClick: confirmAddDialog
|
|
381
397
|
}, {
|
|
382
|
-
default:
|
|
383
|
-
|
|
398
|
+
default: vue.withCtx(() => _cache[34] || (_cache[34] = [
|
|
399
|
+
vue.createTextVNode(" 确认 ")
|
|
384
400
|
])),
|
|
385
401
|
_: 1
|
|
386
402
|
}, 8, ["icon"])
|
|
387
403
|
])
|
|
388
404
|
])
|
|
389
405
|
])
|
|
390
|
-
])) :
|
|
391
|
-
(
|
|
392
|
-
return
|
|
406
|
+
])) : vue.createCommentVNode("", true),
|
|
407
|
+
(vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(vue.unref(selectedDialogs), (dialog, index2) => {
|
|
408
|
+
return vue.openBlock(), vue.createElementBlock("div", {
|
|
393
409
|
key: index2,
|
|
394
|
-
class:
|
|
410
|
+
class: vue.normalizeClass([
|
|
395
411
|
"dialog-menu-item",
|
|
396
|
-
{ "is-active":
|
|
412
|
+
{ "is-active": vue.unref(activeDialogIndex) === index2 }
|
|
397
413
|
]),
|
|
398
414
|
onClick: ($event) => activeDialogIndex.value = index2
|
|
399
415
|
}, [
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
416
|
+
vue.createElementVNode("div", _hoisted_6, [
|
|
417
|
+
vue.createElementVNode("div", _hoisted_7, [
|
|
418
|
+
vue.withDirectives(vue.createVNode(_component_el_input, {
|
|
403
419
|
onBlur: ($event) => onEditOutside(),
|
|
404
420
|
maxlength: "30",
|
|
405
|
-
modelValue:
|
|
406
|
-
"onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) =>
|
|
421
|
+
modelValue: vue.unref(editingDialogName),
|
|
422
|
+
"onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) => vue.isRef(editingDialogName) ? editingDialogName.value = $event : null),
|
|
407
423
|
size: "small"
|
|
408
424
|
}, null, 8, ["onBlur", "modelValue"]), [
|
|
409
|
-
[
|
|
425
|
+
[vue.vShow, vue.unref(editingDialogIndex) === index2]
|
|
410
426
|
]),
|
|
411
|
-
|
|
427
|
+
vue.withDirectives(vue.createVNode(_component_el_link, {
|
|
412
428
|
icon: "Edit",
|
|
413
|
-
onClick:
|
|
429
|
+
onClick: vue.withModifiers(($event) => startEditDialog(index2), ["stop"])
|
|
414
430
|
}, {
|
|
415
|
-
default:
|
|
416
|
-
|
|
431
|
+
default: vue.withCtx(() => [
|
|
432
|
+
vue.createTextVNode(vue.toDisplayString(dialog.name), 1)
|
|
417
433
|
]),
|
|
418
434
|
_: 2
|
|
419
435
|
}, 1032, ["onClick"]), [
|
|
420
|
-
[
|
|
436
|
+
[vue.vShow, vue.unref(editingDialogIndex) !== index2]
|
|
421
437
|
])
|
|
422
438
|
]),
|
|
423
|
-
|
|
439
|
+
vue.createVNode(_component_el_icon, {
|
|
424
440
|
class: "delete-icon",
|
|
425
|
-
onClick:
|
|
441
|
+
onClick: vue.withModifiers(($event) => handleRemoveDialog(index2), ["stop"])
|
|
426
442
|
}, {
|
|
427
|
-
default:
|
|
428
|
-
|
|
443
|
+
default: vue.withCtx(() => [
|
|
444
|
+
vue.createVNode(vue.unref(index$4.Delete))
|
|
429
445
|
]),
|
|
430
446
|
_: 2
|
|
431
447
|
}, 1032, ["onClick"])
|
|
@@ -441,72 +457,72 @@ const _sfc_main = {
|
|
|
441
457
|
]),
|
|
442
458
|
_: 1
|
|
443
459
|
}),
|
|
444
|
-
|
|
445
|
-
default:
|
|
446
|
-
|
|
460
|
+
vue.createVNode(_component_el_main, { style: { "border-left": "1px solid #ebeef5", "padding": "0" } }, {
|
|
461
|
+
default: vue.withCtx(() => [
|
|
462
|
+
vue.unref(activeDialogIndex) !== -1 ? (vue.openBlock(), vue.createBlock(_component_el_container, {
|
|
447
463
|
key: 0,
|
|
448
464
|
style: { "height": "100%" }
|
|
449
465
|
}, {
|
|
450
|
-
default:
|
|
451
|
-
|
|
466
|
+
default: vue.withCtx(() => [
|
|
467
|
+
vue.createVNode(_component_el_header, {
|
|
452
468
|
height: "40px",
|
|
453
469
|
class: "dialog-header"
|
|
454
470
|
}, {
|
|
455
|
-
default:
|
|
456
|
-
|
|
471
|
+
default: vue.withCtx(() => [
|
|
472
|
+
vue.createElementVNode("div", null, vue.toDisplayString(vue.unref(currentDialog).name), 1)
|
|
457
473
|
]),
|
|
458
474
|
_: 1
|
|
459
475
|
}),
|
|
460
|
-
|
|
461
|
-
default:
|
|
462
|
-
|
|
463
|
-
default:
|
|
464
|
-
|
|
465
|
-
model:
|
|
476
|
+
vue.createVNode(_component_el_main, { style: { "padding": "12px 20px 0 20px" } }, {
|
|
477
|
+
default: vue.withCtx(() => [
|
|
478
|
+
vue.createVNode(_component_el_scrollbar, null, {
|
|
479
|
+
default: vue.withCtx(() => [
|
|
480
|
+
vue.createVNode(_component_el_form, {
|
|
481
|
+
model: vue.unref(currentDialog),
|
|
466
482
|
"label-width": "130px",
|
|
467
483
|
style: { "padding-right": "20px" },
|
|
468
484
|
size: "small"
|
|
469
485
|
}, {
|
|
470
|
-
default:
|
|
471
|
-
|
|
472
|
-
default:
|
|
473
|
-
|
|
474
|
-
modelValue:
|
|
475
|
-
"onUpdate:modelValue": _cache[2] || (_cache[2] = ($event) =>
|
|
486
|
+
default: vue.withCtx(() => [
|
|
487
|
+
vue.createVNode(_component_el_form_item, { label: "弹层标题" }, {
|
|
488
|
+
default: vue.withCtx(() => [
|
|
489
|
+
vue.createVNode(_component_el_input, {
|
|
490
|
+
modelValue: vue.unref(currentDialog).dialogTitle,
|
|
491
|
+
"onUpdate:modelValue": _cache[2] || (_cache[2] = ($event) => vue.unref(currentDialog).dialogTitle = $event),
|
|
476
492
|
placeholder: "请输入弹层标题",
|
|
477
493
|
clearable: ""
|
|
478
494
|
}, null, 8, ["modelValue"])
|
|
479
495
|
]),
|
|
480
496
|
_: 1
|
|
481
497
|
}),
|
|
482
|
-
|
|
483
|
-
default:
|
|
484
|
-
|
|
485
|
-
modelValue:
|
|
486
|
-
"onUpdate:modelValue": _cache[3] || (_cache[3] = ($event) =>
|
|
498
|
+
vue.createVNode(_component_el_form_item, { label: "弹层尺寸" }, {
|
|
499
|
+
default: vue.withCtx(() => [
|
|
500
|
+
vue.createVNode(_component_el_radio_group, {
|
|
501
|
+
modelValue: vue.unref(currentDialog).dialogSize,
|
|
502
|
+
"onUpdate:modelValue": _cache[3] || (_cache[3] = ($event) => vue.unref(currentDialog).dialogSize = $event)
|
|
487
503
|
}, {
|
|
488
|
-
default:
|
|
489
|
-
|
|
490
|
-
default:
|
|
491
|
-
|
|
504
|
+
default: vue.withCtx(() => [
|
|
505
|
+
vue.createVNode(_component_el_radio_button, { value: "standard" }, {
|
|
506
|
+
default: vue.withCtx(() => _cache[35] || (_cache[35] = [
|
|
507
|
+
vue.createTextVNode("标准")
|
|
492
508
|
])),
|
|
493
509
|
_: 1
|
|
494
510
|
}),
|
|
495
|
-
|
|
496
|
-
default:
|
|
497
|
-
|
|
511
|
+
vue.createVNode(_component_el_radio_button, { value: "large" }, {
|
|
512
|
+
default: vue.withCtx(() => _cache[36] || (_cache[36] = [
|
|
513
|
+
vue.createTextVNode("更大")
|
|
498
514
|
])),
|
|
499
515
|
_: 1
|
|
500
516
|
}),
|
|
501
|
-
|
|
502
|
-
default:
|
|
503
|
-
|
|
517
|
+
vue.createVNode(_component_el_radio_button, { value: "small" }, {
|
|
518
|
+
default: vue.withCtx(() => _cache[37] || (_cache[37] = [
|
|
519
|
+
vue.createTextVNode("更小")
|
|
504
520
|
])),
|
|
505
521
|
_: 1
|
|
506
522
|
}),
|
|
507
|
-
|
|
508
|
-
default:
|
|
509
|
-
|
|
523
|
+
vue.createVNode(_component_el_radio_button, { value: "custom" }, {
|
|
524
|
+
default: vue.withCtx(() => _cache[38] || (_cache[38] = [
|
|
525
|
+
vue.createTextVNode("自定义")
|
|
510
526
|
])),
|
|
511
527
|
_: 1
|
|
512
528
|
})
|
|
@@ -516,65 +532,65 @@ const _sfc_main = {
|
|
|
516
532
|
]),
|
|
517
533
|
_: 1
|
|
518
534
|
}),
|
|
519
|
-
|
|
535
|
+
vue.unref(currentDialog).dialogSize === "custom" ? (vue.openBlock(), vue.createBlock(_component_el_form_item, {
|
|
520
536
|
key: 0,
|
|
521
537
|
label: "自定义尺寸"
|
|
522
538
|
}, {
|
|
523
|
-
default:
|
|
524
|
-
|
|
525
|
-
|
|
526
|
-
modelValue:
|
|
527
|
-
"onUpdate:modelValue": _cache[4] || (_cache[4] = ($event) =>
|
|
539
|
+
default: vue.withCtx(() => [
|
|
540
|
+
vue.createElementVNode("div", _hoisted_8, [
|
|
541
|
+
vue.createVNode(_component_el_input, {
|
|
542
|
+
modelValue: vue.unref(currentDialog).customWidth,
|
|
543
|
+
"onUpdate:modelValue": _cache[4] || (_cache[4] = ($event) => vue.unref(currentDialog).customWidth = $event),
|
|
528
544
|
placeholder: "宽度,如:800px、60%",
|
|
529
545
|
style: { "flex": "1" }
|
|
530
546
|
}, null, 8, ["modelValue"]),
|
|
531
|
-
|
|
532
|
-
modelValue:
|
|
533
|
-
"onUpdate:modelValue": _cache[5] || (_cache[5] = ($event) =>
|
|
547
|
+
vue.createVNode(_component_el_input, {
|
|
548
|
+
modelValue: vue.unref(currentDialog).customMaxHeight,
|
|
549
|
+
"onUpdate:modelValue": _cache[5] || (_cache[5] = ($event) => vue.unref(currentDialog).customMaxHeight = $event),
|
|
534
550
|
placeholder: "最大高度,如:600px、80vh",
|
|
535
551
|
style: { "flex": "1" }
|
|
536
552
|
}, null, 8, ["modelValue"])
|
|
537
553
|
])
|
|
538
554
|
]),
|
|
539
555
|
_: 1
|
|
540
|
-
})) :
|
|
541
|
-
|
|
542
|
-
default:
|
|
543
|
-
|
|
544
|
-
modelValue:
|
|
545
|
-
"onUpdate:modelValue": _cache[6] || (_cache[6] = ($event) =>
|
|
556
|
+
})) : vue.createCommentVNode("", true),
|
|
557
|
+
vue.createVNode(_component_el_form_item, { label: "弹层参数" }, {
|
|
558
|
+
default: vue.withCtx(() => [
|
|
559
|
+
vue.createVNode(ParamsConfig.default, {
|
|
560
|
+
modelValue: vue.unref(currentDialog).dialogParams,
|
|
561
|
+
"onUpdate:modelValue": _cache[6] || (_cache[6] = ($event) => vue.unref(currentDialog).dialogParams = $event)
|
|
546
562
|
}, null, 8, ["modelValue"])
|
|
547
563
|
]),
|
|
548
564
|
_: 1
|
|
549
565
|
}),
|
|
550
|
-
|
|
551
|
-
default:
|
|
552
|
-
|
|
553
|
-
modelValue:
|
|
554
|
-
"onUpdate:modelValue": _cache[7] || (_cache[7] = ($event) =>
|
|
566
|
+
vue.createVNode(_component_el_form_item, { label: "弹层类型" }, {
|
|
567
|
+
default: vue.withCtx(() => [
|
|
568
|
+
vue.createVNode(_component_el_radio_group, {
|
|
569
|
+
modelValue: vue.unref(currentDialog).contentSource,
|
|
570
|
+
"onUpdate:modelValue": _cache[7] || (_cache[7] = ($event) => vue.unref(currentDialog).contentSource = $event)
|
|
555
571
|
}, {
|
|
556
|
-
default:
|
|
557
|
-
|
|
558
|
-
default:
|
|
559
|
-
|
|
572
|
+
default: vue.withCtx(() => [
|
|
573
|
+
vue.createVNode(_component_el_radio_button, { value: "table" }, {
|
|
574
|
+
default: vue.withCtx(() => _cache[39] || (_cache[39] = [
|
|
575
|
+
vue.createTextVNode("列表")
|
|
560
576
|
])),
|
|
561
577
|
_: 1
|
|
562
578
|
}),
|
|
563
|
-
|
|
564
|
-
default:
|
|
565
|
-
|
|
579
|
+
vue.createVNode(_component_el_radio_button, { value: "form" }, {
|
|
580
|
+
default: vue.withCtx(() => _cache[40] || (_cache[40] = [
|
|
581
|
+
vue.createTextVNode("表单")
|
|
566
582
|
])),
|
|
567
583
|
_: 1
|
|
568
584
|
}),
|
|
569
|
-
|
|
570
|
-
default:
|
|
571
|
-
|
|
585
|
+
vue.createVNode(_component_el_radio_button, { value: "tree" }, {
|
|
586
|
+
default: vue.withCtx(() => _cache[41] || (_cache[41] = [
|
|
587
|
+
vue.createTextVNode("树形")
|
|
572
588
|
])),
|
|
573
589
|
_: 1
|
|
574
590
|
}),
|
|
575
|
-
|
|
576
|
-
default:
|
|
577
|
-
|
|
591
|
+
vue.createVNode(_component_el_radio_button, { value: "component" }, {
|
|
592
|
+
default: vue.withCtx(() => _cache[42] || (_cache[42] = [
|
|
593
|
+
vue.createTextVNode("组件")
|
|
578
594
|
])),
|
|
579
595
|
_: 1
|
|
580
596
|
})
|
|
@@ -584,23 +600,23 @@ const _sfc_main = {
|
|
|
584
600
|
]),
|
|
585
601
|
_: 1
|
|
586
602
|
}),
|
|
587
|
-
|
|
588
|
-
|
|
589
|
-
default:
|
|
590
|
-
|
|
591
|
-
modelValue:
|
|
592
|
-
"onUpdate:modelValue": _cache[8] || (_cache[8] = ($event) =>
|
|
603
|
+
vue.unref(currentDialog).contentSource === "table" ? (vue.openBlock(), vue.createElementBlock(vue.Fragment, { key: 1 }, [
|
|
604
|
+
vue.createVNode(_component_el_form_item, { label: "列表内容" }, {
|
|
605
|
+
default: vue.withCtx(() => [
|
|
606
|
+
vue.createVNode(_component_el_radio_group, {
|
|
607
|
+
modelValue: vue.unref(currentDialog).tableContent,
|
|
608
|
+
"onUpdate:modelValue": _cache[8] || (_cache[8] = ($event) => vue.unref(currentDialog).tableContent = $event)
|
|
593
609
|
}, {
|
|
594
|
-
default:
|
|
595
|
-
|
|
596
|
-
default:
|
|
597
|
-
|
|
610
|
+
default: vue.withCtx(() => [
|
|
611
|
+
vue.createVNode(_component_el_radio_button, { value: "select" }, {
|
|
612
|
+
default: vue.withCtx(() => _cache[43] || (_cache[43] = [
|
|
613
|
+
vue.createTextVNode("选择列表")
|
|
598
614
|
])),
|
|
599
615
|
_: 1
|
|
600
616
|
}),
|
|
601
|
-
|
|
602
|
-
default:
|
|
603
|
-
|
|
617
|
+
vue.createVNode(_component_el_radio_button, { value: "custom" }, {
|
|
618
|
+
default: vue.withCtx(() => _cache[44] || (_cache[44] = [
|
|
619
|
+
vue.createTextVNode("自定义")
|
|
604
620
|
])),
|
|
605
621
|
_: 1
|
|
606
622
|
})
|
|
@@ -610,32 +626,32 @@ const _sfc_main = {
|
|
|
610
626
|
]),
|
|
611
627
|
_: 1
|
|
612
628
|
}),
|
|
613
|
-
|
|
614
|
-
|
|
615
|
-
default:
|
|
616
|
-
|
|
617
|
-
modelValue:
|
|
618
|
-
"onUpdate:modelValue": _cache[9] || (_cache[9] = ($event) =>
|
|
619
|
-
templateKey:
|
|
620
|
-
"onUpdate:templateKey": _cache[10] || (_cache[10] = ($event) =>
|
|
621
|
-
templateId:
|
|
622
|
-
"onUpdate:templateId": _cache[11] || (_cache[11] = ($event) =>
|
|
629
|
+
vue.unref(currentDialog).tableContent === "select" ? (vue.openBlock(), vue.createElementBlock(vue.Fragment, { key: 0 }, [
|
|
630
|
+
vue.createVNode(_component_el_form_item, { label: "选择列表" }, {
|
|
631
|
+
default: vue.withCtx(() => [
|
|
632
|
+
vue.createVNode(TemplateSelector.default, {
|
|
633
|
+
modelValue: vue.unref(currentDialog).subTableName,
|
|
634
|
+
"onUpdate:modelValue": _cache[9] || (_cache[9] = ($event) => vue.unref(currentDialog).subTableName = $event),
|
|
635
|
+
templateKey: vue.unref(currentDialog).subTableKey,
|
|
636
|
+
"onUpdate:templateKey": _cache[10] || (_cache[10] = ($event) => vue.unref(currentDialog).subTableKey = $event),
|
|
637
|
+
templateId: vue.unref(currentDialog).subTableId,
|
|
638
|
+
"onUpdate:templateId": _cache[11] || (_cache[11] = ($event) => vue.unref(currentDialog).subTableId = $event),
|
|
623
639
|
templateType: "table",
|
|
624
640
|
onConfirm: tableSelectorConfirm
|
|
625
641
|
}, null, 8, ["modelValue", "templateKey", "templateId"])
|
|
626
642
|
]),
|
|
627
643
|
_: 1
|
|
628
644
|
}),
|
|
629
|
-
|
|
630
|
-
default:
|
|
631
|
-
|
|
632
|
-
modelValue:
|
|
633
|
-
"onUpdate:modelValue": _cache[12] || (_cache[12] = ($event) =>
|
|
645
|
+
vue.createVNode(_component_el_form_item, { label: "列表模式" }, {
|
|
646
|
+
default: vue.withCtx(() => [
|
|
647
|
+
vue.createVNode(_component_el_select, {
|
|
648
|
+
modelValue: vue.unref(currentDialog).subTableMode,
|
|
649
|
+
"onUpdate:modelValue": _cache[12] || (_cache[12] = ($event) => vue.unref(currentDialog).subTableMode = $event),
|
|
634
650
|
clearable: ""
|
|
635
651
|
}, {
|
|
636
|
-
default:
|
|
637
|
-
(
|
|
638
|
-
return
|
|
652
|
+
default: vue.withCtx(() => [
|
|
653
|
+
(vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(vue.unref(tableMode), (mode) => {
|
|
654
|
+
return vue.openBlock(), vue.createBlock(_component_el_option, {
|
|
639
655
|
key: mode.key,
|
|
640
656
|
label: mode.name,
|
|
641
657
|
value: mode.key
|
|
@@ -647,77 +663,77 @@ const _sfc_main = {
|
|
|
647
663
|
]),
|
|
648
664
|
_: 1
|
|
649
665
|
})
|
|
650
|
-
], 64)) :
|
|
651
|
-
|
|
652
|
-
|
|
653
|
-
default:
|
|
654
|
-
|
|
655
|
-
|
|
656
|
-
|
|
666
|
+
], 64)) : vue.createCommentVNode("", true),
|
|
667
|
+
vue.unref(currentDialog).tableContent === "custom" ? (vue.openBlock(), vue.createElementBlock(vue.Fragment, { key: 1 }, [
|
|
668
|
+
vue.createVNode(_component_el_form_item, { label: "列配置" }, {
|
|
669
|
+
default: vue.withCtx(() => [
|
|
670
|
+
vue.createElementVNode("div", _hoisted_9, [
|
|
671
|
+
vue.createElementVNode("div", _hoisted_10, [
|
|
672
|
+
vue.createVNode(_component_el_button, {
|
|
657
673
|
type: "primary",
|
|
658
674
|
size: "small",
|
|
659
675
|
onClick: addTableCol,
|
|
660
676
|
icon: "Plus",
|
|
661
677
|
link: ""
|
|
662
678
|
}, {
|
|
663
|
-
default:
|
|
664
|
-
|
|
679
|
+
default: vue.withCtx(() => _cache[45] || (_cache[45] = [
|
|
680
|
+
vue.createTextVNode(" 添加列配置 ")
|
|
665
681
|
])),
|
|
666
682
|
_: 1
|
|
667
683
|
})
|
|
668
684
|
]),
|
|
669
|
-
|
|
670
|
-
|
|
671
|
-
modelValue:
|
|
672
|
-
"onUpdate:modelValue": _cache[13] || (_cache[13] = ($event) =>
|
|
685
|
+
vue.createElementVNode("div", _hoisted_11, [
|
|
686
|
+
vue.createVNode(vue.unref(vueDraggablePlus.VueDraggable), {
|
|
687
|
+
modelValue: vue.unref(currentDialog).customTableConfig.fieldsData,
|
|
688
|
+
"onUpdate:modelValue": _cache[13] || (_cache[13] = ($event) => vue.unref(currentDialog).customTableConfig.fieldsData = $event),
|
|
673
689
|
animation: 150,
|
|
674
690
|
handle: ".drag-handle"
|
|
675
691
|
}, {
|
|
676
|
-
default:
|
|
677
|
-
(
|
|
678
|
-
return
|
|
692
|
+
default: vue.withCtx(() => [
|
|
693
|
+
(vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(vue.unref(currentDialog).customTableConfig.fieldsData, (col, index2) => {
|
|
694
|
+
return vue.openBlock(), vue.createElementBlock("div", {
|
|
679
695
|
key: index2,
|
|
680
696
|
class: "col-rule-item"
|
|
681
697
|
}, [
|
|
682
|
-
|
|
683
|
-
|
|
684
|
-
default:
|
|
685
|
-
|
|
698
|
+
vue.createElementVNode("div", _hoisted_12, [
|
|
699
|
+
vue.createVNode(_component_el_icon, null, {
|
|
700
|
+
default: vue.withCtx(() => [
|
|
701
|
+
vue.createVNode(vue.unref(index$4.Rank))
|
|
686
702
|
]),
|
|
687
703
|
_: 1
|
|
688
704
|
})
|
|
689
705
|
]),
|
|
690
|
-
|
|
706
|
+
vue.createVNode(_component_el_input, {
|
|
691
707
|
modelValue: col.label,
|
|
692
708
|
"onUpdate:modelValue": ($event) => col.label = $event,
|
|
693
709
|
size: "small",
|
|
694
710
|
placeholder: "列标题"
|
|
695
711
|
}, null, 8, ["modelValue", "onUpdate:modelValue"]),
|
|
696
|
-
|
|
712
|
+
vue.createVNode(_component_el_input, {
|
|
697
713
|
modelValue: col.fieldName,
|
|
698
714
|
"onUpdate:modelValue": ($event) => col.fieldName = $event,
|
|
699
715
|
size: "small",
|
|
700
716
|
placeholder: "字段名"
|
|
701
717
|
}, null, 8, ["modelValue", "onUpdate:modelValue"]),
|
|
702
|
-
|
|
703
|
-
|
|
718
|
+
vue.createElementVNode("div", _hoisted_13, [
|
|
719
|
+
vue.createVNode(_component_el_popover, {
|
|
704
720
|
placement: "right",
|
|
705
721
|
width: 200,
|
|
706
722
|
trigger: "click"
|
|
707
723
|
}, {
|
|
708
|
-
reference:
|
|
709
|
-
|
|
710
|
-
icon:
|
|
724
|
+
reference: vue.withCtx(() => [
|
|
725
|
+
vue.createVNode(_component_el_button, {
|
|
726
|
+
icon: vue.unref(index$4.Edit),
|
|
711
727
|
link: "",
|
|
712
728
|
type: "primary",
|
|
713
729
|
class: "edit-btn"
|
|
714
730
|
}, null, 8, ["icon"])
|
|
715
731
|
]),
|
|
716
|
-
default:
|
|
717
|
-
|
|
718
|
-
|
|
719
|
-
default:
|
|
720
|
-
|
|
732
|
+
default: vue.withCtx(() => [
|
|
733
|
+
vue.createElementVNode("div", _hoisted_14, [
|
|
734
|
+
vue.createVNode(_component_el_scrollbar, { "wrap-class": "col-property-scrollbar" }, {
|
|
735
|
+
default: vue.withCtx(() => [
|
|
736
|
+
vue.createVNode(widgets.default, {
|
|
721
737
|
column: col,
|
|
722
738
|
isComp: ""
|
|
723
739
|
}, null, 8, ["column"])
|
|
@@ -728,8 +744,8 @@ const _sfc_main = {
|
|
|
728
744
|
]),
|
|
729
745
|
_: 2
|
|
730
746
|
}, 1024),
|
|
731
|
-
|
|
732
|
-
icon:
|
|
747
|
+
vue.createVNode(_component_el_button, {
|
|
748
|
+
icon: vue.unref(index$4.Delete),
|
|
733
749
|
link: "",
|
|
734
750
|
type: "danger",
|
|
735
751
|
class: "delete-btn",
|
|
@@ -746,68 +762,69 @@ const _sfc_main = {
|
|
|
746
762
|
]),
|
|
747
763
|
_: 1
|
|
748
764
|
}),
|
|
749
|
-
|
|
750
|
-
default:
|
|
751
|
-
|
|
752
|
-
modelValue:
|
|
753
|
-
"onUpdate:modelValue": _cache[14] || (_cache[14] = ($event) =>
|
|
765
|
+
vue.createVNode(_component_el_form_item, { label: "主键字段" }, {
|
|
766
|
+
default: vue.withCtx(() => [
|
|
767
|
+
vue.createVNode(_component_el_input, {
|
|
768
|
+
modelValue: vue.unref(currentDialog).customTableConfig.pkFieldName,
|
|
769
|
+
"onUpdate:modelValue": _cache[14] || (_cache[14] = ($event) => vue.unref(currentDialog).customTableConfig.pkFieldName = $event),
|
|
754
770
|
placeholder: "请输入主键字段",
|
|
755
771
|
clearable: ""
|
|
756
772
|
}, null, 8, ["modelValue"])
|
|
757
773
|
]),
|
|
758
774
|
_: 1
|
|
759
775
|
}),
|
|
760
|
-
|
|
761
|
-
default:
|
|
762
|
-
|
|
763
|
-
modelValue:
|
|
764
|
-
"onUpdate:modelValue": _cache[15] || (_cache[15] = ($event) =>
|
|
765
|
-
|
|
776
|
+
vue.createVNode(_component_el_form_item, { label: "数据源" }, {
|
|
777
|
+
default: vue.withCtx(() => [
|
|
778
|
+
vue.createVNode(DataSourceSelect.default, {
|
|
779
|
+
modelValue: vue.unref(currentDialog).customTableConfig.dataSourceId,
|
|
780
|
+
"onUpdate:modelValue": _cache[15] || (_cache[15] = ($event) => vue.unref(currentDialog).customTableConfig.dataSourceId = $event),
|
|
781
|
+
"data-sources": vue.unref(currentDialog).customTableConfig.dataSources
|
|
782
|
+
}, null, 8, ["modelValue", "data-sources"])
|
|
766
783
|
]),
|
|
767
784
|
_: 1
|
|
768
785
|
})
|
|
769
|
-
], 64)) :
|
|
770
|
-
|
|
771
|
-
default:
|
|
772
|
-
|
|
773
|
-
modelValue:
|
|
774
|
-
"onUpdate:modelValue": _cache[16] || (_cache[16] = ($event) =>
|
|
786
|
+
], 64)) : vue.createCommentVNode("", true),
|
|
787
|
+
vue.createVNode(_component_el_form_item, { label: "是否翻页" }, {
|
|
788
|
+
default: vue.withCtx(() => [
|
|
789
|
+
vue.createVNode(_component_el_switch, {
|
|
790
|
+
modelValue: vue.unref(currentDialog).isSubTablePagination,
|
|
791
|
+
"onUpdate:modelValue": _cache[16] || (_cache[16] = ($event) => vue.unref(currentDialog).isSubTablePagination = $event)
|
|
775
792
|
}, null, 8, ["modelValue"])
|
|
776
793
|
]),
|
|
777
794
|
_: 1
|
|
778
795
|
}),
|
|
779
|
-
|
|
780
|
-
default:
|
|
781
|
-
|
|
782
|
-
modelValue:
|
|
783
|
-
"onUpdate:modelValue": _cache[17] || (_cache[17] = ($event) =>
|
|
796
|
+
vue.createVNode(_component_el_form_item, { label: "是否只读" }, {
|
|
797
|
+
default: vue.withCtx(() => [
|
|
798
|
+
vue.createVNode(_component_el_switch, {
|
|
799
|
+
modelValue: vue.unref(currentDialog).isSubTableReadOnly,
|
|
800
|
+
"onUpdate:modelValue": _cache[17] || (_cache[17] = ($event) => vue.unref(currentDialog).isSubTableReadOnly = $event)
|
|
784
801
|
}, null, 8, ["modelValue"])
|
|
785
802
|
]),
|
|
786
803
|
_: 1
|
|
787
804
|
}),
|
|
788
|
-
!
|
|
789
|
-
|
|
790
|
-
default:
|
|
791
|
-
|
|
792
|
-
modelValue:
|
|
793
|
-
"onUpdate:modelValue": _cache[18] || (_cache[18] = ($event) =>
|
|
805
|
+
!vue.unref(currentDialog).isSubTableReadOnly ? (vue.openBlock(), vue.createElementBlock(vue.Fragment, { key: 2 }, [
|
|
806
|
+
vue.createVNode(_component_el_form_item, { label: "选择模式" }, {
|
|
807
|
+
default: vue.withCtx(() => [
|
|
808
|
+
vue.createVNode(_component_el_radio_group, {
|
|
809
|
+
modelValue: vue.unref(currentDialog).selectionMode,
|
|
810
|
+
"onUpdate:modelValue": _cache[18] || (_cache[18] = ($event) => vue.unref(currentDialog).selectionMode = $event)
|
|
794
811
|
}, {
|
|
795
|
-
default:
|
|
796
|
-
|
|
797
|
-
default:
|
|
798
|
-
|
|
812
|
+
default: vue.withCtx(() => [
|
|
813
|
+
vue.createVNode(_component_el_radio_button, { value: "none" }, {
|
|
814
|
+
default: vue.withCtx(() => _cache[46] || (_cache[46] = [
|
|
815
|
+
vue.createTextVNode("无")
|
|
799
816
|
])),
|
|
800
817
|
_: 1
|
|
801
818
|
}),
|
|
802
|
-
|
|
803
|
-
default:
|
|
804
|
-
|
|
819
|
+
vue.createVNode(_component_el_radio_button, { value: "single" }, {
|
|
820
|
+
default: vue.withCtx(() => _cache[47] || (_cache[47] = [
|
|
821
|
+
vue.createTextVNode("单选")
|
|
805
822
|
])),
|
|
806
823
|
_: 1
|
|
807
824
|
}),
|
|
808
|
-
|
|
809
|
-
default:
|
|
810
|
-
|
|
825
|
+
vue.createVNode(_component_el_radio_button, { value: "multiple" }, {
|
|
826
|
+
default: vue.withCtx(() => _cache[48] || (_cache[48] = [
|
|
827
|
+
vue.createTextVNode("多选")
|
|
811
828
|
])),
|
|
812
829
|
_: 1
|
|
813
830
|
})
|
|
@@ -817,89 +834,89 @@ const _sfc_main = {
|
|
|
817
834
|
]),
|
|
818
835
|
_: 1
|
|
819
836
|
}),
|
|
820
|
-
|
|
821
|
-
|
|
822
|
-
default:
|
|
823
|
-
|
|
837
|
+
vue.unref(currentDialog).selectionMode != "none" ? (vue.openBlock(), vue.createElementBlock(vue.Fragment, { key: 0 }, [
|
|
838
|
+
vue.createVNode(_component_el_form_item, { label: "选取后反显格式" }, {
|
|
839
|
+
default: vue.withCtx(() => [
|
|
840
|
+
vue.createVNode(vue.unref(FormulaEditorInput.default), {
|
|
824
841
|
title: "反显格式配置",
|
|
825
|
-
formulaConf:
|
|
826
|
-
"onUpdate:formulaConf": _cache[19] || (_cache[19] = ($event) =>
|
|
827
|
-
modelValue:
|
|
828
|
-
"onUpdate:modelValue": _cache[20] || (_cache[20] = ($event) =>
|
|
829
|
-
fieldList:
|
|
842
|
+
formulaConf: vue.unref(currentDialog).displayFormat,
|
|
843
|
+
"onUpdate:formulaConf": _cache[19] || (_cache[19] = ($event) => vue.unref(currentDialog).displayFormat = $event),
|
|
844
|
+
modelValue: vue.unref(currentDialog).displayFormatText,
|
|
845
|
+
"onUpdate:modelValue": _cache[20] || (_cache[20] = ($event) => vue.unref(currentDialog).displayFormatText = $event),
|
|
846
|
+
fieldList: vue.unref(tableFields)
|
|
830
847
|
}, null, 8, ["formulaConf", "modelValue", "fieldList"])
|
|
831
848
|
]),
|
|
832
849
|
_: 1
|
|
833
850
|
}),
|
|
834
|
-
|
|
851
|
+
vue.unref(currentDialog).selectionMode == "single" ? (vue.openBlock(), vue.createBlock(_component_el_form_item, {
|
|
835
852
|
key: 0,
|
|
836
853
|
label: "行数据全部赋值表单"
|
|
837
854
|
}, {
|
|
838
|
-
default:
|
|
839
|
-
|
|
840
|
-
modelValue:
|
|
841
|
-
"onUpdate:modelValue": _cache[21] || (_cache[21] = ($event) =>
|
|
855
|
+
default: vue.withCtx(() => [
|
|
856
|
+
vue.createVNode(_component_el_switch, {
|
|
857
|
+
modelValue: vue.unref(currentDialog).isRowDataAssignToForm,
|
|
858
|
+
"onUpdate:modelValue": _cache[21] || (_cache[21] = ($event) => vue.unref(currentDialog).isRowDataAssignToForm = $event)
|
|
842
859
|
}, null, 8, ["modelValue"])
|
|
843
860
|
]),
|
|
844
861
|
_: 1
|
|
845
|
-
})) :
|
|
846
|
-
|
|
847
|
-
default:
|
|
848
|
-
|
|
849
|
-
modelValue:
|
|
850
|
-
"onUpdate:modelValue": _cache[22] || (_cache[22] = ($event) =>
|
|
862
|
+
})) : vue.createCommentVNode("", true),
|
|
863
|
+
vue.createVNode(_component_el_form_item, { label: "选取后表单赋值映射" }, {
|
|
864
|
+
default: vue.withCtx(() => [
|
|
865
|
+
vue.createVNode(FieldSetMapping.default, {
|
|
866
|
+
modelValue: vue.unref(currentDialog).fieldMapping,
|
|
867
|
+
"onUpdate:modelValue": _cache[22] || (_cache[22] = ($event) => vue.unref(currentDialog).fieldMapping = $event),
|
|
851
868
|
fieldLabel: "赋值表单字段",
|
|
852
869
|
valueLabel: "列表字段",
|
|
853
|
-
valueOptions:
|
|
870
|
+
valueOptions: vue.unref(tableFields),
|
|
854
871
|
valueSelectMode: ""
|
|
855
872
|
}, null, 8, ["modelValue", "valueOptions"])
|
|
856
873
|
]),
|
|
857
874
|
_: 1
|
|
858
875
|
})
|
|
859
|
-
], 64)) :
|
|
860
|
-
|
|
861
|
-
default:
|
|
862
|
-
|
|
863
|
-
config:
|
|
876
|
+
], 64)) : vue.createCommentVNode("", true),
|
|
877
|
+
vue.createVNode(_component_el_form_item, { label: "回调事件配置" }, {
|
|
878
|
+
default: vue.withCtx(() => [
|
|
879
|
+
vue.createVNode(OnlyFLowConfigButton.default, {
|
|
880
|
+
config: vue.unref(currentDialog).callbackEventConfig,
|
|
864
881
|
onConfirm: handleOnlyFlowConfirm
|
|
865
882
|
}, null, 8, ["config"])
|
|
866
883
|
]),
|
|
867
884
|
_: 1
|
|
868
885
|
})
|
|
869
|
-
], 64)) :
|
|
870
|
-
], 64)) :
|
|
871
|
-
|
|
872
|
-
|
|
873
|
-
default:
|
|
874
|
-
|
|
875
|
-
modelValue:
|
|
876
|
-
"onUpdate:modelValue": _cache[23] || (_cache[23] = ($event) =>
|
|
877
|
-
templateKey:
|
|
878
|
-
"onUpdate:templateKey": _cache[24] || (_cache[24] = ($event) =>
|
|
879
|
-
templateId:
|
|
880
|
-
"onUpdate:templateId": _cache[25] || (_cache[25] = ($event) =>
|
|
886
|
+
], 64)) : vue.createCommentVNode("", true)
|
|
887
|
+
], 64)) : vue.createCommentVNode("", true),
|
|
888
|
+
vue.unref(currentDialog).contentSource === "form" ? (vue.openBlock(), vue.createElementBlock(vue.Fragment, { key: 2 }, [
|
|
889
|
+
vue.createVNode(_component_el_form_item, { label: "选择表单" }, {
|
|
890
|
+
default: vue.withCtx(() => [
|
|
891
|
+
vue.createVNode(TemplateSelector.default, {
|
|
892
|
+
modelValue: vue.unref(currentDialog).subFormName,
|
|
893
|
+
"onUpdate:modelValue": _cache[23] || (_cache[23] = ($event) => vue.unref(currentDialog).subFormName = $event),
|
|
894
|
+
templateKey: vue.unref(currentDialog).subFormKey,
|
|
895
|
+
"onUpdate:templateKey": _cache[24] || (_cache[24] = ($event) => vue.unref(currentDialog).subFormKey = $event),
|
|
896
|
+
templateId: vue.unref(currentDialog).subFormId,
|
|
897
|
+
"onUpdate:templateId": _cache[25] || (_cache[25] = ($event) => vue.unref(currentDialog).subFormId = $event),
|
|
881
898
|
templateType: "form",
|
|
882
899
|
onConfirm: formSelectorConfirm
|
|
883
900
|
}, null, 8, ["modelValue", "templateKey", "templateId"])
|
|
884
901
|
]),
|
|
885
902
|
_: 1
|
|
886
903
|
}),
|
|
887
|
-
|
|
888
|
-
default:
|
|
889
|
-
|
|
890
|
-
modelValue:
|
|
891
|
-
"onUpdate:modelValue": _cache[26] || (_cache[26] = ($event) =>
|
|
904
|
+
vue.createVNode(_component_el_form_item, { label: "表单模式" }, {
|
|
905
|
+
default: vue.withCtx(() => [
|
|
906
|
+
vue.createVNode(_component_el_radio_group, {
|
|
907
|
+
modelValue: vue.unref(currentDialog).subFormMode,
|
|
908
|
+
"onUpdate:modelValue": _cache[26] || (_cache[26] = ($event) => vue.unref(currentDialog).subFormMode = $event)
|
|
892
909
|
}, {
|
|
893
|
-
default:
|
|
894
|
-
|
|
895
|
-
default:
|
|
896
|
-
|
|
910
|
+
default: vue.withCtx(() => [
|
|
911
|
+
vue.createVNode(_component_el_radio_button, { value: "edit" }, {
|
|
912
|
+
default: vue.withCtx(() => _cache[49] || (_cache[49] = [
|
|
913
|
+
vue.createTextVNode("编辑")
|
|
897
914
|
])),
|
|
898
915
|
_: 1
|
|
899
916
|
}),
|
|
900
|
-
|
|
901
|
-
default:
|
|
902
|
-
|
|
917
|
+
vue.createVNode(_component_el_radio_button, { value: "query" }, {
|
|
918
|
+
default: vue.withCtx(() => _cache[50] || (_cache[50] = [
|
|
919
|
+
vue.createTextVNode("查看")
|
|
903
920
|
])),
|
|
904
921
|
_: 1
|
|
905
922
|
})
|
|
@@ -909,18 +926,18 @@ const _sfc_main = {
|
|
|
909
926
|
]),
|
|
910
927
|
_: 1
|
|
911
928
|
}),
|
|
912
|
-
|
|
913
|
-
default:
|
|
914
|
-
|
|
915
|
-
!
|
|
916
|
-
(
|
|
917
|
-
return
|
|
929
|
+
vue.createVNode(_component_el_form_item, { label: "表单底部按钮" }, {
|
|
930
|
+
default: vue.withCtx(() => [
|
|
931
|
+
vue.createElementVNode("div", _hoisted_15, [
|
|
932
|
+
!vue.unref(formFooterBtn) || vue.unref(formFooterBtn).length === 0 ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_16, " 暂无可用按钮 ")) : (vue.openBlock(), vue.createElementBlock("div", _hoisted_17, [
|
|
933
|
+
(vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(vue.unref(formFooterBtn), (btn) => {
|
|
934
|
+
return vue.openBlock(), vue.createBlock(_component_el_checkbox, {
|
|
918
935
|
key: btn.id,
|
|
919
936
|
"model-value": isButtonSelected(btn.id),
|
|
920
937
|
onChange: ($event) => toggleButton(btn)
|
|
921
938
|
}, {
|
|
922
|
-
default:
|
|
923
|
-
|
|
939
|
+
default: vue.withCtx(() => [
|
|
940
|
+
vue.createTextVNode(vue.toDisplayString(btn.label), 1)
|
|
924
941
|
]),
|
|
925
942
|
_: 2
|
|
926
943
|
}, 1032, ["model-value", "onChange"]);
|
|
@@ -930,38 +947,38 @@ const _sfc_main = {
|
|
|
930
947
|
]),
|
|
931
948
|
_: 1
|
|
932
949
|
})
|
|
933
|
-
], 64)) :
|
|
934
|
-
|
|
935
|
-
|
|
936
|
-
default:
|
|
937
|
-
|
|
938
|
-
modelValue:
|
|
939
|
-
"onUpdate:modelValue": _cache[27] || (_cache[27] = ($event) =>
|
|
950
|
+
], 64)) : vue.createCommentVNode("", true),
|
|
951
|
+
vue.unref(currentDialog).contentSource === "component" ? (vue.openBlock(), vue.createElementBlock(vue.Fragment, { key: 3 }, [
|
|
952
|
+
vue.createVNode(_component_el_form_item, { label: "组件路由地址" }, {
|
|
953
|
+
default: vue.withCtx(() => [
|
|
954
|
+
vue.createVNode(_component_el_input, {
|
|
955
|
+
modelValue: vue.unref(currentDialog).componentPath,
|
|
956
|
+
"onUpdate:modelValue": _cache[27] || (_cache[27] = ($event) => vue.unref(currentDialog).componentPath = $event),
|
|
940
957
|
placeholder: "请输入组件路径",
|
|
941
958
|
clearable: ""
|
|
942
959
|
}, null, 8, ["modelValue"])
|
|
943
960
|
]),
|
|
944
961
|
_: 1
|
|
945
962
|
}),
|
|
946
|
-
|
|
947
|
-
default:
|
|
948
|
-
|
|
949
|
-
modelValue:
|
|
950
|
-
"onUpdate:modelValue": _cache[28] || (_cache[28] = ($event) =>
|
|
963
|
+
vue.createVNode(_component_el_form_item, { label: "组件参数" }, {
|
|
964
|
+
default: vue.withCtx(() => [
|
|
965
|
+
vue.createVNode(ParamsConfig.default, {
|
|
966
|
+
modelValue: vue.unref(currentDialog).componentParams,
|
|
967
|
+
"onUpdate:modelValue": _cache[28] || (_cache[28] = ($event) => vue.unref(currentDialog).componentParams = $event)
|
|
951
968
|
}, null, 8, ["modelValue"])
|
|
952
969
|
]),
|
|
953
970
|
_: 1
|
|
954
971
|
}),
|
|
955
|
-
|
|
956
|
-
default:
|
|
957
|
-
|
|
958
|
-
modelValue:
|
|
959
|
-
"onUpdate:modelValue": _cache[29] || (_cache[29] = ($event) =>
|
|
972
|
+
vue.createVNode(_component_el_form_item, { label: "组件是否是弹层" }, {
|
|
973
|
+
default: vue.withCtx(() => [
|
|
974
|
+
vue.createVNode(_component_el_switch, {
|
|
975
|
+
modelValue: vue.unref(currentDialog).componentIsDialog,
|
|
976
|
+
"onUpdate:modelValue": _cache[29] || (_cache[29] = ($event) => vue.unref(currentDialog).componentIsDialog = $event)
|
|
960
977
|
}, null, 8, ["modelValue"])
|
|
961
978
|
]),
|
|
962
979
|
_: 1
|
|
963
980
|
})
|
|
964
|
-
], 64)) :
|
|
981
|
+
], 64)) : vue.createCommentVNode("", true)
|
|
965
982
|
]),
|
|
966
983
|
_: 1
|
|
967
984
|
}, 8, ["model"])
|
|
@@ -973,7 +990,7 @@ const _sfc_main = {
|
|
|
973
990
|
})
|
|
974
991
|
]),
|
|
975
992
|
_: 1
|
|
976
|
-
})) : (
|
|
993
|
+
})) : (vue.openBlock(), vue.createElementBlock("div", _hoisted_18, "请从左侧选择一个弹层"))
|
|
977
994
|
]),
|
|
978
995
|
_: 1
|
|
979
996
|
})
|
|
@@ -986,5 +1003,5 @@ const _sfc_main = {
|
|
|
986
1003
|
};
|
|
987
1004
|
}
|
|
988
1005
|
};
|
|
989
|
-
const DialogDialog = /* @__PURE__ */ _pluginVue_exportHelper.default(_sfc_main, [["__scopeId", "data-v-
|
|
1006
|
+
const DialogDialog = /* @__PURE__ */ _pluginVue_exportHelper.default(_sfc_main, [["__scopeId", "data-v-1c16c4fd"]]);
|
|
990
1007
|
exports.default = DialogDialog;
|