form-custom-test 3.0.27 → 3.0.28
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/dist/designer.es.js +696 -269
- package/dist/designer.style.css +1 -1
- package/dist/designer.umd.js +126 -126
- package/dist/render.es.js +25492 -629
- package/dist/render.style.css +2 -7
- package/dist/render.umd.js +1304 -39
- package/package.json +74 -73
package/dist/designer.es.js
CHANGED
|
@@ -1386,6 +1386,7 @@ const basicFields = [
|
|
|
1386
1386
|
{ label: "select 2", value: 2 },
|
|
1387
1387
|
{ label: "select 3", value: 3 }
|
|
1388
1388
|
],
|
|
1389
|
+
dictCode: "",
|
|
1389
1390
|
required: false,
|
|
1390
1391
|
requiredHint: "",
|
|
1391
1392
|
validation: "",
|
|
@@ -4028,7 +4029,7 @@ const _sfc_main$3q = {
|
|
|
4028
4029
|
const _hoisted_1$Q = { class: "panel-container" };
|
|
4029
4030
|
const _hoisted_2$z = ["title", "onDblclick"];
|
|
4030
4031
|
const _hoisted_3$v = ["title", "onDblclick"];
|
|
4031
|
-
const _hoisted_4$
|
|
4032
|
+
const _hoisted_4$l = ["title", "onDblclick"];
|
|
4032
4033
|
const _hoisted_5$h = ["title", "onDblclick"];
|
|
4033
4034
|
const _hoisted_6$g = ["src"];
|
|
4034
4035
|
const _hoisted_7$d = ["src"];
|
|
@@ -4167,7 +4168,7 @@ function _sfc_render$3q(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
4167
4168
|
}, null, 8, ["icon-class"]),
|
|
4168
4169
|
createTextVNode(toDisplayString(_ctx.i18n2t(`designer.widgetLabel.${fld.type}`, `extension.widgetLabel.${fld.type}`)), 1)
|
|
4169
4170
|
])
|
|
4170
|
-
], 40, _hoisted_4$
|
|
4171
|
+
], 40, _hoisted_4$l)
|
|
4171
4172
|
]),
|
|
4172
4173
|
_: 1
|
|
4173
4174
|
}, 8, ["list", "move", "clone"])
|
|
@@ -4498,7 +4499,7 @@ const _hoisted_1$P = {
|
|
|
4498
4499
|
};
|
|
4499
4500
|
const _hoisted_2$y = ["title"];
|
|
4500
4501
|
const _hoisted_3$u = ["title"];
|
|
4501
|
-
const _hoisted_4$
|
|
4502
|
+
const _hoisted_4$k = ["title"];
|
|
4502
4503
|
const _hoisted_5$g = ["title"];
|
|
4503
4504
|
const _hoisted_6$f = {
|
|
4504
4505
|
key: 1,
|
|
@@ -4541,7 +4542,7 @@ function _sfc_render$3o(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
4541
4542
|
onClick: _cache[3] || (_cache[3] = withModifiers(($event) => $options.moveDownWidget($props.field), ["stop"]))
|
|
4542
4543
|
}, [
|
|
4543
4544
|
createVNode(_component_svg_icon, { "icon-class": "el-move-down" })
|
|
4544
|
-
], 8, _hoisted_4$
|
|
4545
|
+
], 8, _hoisted_4$k)) : createCommentVNode("", true),
|
|
4545
4546
|
createElementVNode("i", {
|
|
4546
4547
|
title: _ctx.i18nt("designer.hint.remove"),
|
|
4547
4548
|
onClick: _cache[4] || (_cache[4] = withModifiers((...args) => $options.removeFieldWidget && $options.removeFieldWidget(...args), ["stop"]))
|
|
@@ -5371,7 +5372,7 @@ const _hoisted_2$x = {
|
|
|
5371
5372
|
class: "field-action"
|
|
5372
5373
|
};
|
|
5373
5374
|
const _hoisted_3$t = ["title"];
|
|
5374
|
-
const _hoisted_4$
|
|
5375
|
+
const _hoisted_4$j = ["title"];
|
|
5375
5376
|
const _hoisted_5$f = ["title"];
|
|
5376
5377
|
const _hoisted_6$e = ["title"];
|
|
5377
5378
|
const _hoisted_7$b = {
|
|
@@ -5466,7 +5467,7 @@ function _sfc_render$3m(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
5466
5467
|
onClick: _cache[2] || (_cache[2] = withModifiers(($event) => $options.moveUpWidget($props.field), ["stop"]))
|
|
5467
5468
|
}, [
|
|
5468
5469
|
createVNode(_component_svg_icon, { "icon-class": "el-move-up" })
|
|
5469
|
-
], 8, _hoisted_4$
|
|
5470
|
+
], 8, _hoisted_4$j)) : createCommentVNode("", true),
|
|
5470
5471
|
!!$props.parentList && $props.parentList.length > 1 ? (openBlock(), createElementBlock("i", {
|
|
5471
5472
|
key: 1,
|
|
5472
5473
|
title: _ctx.i18nt("designer.hint.moveDownWidget"),
|
|
@@ -6184,14 +6185,14 @@ const _hoisted_3$p = /* @__PURE__ */ createElementVNode("path", {
|
|
|
6184
6185
|
fill: "currentColor",
|
|
6185
6186
|
d: "M480 672V352a32 32 0 1164 0v320a32 32 0 01-64 0z"
|
|
6186
6187
|
}, null, -1);
|
|
6187
|
-
const _hoisted_4$
|
|
6188
|
+
const _hoisted_4$i = /* @__PURE__ */ createElementVNode("path", {
|
|
6188
6189
|
fill: "currentColor",
|
|
6189
6190
|
d: "M512 896a384 384 0 100-768 384 384 0 000 768zm0 64a448 448 0 110-896 448 448 0 010 896z"
|
|
6190
6191
|
}, null, -1);
|
|
6191
6192
|
const _hoisted_5$e = [
|
|
6192
6193
|
_hoisted_2$t,
|
|
6193
6194
|
_hoisted_3$p,
|
|
6194
|
-
_hoisted_4$
|
|
6195
|
+
_hoisted_4$i
|
|
6195
6196
|
];
|
|
6196
6197
|
function _sfc_render$3c(_ctx, _cache, $props, $setup, $data, $options) {
|
|
6197
6198
|
return openBlock(), createElementBlock("svg", _hoisted_1$J, _hoisted_5$e);
|
|
@@ -6236,12 +6237,12 @@ const _hoisted_3$n = /* @__PURE__ */ createElementVNode("path", {
|
|
|
6236
6237
|
fill: "currentColor",
|
|
6237
6238
|
d: "M469.952 554.24l52.8-7.552L847.104 222.4a32 32 0 10-45.248-45.248L477.44 501.44l-7.552 52.8zm422.4-422.4a96 96 0 010 135.808l-331.84 331.84a32 32 0 01-18.112 9.088L436.8 623.68a32 32 0 01-36.224-36.224l15.104-105.6a32 32 0 019.024-18.112l331.904-331.84a96 96 0 01135.744 0z"
|
|
6238
6239
|
}, null, -1);
|
|
6239
|
-
const _hoisted_4$
|
|
6240
|
+
const _hoisted_4$h = [
|
|
6240
6241
|
_hoisted_2$r,
|
|
6241
6242
|
_hoisted_3$n
|
|
6242
6243
|
];
|
|
6243
6244
|
function _sfc_render$3a(_ctx, _cache, $props, $setup, $data, $options) {
|
|
6244
|
-
return openBlock(), createElementBlock("svg", _hoisted_1$H, _hoisted_4$
|
|
6245
|
+
return openBlock(), createElementBlock("svg", _hoisted_1$H, _hoisted_4$h);
|
|
6245
6246
|
}
|
|
6246
6247
|
var edit = /* @__PURE__ */ _export_sfc(_sfc_main$3a, [["render", _sfc_render$3a]]);
|
|
6247
6248
|
const _sfc_main$39 = defineComponent({
|
|
@@ -6706,7 +6707,7 @@ const _hoisted_2$l = {
|
|
|
6706
6707
|
class: "el-upload__tip"
|
|
6707
6708
|
};
|
|
6708
6709
|
const _hoisted_3$h = { class: "upload-file-list" };
|
|
6709
|
-
const _hoisted_4$
|
|
6710
|
+
const _hoisted_4$g = { class: "left-wrap" };
|
|
6710
6711
|
const _hoisted_5$d = ["title"];
|
|
6711
6712
|
const _hoisted_6$d = { class: "right-wrap" };
|
|
6712
6713
|
const _hoisted_7$a = ["title", "onClick"];
|
|
@@ -6775,7 +6776,7 @@ function _sfc_render$34(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
6775
6776
|
]),
|
|
6776
6777
|
file: withCtx(({ file }) => [
|
|
6777
6778
|
createElementVNode("div", _hoisted_3$h, [
|
|
6778
|
-
createElementVNode("div", _hoisted_4$
|
|
6779
|
+
createElementVNode("div", _hoisted_4$g, [
|
|
6779
6780
|
createElementVNode("span", {
|
|
6780
6781
|
class: "upload-file-name",
|
|
6781
6782
|
title: file.name
|
|
@@ -7323,7 +7324,7 @@ const _hoisted_2$k = {
|
|
|
7323
7324
|
style: { "color": "#FFF" }
|
|
7324
7325
|
};
|
|
7325
7326
|
const _hoisted_3$g = { class: "el-upload-list__item-actions" };
|
|
7326
|
-
const _hoisted_4$
|
|
7327
|
+
const _hoisted_4$f = ["onClick"];
|
|
7327
7328
|
const _hoisted_5$c = ["onClick"];
|
|
7328
7329
|
const _hoisted_6$c = {
|
|
7329
7330
|
key: 0,
|
|
@@ -7392,7 +7393,7 @@ function _sfc_render$30(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
7392
7393
|
onClick: ($event) => $options.handlePictureCardPreview(file)
|
|
7393
7394
|
}, [
|
|
7394
7395
|
createVNode(_component_svg_icon, { "icon-class": "el-zoom-in" })
|
|
7395
|
-
], 8, _hoisted_4$
|
|
7396
|
+
], 8, _hoisted_4$f),
|
|
7396
7397
|
createElementVNode("span", {
|
|
7397
7398
|
class: "el-upload-list__item-delete",
|
|
7398
7399
|
onClick: ($event) => $options.handlePictureRemove(file)
|
|
@@ -19348,6 +19349,7 @@ const _sfc_main$2W = {
|
|
|
19348
19349
|
this.handleOnCreated();
|
|
19349
19350
|
},
|
|
19350
19351
|
mounted() {
|
|
19352
|
+
console.log(11111);
|
|
19351
19353
|
this.handleOnMounted();
|
|
19352
19354
|
},
|
|
19353
19355
|
beforeUnmount() {
|
|
@@ -19409,7 +19411,7 @@ function _sfc_render$2W(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
19409
19411
|
_: 1
|
|
19410
19412
|
}, 8, ["designer", "field", "rules", "design-state", "parent-widget", "parent-list", "index-of-parent-list", "sub-form-row-index", "sub-form-col-index", "sub-form-row-id"]);
|
|
19411
19413
|
}
|
|
19412
|
-
var selectWidget = /* @__PURE__ */ _export_sfc$1(_sfc_main$2W, [["render", _sfc_render$2W], ["__scopeId", "data-v-
|
|
19414
|
+
var selectWidget = /* @__PURE__ */ _export_sfc$1(_sfc_main$2W, [["render", _sfc_render$2W], ["__scopeId", "data-v-e0aff2a2"]]);
|
|
19413
19415
|
var __glob_0_17$1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
19414
19416
|
__proto__: null,
|
|
19415
19417
|
"default": selectWidget
|
|
@@ -20684,7 +20686,7 @@ const _hoisted_3$f = {
|
|
|
20684
20686
|
key: 0,
|
|
20685
20687
|
class: "custom-label"
|
|
20686
20688
|
};
|
|
20687
|
-
const _hoisted_4$
|
|
20689
|
+
const _hoisted_4$e = ["title"];
|
|
20688
20690
|
const _hoisted_5$b = { class: "sub-form-action-column hide-label" };
|
|
20689
20691
|
const _hoisted_6$b = { class: "action-button-column" };
|
|
20690
20692
|
const _hoisted_7$8 = {
|
|
@@ -20774,7 +20776,7 @@ function _sfc_render$2M(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
20774
20776
|
])) : (openBlock(), createElementBlock("span", {
|
|
20775
20777
|
key: 1,
|
|
20776
20778
|
title: subWidget.options.labelTooltip
|
|
20777
|
-
}, toDisplayString(subWidget.options.label), 9, _hoisted_4$
|
|
20779
|
+
}, toDisplayString(subWidget.options.label), 9, _hoisted_4$e))
|
|
20778
20780
|
], 6);
|
|
20779
20781
|
}), 128))
|
|
20780
20782
|
]),
|
|
@@ -47693,7 +47695,7 @@ const _sfc_main$2G = {
|
|
|
47693
47695
|
const _hoisted_1$s = { class: "toolbar-container" };
|
|
47694
47696
|
const _hoisted_2$g = { class: "left-toolbar" };
|
|
47695
47697
|
const _hoisted_3$e = { class: "right-toolbar-con" };
|
|
47696
|
-
const _hoisted_4$
|
|
47698
|
+
const _hoisted_4$d = {
|
|
47697
47699
|
key: 0,
|
|
47698
47700
|
class: ""
|
|
47699
47701
|
};
|
|
@@ -47719,7 +47721,7 @@ const _hoisted_12$2 = {
|
|
|
47719
47721
|
};
|
|
47720
47722
|
const _hoisted_13$2 = { style: { "border": "1px solid #DCDFE6" } };
|
|
47721
47723
|
const _hoisted_14$2 = { class: "dialog-footer" };
|
|
47722
|
-
const _hoisted_15 = {
|
|
47724
|
+
const _hoisted_15$1 = {
|
|
47723
47725
|
key: 5,
|
|
47724
47726
|
class: ""
|
|
47725
47727
|
};
|
|
@@ -47909,7 +47911,7 @@ function _sfc_render$2G(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
47909
47911
|
}), 256))
|
|
47910
47912
|
])
|
|
47911
47913
|
], 4),
|
|
47912
|
-
$data.showPreviewDialogFlag ? withDirectives((openBlock(), createElementBlock("div", _hoisted_4$
|
|
47914
|
+
$data.showPreviewDialogFlag ? withDirectives((openBlock(), createElementBlock("div", _hoisted_4$d, [
|
|
47913
47915
|
createVNode(_component_el_dialog, {
|
|
47914
47916
|
title: _ctx.i18nt("designer.toolbar.preview"),
|
|
47915
47917
|
modelValue: $data.showPreviewDialogFlag,
|
|
@@ -48273,7 +48275,7 @@ function _sfc_render$2G(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
48273
48275
|
])), [
|
|
48274
48276
|
[_directive_drag, [".nested-drag-dialog.el-dialog", ".nested-drag-dialog .el-dialog__header"]]
|
|
48275
48277
|
]) : createCommentVNode("", true),
|
|
48276
|
-
$data.showExportSFCDialogFlag ? withDirectives((openBlock(), createElementBlock("div", _hoisted_15, [
|
|
48278
|
+
$data.showExportSFCDialogFlag ? withDirectives((openBlock(), createElementBlock("div", _hoisted_15$1, [
|
|
48277
48279
|
$data.showExportSFCDialogFlag ? (openBlock(), createBlock(_component_el_dialog, {
|
|
48278
48280
|
key: 0,
|
|
48279
48281
|
title: _ctx.i18nt("designer.toolbar.generateSFC"),
|
|
@@ -49789,6 +49791,7 @@ const _sfc_main$26 = {
|
|
|
49789
49791
|
showImportCascaderDialogFlag: false,
|
|
49790
49792
|
treeOptions: "",
|
|
49791
49793
|
showImportTreeDialogFlag: false,
|
|
49794
|
+
loadingDict: false,
|
|
49792
49795
|
separator: ","
|
|
49793
49796
|
};
|
|
49794
49797
|
},
|
|
@@ -49934,6 +49937,81 @@ const _sfc_main$26 = {
|
|
|
49934
49937
|
} catch (ex) {
|
|
49935
49938
|
this.$message.error(this.i18nt("designer.hint.invalidOptionsData") + ex.message);
|
|
49936
49939
|
}
|
|
49940
|
+
},
|
|
49941
|
+
loadOptionsFromDict() {
|
|
49942
|
+
if (!this.optionModel.dictCode || !this.optionModel.dictCode.trim()) {
|
|
49943
|
+
return;
|
|
49944
|
+
}
|
|
49945
|
+
const dictCode = this.optionModel.dictCode.trim();
|
|
49946
|
+
this.loadingDict = true;
|
|
49947
|
+
try {
|
|
49948
|
+
let dictManager = null;
|
|
49949
|
+
if (typeof window !== "undefined" && window.getDictData) {
|
|
49950
|
+
const dictItems = window.getDictData(dictCode);
|
|
49951
|
+
if (dictItems && Array.isArray(dictItems) && dictItems.length > 0) {
|
|
49952
|
+
this.optionModel.optionItems = dictItems.map((item) => ({
|
|
49953
|
+
id: generateId(),
|
|
49954
|
+
label: item.dictLabel || item.label || item.name || item.text || "",
|
|
49955
|
+
value: item.dictValue || item.value || item.code || "",
|
|
49956
|
+
disabled: item.disabled || false
|
|
49957
|
+
}));
|
|
49958
|
+
this.$message.success("\u4ECE\u5B57\u5178\u7F13\u5B58\u52A0\u8F7D\u9009\u9879\u6210\u529F");
|
|
49959
|
+
this.loadingDict = false;
|
|
49960
|
+
return;
|
|
49961
|
+
}
|
|
49962
|
+
}
|
|
49963
|
+
if (typeof window !== "undefined" && window.dictCache && window.dictCache[dictCode]) {
|
|
49964
|
+
const dictItems = window.dictCache[dictCode];
|
|
49965
|
+
if (Array.isArray(dictItems) && dictItems.length > 0) {
|
|
49966
|
+
this.optionModel.optionItems = dictItems.map((item) => ({
|
|
49967
|
+
id: generateId(),
|
|
49968
|
+
label: item.dictLabel || item.label || item.name || item.text || "",
|
|
49969
|
+
value: item.dictValue || item.value || item.code || "",
|
|
49970
|
+
disabled: item.disabled || false
|
|
49971
|
+
}));
|
|
49972
|
+
this.$message.success("\u4ECE\u5B57\u5178\u7F13\u5B58\u52A0\u8F7D\u9009\u9879\u6210\u529F");
|
|
49973
|
+
this.loadingDict = false;
|
|
49974
|
+
return;
|
|
49975
|
+
}
|
|
49976
|
+
}
|
|
49977
|
+
if (typeof window !== "undefined" && window.service) {
|
|
49978
|
+
window.service.post("/unified-dict/sysItemDict/page", {
|
|
49979
|
+
current: 1,
|
|
49980
|
+
size: 1e4,
|
|
49981
|
+
dictType: dictCode
|
|
49982
|
+
}).then(({ data: data2 }) => {
|
|
49983
|
+
this.loadingDict = false;
|
|
49984
|
+
const records = (data2 == null ? void 0 : data2.records) || (data2 == null ? void 0 : data2.data) || data2 || [];
|
|
49985
|
+
if (Array.isArray(records) && records.length > 0) {
|
|
49986
|
+
const dictItems = records.filter((item) => item.dictType === dictCode);
|
|
49987
|
+
if (dictItems.length > 0) {
|
|
49988
|
+
this.optionModel.optionItems = dictItems.map((item) => ({
|
|
49989
|
+
id: generateId(),
|
|
49990
|
+
label: item.dictLabel || item.label || item.name || item.text || "",
|
|
49991
|
+
value: item.dictValue || item.value || item.code || "",
|
|
49992
|
+
disabled: item.disabled || false
|
|
49993
|
+
}));
|
|
49994
|
+
this.$message.success("\u4ECE\u5B57\u5178\u52A0\u8F7D\u9009\u9879\u6210\u529F");
|
|
49995
|
+
} else {
|
|
49996
|
+
this.$message.warning(`\u672A\u627E\u5230\u5B57\u5178\u7C7B\u578B\u4E3A "${dictCode}" \u7684\u6570\u636E`);
|
|
49997
|
+
}
|
|
49998
|
+
} else {
|
|
49999
|
+
this.$message.warning("\u5B57\u5178\u6570\u636E\u683C\u5F0F\u4E0D\u6B63\u786E");
|
|
50000
|
+
}
|
|
50001
|
+
}).catch((error) => {
|
|
50002
|
+
this.loadingDict = false;
|
|
50003
|
+
console.error("\u83B7\u53D6\u5B57\u5178\u6570\u636E\u5931\u8D25:", error);
|
|
50004
|
+
this.$message.error("\u83B7\u53D6\u5B57\u5178\u6570\u636E\u5931\u8D25\uFF0C\u8BF7\u68C0\u67E5\u5B57\u5178CODE\u662F\u5426\u6B63\u786E");
|
|
50005
|
+
});
|
|
50006
|
+
return;
|
|
50007
|
+
}
|
|
50008
|
+
this.$message.warning("\u672A\u627E\u5230\u5B57\u5178\u7F13\u5B58\uFF0C\u8BF7\u786E\u4FDD\u5B57\u5178CODE\u6B63\u786E\u6216\u5B57\u5178\u5DF2\u52A0\u8F7D");
|
|
50009
|
+
} catch (error) {
|
|
50010
|
+
console.error("\u52A0\u8F7D\u5B57\u5178\u6570\u636E\u5931\u8D25:", error);
|
|
50011
|
+
this.$message.error("\u52A0\u8F7D\u5B57\u5178\u6570\u636E\u5931\u8D25: " + error.message);
|
|
50012
|
+
} finally {
|
|
50013
|
+
this.loadingDict = false;
|
|
50014
|
+
}
|
|
49937
50015
|
}
|
|
49938
50016
|
}
|
|
49939
50017
|
};
|
|
@@ -49946,26 +50024,30 @@ const _hoisted_3$d = {
|
|
|
49946
50024
|
key: 3,
|
|
49947
50025
|
class: "full-width-input"
|
|
49948
50026
|
};
|
|
49949
|
-
const _hoisted_4$
|
|
50027
|
+
const _hoisted_4$c = { class: "custom-tree-node" };
|
|
49950
50028
|
const _hoisted_5$9 = { class: "tree-node-actions" };
|
|
49951
50029
|
const _hoisted_6$9 = { key: 4 };
|
|
49952
50030
|
const _hoisted_7$6 = { key: 5 };
|
|
49953
|
-
const _hoisted_8$5 = {
|
|
49954
|
-
|
|
49955
|
-
|
|
49956
|
-
class: ""
|
|
50031
|
+
const _hoisted_8$5 = {
|
|
50032
|
+
key: 6,
|
|
50033
|
+
style: { "margin-bottom": "10px" }
|
|
49957
50034
|
};
|
|
49958
|
-
const
|
|
49959
|
-
const
|
|
50035
|
+
const _hoisted_9$3 = { key: 7 };
|
|
50036
|
+
const _hoisted_10$3 = {
|
|
49960
50037
|
key: 8,
|
|
49961
50038
|
class: ""
|
|
49962
50039
|
};
|
|
49963
|
-
const
|
|
49964
|
-
const
|
|
50040
|
+
const _hoisted_11$2 = { class: "dialog-footer" };
|
|
50041
|
+
const _hoisted_12$1 = {
|
|
49965
50042
|
key: 9,
|
|
49966
50043
|
class: ""
|
|
49967
50044
|
};
|
|
49968
|
-
const
|
|
50045
|
+
const _hoisted_13$1 = { class: "dialog-footer" };
|
|
50046
|
+
const _hoisted_14$1 = {
|
|
50047
|
+
key: 10,
|
|
50048
|
+
class: ""
|
|
50049
|
+
};
|
|
50050
|
+
const _hoisted_15 = { class: "dialog-footer" };
|
|
49969
50051
|
function _sfc_render$26(_ctx, _cache, $props, $setup, $data, $options) {
|
|
49970
50052
|
const _component_el_input = resolveComponent("el-input");
|
|
49971
50053
|
const _component_el_button = resolveComponent("el-button");
|
|
@@ -50011,7 +50093,7 @@ function _sfc_render$26(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
50011
50093
|
size: "small",
|
|
50012
50094
|
style: { "width": "100px" }
|
|
50013
50095
|
}, null, 8, ["modelValue", "onUpdate:modelValue"]),
|
|
50014
|
-
_cache[
|
|
50096
|
+
_cache[13] || (_cache[13] = createElementVNode("i", { class: "iconfont icon-drag drag-option" }, null, -1)),
|
|
50015
50097
|
createVNode(_component_el_button, {
|
|
50016
50098
|
circle: "",
|
|
50017
50099
|
plain: "",
|
|
@@ -50060,7 +50142,7 @@ function _sfc_render$26(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
50060
50142
|
size: "small",
|
|
50061
50143
|
style: { "width": "100px" }
|
|
50062
50144
|
}, null, 8, ["modelValue", "onUpdate:modelValue"]),
|
|
50063
|
-
_cache[
|
|
50145
|
+
_cache[14] || (_cache[14] = createElementVNode("i", { class: "iconfont icon-drag drag-option" }, null, -1)),
|
|
50064
50146
|
createVNode(_component_el_button, {
|
|
50065
50147
|
circle: "",
|
|
50066
50148
|
plain: "",
|
|
@@ -50097,7 +50179,7 @@ function _sfc_render$26(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
50097
50179
|
"expand-on-click-node": false
|
|
50098
50180
|
}, {
|
|
50099
50181
|
default: withCtx(({ node, data: data2 }) => [
|
|
50100
|
-
createElementVNode("span", _hoisted_4$
|
|
50182
|
+
createElementVNode("span", _hoisted_4$c, [
|
|
50101
50183
|
createElementVNode("span", null, toDisplayString(node.label), 1),
|
|
50102
50184
|
createElementVNode("span", _hoisted_5$9, [
|
|
50103
50185
|
createVNode(_component_el_button, {
|
|
@@ -50107,7 +50189,7 @@ function _sfc_render$26(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
50107
50189
|
onClick: withModifiers(($event) => $options.addChildNode(data2), ["stop"]),
|
|
50108
50190
|
icon: "Plus"
|
|
50109
50191
|
}, {
|
|
50110
|
-
default: withCtx(() => [..._cache[
|
|
50192
|
+
default: withCtx(() => [..._cache[15] || (_cache[15] = [
|
|
50111
50193
|
createTextVNode(" \u6DFB\u52A0\u5B50\u9879 ", -1)
|
|
50112
50194
|
])]),
|
|
50113
50195
|
_: 1
|
|
@@ -50119,7 +50201,7 @@ function _sfc_render$26(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
50119
50201
|
onClick: withModifiers(($event) => $options.deleteNode(data2, node), ["stop"]),
|
|
50120
50202
|
icon: "Delete"
|
|
50121
50203
|
}, {
|
|
50122
|
-
default: withCtx(() => [..._cache[
|
|
50204
|
+
default: withCtx(() => [..._cache[16] || (_cache[16] = [
|
|
50123
50205
|
createTextVNode(" \u5220\u9664 ", -1)
|
|
50124
50206
|
])]),
|
|
50125
50207
|
_: 1
|
|
@@ -50184,7 +50266,38 @@ function _sfc_render$26(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
50184
50266
|
_: 1
|
|
50185
50267
|
}, 8, ["onClick"])
|
|
50186
50268
|
])) : createCommentVNode("", true),
|
|
50187
|
-
$props.selectedWidget.type === "
|
|
50269
|
+
$props.selectedWidget.type === "select" ? (openBlock(), createElementBlock("div", _hoisted_8$5, [
|
|
50270
|
+
createVNode(_component_el_form_item, { label: "\u5B57\u5178CODE" }, {
|
|
50271
|
+
default: withCtx(() => [
|
|
50272
|
+
createVNode(_component_el_input, {
|
|
50273
|
+
modelValue: $options.optionModel.dictCode,
|
|
50274
|
+
"onUpdate:modelValue": _cache[3] || (_cache[3] = ($event) => $options.optionModel.dictCode = $event),
|
|
50275
|
+
placeholder: "\u8BF7\u8F93\u5165\u5B57\u5178CODE\uFF0C\u5C06\u4ECE\u5B57\u5178\u7F13\u5B58\u83B7\u53D6\u9009\u9879",
|
|
50276
|
+
onBlur: $options.loadOptionsFromDict,
|
|
50277
|
+
clearable: ""
|
|
50278
|
+
}, {
|
|
50279
|
+
append: withCtx(() => [
|
|
50280
|
+
createVNode(_component_el_button, {
|
|
50281
|
+
onClick: $options.loadOptionsFromDict,
|
|
50282
|
+
loading: $data.loadingDict
|
|
50283
|
+
}, {
|
|
50284
|
+
default: withCtx(() => [..._cache[17] || (_cache[17] = [
|
|
50285
|
+
createTextVNode("\u52A0\u8F7D", -1)
|
|
50286
|
+
])]),
|
|
50287
|
+
_: 1
|
|
50288
|
+
}, 8, ["onClick", "loading"])
|
|
50289
|
+
]),
|
|
50290
|
+
_: 1
|
|
50291
|
+
}, 8, ["modelValue", "onBlur"]),
|
|
50292
|
+
_cache[18] || (_cache[18] = createElementVNode("div", {
|
|
50293
|
+
class: "hint-text",
|
|
50294
|
+
style: { "font-size": "12px", "color": "#909399", "margin-top": "4px" }
|
|
50295
|
+
}, ' \u586B\u5199\u5B57\u5178CODE\u540E\uFF0C\u70B9\u51FB"\u52A0\u8F7D"\u6309\u94AE\u6216\u5931\u7126\u65F6\u81EA\u52A8\u4ECE\u5B57\u5178\u7F13\u5B58\u83B7\u53D6\u9009\u9879\u6570\u636E ', -1))
|
|
50296
|
+
]),
|
|
50297
|
+
_: 1
|
|
50298
|
+
})
|
|
50299
|
+
])) : createCommentVNode("", true),
|
|
50300
|
+
$props.selectedWidget.type === "radio" || $props.selectedWidget.type === "radio-other" || $props.selectedWidget.type === "checkbox" || $props.selectedWidget.type === "select" || $props.selectedWidget.type === "select-other" ? (openBlock(), createElementBlock("div", _hoisted_9$3, [
|
|
50188
50301
|
createVNode(_component_el_button, {
|
|
50189
50302
|
link: "",
|
|
50190
50303
|
type: "primary",
|
|
@@ -50216,11 +50329,11 @@ function _sfc_render$26(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
50216
50329
|
_: 1
|
|
50217
50330
|
}, 8, ["onClick"])
|
|
50218
50331
|
])) : createCommentVNode("", true),
|
|
50219
|
-
$data.showImportDialogFlag ? withDirectives((openBlock(), createElementBlock("div",
|
|
50332
|
+
$data.showImportDialogFlag ? withDirectives((openBlock(), createElementBlock("div", _hoisted_10$3, [
|
|
50220
50333
|
createVNode(_component_el_dialog, {
|
|
50221
50334
|
title: _ctx.i18nt("designer.setting.importOptions"),
|
|
50222
50335
|
modelValue: $data.showImportDialogFlag,
|
|
50223
|
-
"onUpdate:modelValue": _cache[
|
|
50336
|
+
"onUpdate:modelValue": _cache[6] || (_cache[6] = ($event) => $data.showImportDialogFlag = $event),
|
|
50224
50337
|
"show-close": true,
|
|
50225
50338
|
class: "drag-dialog small-padding-dialog",
|
|
50226
50339
|
"append-to-body": "",
|
|
@@ -50229,7 +50342,7 @@ function _sfc_render$26(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
50229
50342
|
"destroy-on-close": true
|
|
50230
50343
|
}, {
|
|
50231
50344
|
footer: withCtx(() => [
|
|
50232
|
-
createElementVNode("div",
|
|
50345
|
+
createElementVNode("div", _hoisted_11$2, [
|
|
50233
50346
|
createVNode(_component_el_button, {
|
|
50234
50347
|
size: "large",
|
|
50235
50348
|
type: "primary",
|
|
@@ -50242,7 +50355,7 @@ function _sfc_render$26(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
50242
50355
|
}, 8, ["onClick"]),
|
|
50243
50356
|
createVNode(_component_el_button, {
|
|
50244
50357
|
size: "large",
|
|
50245
|
-
onClick: _cache[
|
|
50358
|
+
onClick: _cache[5] || (_cache[5] = ($event) => $data.showImportDialogFlag = false)
|
|
50246
50359
|
}, {
|
|
50247
50360
|
default: withCtx(() => [
|
|
50248
50361
|
createTextVNode(toDisplayString(_ctx.i18nt("designer.hint.cancel")), 1)
|
|
@@ -50258,7 +50371,7 @@ function _sfc_render$26(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
50258
50371
|
type: "textarea",
|
|
50259
50372
|
rows: "10",
|
|
50260
50373
|
modelValue: $data.optionLines,
|
|
50261
|
-
"onUpdate:modelValue": _cache[
|
|
50374
|
+
"onUpdate:modelValue": _cache[4] || (_cache[4] = ($event) => $data.optionLines = $event)
|
|
50262
50375
|
}, null, 8, ["modelValue"])
|
|
50263
50376
|
]),
|
|
50264
50377
|
_: 1
|
|
@@ -50269,11 +50382,11 @@ function _sfc_render$26(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
50269
50382
|
])), [
|
|
50270
50383
|
[_directive_drag, [".drag-dialog.el-dialog", ".drag-dialog .el-dialog__header"]]
|
|
50271
50384
|
]) : createCommentVNode("", true),
|
|
50272
|
-
$data.showImportCascaderDialogFlag ? withDirectives((openBlock(), createElementBlock("div",
|
|
50385
|
+
$data.showImportCascaderDialogFlag ? withDirectives((openBlock(), createElementBlock("div", _hoisted_12$1, [
|
|
50273
50386
|
createVNode(_component_el_dialog, {
|
|
50274
50387
|
title: _ctx.i18nt("designer.setting.importOptions"),
|
|
50275
50388
|
modelValue: $data.showImportCascaderDialogFlag,
|
|
50276
|
-
"onUpdate:modelValue": _cache[
|
|
50389
|
+
"onUpdate:modelValue": _cache[9] || (_cache[9] = ($event) => $data.showImportCascaderDialogFlag = $event),
|
|
50277
50390
|
"show-close": true,
|
|
50278
50391
|
class: "drag-dialog small-padding-dialog",
|
|
50279
50392
|
"append-to-body": "",
|
|
@@ -50282,7 +50395,7 @@ function _sfc_render$26(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
50282
50395
|
"destroy-on-close": true
|
|
50283
50396
|
}, {
|
|
50284
50397
|
footer: withCtx(() => [
|
|
50285
|
-
createElementVNode("div",
|
|
50398
|
+
createElementVNode("div", _hoisted_13$1, [
|
|
50286
50399
|
createVNode(_component_el_button, {
|
|
50287
50400
|
size: "large",
|
|
50288
50401
|
type: "primary",
|
|
@@ -50295,7 +50408,7 @@ function _sfc_render$26(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
50295
50408
|
}, 8, ["onClick"]),
|
|
50296
50409
|
createVNode(_component_el_button, {
|
|
50297
50410
|
size: "large",
|
|
50298
|
-
onClick: _cache[
|
|
50411
|
+
onClick: _cache[8] || (_cache[8] = ($event) => $data.showImportCascaderDialogFlag = false)
|
|
50299
50412
|
}, {
|
|
50300
50413
|
default: withCtx(() => [
|
|
50301
50414
|
createTextVNode(toDisplayString(_ctx.i18nt("designer.hint.cancel")), 1)
|
|
@@ -50307,7 +50420,7 @@ function _sfc_render$26(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
50307
50420
|
default: withCtx(() => [
|
|
50308
50421
|
createVNode(_component_code_editor, {
|
|
50309
50422
|
modelValue: $data.cascaderOptions,
|
|
50310
|
-
"onUpdate:modelValue": _cache[
|
|
50423
|
+
"onUpdate:modelValue": _cache[7] || (_cache[7] = ($event) => $data.cascaderOptions = $event),
|
|
50311
50424
|
mode: "json",
|
|
50312
50425
|
readonly: false
|
|
50313
50426
|
}, null, 8, ["modelValue"])
|
|
@@ -50317,11 +50430,11 @@ function _sfc_render$26(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
50317
50430
|
])), [
|
|
50318
50431
|
[_directive_drag, [".drag-dialog.el-dialog", ".drag-dialog .el-dialog__header"]]
|
|
50319
50432
|
]) : createCommentVNode("", true),
|
|
50320
|
-
$data.showImportTreeDialogFlag ? withDirectives((openBlock(), createElementBlock("div",
|
|
50433
|
+
$data.showImportTreeDialogFlag ? withDirectives((openBlock(), createElementBlock("div", _hoisted_14$1, [
|
|
50321
50434
|
createVNode(_component_el_dialog, {
|
|
50322
50435
|
title: _ctx.i18nt("designer.setting.importOptions"),
|
|
50323
50436
|
modelValue: $data.showImportTreeDialogFlag,
|
|
50324
|
-
"onUpdate:modelValue": _cache[
|
|
50437
|
+
"onUpdate:modelValue": _cache[12] || (_cache[12] = ($event) => $data.showImportTreeDialogFlag = $event),
|
|
50325
50438
|
"show-close": true,
|
|
50326
50439
|
class: "drag-dialog small-padding-dialog",
|
|
50327
50440
|
"append-to-body": "",
|
|
@@ -50330,7 +50443,7 @@ function _sfc_render$26(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
50330
50443
|
"destroy-on-close": true
|
|
50331
50444
|
}, {
|
|
50332
50445
|
footer: withCtx(() => [
|
|
50333
|
-
createElementVNode("div",
|
|
50446
|
+
createElementVNode("div", _hoisted_15, [
|
|
50334
50447
|
createVNode(_component_el_button, {
|
|
50335
50448
|
size: "large",
|
|
50336
50449
|
type: "primary",
|
|
@@ -50343,7 +50456,7 @@ function _sfc_render$26(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
50343
50456
|
}, 8, ["onClick"]),
|
|
50344
50457
|
createVNode(_component_el_button, {
|
|
50345
50458
|
size: "large",
|
|
50346
|
-
onClick: _cache[
|
|
50459
|
+
onClick: _cache[11] || (_cache[11] = ($event) => $data.showImportTreeDialogFlag = false)
|
|
50347
50460
|
}, {
|
|
50348
50461
|
default: withCtx(() => [
|
|
50349
50462
|
createTextVNode(toDisplayString(_ctx.i18nt("designer.hint.cancel")), 1)
|
|
@@ -50355,7 +50468,7 @@ function _sfc_render$26(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
50355
50468
|
default: withCtx(() => [
|
|
50356
50469
|
createVNode(_component_code_editor, {
|
|
50357
50470
|
modelValue: $data.treeOptions,
|
|
50358
|
-
"onUpdate:modelValue": _cache[
|
|
50471
|
+
"onUpdate:modelValue": _cache[10] || (_cache[10] = ($event) => $data.treeOptions = $event),
|
|
50359
50472
|
mode: "json",
|
|
50360
50473
|
readonly: false
|
|
50361
50474
|
}, null, 8, ["modelValue"])
|
|
@@ -50367,7 +50480,7 @@ function _sfc_render$26(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
50367
50480
|
]) : createCommentVNode("", true)
|
|
50368
50481
|
]);
|
|
50369
50482
|
}
|
|
50370
|
-
var OptionItemsSetting = /* @__PURE__ */ _export_sfc$1(_sfc_main$26, [["render", _sfc_render$26], ["__scopeId", "data-v-
|
|
50483
|
+
var OptionItemsSetting = /* @__PURE__ */ _export_sfc$1(_sfc_main$26, [["render", _sfc_render$26], ["__scopeId", "data-v-562d80e5"]]);
|
|
50371
50484
|
const _sfc_main$25 = {
|
|
50372
50485
|
name: "optionItems-editor",
|
|
50373
50486
|
mixins: [i18n$1],
|
|
@@ -53082,7 +53195,7 @@ function _sfc_render$12(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
53082
53195
|
value: "YYYY-MM-DD HH:mm:ss"
|
|
53083
53196
|
}),
|
|
53084
53197
|
createVNode(_component_el_option, {
|
|
53085
|
-
label: "
|
|
53198
|
+
label: "YYYY-MM-DD HH:mm",
|
|
53086
53199
|
value: "YYYY-MM-DD hh:mm"
|
|
53087
53200
|
})
|
|
53088
53201
|
]),
|
|
@@ -54775,7 +54888,7 @@ const _hoisted_3$c = {
|
|
|
54775
54888
|
key: 1,
|
|
54776
54889
|
class: ""
|
|
54777
54890
|
};
|
|
54778
|
-
const _hoisted_4$
|
|
54891
|
+
const _hoisted_4$b = { class: "dialog-footer" };
|
|
54779
54892
|
const _hoisted_5$8 = {
|
|
54780
54893
|
key: 2,
|
|
54781
54894
|
class: ""
|
|
@@ -55176,7 +55289,7 @@ function _sfc_render$p(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
55176
55289
|
"destroy-on-close": true
|
|
55177
55290
|
}, {
|
|
55178
55291
|
footer: withCtx(() => [
|
|
55179
|
-
createElementVNode("div", _hoisted_4$
|
|
55292
|
+
createElementVNode("div", _hoisted_4$b, [
|
|
55180
55293
|
createVNode(_component_el_button, {
|
|
55181
55294
|
onClick: _cache[17] || (_cache[17] = ($event) => $data.showEditFormCssDialogFlag = false)
|
|
55182
55295
|
}, {
|
|
@@ -55966,7 +56079,7 @@ const _hoisted_1$i = {
|
|
|
55966
56079
|
};
|
|
55967
56080
|
const _hoisted_2$c = ["title"];
|
|
55968
56081
|
const _hoisted_3$b = ["title"];
|
|
55969
|
-
const _hoisted_4$
|
|
56082
|
+
const _hoisted_4$a = ["title"];
|
|
55970
56083
|
const _hoisted_5$7 = ["title"];
|
|
55971
56084
|
const _hoisted_6$7 = ["title"];
|
|
55972
56085
|
const _hoisted_7$5 = ["title"];
|
|
@@ -56003,7 +56116,7 @@ function _sfc_render$n(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
56003
56116
|
onClick: _cache[2] || (_cache[2] = withModifiers(($event) => _ctx.moveDownWidget(), ["stop"]))
|
|
56004
56117
|
}, [
|
|
56005
56118
|
createVNode(_component_svg_icon, { "icon-class": "el-move-down" })
|
|
56006
|
-
], 8, _hoisted_4$
|
|
56119
|
+
], 8, _hoisted_4$a)) : createCommentVNode("", true),
|
|
56007
56120
|
$props.widget.type === "table" ? (openBlock(), createElementBlock("i", {
|
|
56008
56121
|
key: 2,
|
|
56009
56122
|
title: _ctx.i18nt("designer.hint.insertRow"),
|
|
@@ -56264,7 +56377,7 @@ const _hoisted_2$b = {
|
|
|
56264
56377
|
class: "grid-col-action"
|
|
56265
56378
|
};
|
|
56266
56379
|
const _hoisted_3$a = ["title"];
|
|
56267
|
-
const _hoisted_4$
|
|
56380
|
+
const _hoisted_4$9 = ["title"];
|
|
56268
56381
|
const _hoisted_5$6 = ["title"];
|
|
56269
56382
|
const _hoisted_6$6 = ["title"];
|
|
56270
56383
|
const _hoisted_7$4 = ["title"];
|
|
@@ -56333,7 +56446,7 @@ function _sfc_render$m(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
56333
56446
|
onClick: _cache[3] || (_cache[3] = withModifiers(($event) => $options.moveUpWidget(), ["stop"]))
|
|
56334
56447
|
}, [
|
|
56335
56448
|
createVNode(_component_svg_icon, { "icon-class": "el-move-up" })
|
|
56336
|
-
], 8, _hoisted_4$
|
|
56449
|
+
], 8, _hoisted_4$9)) : createCommentVNode("", true),
|
|
56337
56450
|
!!$props.parentList && $props.parentList.length > 1 ? (openBlock(), createElementBlock("i", {
|
|
56338
56451
|
key: 1,
|
|
56339
56452
|
title: _ctx.i18nt("designer.hint.moveDownWidget"),
|
|
@@ -56741,7 +56854,7 @@ const _hoisted_3$9 = {
|
|
|
56741
56854
|
key: 0,
|
|
56742
56855
|
class: "table-cell-action"
|
|
56743
56856
|
};
|
|
56744
|
-
const _hoisted_4$
|
|
56857
|
+
const _hoisted_4$8 = ["title"];
|
|
56745
56858
|
const _hoisted_5$5 = ["title"];
|
|
56746
56859
|
const _hoisted_6$5 = {
|
|
56747
56860
|
key: 1,
|
|
@@ -56800,7 +56913,7 @@ function _sfc_render$j(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
56800
56913
|
onClick: _cache[2] || (_cache[2] = withModifiers(($event) => $options.selectParentWidget(), ["stop"]))
|
|
56801
56914
|
}, [
|
|
56802
56915
|
createVNode(_component_svg_icon, { "icon-class": "el-back" })
|
|
56803
|
-
], 8, _hoisted_4$
|
|
56916
|
+
], 8, _hoisted_4$8),
|
|
56804
56917
|
createVNode(_component_el_dropdown, {
|
|
56805
56918
|
trigger: "click",
|
|
56806
56919
|
onCommand: $options.handleTableCellCommand,
|
|
@@ -57182,7 +57295,7 @@ const _hoisted_2$9 = {
|
|
|
57182
57295
|
class: "no-widget-hint"
|
|
57183
57296
|
};
|
|
57184
57297
|
const _hoisted_3$8 = { class: "form-widget-list" };
|
|
57185
|
-
const _hoisted_4$
|
|
57298
|
+
const _hoisted_4$7 = { class: "transition-group-el" };
|
|
57186
57299
|
function _sfc_render$h(_ctx, _cache, $props, $setup, $data, $options) {
|
|
57187
57300
|
const _component_draggable = resolveComponent("draggable");
|
|
57188
57301
|
const _component_el_form = resolveComponent("el-form");
|
|
@@ -57209,7 +57322,7 @@ function _sfc_render$h(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
57209
57322
|
move: $options.checkMove
|
|
57210
57323
|
}), {
|
|
57211
57324
|
item: withCtx(({ element: widget, index: index2 }) => [
|
|
57212
|
-
createElementVNode("div", _hoisted_4$
|
|
57325
|
+
createElementVNode("div", _hoisted_4$7, [
|
|
57213
57326
|
widget.category === "container" ? (openBlock(), createBlock(resolveDynamicComponent($options.getWidgetName(widget)), {
|
|
57214
57327
|
widget,
|
|
57215
57328
|
designer: $props.designer,
|
|
@@ -61918,13 +62031,13 @@ function registerIcon(app) {
|
|
|
61918
62031
|
if (typeof window !== "undefined") {
|
|
61919
62032
|
let loadSvg = function() {
|
|
61920
62033
|
var body = document.body;
|
|
61921
|
-
var svgDom = document.getElementById("
|
|
62034
|
+
var svgDom = document.getElementById("__svg__icons__dom__1767869712760__");
|
|
61922
62035
|
if (!svgDom) {
|
|
61923
62036
|
svgDom = document.createElementNS("http://www.w3.org/2000/svg", "svg");
|
|
61924
62037
|
svgDom.style.position = "absolute";
|
|
61925
62038
|
svgDom.style.width = "0";
|
|
61926
62039
|
svgDom.style.height = "0";
|
|
61927
|
-
svgDom.id = "
|
|
62040
|
+
svgDom.id = "__svg__icons__dom__1767869712760__";
|
|
61928
62041
|
svgDom.setAttribute("xmlns", "http://www.w3.org/2000/svg");
|
|
61929
62042
|
svgDom.setAttribute("xmlns:link", "http://www.w3.org/1999/xlink");
|
|
61930
62043
|
}
|
|
@@ -62515,7 +62628,18 @@ const service = axios.create({
|
|
|
62515
62628
|
service.interceptors.request.use((config) => {
|
|
62516
62629
|
config.headers["Client"] = "web";
|
|
62517
62630
|
const accessToken = cookies$1.get("Authorization");
|
|
62518
|
-
|
|
62631
|
+
const company = cookies$1.get("companyId");
|
|
62632
|
+
const post = cookies$1.get("postId");
|
|
62633
|
+
if (accessToken) {
|
|
62634
|
+
config.headers["Authorization"] = accessToken;
|
|
62635
|
+
}
|
|
62636
|
+
if (company) {
|
|
62637
|
+
config.headers["company"] = company;
|
|
62638
|
+
}
|
|
62639
|
+
if (post) {
|
|
62640
|
+
console.log(cookies$1.get("postId"));
|
|
62641
|
+
config.headers["post"] = post;
|
|
62642
|
+
}
|
|
62519
62643
|
return config;
|
|
62520
62644
|
}, (error) => {
|
|
62521
62645
|
return Promise.reject(error);
|
|
@@ -63372,7 +63496,7 @@ const _hoisted_2$6 = {
|
|
|
63372
63496
|
class: "room-wrap"
|
|
63373
63497
|
};
|
|
63374
63498
|
const _hoisted_3$6 = ["onClick"];
|
|
63375
|
-
const _hoisted_4$
|
|
63499
|
+
const _hoisted_4$6 = { class: "select-icon" };
|
|
63376
63500
|
const _hoisted_5$4 = { class: "room-item-name" };
|
|
63377
63501
|
const _hoisted_6$4 = {
|
|
63378
63502
|
key: 0,
|
|
@@ -63439,7 +63563,7 @@ function _sfc_render$9(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
63439
63563
|
key: item.id || item.value,
|
|
63440
63564
|
onClick: ($event) => $options.handleSelectRoom(item)
|
|
63441
63565
|
}, [
|
|
63442
|
-
withDirectives(createElementVNode("div", _hoisted_4$
|
|
63566
|
+
withDirectives(createElementVNode("div", _hoisted_4$6, [
|
|
63443
63567
|
createVNode(_component_el_icon, null, {
|
|
63444
63568
|
default: withCtx(() => [
|
|
63445
63569
|
createVNode(_component_Select)
|
|
@@ -63544,7 +63668,7 @@ const _sfc_main$8 = {
|
|
|
63544
63668
|
const _hoisted_1$8 = { class: "sub-form-header" };
|
|
63545
63669
|
const _hoisted_2$5 = { class: "sub-form-label" };
|
|
63546
63670
|
const _hoisted_3$5 = { class: "group-header" };
|
|
63547
|
-
const _hoisted_4$
|
|
63671
|
+
const _hoisted_4$5 = { class: "group-title" };
|
|
63548
63672
|
const _hoisted_5$3 = {
|
|
63549
63673
|
key: 0,
|
|
63550
63674
|
class: "row-number-span"
|
|
@@ -63587,7 +63711,7 @@ function _sfc_render$8(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
63587
63711
|
key: "preview-" + rowIdx
|
|
63588
63712
|
}, [
|
|
63589
63713
|
createElementVNode("div", _hoisted_3$5, [
|
|
63590
|
-
createElementVNode("div", _hoisted_4$
|
|
63714
|
+
createElementVNode("div", _hoisted_4$5, [
|
|
63591
63715
|
$props.widget.options.showRowNumber ? (openBlock(), createElementBlock("span", _hoisted_5$3, toDisplayString($props.widget.options.label) + " " + toDisplayString(rowIdx + 1) + " \u7EC4", 1)) : (openBlock(), createElementBlock("span", _hoisted_6$3, "\u8868\u5355\u7EC4"))
|
|
63592
63716
|
]),
|
|
63593
63717
|
createElementVNode("div", _hoisted_7$2, [
|
|
@@ -63980,7 +64104,7 @@ const _sfc_main$7 = {
|
|
|
63980
64104
|
const _hoisted_1$7 = { class: "sub-form-header" };
|
|
63981
64105
|
const _hoisted_2$4 = { class: "sub-form-label" };
|
|
63982
64106
|
const _hoisted_3$4 = { class: "group-header" };
|
|
63983
|
-
const _hoisted_4$
|
|
64107
|
+
const _hoisted_4$4 = { class: "group-title" };
|
|
63984
64108
|
const _hoisted_5$2 = {
|
|
63985
64109
|
key: 0,
|
|
63986
64110
|
class: "row-number-span"
|
|
@@ -64029,7 +64153,7 @@ function _sfc_render$7(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
64029
64153
|
key: subFormRowId
|
|
64030
64154
|
}, [
|
|
64031
64155
|
createElementVNode("div", _hoisted_3$4, [
|
|
64032
|
-
createElementVNode("div", _hoisted_4$
|
|
64156
|
+
createElementVNode("div", _hoisted_4$4, [
|
|
64033
64157
|
$props.widget.options.showRowNumber ? (openBlock(), createElementBlock("span", _hoisted_5$2, toDisplayString($props.widget.options.label || "\u81EA\u5B9A\u4E49\u5B50\u8868\u5355") + " " + toDisplayString(sfrIdx + 1), 1)) : (openBlock(), createElementBlock("span", _hoisted_6$2, "\u8868\u5355\u7EC4"))
|
|
64034
64158
|
]),
|
|
64035
64159
|
createElementVNode("div", _hoisted_7$1, [
|
|
@@ -64295,7 +64419,7 @@ const _hoisted_3$3 = {
|
|
|
64295
64419
|
key: 0,
|
|
64296
64420
|
class: "custom-table-cell-action"
|
|
64297
64421
|
};
|
|
64298
|
-
const _hoisted_4$
|
|
64422
|
+
const _hoisted_4$3 = { title: "\u5355\u5143\u683C\u8BBE\u7F6E" };
|
|
64299
64423
|
const _hoisted_5$1 = {
|
|
64300
64424
|
key: 1,
|
|
64301
64425
|
class: "custom-table-cell-handler"
|
|
@@ -64417,7 +64541,7 @@ function _sfc_render$6(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
64417
64541
|
})
|
|
64418
64542
|
]),
|
|
64419
64543
|
default: withCtx(() => [
|
|
64420
|
-
createElementVNode("i", _hoisted_4$
|
|
64544
|
+
createElementVNode("i", _hoisted_4$3, [
|
|
64421
64545
|
createVNode(_component_svg_icon, { "icon-class": "el-menu" })
|
|
64422
64546
|
])
|
|
64423
64547
|
]),
|
|
@@ -64769,7 +64893,7 @@ const _sfc_main$2 = {
|
|
|
64769
64893
|
const _hoisted_1$2 = { class: "sub-table-header" };
|
|
64770
64894
|
const _hoisted_2$2 = { class: "sub-table-label" };
|
|
64771
64895
|
const _hoisted_3$2 = { class: "table-preview" };
|
|
64772
|
-
const _hoisted_4$
|
|
64896
|
+
const _hoisted_4$2 = { class: "preview-cell" };
|
|
64773
64897
|
const _hoisted_5 = { class: "empty-hint" };
|
|
64774
64898
|
const _hoisted_6 = { key: 0 };
|
|
64775
64899
|
const _hoisted_7 = { key: 1 };
|
|
@@ -64846,7 +64970,7 @@ function _sfc_render$2(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
64846
64970
|
align: "center"
|
|
64847
64971
|
}, {
|
|
64848
64972
|
default: withCtx(({ row }) => [
|
|
64849
|
-
createElementVNode("span", _hoisted_4$
|
|
64973
|
+
createElementVNode("span", _hoisted_4$2, toDisplayString(row[col.prop] || "-"), 1)
|
|
64850
64974
|
]),
|
|
64851
64975
|
_: 2
|
|
64852
64976
|
}, 1032, ["prop", "label", "width", "min-width"]);
|
|
@@ -64944,7 +65068,7 @@ const _sfc_main$1 = {
|
|
|
64944
65068
|
}
|
|
64945
65069
|
},
|
|
64946
65070
|
watch: {
|
|
64947
|
-
|
|
65071
|
+
formModel: {
|
|
64948
65072
|
handler(newVal) {
|
|
64949
65073
|
if (newVal && Array.isArray(newVal)) {
|
|
64950
65074
|
this.tableData = deepClone(newVal);
|
|
@@ -65047,7 +65171,11 @@ const _sfc_main$1 = {
|
|
|
65047
65171
|
this.widget.options.columns.forEach((col) => {
|
|
65048
65172
|
if (col.required) {
|
|
65049
65173
|
rules[col.prop] = [
|
|
65050
|
-
{
|
|
65174
|
+
{
|
|
65175
|
+
required: true,
|
|
65176
|
+
message: `\u8BF7\u8F93\u5165${col.label}`,
|
|
65177
|
+
trigger: "blur"
|
|
65178
|
+
}
|
|
65051
65179
|
];
|
|
65052
65180
|
}
|
|
65053
65181
|
});
|
|
@@ -65055,9 +65183,27 @@ const _sfc_main$1 = {
|
|
|
65055
65183
|
this.dialogFormRules = rules;
|
|
65056
65184
|
},
|
|
65057
65185
|
getColumnOptions(col) {
|
|
65058
|
-
if (col.options && Array.isArray(col.options)) {
|
|
65186
|
+
if (col.options && Array.isArray(col.options) && col.options.length > 0) {
|
|
65059
65187
|
return col.options;
|
|
65060
65188
|
}
|
|
65189
|
+
if (col.dictCode && col.dictCode.trim()) {
|
|
65190
|
+
const dictCode = col.dictCode.trim();
|
|
65191
|
+
let dictItems = [];
|
|
65192
|
+
if (typeof window !== "undefined" && window.getDictData) {
|
|
65193
|
+
dictItems = window.getDictData(dictCode) || [];
|
|
65194
|
+
} else if (typeof window !== "undefined" && window.dictCache && window.dictCache[dictCode]) {
|
|
65195
|
+
dictItems = window.dictCache[dictCode] || [];
|
|
65196
|
+
}
|
|
65197
|
+
if (dictItems && Array.isArray(dictItems) && dictItems.length > 0) {
|
|
65198
|
+
const options = dictItems.map((item) => ({
|
|
65199
|
+
label: item.dictLabel || item.label || item.name || item.text || "",
|
|
65200
|
+
value: item.dictValue || item.value || item.code || "",
|
|
65201
|
+
disabled: item.disabled || false
|
|
65202
|
+
}));
|
|
65203
|
+
col.options = options;
|
|
65204
|
+
return options;
|
|
65205
|
+
}
|
|
65206
|
+
}
|
|
65061
65207
|
return [];
|
|
65062
65208
|
},
|
|
65063
65209
|
handleDialogConfirm() {
|
|
@@ -65105,6 +65251,34 @@ const _sfc_main$1 = {
|
|
|
65105
65251
|
this.tableData = deepClone(value2);
|
|
65106
65252
|
this.updateFormModel(this.tableData);
|
|
65107
65253
|
}
|
|
65254
|
+
},
|
|
65255
|
+
getTableValue(row, col, $index) {
|
|
65256
|
+
var _a2;
|
|
65257
|
+
if (col.type === "select") {
|
|
65258
|
+
console.log(this.getColumnOptions(col));
|
|
65259
|
+
return (_a2 = this.getColumnOptions(col).find((item) => item.value === row[col.prop])) == null ? void 0 : _a2.label;
|
|
65260
|
+
}
|
|
65261
|
+
return row[col.prop];
|
|
65262
|
+
},
|
|
65263
|
+
handleSelectMounted(el, col) {
|
|
65264
|
+
if (el && col && col.onMounted && col.onMounted.trim()) {
|
|
65265
|
+
this.$nextTick(() => {
|
|
65266
|
+
try {
|
|
65267
|
+
let options = this.getColumnOptions(col);
|
|
65268
|
+
const setOptions = (newOptions) => {
|
|
65269
|
+
if (Array.isArray(newOptions)) {
|
|
65270
|
+
col.options = newOptions;
|
|
65271
|
+
if (col.optionsText !== void 0) {
|
|
65272
|
+
col.optionsText = JSON.stringify(newOptions, null, 2);
|
|
65273
|
+
}
|
|
65274
|
+
}
|
|
65275
|
+
};
|
|
65276
|
+
new Function("col", "options", "setOptions", col.onMounted)(col, options, setOptions);
|
|
65277
|
+
} catch (e) {
|
|
65278
|
+
console.error(`\u6267\u884C\u5217 "${col.label || col.prop}" \u7684 onMounted \u4E8B\u4EF6\u5931\u8D25:`, e);
|
|
65279
|
+
}
|
|
65280
|
+
});
|
|
65281
|
+
}
|
|
65108
65282
|
}
|
|
65109
65283
|
}
|
|
65110
65284
|
};
|
|
@@ -65117,7 +65291,7 @@ const _hoisted_2$1 = {
|
|
|
65117
65291
|
class: "required-mark"
|
|
65118
65292
|
};
|
|
65119
65293
|
const _hoisted_3$1 = { class: "table-toolbar" };
|
|
65120
|
-
const _hoisted_4 = { class: "dialog-footer" };
|
|
65294
|
+
const _hoisted_4$1 = { class: "dialog-footer" };
|
|
65121
65295
|
function _sfc_render$1(_ctx, _cache, $props, $setup, $data, $options) {
|
|
65122
65296
|
const _component_svg_icon = resolveComponent("svg-icon");
|
|
65123
65297
|
const _component_el_button = resolveComponent("el-button");
|
|
@@ -65190,7 +65364,12 @@ function _sfc_render$1(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
65190
65364
|
"min-width": col.minWidth,
|
|
65191
65365
|
align: "left",
|
|
65192
65366
|
"show-overflow-tooltip": ""
|
|
65193
|
-
},
|
|
65367
|
+
}, {
|
|
65368
|
+
default: withCtx(({ row, $index }) => [
|
|
65369
|
+
createTextVNode(toDisplayString($options.getTableValue(row, col, $index)), 1)
|
|
65370
|
+
]),
|
|
65371
|
+
_: 2
|
|
65372
|
+
}, 1032, ["prop", "label", "width", "min-width"]);
|
|
65194
65373
|
}), 128)),
|
|
65195
65374
|
$props.widget.options.showOperation ? (openBlock(), createBlock(_component_el_table_column, {
|
|
65196
65375
|
key: 1,
|
|
@@ -65239,7 +65418,7 @@ function _sfc_render$1(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
65239
65418
|
onClose: $options.handleDialogClose
|
|
65240
65419
|
}, {
|
|
65241
65420
|
footer: withCtx(() => [
|
|
65242
|
-
createElementVNode("span", _hoisted_4, [
|
|
65421
|
+
createElementVNode("span", _hoisted_4$1, [
|
|
65243
65422
|
createVNode(_component_el_button, {
|
|
65244
65423
|
onClick: _cache[0] || (_cache[0] = ($event) => $data.dialogVisible = false)
|
|
65245
65424
|
}, {
|
|
@@ -65306,13 +65485,24 @@ function _sfc_render$1(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
65306
65485
|
disabled: $props.widget.options.disabled,
|
|
65307
65486
|
style: { "width": "100%" },
|
|
65308
65487
|
"value-format": "YYYY-MM-DD HH:mm:ss"
|
|
65309
|
-
}, null, 8, ["modelValue", "onUpdate:modelValue", "placeholder", "disabled"])) : col.type === "
|
|
65488
|
+
}, null, 8, ["modelValue", "onUpdate:modelValue", "placeholder", "disabled"])) : col.type === "month" ? (openBlock(), createBlock(_component_el_date_picker, {
|
|
65310
65489
|
key: 4,
|
|
65311
65490
|
modelValue: $data.dialogFormData[col.prop],
|
|
65312
65491
|
"onUpdate:modelValue": ($event) => $data.dialogFormData[col.prop] = $event,
|
|
65492
|
+
type: "month",
|
|
65313
65493
|
placeholder: col.placeholder || `\u8BF7\u9009\u62E9${col.label}`,
|
|
65314
65494
|
disabled: $props.widget.options.disabled,
|
|
65315
|
-
style: { "width": "100%" }
|
|
65495
|
+
style: { "width": "100%" },
|
|
65496
|
+
"value-format": "YYYY-MM"
|
|
65497
|
+
}, null, 8, ["modelValue", "onUpdate:modelValue", "placeholder", "disabled"])) : col.type === "select" ? (openBlock(), createBlock(_component_el_select, {
|
|
65498
|
+
key: 5,
|
|
65499
|
+
modelValue: $data.dialogFormData[col.prop],
|
|
65500
|
+
"onUpdate:modelValue": ($event) => $data.dialogFormData[col.prop] = $event,
|
|
65501
|
+
placeholder: col.placeholder || `\u8BF7\u9009\u62E9${col.label}`,
|
|
65502
|
+
disabled: $props.widget.options.disabled,
|
|
65503
|
+
style: { "width": "100%" },
|
|
65504
|
+
ref_for: true,
|
|
65505
|
+
ref: (el) => $options.handleSelectMounted(el, col)
|
|
65316
65506
|
}, {
|
|
65317
65507
|
default: withCtx(() => [
|
|
65318
65508
|
(openBlock(true), createElementBlock(Fragment, null, renderList($options.getColumnOptions(col), (option, optIdx) => {
|
|
@@ -65325,7 +65515,7 @@ function _sfc_render$1(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
65325
65515
|
]),
|
|
65326
65516
|
_: 2
|
|
65327
65517
|
}, 1032, ["modelValue", "onUpdate:modelValue", "placeholder", "disabled"])) : col.type === "textarea" ? (openBlock(), createBlock(_component_el_textarea, {
|
|
65328
|
-
key:
|
|
65518
|
+
key: 6,
|
|
65329
65519
|
modelValue: $data.dialogFormData[col.prop],
|
|
65330
65520
|
"onUpdate:modelValue": ($event) => $data.dialogFormData[col.prop] = $event,
|
|
65331
65521
|
placeholder: col.placeholder || `\u8BF7\u8F93\u5165${col.label}`,
|
|
@@ -65349,25 +65539,37 @@ function _sfc_render$1(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
65349
65539
|
_: 1
|
|
65350
65540
|
}, 8, ["widget"]);
|
|
65351
65541
|
}
|
|
65352
|
-
var SubTableItem = /* @__PURE__ */ _export_sfc$1(_sfc_main$1, [["render", _sfc_render$1], ["__scopeId", "data-v-
|
|
65542
|
+
var SubTableItem = /* @__PURE__ */ _export_sfc$1(_sfc_main$1, [["render", _sfc_render$1], ["__scopeId", "data-v-a29aeb0a"]]);
|
|
65353
65543
|
var subTableColumnsEditor_vue_vue_type_style_index_0_scoped_true_lang = "";
|
|
65354
65544
|
const _sfc_main = {
|
|
65355
65545
|
name: "sub-table-columns-editor",
|
|
65356
65546
|
mixins: [i18n$1],
|
|
65547
|
+
components: {
|
|
65548
|
+
CodeEditor
|
|
65549
|
+
},
|
|
65357
65550
|
props: {
|
|
65358
65551
|
designer: Object,
|
|
65359
65552
|
selectedWidget: Object,
|
|
65360
65553
|
optionModel: Object
|
|
65361
65554
|
},
|
|
65555
|
+
data() {
|
|
65556
|
+
return {
|
|
65557
|
+
showColumnEventDialog: false,
|
|
65558
|
+
currentEventName: "",
|
|
65559
|
+
currentColumn: null,
|
|
65560
|
+
columnEventHandlerCode: "",
|
|
65561
|
+
eventHeader: ""
|
|
65562
|
+
};
|
|
65563
|
+
},
|
|
65362
65564
|
created() {
|
|
65363
65565
|
if (!this.optionModel.columns) {
|
|
65364
|
-
this
|
|
65566
|
+
this.optionModel.columns = [];
|
|
65365
65567
|
}
|
|
65366
65568
|
},
|
|
65367
65569
|
methods: {
|
|
65368
65570
|
addNewColumn() {
|
|
65369
65571
|
if (!this.optionModel.columns) {
|
|
65370
|
-
this
|
|
65572
|
+
this.optionModel.columns = [];
|
|
65371
65573
|
}
|
|
65372
65574
|
const newColumn = {
|
|
65373
65575
|
prop: "field" + (this.optionModel.columns.length + 1),
|
|
@@ -65405,12 +65607,122 @@ const _sfc_main = {
|
|
|
65405
65607
|
console.warn("\u9009\u9879\u6570\u636E\u683C\u5F0F\u9519\u8BEF:", e);
|
|
65406
65608
|
}
|
|
65407
65609
|
this.designer.saveCurrentHistoryStep();
|
|
65610
|
+
},
|
|
65611
|
+
loadDictOptionsForColumn(col) {
|
|
65612
|
+
if (!col.dictCode || !col.dictCode.trim()) {
|
|
65613
|
+
return;
|
|
65614
|
+
}
|
|
65615
|
+
const dictCode = col.dictCode.trim();
|
|
65616
|
+
col._loadingDict = true;
|
|
65617
|
+
try {
|
|
65618
|
+
let dictManager = null;
|
|
65619
|
+
if (typeof window !== "undefined" && window.getDictData) {
|
|
65620
|
+
const dictItems = window.getDictData(dictCode);
|
|
65621
|
+
if (dictItems && Array.isArray(dictItems) && dictItems.length > 0) {
|
|
65622
|
+
col.options = dictItems.map((item) => ({
|
|
65623
|
+
label: item.dictLabel || item.label || item.name || item.text || "",
|
|
65624
|
+
value: item.dictValue || item.value || item.code || "",
|
|
65625
|
+
disabled: item.disabled || false
|
|
65626
|
+
}));
|
|
65627
|
+
col.optionsText = JSON.stringify(col.options, null, 2);
|
|
65628
|
+
this.$message.success("\u4ECE\u5B57\u5178\u7F13\u5B58\u52A0\u8F7D\u9009\u9879\u6210\u529F");
|
|
65629
|
+
col._loadingDict = false;
|
|
65630
|
+
this.designer.saveCurrentHistoryStep();
|
|
65631
|
+
return;
|
|
65632
|
+
}
|
|
65633
|
+
}
|
|
65634
|
+
if (typeof window !== "undefined" && window.dictCache && window.dictCache[dictCode]) {
|
|
65635
|
+
const dictItems = window.dictCache[dictCode];
|
|
65636
|
+
if (Array.isArray(dictItems) && dictItems.length > 0) {
|
|
65637
|
+
col.options = dictItems.map((item) => ({
|
|
65638
|
+
label: item.dictLabel || item.label || item.name || item.text || "",
|
|
65639
|
+
value: item.dictValue || item.value || item.code || "",
|
|
65640
|
+
disabled: item.disabled || false
|
|
65641
|
+
}));
|
|
65642
|
+
col.optionsText = JSON.stringify(col.options, null, 2);
|
|
65643
|
+
this.$message.success("\u4ECE\u5B57\u5178\u7F13\u5B58\u52A0\u8F7D\u9009\u9879\u6210\u529F");
|
|
65644
|
+
col._loadingDict = false;
|
|
65645
|
+
this.designer.saveCurrentHistoryStep();
|
|
65646
|
+
return;
|
|
65647
|
+
}
|
|
65648
|
+
}
|
|
65649
|
+
if (typeof window !== "undefined" && window.service) {
|
|
65650
|
+
window.service.post("/unified-dict/sysItemDict/page", {
|
|
65651
|
+
current: 1,
|
|
65652
|
+
size: 1e4,
|
|
65653
|
+
dictType: dictCode
|
|
65654
|
+
}).then(({ data: data2 }) => {
|
|
65655
|
+
col._loadingDict = false;
|
|
65656
|
+
const records = (data2 == null ? void 0 : data2.records) || (data2 == null ? void 0 : data2.data) || data2 || [];
|
|
65657
|
+
if (Array.isArray(records) && records.length > 0) {
|
|
65658
|
+
const dictItems = records.filter((item) => item.dictType === dictCode);
|
|
65659
|
+
if (dictItems.length > 0) {
|
|
65660
|
+
col.options = dictItems.map((item) => ({
|
|
65661
|
+
label: item.dictLabel || item.label || item.name || item.text || "",
|
|
65662
|
+
value: item.dictValue || item.value || item.code || "",
|
|
65663
|
+
disabled: item.disabled || false
|
|
65664
|
+
}));
|
|
65665
|
+
col.optionsText = JSON.stringify(col.options, null, 2);
|
|
65666
|
+
this.$message.success("\u4ECE\u5B57\u5178\u52A0\u8F7D\u9009\u9879\u6210\u529F");
|
|
65667
|
+
this.designer.saveCurrentHistoryStep();
|
|
65668
|
+
} else {
|
|
65669
|
+
this.$message.warning(`\u672A\u627E\u5230\u5B57\u5178\u7C7B\u578B\u4E3A "${dictCode}" \u7684\u6570\u636E`);
|
|
65670
|
+
}
|
|
65671
|
+
} else {
|
|
65672
|
+
this.$message.warning("\u5B57\u5178\u6570\u636E\u683C\u5F0F\u4E0D\u6B63\u786E");
|
|
65673
|
+
}
|
|
65674
|
+
}).catch((error) => {
|
|
65675
|
+
col._loadingDict = false;
|
|
65676
|
+
console.error("\u83B7\u53D6\u5B57\u5178\u6570\u636E\u5931\u8D25:", error);
|
|
65677
|
+
this.$message.error("\u83B7\u53D6\u5B57\u5178\u6570\u636E\u5931\u8D25\uFF0C\u8BF7\u68C0\u67E5\u5B57\u5178CODE\u662F\u5426\u6B63\u786E");
|
|
65678
|
+
});
|
|
65679
|
+
return;
|
|
65680
|
+
}
|
|
65681
|
+
this.$message.warning("\u672A\u627E\u5230\u5B57\u5178\u7F13\u5B58\uFF0C\u8BF7\u786E\u4FDD\u5B57\u5178CODE\u6B63\u786E\u6216\u5B57\u5178\u5DF2\u52A0\u8F7D");
|
|
65682
|
+
} catch (error) {
|
|
65683
|
+
console.error("\u52A0\u8F7D\u5B57\u5178\u6570\u636E\u5931\u8D25:", error);
|
|
65684
|
+
this.$message.error("\u52A0\u8F7D\u5B57\u5178\u6570\u636E\u5931\u8D25: " + error.message);
|
|
65685
|
+
} finally {
|
|
65686
|
+
col._loadingDict = false;
|
|
65687
|
+
}
|
|
65688
|
+
},
|
|
65689
|
+
editColumnEventHandler(col, eventName, eventParams) {
|
|
65690
|
+
this.currentColumn = col;
|
|
65691
|
+
this.currentEventName = eventName;
|
|
65692
|
+
this.eventHeader = `${col.label || col.prop}.${eventName}(${eventParams.join(", ")}) {`;
|
|
65693
|
+
this.columnEventHandlerCode = col[eventName] || "";
|
|
65694
|
+
this.showColumnEventDialog = true;
|
|
65695
|
+
},
|
|
65696
|
+
saveColumnEventHandler() {
|
|
65697
|
+
if (!this.currentColumn || !this.currentEventName) {
|
|
65698
|
+
return;
|
|
65699
|
+
}
|
|
65700
|
+
if (this.$refs.columnEventEditor) {
|
|
65701
|
+
const codeHints = this.$refs.columnEventEditor.getEditorAnnotations();
|
|
65702
|
+
let syntaxErrorFlag = false;
|
|
65703
|
+
if (codeHints && codeHints.length > 0) {
|
|
65704
|
+
codeHints.forEach((chItem) => {
|
|
65705
|
+
if (chItem.type === "error") {
|
|
65706
|
+
syntaxErrorFlag = true;
|
|
65707
|
+
}
|
|
65708
|
+
});
|
|
65709
|
+
if (syntaxErrorFlag) {
|
|
65710
|
+
this.$message.error(this.i18nt("designer.setting.syntaxCheckWarning"));
|
|
65711
|
+
return;
|
|
65712
|
+
}
|
|
65713
|
+
}
|
|
65714
|
+
}
|
|
65715
|
+
this.currentColumn[this.currentEventName] = this.columnEventHandlerCode;
|
|
65716
|
+
this.designer.saveCurrentHistoryStep();
|
|
65717
|
+
this.showColumnEventDialog = false;
|
|
65718
|
+
this.$message.success("\u4E8B\u4EF6\u4FDD\u5B58\u6210\u529F");
|
|
65408
65719
|
}
|
|
65409
65720
|
}
|
|
65410
65721
|
};
|
|
65411
65722
|
const _hoisted_1 = { class: "column-header" };
|
|
65412
65723
|
const _hoisted_2 = { class: "column-title" };
|
|
65413
65724
|
const _hoisted_3 = { class: "column-form" };
|
|
65725
|
+
const _hoisted_4 = { class: "dialog-footer" };
|
|
65414
65726
|
function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
65415
65727
|
const _component_el_divider = resolveComponent("el-divider");
|
|
65416
65728
|
const _component_el_form_item = resolveComponent("el-form-item");
|
|
@@ -65420,196 +65732,311 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
65420
65732
|
const _component_el_select = resolveComponent("el-select");
|
|
65421
65733
|
const _component_el_switch = resolveComponent("el-switch");
|
|
65422
65734
|
const _component_el_input_number = resolveComponent("el-input-number");
|
|
65423
|
-
|
|
65424
|
-
|
|
65425
|
-
|
|
65426
|
-
|
|
65427
|
-
|
|
65428
|
-
|
|
65429
|
-
|
|
65430
|
-
|
|
65431
|
-
|
|
65432
|
-
|
|
65433
|
-
|
|
65434
|
-
|
|
65435
|
-
|
|
65436
|
-
|
|
65437
|
-
|
|
65438
|
-
|
|
65439
|
-
|
|
65440
|
-
|
|
65441
|
-
|
|
65442
|
-
|
|
65443
|
-
|
|
65444
|
-
|
|
65445
|
-
|
|
65446
|
-
|
|
65447
|
-
|
|
65448
|
-
|
|
65449
|
-
|
|
65450
|
-
|
|
65451
|
-
|
|
65452
|
-
|
|
65453
|
-
|
|
65454
|
-
|
|
65455
|
-
|
|
65456
|
-
|
|
65457
|
-
|
|
65458
|
-
|
|
65459
|
-
|
|
65460
|
-
|
|
65461
|
-
|
|
65462
|
-
|
|
65463
|
-
|
|
65464
|
-
|
|
65465
|
-
|
|
65466
|
-
|
|
65467
|
-
|
|
65468
|
-
|
|
65469
|
-
|
|
65470
|
-
|
|
65471
|
-
|
|
65472
|
-
|
|
65473
|
-
|
|
65474
|
-
|
|
65475
|
-
|
|
65476
|
-
|
|
65477
|
-
|
|
65478
|
-
|
|
65479
|
-
|
|
65480
|
-
|
|
65481
|
-
|
|
65482
|
-
|
|
65483
|
-
|
|
65484
|
-
|
|
65485
|
-
|
|
65486
|
-
|
|
65487
|
-
|
|
65488
|
-
|
|
65489
|
-
|
|
65490
|
-
|
|
65491
|
-
|
|
65492
|
-
|
|
65493
|
-
|
|
65494
|
-
|
|
65495
|
-
|
|
65496
|
-
|
|
65497
|
-
|
|
65498
|
-
|
|
65499
|
-
|
|
65500
|
-
|
|
65501
|
-
|
|
65502
|
-
|
|
65503
|
-
|
|
65504
|
-
|
|
65505
|
-
|
|
65506
|
-
|
|
65507
|
-
|
|
65508
|
-
|
|
65509
|
-
|
|
65510
|
-
|
|
65511
|
-
|
|
65512
|
-
|
|
65513
|
-
|
|
65514
|
-
|
|
65515
|
-
|
|
65516
|
-
|
|
65517
|
-
|
|
65518
|
-
|
|
65519
|
-
|
|
65520
|
-
|
|
65521
|
-
"onUpdate:modelValue"
|
|
65522
|
-
|
|
65523
|
-
|
|
65524
|
-
|
|
65525
|
-
|
|
65526
|
-
|
|
65527
|
-
|
|
65528
|
-
|
|
65529
|
-
|
|
65530
|
-
|
|
65531
|
-
|
|
65532
|
-
|
|
65533
|
-
|
|
65534
|
-
|
|
65535
|
-
|
|
65536
|
-
|
|
65537
|
-
|
|
65538
|
-
|
|
65539
|
-
|
|
65540
|
-
|
|
65541
|
-
|
|
65542
|
-
|
|
65543
|
-
|
|
65544
|
-
|
|
65545
|
-
|
|
65546
|
-
|
|
65547
|
-
|
|
65548
|
-
|
|
65549
|
-
|
|
65550
|
-
|
|
65551
|
-
|
|
65552
|
-
|
|
65553
|
-
|
|
65554
|
-
|
|
65555
|
-
|
|
65556
|
-
|
|
65557
|
-
|
|
65558
|
-
|
|
65559
|
-
|
|
65560
|
-
|
|
65561
|
-
|
|
65562
|
-
|
|
65563
|
-
|
|
65564
|
-
|
|
65565
|
-
|
|
65566
|
-
|
|
65567
|
-
|
|
65568
|
-
|
|
65569
|
-
|
|
65570
|
-
|
|
65571
|
-
|
|
65572
|
-
|
|
65573
|
-
|
|
65574
|
-
|
|
65575
|
-
|
|
65576
|
-
|
|
65577
|
-
|
|
65578
|
-
|
|
65579
|
-
label: "\
|
|
65580
|
-
|
|
65581
|
-
|
|
65582
|
-
|
|
65583
|
-
|
|
65584
|
-
|
|
65585
|
-
|
|
65586
|
-
|
|
65587
|
-
|
|
65588
|
-
|
|
65589
|
-
|
|
65590
|
-
|
|
65591
|
-
|
|
65592
|
-
|
|
65593
|
-
|
|
65594
|
-
|
|
65595
|
-
|
|
65735
|
+
const _component_el_alert = resolveComponent("el-alert");
|
|
65736
|
+
const _component_code_editor = resolveComponent("code-editor");
|
|
65737
|
+
const _component_el_dialog = resolveComponent("el-dialog");
|
|
65738
|
+
return openBlock(), createElementBlock(Fragment, null, [
|
|
65739
|
+
createElementVNode("div", null, [
|
|
65740
|
+
createVNode(_component_el_form_item, { "label-width": "0" }, {
|
|
65741
|
+
default: withCtx(() => [
|
|
65742
|
+
createVNode(_component_el_divider, { class: "custom-divider" }, {
|
|
65743
|
+
default: withCtx(() => [..._cache[3] || (_cache[3] = [
|
|
65744
|
+
createTextVNode("\u8868\u683C\u5217\u914D\u7F6E", -1)
|
|
65745
|
+
])]),
|
|
65746
|
+
_: 1
|
|
65747
|
+
})
|
|
65748
|
+
]),
|
|
65749
|
+
_: 1
|
|
65750
|
+
}),
|
|
65751
|
+
createVNode(_component_el_form_item, { "label-width": "0" }, {
|
|
65752
|
+
default: withCtx(() => [
|
|
65753
|
+
(openBlock(true), createElementBlock(Fragment, null, renderList($props.optionModel.columns, (col, colIdx) => {
|
|
65754
|
+
return openBlock(), createElementBlock("div", {
|
|
65755
|
+
key: colIdx,
|
|
65756
|
+
class: "column-item"
|
|
65757
|
+
}, [
|
|
65758
|
+
createElementVNode("div", _hoisted_1, [
|
|
65759
|
+
createElementVNode("span", _hoisted_2, "\u5217 " + toDisplayString(colIdx + 1), 1),
|
|
65760
|
+
createVNode(_component_el_button, {
|
|
65761
|
+
circle: "",
|
|
65762
|
+
plain: "",
|
|
65763
|
+
size: "small",
|
|
65764
|
+
type: "danger",
|
|
65765
|
+
onClick: ($event) => $options.deleteColumn(colIdx),
|
|
65766
|
+
icon: "el-icon-minus",
|
|
65767
|
+
class: "column-delete-button"
|
|
65768
|
+
}, null, 8, ["onClick"])
|
|
65769
|
+
]),
|
|
65770
|
+
createElementVNode("div", _hoisted_3, [
|
|
65771
|
+
createVNode(_component_el_form_item, { label: "\u5217\u540D" }, {
|
|
65772
|
+
default: withCtx(() => [
|
|
65773
|
+
createVNode(_component_el_input, {
|
|
65774
|
+
modelValue: col.label,
|
|
65775
|
+
"onUpdate:modelValue": ($event) => col.label = $event,
|
|
65776
|
+
placeholder: "\u8BF7\u8F93\u5165\u5217\u540D",
|
|
65777
|
+
onInput: $options.handleColumnChange
|
|
65778
|
+
}, null, 8, ["modelValue", "onUpdate:modelValue", "onInput"])
|
|
65779
|
+
]),
|
|
65780
|
+
_: 2
|
|
65781
|
+
}, 1024),
|
|
65782
|
+
createVNode(_component_el_form_item, { label: "\u5B57\u6BB5\u540D" }, {
|
|
65783
|
+
default: withCtx(() => [
|
|
65784
|
+
createVNode(_component_el_input, {
|
|
65785
|
+
modelValue: col.prop,
|
|
65786
|
+
"onUpdate:modelValue": ($event) => col.prop = $event,
|
|
65787
|
+
placeholder: "\u8BF7\u8F93\u5165\u5B57\u6BB5\u540D\uFF08\u82F1\u6587\uFF09",
|
|
65788
|
+
onInput: $options.handleColumnChange
|
|
65789
|
+
}, null, 8, ["modelValue", "onUpdate:modelValue", "onInput"])
|
|
65790
|
+
]),
|
|
65791
|
+
_: 2
|
|
65792
|
+
}, 1024),
|
|
65793
|
+
createVNode(_component_el_form_item, { label: "\u5217\u7C7B\u578B" }, {
|
|
65794
|
+
default: withCtx(() => [
|
|
65795
|
+
createVNode(_component_el_select, {
|
|
65796
|
+
modelValue: col.type,
|
|
65797
|
+
"onUpdate:modelValue": ($event) => col.type = $event,
|
|
65798
|
+
placeholder: "\u8BF7\u9009\u62E9\u5217\u7C7B\u578B",
|
|
65799
|
+
onChange: $options.handleColumnChange,
|
|
65800
|
+
style: { "width": "100%" }
|
|
65801
|
+
}, {
|
|
65802
|
+
default: withCtx(() => [
|
|
65803
|
+
createVNode(_component_el_option, {
|
|
65804
|
+
label: "\u6587\u672C\u8F93\u5165",
|
|
65805
|
+
value: "input"
|
|
65806
|
+
}),
|
|
65807
|
+
createVNode(_component_el_option, {
|
|
65808
|
+
label: "\u6570\u5B57\u8F93\u5165",
|
|
65809
|
+
value: "number"
|
|
65810
|
+
}),
|
|
65811
|
+
createVNode(_component_el_option, {
|
|
65812
|
+
label: "\u65E5\u671F\u9009\u62E9",
|
|
65813
|
+
value: "date"
|
|
65814
|
+
}),
|
|
65815
|
+
createVNode(_component_el_option, {
|
|
65816
|
+
label: "\u6708\u4EFD\u9009\u62E9",
|
|
65817
|
+
value: "month"
|
|
65818
|
+
}),
|
|
65819
|
+
createVNode(_component_el_option, {
|
|
65820
|
+
label: "\u65E5\u671F\u65F6\u95F4",
|
|
65821
|
+
value: "datetime"
|
|
65822
|
+
}),
|
|
65823
|
+
createVNode(_component_el_option, {
|
|
65824
|
+
label: "\u4E0B\u62C9\u9009\u62E9",
|
|
65825
|
+
value: "select"
|
|
65826
|
+
}),
|
|
65827
|
+
createVNode(_component_el_option, {
|
|
65828
|
+
label: "\u591A\u884C\u6587\u672C",
|
|
65829
|
+
value: "textarea"
|
|
65830
|
+
})
|
|
65831
|
+
]),
|
|
65832
|
+
_: 1
|
|
65833
|
+
}, 8, ["modelValue", "onUpdate:modelValue", "onChange"])
|
|
65834
|
+
]),
|
|
65835
|
+
_: 2
|
|
65836
|
+
}, 1024),
|
|
65837
|
+
col.type === "select" ? (openBlock(), createBlock(_component_el_form_item, {
|
|
65838
|
+
key: 0,
|
|
65839
|
+
label: "\u5B57\u5178CODE"
|
|
65840
|
+
}, {
|
|
65841
|
+
default: withCtx(() => [
|
|
65842
|
+
createVNode(_component_el_input, {
|
|
65843
|
+
modelValue: col.dictCode,
|
|
65844
|
+
"onUpdate:modelValue": ($event) => col.dictCode = $event,
|
|
65845
|
+
placeholder: "\u8BF7\u8F93\u5165\u5B57\u5178CODE\uFF0C\u5C06\u4ECE\u5B57\u5178\u7F13\u5B58\u83B7\u53D6\u9009\u9879",
|
|
65846
|
+
onBlur: ($event) => $options.loadDictOptionsForColumn(col),
|
|
65847
|
+
clearable: ""
|
|
65848
|
+
}, {
|
|
65849
|
+
append: withCtx(() => [
|
|
65850
|
+
createVNode(_component_el_button, {
|
|
65851
|
+
onClick: ($event) => $options.loadDictOptionsForColumn(col),
|
|
65852
|
+
loading: col._loadingDict
|
|
65853
|
+
}, {
|
|
65854
|
+
default: withCtx(() => [..._cache[4] || (_cache[4] = [
|
|
65855
|
+
createTextVNode("\u52A0\u8F7D", -1)
|
|
65856
|
+
])]),
|
|
65857
|
+
_: 1
|
|
65858
|
+
}, 8, ["onClick", "loading"])
|
|
65859
|
+
]),
|
|
65860
|
+
_: 2
|
|
65861
|
+
}, 1032, ["modelValue", "onUpdate:modelValue", "onBlur"]),
|
|
65862
|
+
_cache[5] || (_cache[5] = createElementVNode("div", {
|
|
65863
|
+
class: "hint-text",
|
|
65864
|
+
style: { "font-size": "12px", "color": "#909399", "margin-top": "4px" }
|
|
65865
|
+
}, ' \u586B\u5199\u5B57\u5178CODE\u540E\uFF0C\u70B9\u51FB"\u52A0\u8F7D"\u6309\u94AE\u6216\u5931\u7126\u65F6\u81EA\u52A8\u4ECE\u5B57\u5178\u7F13\u5B58\u83B7\u53D6\u9009\u9879\u6570\u636E ', -1))
|
|
65866
|
+
]),
|
|
65867
|
+
_: 2
|
|
65868
|
+
}, 1024)) : createCommentVNode("", true),
|
|
65869
|
+
createVNode(_component_el_form_item, { label: "\u5217\u5BBD" }, {
|
|
65870
|
+
default: withCtx(() => [
|
|
65871
|
+
createVNode(_component_el_input, {
|
|
65872
|
+
modelValue: col.width,
|
|
65873
|
+
"onUpdate:modelValue": ($event) => col.width = $event,
|
|
65874
|
+
placeholder: "\u5982\uFF1A150\uFF08\u53EF\u9009\uFF09",
|
|
65875
|
+
onInput: $options.handleColumnChange
|
|
65876
|
+
}, null, 8, ["modelValue", "onUpdate:modelValue", "onInput"])
|
|
65877
|
+
]),
|
|
65878
|
+
_: 2
|
|
65879
|
+
}, 1024),
|
|
65880
|
+
createVNode(_component_el_form_item, { label: "\u6700\u5C0F\u5217\u5BBD" }, {
|
|
65881
|
+
default: withCtx(() => [
|
|
65882
|
+
createVNode(_component_el_input, {
|
|
65883
|
+
modelValue: col.minWidth,
|
|
65884
|
+
"onUpdate:modelValue": ($event) => col.minWidth = $event,
|
|
65885
|
+
placeholder: "\u5982\uFF1A100\uFF08\u53EF\u9009\uFF09",
|
|
65886
|
+
onInput: $options.handleColumnChange
|
|
65887
|
+
}, null, 8, ["modelValue", "onUpdate:modelValue", "onInput"])
|
|
65888
|
+
]),
|
|
65889
|
+
_: 2
|
|
65890
|
+
}, 1024),
|
|
65891
|
+
createVNode(_component_el_form_item, { label: "\u5360\u4F4D\u7B26" }, {
|
|
65892
|
+
default: withCtx(() => [
|
|
65893
|
+
createVNode(_component_el_input, {
|
|
65894
|
+
modelValue: col.placeholder,
|
|
65895
|
+
"onUpdate:modelValue": ($event) => col.placeholder = $event,
|
|
65896
|
+
placeholder: "\u8BF7\u8F93\u5165\u5360\u4F4D\u7B26\uFF08\u53EF\u9009\uFF09",
|
|
65897
|
+
onInput: $options.handleColumnChange
|
|
65898
|
+
}, null, 8, ["modelValue", "onUpdate:modelValue", "onInput"])
|
|
65899
|
+
]),
|
|
65900
|
+
_: 2
|
|
65901
|
+
}, 1024),
|
|
65902
|
+
createVNode(_component_el_form_item, { label: "\u662F\u5426\u5FC5\u586B" }, {
|
|
65903
|
+
default: withCtx(() => [
|
|
65904
|
+
createVNode(_component_el_switch, {
|
|
65905
|
+
modelValue: col.required,
|
|
65906
|
+
"onUpdate:modelValue": ($event) => col.required = $event,
|
|
65907
|
+
onChange: $options.handleColumnChange
|
|
65908
|
+
}, null, 8, ["modelValue", "onUpdate:modelValue", "onChange"])
|
|
65909
|
+
]),
|
|
65910
|
+
_: 2
|
|
65911
|
+
}, 1024),
|
|
65912
|
+
col.type === "select" ? (openBlock(), createBlock(_component_el_form_item, {
|
|
65913
|
+
key: 1,
|
|
65914
|
+
label: "\u9009\u9879\u6570\u636E"
|
|
65915
|
+
}, {
|
|
65916
|
+
default: withCtx(() => [
|
|
65917
|
+
createVNode(_component_el_input, {
|
|
65918
|
+
modelValue: col.optionsText,
|
|
65919
|
+
"onUpdate:modelValue": ($event) => col.optionsText = $event,
|
|
65920
|
+
type: "textarea",
|
|
65921
|
+
rows: 3,
|
|
65922
|
+
placeholder: '\u683C\u5F0F\uFF1A[{"label":"\u9009\u98791","value":"value1"},{"label":"\u9009\u98792","value":"value2"}]',
|
|
65923
|
+
onInput: ($event) => $options.handleSelectOptionsChange(col, $event)
|
|
65924
|
+
}, null, 8, ["modelValue", "onUpdate:modelValue", "onInput"]),
|
|
65925
|
+
_cache[6] || (_cache[6] = createElementVNode("div", { class: "hint-text" }, "\u8BF7\u8F93\u5165 JSON \u683C\u5F0F\u7684\u9009\u9879\u6570\u7EC4", -1))
|
|
65926
|
+
]),
|
|
65927
|
+
_: 2
|
|
65928
|
+
}, 1024)) : createCommentVNode("", true),
|
|
65929
|
+
col.type === "select" ? (openBlock(), createBlock(_component_el_form_item, {
|
|
65930
|
+
key: 2,
|
|
65931
|
+
label: "onMounted\u4E8B\u4EF6"
|
|
65932
|
+
}, {
|
|
65933
|
+
default: withCtx(() => [
|
|
65934
|
+
createVNode(_component_el_button, {
|
|
65935
|
+
type: "info",
|
|
65936
|
+
icon: "el-icon-edit",
|
|
65937
|
+
plain: "",
|
|
65938
|
+
round: "",
|
|
65939
|
+
onClick: ($event) => $options.editColumnEventHandler(col, "onMounted", ["col", "options", "setOptions"])
|
|
65940
|
+
}, {
|
|
65941
|
+
default: withCtx(() => [
|
|
65942
|
+
createTextVNode(toDisplayString(_ctx.i18nt("designer.setting.addEventHandler")), 1)
|
|
65943
|
+
]),
|
|
65944
|
+
_: 1
|
|
65945
|
+
}, 8, ["onClick"]),
|
|
65946
|
+
_cache[7] || (_cache[7] = createElementVNode("div", {
|
|
65947
|
+
class: "hint-text",
|
|
65948
|
+
style: { "font-size": "12px", "color": "#909399", "margin-top": "4px" }
|
|
65949
|
+
}, [
|
|
65950
|
+
createTextVNode(" \u4E0B\u62C9\u9879\u6302\u8F7D\u65F6\u89E6\u53D1\uFF0C\u53C2\u6570\uFF1Acol\uFF08\u5217\u914D\u7F6E\u5BF9\u8C61\uFF09\u3001options\uFF08\u9009\u9879\u6570\u7EC4\uFF09\u3001setOptions\uFF08\u8BBE\u7F6E\u9009\u9879\u7684\u65B9\u6CD5\uFF09 "),
|
|
65951
|
+
createElementVNode("br"),
|
|
65952
|
+
createTextVNode("\u793A\u4F8B\uFF1AsetOptions([{label: '\u9009\u98791', value: '1'}, {label: '\u9009\u98792', value: '2'}]) ")
|
|
65953
|
+
], -1))
|
|
65954
|
+
]),
|
|
65955
|
+
_: 2
|
|
65956
|
+
}, 1024)) : createCommentVNode("", true),
|
|
65957
|
+
col.type === "textarea" ? (openBlock(), createBlock(_component_el_form_item, {
|
|
65958
|
+
key: 3,
|
|
65959
|
+
label: "\u884C\u6570"
|
|
65960
|
+
}, {
|
|
65961
|
+
default: withCtx(() => [
|
|
65962
|
+
createVNode(_component_el_input_number, {
|
|
65963
|
+
modelValue: col.rows,
|
|
65964
|
+
"onUpdate:modelValue": ($event) => col.rows = $event,
|
|
65965
|
+
min: 1,
|
|
65966
|
+
max: 10,
|
|
65967
|
+
onChange: $options.handleColumnChange
|
|
65968
|
+
}, null, 8, ["modelValue", "onUpdate:modelValue", "onChange"])
|
|
65969
|
+
]),
|
|
65970
|
+
_: 2
|
|
65971
|
+
}, 1024)) : createCommentVNode("", true)
|
|
65972
|
+
])
|
|
65973
|
+
]);
|
|
65974
|
+
}), 128)),
|
|
65975
|
+
createElementVNode("div", null, [
|
|
65976
|
+
createVNode(_component_el_button, {
|
|
65977
|
+
link: "",
|
|
65978
|
+
type: "primary",
|
|
65979
|
+
onClick: $options.addNewColumn
|
|
65980
|
+
}, {
|
|
65981
|
+
default: withCtx(() => [..._cache[8] || (_cache[8] = [
|
|
65982
|
+
createTextVNode("\u6DFB\u52A0\u5217", -1)
|
|
65983
|
+
])]),
|
|
65984
|
+
_: 1
|
|
65985
|
+
}, 8, ["onClick"])
|
|
65986
|
+
])
|
|
65987
|
+
]),
|
|
65988
|
+
_: 1
|
|
65989
|
+
})
|
|
65990
|
+
]),
|
|
65991
|
+
createVNode(_component_el_dialog, {
|
|
65992
|
+
modelValue: $data.showColumnEventDialog,
|
|
65993
|
+
"onUpdate:modelValue": _cache[2] || (_cache[2] = ($event) => $data.showColumnEventDialog = $event),
|
|
65994
|
+
title: `\u7F16\u8F91\u4E8B\u4EF6\uFF1A${$data.currentEventName}`,
|
|
65995
|
+
width: "800px",
|
|
65996
|
+
"append-to-body": "",
|
|
65997
|
+
"close-on-click-modal": false
|
|
65998
|
+
}, {
|
|
65999
|
+
footer: withCtx(() => [
|
|
66000
|
+
createElementVNode("div", _hoisted_4, [
|
|
66001
|
+
createVNode(_component_el_button, {
|
|
66002
|
+
onClick: _cache[1] || (_cache[1] = ($event) => $data.showColumnEventDialog = false)
|
|
66003
|
+
}, {
|
|
66004
|
+
default: withCtx(() => [..._cache[9] || (_cache[9] = [
|
|
66005
|
+
createTextVNode("\u53D6\u6D88", -1)
|
|
66006
|
+
])]),
|
|
66007
|
+
_: 1
|
|
66008
|
+
}),
|
|
65596
66009
|
createVNode(_component_el_button, {
|
|
65597
|
-
link: "",
|
|
65598
66010
|
type: "primary",
|
|
65599
|
-
onClick: $options.
|
|
66011
|
+
onClick: $options.saveColumnEventHandler
|
|
65600
66012
|
}, {
|
|
65601
|
-
default: withCtx(() => [..._cache[
|
|
65602
|
-
createTextVNode("\
|
|
66013
|
+
default: withCtx(() => [..._cache[10] || (_cache[10] = [
|
|
66014
|
+
createTextVNode("\u786E\u5B9A", -1)
|
|
65603
66015
|
])]),
|
|
65604
66016
|
_: 1
|
|
65605
66017
|
}, 8, ["onClick"])
|
|
65606
66018
|
])
|
|
65607
66019
|
]),
|
|
66020
|
+
default: withCtx(() => [
|
|
66021
|
+
createVNode(_component_el_alert, {
|
|
66022
|
+
type: "info",
|
|
66023
|
+
closable: false,
|
|
66024
|
+
title: $data.eventHeader,
|
|
66025
|
+
style: { "margin-bottom": "10px" }
|
|
66026
|
+
}, null, 8, ["title"]),
|
|
66027
|
+
createVNode(_component_code_editor, {
|
|
66028
|
+
mode: "javascript",
|
|
66029
|
+
readonly: false,
|
|
66030
|
+
modelValue: $data.columnEventHandlerCode,
|
|
66031
|
+
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => $data.columnEventHandlerCode = $event),
|
|
66032
|
+
ref: "columnEventEditor"
|
|
66033
|
+
}, null, 8, ["modelValue"])
|
|
66034
|
+
]),
|
|
65608
66035
|
_: 1
|
|
65609
|
-
})
|
|
65610
|
-
]);
|
|
66036
|
+
}, 8, ["modelValue", "title"])
|
|
66037
|
+
], 64);
|
|
65611
66038
|
}
|
|
65612
|
-
var SubTableColumnsEditor = /* @__PURE__ */ _export_sfc$1(_sfc_main, [["render", _sfc_render], ["__scopeId", "data-v-
|
|
66039
|
+
var SubTableColumnsEditor = /* @__PURE__ */ _export_sfc$1(_sfc_main, [["render", _sfc_render], ["__scopeId", "data-v-3908a6b2"]]);
|
|
65613
66040
|
const loadExtension = function(app) {
|
|
65614
66041
|
addContainerWidgetSchema(cardSchema);
|
|
65615
66042
|
app.component(CardWidget.name, CardWidget);
|