form-custom-test 3.0.27 → 3.0.29
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 +702 -269
- package/dist/designer.style.css +1 -1
- package/dist/designer.umd.js +126 -126
- package/dist/render.es.js +25494 -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__1767870913484__");
|
|
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__1767870913484__";
|
|
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,8 +65418,9 @@ 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, {
|
|
65423
|
+
size: "default",
|
|
65244
65424
|
onClick: _cache[0] || (_cache[0] = ($event) => $data.dialogVisible = false)
|
|
65245
65425
|
}, {
|
|
65246
65426
|
default: withCtx(() => [..._cache[6] || (_cache[6] = [
|
|
@@ -65249,6 +65429,7 @@ function _sfc_render$1(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
65249
65429
|
_: 1
|
|
65250
65430
|
}),
|
|
65251
65431
|
createVNode(_component_el_button, {
|
|
65432
|
+
size: "default",
|
|
65252
65433
|
type: "primary",
|
|
65253
65434
|
onClick: $options.handleDialogConfirm
|
|
65254
65435
|
}, {
|
|
@@ -65306,13 +65487,24 @@ function _sfc_render$1(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
65306
65487
|
disabled: $props.widget.options.disabled,
|
|
65307
65488
|
style: { "width": "100%" },
|
|
65308
65489
|
"value-format": "YYYY-MM-DD HH:mm:ss"
|
|
65309
|
-
}, null, 8, ["modelValue", "onUpdate:modelValue", "placeholder", "disabled"])) : col.type === "
|
|
65490
|
+
}, null, 8, ["modelValue", "onUpdate:modelValue", "placeholder", "disabled"])) : col.type === "month" ? (openBlock(), createBlock(_component_el_date_picker, {
|
|
65310
65491
|
key: 4,
|
|
65311
65492
|
modelValue: $data.dialogFormData[col.prop],
|
|
65312
65493
|
"onUpdate:modelValue": ($event) => $data.dialogFormData[col.prop] = $event,
|
|
65494
|
+
type: "month",
|
|
65313
65495
|
placeholder: col.placeholder || `\u8BF7\u9009\u62E9${col.label}`,
|
|
65314
65496
|
disabled: $props.widget.options.disabled,
|
|
65315
|
-
style: { "width": "100%" }
|
|
65497
|
+
style: { "width": "100%" },
|
|
65498
|
+
"value-format": "YYYY-MM"
|
|
65499
|
+
}, null, 8, ["modelValue", "onUpdate:modelValue", "placeholder", "disabled"])) : col.type === "select" ? (openBlock(), createBlock(_component_el_select, {
|
|
65500
|
+
key: 5,
|
|
65501
|
+
modelValue: $data.dialogFormData[col.prop],
|
|
65502
|
+
"onUpdate:modelValue": ($event) => $data.dialogFormData[col.prop] = $event,
|
|
65503
|
+
placeholder: col.placeholder || `\u8BF7\u9009\u62E9${col.label}`,
|
|
65504
|
+
disabled: $props.widget.options.disabled,
|
|
65505
|
+
style: { "width": "100%" },
|
|
65506
|
+
ref_for: true,
|
|
65507
|
+
ref: (el) => $options.handleSelectMounted(el, col)
|
|
65316
65508
|
}, {
|
|
65317
65509
|
default: withCtx(() => [
|
|
65318
65510
|
(openBlock(true), createElementBlock(Fragment, null, renderList($options.getColumnOptions(col), (option, optIdx) => {
|
|
@@ -65325,7 +65517,7 @@ function _sfc_render$1(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
65325
65517
|
]),
|
|
65326
65518
|
_: 2
|
|
65327
65519
|
}, 1032, ["modelValue", "onUpdate:modelValue", "placeholder", "disabled"])) : col.type === "textarea" ? (openBlock(), createBlock(_component_el_textarea, {
|
|
65328
|
-
key:
|
|
65520
|
+
key: 6,
|
|
65329
65521
|
modelValue: $data.dialogFormData[col.prop],
|
|
65330
65522
|
"onUpdate:modelValue": ($event) => $data.dialogFormData[col.prop] = $event,
|
|
65331
65523
|
placeholder: col.placeholder || `\u8BF7\u8F93\u5165${col.label}`,
|
|
@@ -65349,25 +65541,37 @@ function _sfc_render$1(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
65349
65541
|
_: 1
|
|
65350
65542
|
}, 8, ["widget"]);
|
|
65351
65543
|
}
|
|
65352
|
-
var SubTableItem = /* @__PURE__ */ _export_sfc$1(_sfc_main$1, [["render", _sfc_render$1], ["__scopeId", "data-v-
|
|
65544
|
+
var SubTableItem = /* @__PURE__ */ _export_sfc$1(_sfc_main$1, [["render", _sfc_render$1], ["__scopeId", "data-v-03803496"]]);
|
|
65353
65545
|
var subTableColumnsEditor_vue_vue_type_style_index_0_scoped_true_lang = "";
|
|
65354
65546
|
const _sfc_main = {
|
|
65355
65547
|
name: "sub-table-columns-editor",
|
|
65356
65548
|
mixins: [i18n$1],
|
|
65549
|
+
components: {
|
|
65550
|
+
CodeEditor
|
|
65551
|
+
},
|
|
65357
65552
|
props: {
|
|
65358
65553
|
designer: Object,
|
|
65359
65554
|
selectedWidget: Object,
|
|
65360
65555
|
optionModel: Object
|
|
65361
65556
|
},
|
|
65557
|
+
data() {
|
|
65558
|
+
return {
|
|
65559
|
+
showColumnEventDialog: false,
|
|
65560
|
+
currentEventName: "",
|
|
65561
|
+
currentColumn: null,
|
|
65562
|
+
columnEventHandlerCode: "",
|
|
65563
|
+
eventHeader: ""
|
|
65564
|
+
};
|
|
65565
|
+
},
|
|
65362
65566
|
created() {
|
|
65363
65567
|
if (!this.optionModel.columns) {
|
|
65364
|
-
this
|
|
65568
|
+
this.optionModel.columns = [];
|
|
65365
65569
|
}
|
|
65366
65570
|
},
|
|
65367
65571
|
methods: {
|
|
65368
65572
|
addNewColumn() {
|
|
65369
65573
|
if (!this.optionModel.columns) {
|
|
65370
|
-
this
|
|
65574
|
+
this.optionModel.columns = [];
|
|
65371
65575
|
}
|
|
65372
65576
|
const newColumn = {
|
|
65373
65577
|
prop: "field" + (this.optionModel.columns.length + 1),
|
|
@@ -65405,12 +65609,122 @@ const _sfc_main = {
|
|
|
65405
65609
|
console.warn("\u9009\u9879\u6570\u636E\u683C\u5F0F\u9519\u8BEF:", e);
|
|
65406
65610
|
}
|
|
65407
65611
|
this.designer.saveCurrentHistoryStep();
|
|
65612
|
+
},
|
|
65613
|
+
loadDictOptionsForColumn(col) {
|
|
65614
|
+
if (!col.dictCode || !col.dictCode.trim()) {
|
|
65615
|
+
return;
|
|
65616
|
+
}
|
|
65617
|
+
const dictCode = col.dictCode.trim();
|
|
65618
|
+
col._loadingDict = true;
|
|
65619
|
+
try {
|
|
65620
|
+
let dictManager = null;
|
|
65621
|
+
if (typeof window !== "undefined" && window.getDictData) {
|
|
65622
|
+
const dictItems = window.getDictData(dictCode);
|
|
65623
|
+
if (dictItems && Array.isArray(dictItems) && dictItems.length > 0) {
|
|
65624
|
+
col.options = dictItems.map((item) => ({
|
|
65625
|
+
label: item.dictLabel || item.label || item.name || item.text || "",
|
|
65626
|
+
value: item.dictValue || item.value || item.code || "",
|
|
65627
|
+
disabled: item.disabled || false
|
|
65628
|
+
}));
|
|
65629
|
+
col.optionsText = JSON.stringify(col.options, null, 2);
|
|
65630
|
+
this.$message.success("\u4ECE\u5B57\u5178\u7F13\u5B58\u52A0\u8F7D\u9009\u9879\u6210\u529F");
|
|
65631
|
+
col._loadingDict = false;
|
|
65632
|
+
this.designer.saveCurrentHistoryStep();
|
|
65633
|
+
return;
|
|
65634
|
+
}
|
|
65635
|
+
}
|
|
65636
|
+
if (typeof window !== "undefined" && window.dictCache && window.dictCache[dictCode]) {
|
|
65637
|
+
const dictItems = window.dictCache[dictCode];
|
|
65638
|
+
if (Array.isArray(dictItems) && dictItems.length > 0) {
|
|
65639
|
+
col.options = dictItems.map((item) => ({
|
|
65640
|
+
label: item.dictLabel || item.label || item.name || item.text || "",
|
|
65641
|
+
value: item.dictValue || item.value || item.code || "",
|
|
65642
|
+
disabled: item.disabled || false
|
|
65643
|
+
}));
|
|
65644
|
+
col.optionsText = JSON.stringify(col.options, null, 2);
|
|
65645
|
+
this.$message.success("\u4ECE\u5B57\u5178\u7F13\u5B58\u52A0\u8F7D\u9009\u9879\u6210\u529F");
|
|
65646
|
+
col._loadingDict = false;
|
|
65647
|
+
this.designer.saveCurrentHistoryStep();
|
|
65648
|
+
return;
|
|
65649
|
+
}
|
|
65650
|
+
}
|
|
65651
|
+
if (typeof window !== "undefined" && window.service) {
|
|
65652
|
+
window.service.post("/unified-dict/sysItemDict/page", {
|
|
65653
|
+
current: 1,
|
|
65654
|
+
size: 1e4,
|
|
65655
|
+
dictType: dictCode
|
|
65656
|
+
}).then(({ data: data2 }) => {
|
|
65657
|
+
col._loadingDict = false;
|
|
65658
|
+
const records = (data2 == null ? void 0 : data2.records) || (data2 == null ? void 0 : data2.data) || data2 || [];
|
|
65659
|
+
if (Array.isArray(records) && records.length > 0) {
|
|
65660
|
+
const dictItems = records.filter((item) => item.dictType === dictCode);
|
|
65661
|
+
if (dictItems.length > 0) {
|
|
65662
|
+
col.options = dictItems.map((item) => ({
|
|
65663
|
+
label: item.dictLabel || item.label || item.name || item.text || "",
|
|
65664
|
+
value: item.dictValue || item.value || item.code || "",
|
|
65665
|
+
disabled: item.disabled || false
|
|
65666
|
+
}));
|
|
65667
|
+
col.optionsText = JSON.stringify(col.options, null, 2);
|
|
65668
|
+
this.$message.success("\u4ECE\u5B57\u5178\u52A0\u8F7D\u9009\u9879\u6210\u529F");
|
|
65669
|
+
this.designer.saveCurrentHistoryStep();
|
|
65670
|
+
} else {
|
|
65671
|
+
this.$message.warning(`\u672A\u627E\u5230\u5B57\u5178\u7C7B\u578B\u4E3A "${dictCode}" \u7684\u6570\u636E`);
|
|
65672
|
+
}
|
|
65673
|
+
} else {
|
|
65674
|
+
this.$message.warning("\u5B57\u5178\u6570\u636E\u683C\u5F0F\u4E0D\u6B63\u786E");
|
|
65675
|
+
}
|
|
65676
|
+
}).catch((error) => {
|
|
65677
|
+
col._loadingDict = false;
|
|
65678
|
+
console.error("\u83B7\u53D6\u5B57\u5178\u6570\u636E\u5931\u8D25:", error);
|
|
65679
|
+
this.$message.error("\u83B7\u53D6\u5B57\u5178\u6570\u636E\u5931\u8D25\uFF0C\u8BF7\u68C0\u67E5\u5B57\u5178CODE\u662F\u5426\u6B63\u786E");
|
|
65680
|
+
});
|
|
65681
|
+
return;
|
|
65682
|
+
}
|
|
65683
|
+
this.$message.warning("\u672A\u627E\u5230\u5B57\u5178\u7F13\u5B58\uFF0C\u8BF7\u786E\u4FDD\u5B57\u5178CODE\u6B63\u786E\u6216\u5B57\u5178\u5DF2\u52A0\u8F7D");
|
|
65684
|
+
} catch (error) {
|
|
65685
|
+
console.error("\u52A0\u8F7D\u5B57\u5178\u6570\u636E\u5931\u8D25:", error);
|
|
65686
|
+
this.$message.error("\u52A0\u8F7D\u5B57\u5178\u6570\u636E\u5931\u8D25: " + error.message);
|
|
65687
|
+
} finally {
|
|
65688
|
+
col._loadingDict = false;
|
|
65689
|
+
}
|
|
65690
|
+
},
|
|
65691
|
+
editColumnEventHandler(col, eventName, eventParams) {
|
|
65692
|
+
this.currentColumn = col;
|
|
65693
|
+
this.currentEventName = eventName;
|
|
65694
|
+
this.eventHeader = `${col.label || col.prop}.${eventName}(${eventParams.join(", ")}) {`;
|
|
65695
|
+
this.columnEventHandlerCode = col[eventName] || "";
|
|
65696
|
+
this.showColumnEventDialog = true;
|
|
65697
|
+
},
|
|
65698
|
+
saveColumnEventHandler() {
|
|
65699
|
+
if (!this.currentColumn || !this.currentEventName) {
|
|
65700
|
+
return;
|
|
65701
|
+
}
|
|
65702
|
+
if (this.$refs.columnEventEditor) {
|
|
65703
|
+
const codeHints = this.$refs.columnEventEditor.getEditorAnnotations();
|
|
65704
|
+
let syntaxErrorFlag = false;
|
|
65705
|
+
if (codeHints && codeHints.length > 0) {
|
|
65706
|
+
codeHints.forEach((chItem) => {
|
|
65707
|
+
if (chItem.type === "error") {
|
|
65708
|
+
syntaxErrorFlag = true;
|
|
65709
|
+
}
|
|
65710
|
+
});
|
|
65711
|
+
if (syntaxErrorFlag) {
|
|
65712
|
+
this.$message.error(this.i18nt("designer.setting.syntaxCheckWarning"));
|
|
65713
|
+
return;
|
|
65714
|
+
}
|
|
65715
|
+
}
|
|
65716
|
+
}
|
|
65717
|
+
this.currentColumn[this.currentEventName] = this.columnEventHandlerCode;
|
|
65718
|
+
this.designer.saveCurrentHistoryStep();
|
|
65719
|
+
this.showColumnEventDialog = false;
|
|
65720
|
+
this.$message.success("\u4E8B\u4EF6\u4FDD\u5B58\u6210\u529F");
|
|
65408
65721
|
}
|
|
65409
65722
|
}
|
|
65410
65723
|
};
|
|
65411
65724
|
const _hoisted_1 = { class: "column-header" };
|
|
65412
65725
|
const _hoisted_2 = { class: "column-title" };
|
|
65413
65726
|
const _hoisted_3 = { class: "column-form" };
|
|
65727
|
+
const _hoisted_4 = { class: "dialog-footer" };
|
|
65414
65728
|
function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
65415
65729
|
const _component_el_divider = resolveComponent("el-divider");
|
|
65416
65730
|
const _component_el_form_item = resolveComponent("el-form-item");
|
|
@@ -65420,196 +65734,311 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
65420
65734
|
const _component_el_select = resolveComponent("el-select");
|
|
65421
65735
|
const _component_el_switch = resolveComponent("el-switch");
|
|
65422
65736
|
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
|
-
|
|
65737
|
+
const _component_el_alert = resolveComponent("el-alert");
|
|
65738
|
+
const _component_code_editor = resolveComponent("code-editor");
|
|
65739
|
+
const _component_el_dialog = resolveComponent("el-dialog");
|
|
65740
|
+
return openBlock(), createElementBlock(Fragment, null, [
|
|
65741
|
+
createElementVNode("div", null, [
|
|
65742
|
+
createVNode(_component_el_form_item, { "label-width": "0" }, {
|
|
65743
|
+
default: withCtx(() => [
|
|
65744
|
+
createVNode(_component_el_divider, { class: "custom-divider" }, {
|
|
65745
|
+
default: withCtx(() => [..._cache[3] || (_cache[3] = [
|
|
65746
|
+
createTextVNode("\u8868\u683C\u5217\u914D\u7F6E", -1)
|
|
65747
|
+
])]),
|
|
65748
|
+
_: 1
|
|
65749
|
+
})
|
|
65750
|
+
]),
|
|
65751
|
+
_: 1
|
|
65752
|
+
}),
|
|
65753
|
+
createVNode(_component_el_form_item, { "label-width": "0" }, {
|
|
65754
|
+
default: withCtx(() => [
|
|
65755
|
+
(openBlock(true), createElementBlock(Fragment, null, renderList($props.optionModel.columns, (col, colIdx) => {
|
|
65756
|
+
return openBlock(), createElementBlock("div", {
|
|
65757
|
+
key: colIdx,
|
|
65758
|
+
class: "column-item"
|
|
65759
|
+
}, [
|
|
65760
|
+
createElementVNode("div", _hoisted_1, [
|
|
65761
|
+
createElementVNode("span", _hoisted_2, "\u5217 " + toDisplayString(colIdx + 1), 1),
|
|
65762
|
+
createVNode(_component_el_button, {
|
|
65763
|
+
circle: "",
|
|
65764
|
+
plain: "",
|
|
65765
|
+
size: "small",
|
|
65766
|
+
type: "danger",
|
|
65767
|
+
onClick: ($event) => $options.deleteColumn(colIdx),
|
|
65768
|
+
icon: "el-icon-minus",
|
|
65769
|
+
class: "column-delete-button"
|
|
65770
|
+
}, null, 8, ["onClick"])
|
|
65771
|
+
]),
|
|
65772
|
+
createElementVNode("div", _hoisted_3, [
|
|
65773
|
+
createVNode(_component_el_form_item, { label: "\u5217\u540D" }, {
|
|
65774
|
+
default: withCtx(() => [
|
|
65775
|
+
createVNode(_component_el_input, {
|
|
65776
|
+
modelValue: col.label,
|
|
65777
|
+
"onUpdate:modelValue": ($event) => col.label = $event,
|
|
65778
|
+
placeholder: "\u8BF7\u8F93\u5165\u5217\u540D",
|
|
65779
|
+
onInput: $options.handleColumnChange
|
|
65780
|
+
}, null, 8, ["modelValue", "onUpdate:modelValue", "onInput"])
|
|
65781
|
+
]),
|
|
65782
|
+
_: 2
|
|
65783
|
+
}, 1024),
|
|
65784
|
+
createVNode(_component_el_form_item, { label: "\u5B57\u6BB5\u540D" }, {
|
|
65785
|
+
default: withCtx(() => [
|
|
65786
|
+
createVNode(_component_el_input, {
|
|
65787
|
+
modelValue: col.prop,
|
|
65788
|
+
"onUpdate:modelValue": ($event) => col.prop = $event,
|
|
65789
|
+
placeholder: "\u8BF7\u8F93\u5165\u5B57\u6BB5\u540D\uFF08\u82F1\u6587\uFF09",
|
|
65790
|
+
onInput: $options.handleColumnChange
|
|
65791
|
+
}, null, 8, ["modelValue", "onUpdate:modelValue", "onInput"])
|
|
65792
|
+
]),
|
|
65793
|
+
_: 2
|
|
65794
|
+
}, 1024),
|
|
65795
|
+
createVNode(_component_el_form_item, { label: "\u5217\u7C7B\u578B" }, {
|
|
65796
|
+
default: withCtx(() => [
|
|
65797
|
+
createVNode(_component_el_select, {
|
|
65798
|
+
modelValue: col.type,
|
|
65799
|
+
"onUpdate:modelValue": ($event) => col.type = $event,
|
|
65800
|
+
placeholder: "\u8BF7\u9009\u62E9\u5217\u7C7B\u578B",
|
|
65801
|
+
onChange: $options.handleColumnChange,
|
|
65802
|
+
style: { "width": "100%" }
|
|
65803
|
+
}, {
|
|
65804
|
+
default: withCtx(() => [
|
|
65805
|
+
createVNode(_component_el_option, {
|
|
65806
|
+
label: "\u6587\u672C\u8F93\u5165",
|
|
65807
|
+
value: "input"
|
|
65808
|
+
}),
|
|
65809
|
+
createVNode(_component_el_option, {
|
|
65810
|
+
label: "\u6570\u5B57\u8F93\u5165",
|
|
65811
|
+
value: "number"
|
|
65812
|
+
}),
|
|
65813
|
+
createVNode(_component_el_option, {
|
|
65814
|
+
label: "\u65E5\u671F\u9009\u62E9",
|
|
65815
|
+
value: "date"
|
|
65816
|
+
}),
|
|
65817
|
+
createVNode(_component_el_option, {
|
|
65818
|
+
label: "\u6708\u4EFD\u9009\u62E9",
|
|
65819
|
+
value: "month"
|
|
65820
|
+
}),
|
|
65821
|
+
createVNode(_component_el_option, {
|
|
65822
|
+
label: "\u65E5\u671F\u65F6\u95F4",
|
|
65823
|
+
value: "datetime"
|
|
65824
|
+
}),
|
|
65825
|
+
createVNode(_component_el_option, {
|
|
65826
|
+
label: "\u4E0B\u62C9\u9009\u62E9",
|
|
65827
|
+
value: "select"
|
|
65828
|
+
}),
|
|
65829
|
+
createVNode(_component_el_option, {
|
|
65830
|
+
label: "\u591A\u884C\u6587\u672C",
|
|
65831
|
+
value: "textarea"
|
|
65832
|
+
})
|
|
65833
|
+
]),
|
|
65834
|
+
_: 1
|
|
65835
|
+
}, 8, ["modelValue", "onUpdate:modelValue", "onChange"])
|
|
65836
|
+
]),
|
|
65837
|
+
_: 2
|
|
65838
|
+
}, 1024),
|
|
65839
|
+
col.type === "select" ? (openBlock(), createBlock(_component_el_form_item, {
|
|
65840
|
+
key: 0,
|
|
65841
|
+
label: "\u5B57\u5178CODE"
|
|
65842
|
+
}, {
|
|
65843
|
+
default: withCtx(() => [
|
|
65844
|
+
createVNode(_component_el_input, {
|
|
65845
|
+
modelValue: col.dictCode,
|
|
65846
|
+
"onUpdate:modelValue": ($event) => col.dictCode = $event,
|
|
65847
|
+
placeholder: "\u8BF7\u8F93\u5165\u5B57\u5178CODE\uFF0C\u5C06\u4ECE\u5B57\u5178\u7F13\u5B58\u83B7\u53D6\u9009\u9879",
|
|
65848
|
+
onBlur: ($event) => $options.loadDictOptionsForColumn(col),
|
|
65849
|
+
clearable: ""
|
|
65850
|
+
}, {
|
|
65851
|
+
append: withCtx(() => [
|
|
65852
|
+
createVNode(_component_el_button, {
|
|
65853
|
+
onClick: ($event) => $options.loadDictOptionsForColumn(col),
|
|
65854
|
+
loading: col._loadingDict
|
|
65855
|
+
}, {
|
|
65856
|
+
default: withCtx(() => [..._cache[4] || (_cache[4] = [
|
|
65857
|
+
createTextVNode("\u52A0\u8F7D", -1)
|
|
65858
|
+
])]),
|
|
65859
|
+
_: 1
|
|
65860
|
+
}, 8, ["onClick", "loading"])
|
|
65861
|
+
]),
|
|
65862
|
+
_: 2
|
|
65863
|
+
}, 1032, ["modelValue", "onUpdate:modelValue", "onBlur"]),
|
|
65864
|
+
_cache[5] || (_cache[5] = createElementVNode("div", {
|
|
65865
|
+
class: "hint-text",
|
|
65866
|
+
style: { "font-size": "12px", "color": "#909399", "margin-top": "4px" }
|
|
65867
|
+
}, ' \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))
|
|
65868
|
+
]),
|
|
65869
|
+
_: 2
|
|
65870
|
+
}, 1024)) : createCommentVNode("", true),
|
|
65871
|
+
createVNode(_component_el_form_item, { label: "\u5217\u5BBD" }, {
|
|
65872
|
+
default: withCtx(() => [
|
|
65873
|
+
createVNode(_component_el_input, {
|
|
65874
|
+
modelValue: col.width,
|
|
65875
|
+
"onUpdate:modelValue": ($event) => col.width = $event,
|
|
65876
|
+
placeholder: "\u5982\uFF1A150\uFF08\u53EF\u9009\uFF09",
|
|
65877
|
+
onInput: $options.handleColumnChange
|
|
65878
|
+
}, null, 8, ["modelValue", "onUpdate:modelValue", "onInput"])
|
|
65879
|
+
]),
|
|
65880
|
+
_: 2
|
|
65881
|
+
}, 1024),
|
|
65882
|
+
createVNode(_component_el_form_item, { label: "\u6700\u5C0F\u5217\u5BBD" }, {
|
|
65883
|
+
default: withCtx(() => [
|
|
65884
|
+
createVNode(_component_el_input, {
|
|
65885
|
+
modelValue: col.minWidth,
|
|
65886
|
+
"onUpdate:modelValue": ($event) => col.minWidth = $event,
|
|
65887
|
+
placeholder: "\u5982\uFF1A100\uFF08\u53EF\u9009\uFF09",
|
|
65888
|
+
onInput: $options.handleColumnChange
|
|
65889
|
+
}, null, 8, ["modelValue", "onUpdate:modelValue", "onInput"])
|
|
65890
|
+
]),
|
|
65891
|
+
_: 2
|
|
65892
|
+
}, 1024),
|
|
65893
|
+
createVNode(_component_el_form_item, { label: "\u5360\u4F4D\u7B26" }, {
|
|
65894
|
+
default: withCtx(() => [
|
|
65895
|
+
createVNode(_component_el_input, {
|
|
65896
|
+
modelValue: col.placeholder,
|
|
65897
|
+
"onUpdate:modelValue": ($event) => col.placeholder = $event,
|
|
65898
|
+
placeholder: "\u8BF7\u8F93\u5165\u5360\u4F4D\u7B26\uFF08\u53EF\u9009\uFF09",
|
|
65899
|
+
onInput: $options.handleColumnChange
|
|
65900
|
+
}, null, 8, ["modelValue", "onUpdate:modelValue", "onInput"])
|
|
65901
|
+
]),
|
|
65902
|
+
_: 2
|
|
65903
|
+
}, 1024),
|
|
65904
|
+
createVNode(_component_el_form_item, { label: "\u662F\u5426\u5FC5\u586B" }, {
|
|
65905
|
+
default: withCtx(() => [
|
|
65906
|
+
createVNode(_component_el_switch, {
|
|
65907
|
+
modelValue: col.required,
|
|
65908
|
+
"onUpdate:modelValue": ($event) => col.required = $event,
|
|
65909
|
+
onChange: $options.handleColumnChange
|
|
65910
|
+
}, null, 8, ["modelValue", "onUpdate:modelValue", "onChange"])
|
|
65911
|
+
]),
|
|
65912
|
+
_: 2
|
|
65913
|
+
}, 1024),
|
|
65914
|
+
col.type === "select" ? (openBlock(), createBlock(_component_el_form_item, {
|
|
65915
|
+
key: 1,
|
|
65916
|
+
label: "\u9009\u9879\u6570\u636E"
|
|
65917
|
+
}, {
|
|
65918
|
+
default: withCtx(() => [
|
|
65919
|
+
createVNode(_component_el_input, {
|
|
65920
|
+
modelValue: col.optionsText,
|
|
65921
|
+
"onUpdate:modelValue": ($event) => col.optionsText = $event,
|
|
65922
|
+
type: "textarea",
|
|
65923
|
+
rows: 3,
|
|
65924
|
+
placeholder: '\u683C\u5F0F\uFF1A[{"label":"\u9009\u98791","value":"value1"},{"label":"\u9009\u98792","value":"value2"}]',
|
|
65925
|
+
onInput: ($event) => $options.handleSelectOptionsChange(col, $event)
|
|
65926
|
+
}, null, 8, ["modelValue", "onUpdate:modelValue", "onInput"]),
|
|
65927
|
+
_cache[6] || (_cache[6] = createElementVNode("div", { class: "hint-text" }, "\u8BF7\u8F93\u5165 JSON \u683C\u5F0F\u7684\u9009\u9879\u6570\u7EC4", -1))
|
|
65928
|
+
]),
|
|
65929
|
+
_: 2
|
|
65930
|
+
}, 1024)) : createCommentVNode("", true),
|
|
65931
|
+
col.type === "select" ? (openBlock(), createBlock(_component_el_form_item, {
|
|
65932
|
+
key: 2,
|
|
65933
|
+
label: "onMounted\u4E8B\u4EF6"
|
|
65934
|
+
}, {
|
|
65935
|
+
default: withCtx(() => [
|
|
65936
|
+
createVNode(_component_el_button, {
|
|
65937
|
+
type: "info",
|
|
65938
|
+
icon: "el-icon-edit",
|
|
65939
|
+
plain: "",
|
|
65940
|
+
round: "",
|
|
65941
|
+
onClick: ($event) => $options.editColumnEventHandler(col, "onMounted", ["col", "options", "setOptions"])
|
|
65942
|
+
}, {
|
|
65943
|
+
default: withCtx(() => [
|
|
65944
|
+
createTextVNode(toDisplayString(_ctx.i18nt("designer.setting.addEventHandler")), 1)
|
|
65945
|
+
]),
|
|
65946
|
+
_: 1
|
|
65947
|
+
}, 8, ["onClick"]),
|
|
65948
|
+
_cache[7] || (_cache[7] = createElementVNode("div", {
|
|
65949
|
+
class: "hint-text",
|
|
65950
|
+
style: { "font-size": "12px", "color": "#909399", "margin-top": "4px" }
|
|
65951
|
+
}, [
|
|
65952
|
+
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 "),
|
|
65953
|
+
createElementVNode("br"),
|
|
65954
|
+
createTextVNode("\u793A\u4F8B\uFF1AsetOptions([{label: '\u9009\u98791', value: '1'}, {label: '\u9009\u98792', value: '2'}]) ")
|
|
65955
|
+
], -1))
|
|
65956
|
+
]),
|
|
65957
|
+
_: 2
|
|
65958
|
+
}, 1024)) : createCommentVNode("", true),
|
|
65959
|
+
col.type === "textarea" ? (openBlock(), createBlock(_component_el_form_item, {
|
|
65960
|
+
key: 3,
|
|
65961
|
+
label: "\u884C\u6570"
|
|
65962
|
+
}, {
|
|
65963
|
+
default: withCtx(() => [
|
|
65964
|
+
createVNode(_component_el_input_number, {
|
|
65965
|
+
modelValue: col.rows,
|
|
65966
|
+
"onUpdate:modelValue": ($event) => col.rows = $event,
|
|
65967
|
+
min: 1,
|
|
65968
|
+
max: 10,
|
|
65969
|
+
onChange: $options.handleColumnChange
|
|
65970
|
+
}, null, 8, ["modelValue", "onUpdate:modelValue", "onChange"])
|
|
65971
|
+
]),
|
|
65972
|
+
_: 2
|
|
65973
|
+
}, 1024)) : createCommentVNode("", true)
|
|
65974
|
+
])
|
|
65975
|
+
]);
|
|
65976
|
+
}), 128)),
|
|
65977
|
+
createElementVNode("div", null, [
|
|
65978
|
+
createVNode(_component_el_button, {
|
|
65979
|
+
link: "",
|
|
65980
|
+
type: "primary",
|
|
65981
|
+
onClick: $options.addNewColumn
|
|
65982
|
+
}, {
|
|
65983
|
+
default: withCtx(() => [..._cache[8] || (_cache[8] = [
|
|
65984
|
+
createTextVNode("\u6DFB\u52A0\u5217", -1)
|
|
65985
|
+
])]),
|
|
65986
|
+
_: 1
|
|
65987
|
+
}, 8, ["onClick"])
|
|
65988
|
+
])
|
|
65989
|
+
]),
|
|
65990
|
+
_: 1
|
|
65991
|
+
})
|
|
65992
|
+
]),
|
|
65993
|
+
createVNode(_component_el_dialog, {
|
|
65994
|
+
modelValue: $data.showColumnEventDialog,
|
|
65995
|
+
"onUpdate:modelValue": _cache[2] || (_cache[2] = ($event) => $data.showColumnEventDialog = $event),
|
|
65996
|
+
title: `\u7F16\u8F91\u4E8B\u4EF6\uFF1A${$data.currentEventName}`,
|
|
65997
|
+
width: "800px",
|
|
65998
|
+
"append-to-body": "",
|
|
65999
|
+
"close-on-click-modal": false
|
|
66000
|
+
}, {
|
|
66001
|
+
footer: withCtx(() => [
|
|
66002
|
+
createElementVNode("div", _hoisted_4, [
|
|
66003
|
+
createVNode(_component_el_button, {
|
|
66004
|
+
onClick: _cache[1] || (_cache[1] = ($event) => $data.showColumnEventDialog = false)
|
|
66005
|
+
}, {
|
|
66006
|
+
default: withCtx(() => [..._cache[9] || (_cache[9] = [
|
|
66007
|
+
createTextVNode("\u53D6\u6D88", -1)
|
|
66008
|
+
])]),
|
|
66009
|
+
_: 1
|
|
66010
|
+
}),
|
|
65596
66011
|
createVNode(_component_el_button, {
|
|
65597
|
-
link: "",
|
|
65598
66012
|
type: "primary",
|
|
65599
|
-
onClick: $options.
|
|
66013
|
+
onClick: $options.saveColumnEventHandler
|
|
65600
66014
|
}, {
|
|
65601
|
-
default: withCtx(() => [..._cache[
|
|
65602
|
-
createTextVNode("\
|
|
66015
|
+
default: withCtx(() => [..._cache[10] || (_cache[10] = [
|
|
66016
|
+
createTextVNode("\u786E\u5B9A", -1)
|
|
65603
66017
|
])]),
|
|
65604
66018
|
_: 1
|
|
65605
66019
|
}, 8, ["onClick"])
|
|
65606
66020
|
])
|
|
65607
66021
|
]),
|
|
66022
|
+
default: withCtx(() => [
|
|
66023
|
+
createVNode(_component_el_alert, {
|
|
66024
|
+
type: "info",
|
|
66025
|
+
closable: false,
|
|
66026
|
+
title: $data.eventHeader,
|
|
66027
|
+
style: { "margin-bottom": "10px" }
|
|
66028
|
+
}, null, 8, ["title"]),
|
|
66029
|
+
createVNode(_component_code_editor, {
|
|
66030
|
+
mode: "javascript",
|
|
66031
|
+
readonly: false,
|
|
66032
|
+
modelValue: $data.columnEventHandlerCode,
|
|
66033
|
+
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => $data.columnEventHandlerCode = $event),
|
|
66034
|
+
ref: "columnEventEditor"
|
|
66035
|
+
}, null, 8, ["modelValue"])
|
|
66036
|
+
]),
|
|
65608
66037
|
_: 1
|
|
65609
|
-
})
|
|
65610
|
-
]);
|
|
66038
|
+
}, 8, ["modelValue", "title"])
|
|
66039
|
+
], 64);
|
|
65611
66040
|
}
|
|
65612
|
-
var SubTableColumnsEditor = /* @__PURE__ */ _export_sfc$1(_sfc_main, [["render", _sfc_render], ["__scopeId", "data-v-
|
|
66041
|
+
var SubTableColumnsEditor = /* @__PURE__ */ _export_sfc$1(_sfc_main, [["render", _sfc_render], ["__scopeId", "data-v-3908a6b2"]]);
|
|
65613
66042
|
const loadExtension = function(app) {
|
|
65614
66043
|
addContainerWidgetSchema(cardSchema);
|
|
65615
66044
|
app.component(CardWidget.name, CardWidget);
|
|
@@ -65686,6 +66115,10 @@ const loadExtension = function(app) {
|
|
|
65686
66115
|
registerCPEditor(app, "sub-table-columns", "sub-table-columns-editor", SubTableColumnsEditor);
|
|
65687
66116
|
registerCPEditor(app, "select-tree-showCheckbox", "select-tree-showCheckbox-editor", createBooleanEditor("showCheckbox", "designer.setting.showCheckbox"));
|
|
65688
66117
|
};
|
|
66118
|
+
const { cookies } = useCookies();
|
|
66119
|
+
if (typeof window !== "undefined") {
|
|
66120
|
+
window.cookies = cookies;
|
|
66121
|
+
}
|
|
65689
66122
|
const SortableLib = (_b = (_a = require$$1) == null ? void 0 : _a.default) != null ? _b : require$$1;
|
|
65690
66123
|
if (typeof window !== "undefined" && !window.Sortable) {
|
|
65691
66124
|
window.Sortable = SortableLib;
|