form-custom-test 3.0.42 → 3.0.44
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 +280 -98
- package/dist/designer.style.css +1 -1
- package/dist/designer.umd.js +107 -107
- package/dist/render.es.js +223 -81
- package/dist/render.style.css +1 -1
- package/dist/render.umd.js +67 -67
- package/package.json +1 -1
package/dist/designer.es.js
CHANGED
|
@@ -3602,7 +3602,8 @@ var zhLocale_render = {
|
|
|
3602
3602
|
subFormAddActionHint: "\u65B0\u589E\u884C",
|
|
3603
3603
|
insertSubFormRow: "\u63D2\u5165\u884C",
|
|
3604
3604
|
deleteSubFormRow: "\u5220\u9664\u884C",
|
|
3605
|
-
nonSubFormType: "\u7EC4\u4EF6\u7C7B\u578B\u4E0D\u662F\u5B50\u8868\u5355"
|
|
3605
|
+
nonSubFormType: "\u7EC4\u4EF6\u7C7B\u578B\u4E0D\u662F\u5B50\u8868\u5355",
|
|
3606
|
+
selectTreeCheckStrictly: "\u662F\u5426\u4E25\u683C\u9009\u4E2D"
|
|
3606
3607
|
}
|
|
3607
3608
|
}
|
|
3608
3609
|
};
|
|
@@ -3664,6 +3665,7 @@ const personTreeSchema = {
|
|
|
3664
3665
|
dialogTitle: "\u4EBA\u5458\u6811",
|
|
3665
3666
|
dialogWidth: "50%",
|
|
3666
3667
|
hideFooter: false,
|
|
3668
|
+
multiple: true,
|
|
3667
3669
|
treeParams: "",
|
|
3668
3670
|
customClass: "",
|
|
3669
3671
|
onOpen: "",
|
|
@@ -3818,9 +3820,11 @@ var enLocale_extension = {
|
|
|
3818
3820
|
personTreeConfirmText: "Confirm Button Text",
|
|
3819
3821
|
personTreeCancelText: "Cancel Button Text",
|
|
3820
3822
|
personTreeHideFooter: "Hide Dialog Footer",
|
|
3823
|
+
personTreeMultiple: "Multiple",
|
|
3821
3824
|
meetingRoomRemoteUrl: "Request URL",
|
|
3822
3825
|
allowMultiple: "Allow Multiple",
|
|
3823
|
-
currentUserType: "Current User Type"
|
|
3826
|
+
currentUserType: "Current User Type",
|
|
3827
|
+
selectTreeCheckStrictly: "Check Strictly"
|
|
3824
3828
|
}
|
|
3825
3829
|
}
|
|
3826
3830
|
};
|
|
@@ -3857,9 +3861,11 @@ var zhLocale_extension = {
|
|
|
3857
3861
|
personTreeConfirmText: "\u786E\u5B9A\u6309\u94AE\u6587\u5B57",
|
|
3858
3862
|
personTreeCancelText: "\u53D6\u6D88\u6309\u94AE\u6587\u5B57",
|
|
3859
3863
|
personTreeHideFooter: "\u9690\u85CF\u5E95\u90E8\u6309\u94AE",
|
|
3864
|
+
personTreeMultiple: "\u662F\u5426\u591A\u9009",
|
|
3860
3865
|
meetingRoomRemoteUrl: "\u8BF7\u6C42\u5730\u5740",
|
|
3861
3866
|
allowMultiple: "\u662F\u5426\u591A\u9009",
|
|
3862
|
-
currentUserType: "\u5F53\u524D\u7528\u6237\u7C7B\u578B"
|
|
3867
|
+
currentUserType: "\u5F53\u524D\u7528\u6237\u7C7B\u578B",
|
|
3868
|
+
selectTreeCheckStrictly: "\u662F\u5426\u4E25\u683C\u9009\u4E2D"
|
|
3863
3869
|
}
|
|
3864
3870
|
}
|
|
3865
3871
|
};
|
|
@@ -4077,7 +4083,7 @@ const _hoisted_5$h = ["title", "onDblclick"];
|
|
|
4077
4083
|
const _hoisted_6$g = ["src"];
|
|
4078
4084
|
const _hoisted_7$d = ["src"];
|
|
4079
4085
|
const _hoisted_8$9 = { class: "bottom clear-fix" };
|
|
4080
|
-
const _hoisted_9$
|
|
4086
|
+
const _hoisted_9$7 = { class: "ft-title" };
|
|
4081
4087
|
function _sfc_render$3s(_ctx, _cache, $props, $setup, $data, $options) {
|
|
4082
4088
|
const _component_svg_icon = resolveComponent("svg-icon");
|
|
4083
4089
|
const _component_draggable = resolveComponent("draggable");
|
|
@@ -4297,7 +4303,7 @@ function _sfc_render$3s(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
4297
4303
|
_: 2
|
|
4298
4304
|
}, 1024),
|
|
4299
4305
|
createElementVNode("div", _hoisted_8$9, [
|
|
4300
|
-
createElementVNode("span", _hoisted_9$
|
|
4306
|
+
createElementVNode("span", _hoisted_9$7, "#" + toDisplayString(idx + 1) + " " + toDisplayString(ft.title), 1),
|
|
4301
4307
|
createVNode(_component_el_button, {
|
|
4302
4308
|
link: "",
|
|
4303
4309
|
type: "primary",
|
|
@@ -10472,6 +10478,14 @@ var fieldMixin = {
|
|
|
10472
10478
|
getFormRef() {
|
|
10473
10479
|
return this.refList["v_form_ref"];
|
|
10474
10480
|
},
|
|
10481
|
+
findColByName(colName) {
|
|
10482
|
+
const formRef = this.getFormRef();
|
|
10483
|
+
return formRef && typeof formRef.findColByName === "function" ? formRef.findColByName(null, colName) : null;
|
|
10484
|
+
},
|
|
10485
|
+
setColHidden(colName, hidden) {
|
|
10486
|
+
const formRef = this.getFormRef();
|
|
10487
|
+
return formRef && typeof formRef.setColHidden === "function" ? formRef.setColHidden(colName, hidden) : false;
|
|
10488
|
+
},
|
|
10475
10489
|
getWidgetRef(widgetName, showError, rowId) {
|
|
10476
10490
|
let foundRef = null;
|
|
10477
10491
|
if (this.subFormItemFlag && !this.designState) {
|
|
@@ -10586,8 +10600,7 @@ var fieldMixin = {
|
|
|
10586
10600
|
this.field.options.optionItems = deepClone(options || []);
|
|
10587
10601
|
}
|
|
10588
10602
|
} else {
|
|
10589
|
-
this.field.options.optionItems = options;
|
|
10590
|
-
console.log(this.field, "this.field.options.optionItems");
|
|
10603
|
+
this.field.options.optionItems = deepClone(options || []);
|
|
10591
10604
|
}
|
|
10592
10605
|
this.clearSelectedOptions();
|
|
10593
10606
|
},
|
|
@@ -10875,7 +10888,7 @@ const _hoisted_7$b = {
|
|
|
10875
10888
|
class: "drag-handler background-opacity"
|
|
10876
10889
|
};
|
|
10877
10890
|
const _hoisted_8$7 = ["title"];
|
|
10878
|
-
const _hoisted_9$
|
|
10891
|
+
const _hoisted_9$6 = { key: 0 };
|
|
10879
10892
|
function _sfc_render$3o(_ctx, _cache, $props, $setup, $data, $options) {
|
|
10880
10893
|
const _component_svg_icon = resolveComponent("svg-icon");
|
|
10881
10894
|
const _component_el_tooltip = resolveComponent("el-tooltip");
|
|
@@ -10984,7 +10997,7 @@ function _sfc_render$3o(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
10984
10997
|
createVNode(_component_svg_icon, { "icon-class": "el-drag-move" })
|
|
10985
10998
|
], 8, _hoisted_8$7),
|
|
10986
10999
|
createElementVNode("i", null, toDisplayString(_ctx.i18n2t(`designer.widgetLabel.${$props.field.type}`, `extension.widgetLabel.${$props.field.type}`)), 1),
|
|
10987
|
-
$props.field.options.hidden === true ? (openBlock(), createElementBlock("i", _hoisted_9$
|
|
11000
|
+
$props.field.options.hidden === true ? (openBlock(), createElementBlock("i", _hoisted_9$6, [
|
|
10988
11001
|
createVNode(_component_svg_icon, { "icon-class": "el-hide" })
|
|
10989
11002
|
])) : createCommentVNode("", true)
|
|
10990
11003
|
])) : createCommentVNode("", true)
|
|
@@ -24807,8 +24820,9 @@ function _sfc_render$2Z(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
24807
24820
|
"remote-method": $options.remoteMethod,
|
|
24808
24821
|
onFocus: _ctx.handleFocusCustomEvent,
|
|
24809
24822
|
onBlur: _ctx.handleBlurCustomEvent,
|
|
24810
|
-
onChange: $options.handleTreeSelectChange
|
|
24811
|
-
|
|
24823
|
+
onChange: $options.handleTreeSelectChange,
|
|
24824
|
+
"check-strictly": $props.field.options.checkStrictly || false
|
|
24825
|
+
}, null, 8, ["modelValue", "data", "show-checkbox", "disabled", "size", "clearable", "filterable", "allow-create", "default-first-option", "automatic-dropdown", "multiple", "multiple-limit", "placeholder", "remote", "remote-method", "onFocus", "onBlur", "onChange", "check-strictly"])
|
|
24812
24826
|
]),
|
|
24813
24827
|
_: 1
|
|
24814
24828
|
}, 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"]);
|
|
@@ -24893,7 +24907,6 @@ const _sfc_main$2Y = {
|
|
|
24893
24907
|
if (this.field.options.optionItems) {
|
|
24894
24908
|
return this.field.options.optionItems;
|
|
24895
24909
|
}
|
|
24896
|
-
console.log(this.field.options.optionItems);
|
|
24897
24910
|
return [];
|
|
24898
24911
|
}
|
|
24899
24912
|
}
|
|
@@ -24952,7 +24965,7 @@ function _sfc_render$2Y(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
24952
24965
|
_: 1
|
|
24953
24966
|
}, 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"]);
|
|
24954
24967
|
}
|
|
24955
|
-
var selectWidget = /* @__PURE__ */ _export_sfc$1(_sfc_main$2Y, [["render", _sfc_render$2Y], ["__scopeId", "data-v-
|
|
24968
|
+
var selectWidget = /* @__PURE__ */ _export_sfc$1(_sfc_main$2Y, [["render", _sfc_render$2Y], ["__scopeId", "data-v-70a357a0"]]);
|
|
24956
24969
|
var __glob_0_17$1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
24957
24970
|
__proto__: null,
|
|
24958
24971
|
"default": selectWidget
|
|
@@ -25659,6 +25672,9 @@ const _sfc_main$2Q = {
|
|
|
25659
25672
|
formConfig() {
|
|
25660
25673
|
return this.getFormConfig();
|
|
25661
25674
|
},
|
|
25675
|
+
colVisible() {
|
|
25676
|
+
return !!(this.widget && this.widget.options && !this.widget.options.hidden);
|
|
25677
|
+
},
|
|
25662
25678
|
customClass() {
|
|
25663
25679
|
if (!this.widget || !this.widget.options) {
|
|
25664
25680
|
return "";
|
|
@@ -25673,7 +25689,20 @@ const _sfc_main$2Q = {
|
|
|
25673
25689
|
this.initLayoutProps();
|
|
25674
25690
|
this.initRefList();
|
|
25675
25691
|
},
|
|
25692
|
+
beforeUnmount() {
|
|
25693
|
+
var _a2, _b2;
|
|
25694
|
+
if (this.refList != null && ((_b2 = (_a2 = this.widget) == null ? void 0 : _a2.options) == null ? void 0 : _b2.name)) {
|
|
25695
|
+
delete this.refList[this.widget.options.name];
|
|
25696
|
+
}
|
|
25697
|
+
},
|
|
25698
|
+
watch: {},
|
|
25676
25699
|
methods: {
|
|
25700
|
+
setHidden(flag) {
|
|
25701
|
+
if (this.widget && this.widget.options) {
|
|
25702
|
+
this.widget.options.hidden = !!flag;
|
|
25703
|
+
this.$nextTick(() => this.$forceUpdate());
|
|
25704
|
+
}
|
|
25705
|
+
},
|
|
25677
25706
|
initLayoutProps() {
|
|
25678
25707
|
if (!this.widget || !this.widget.options) {
|
|
25679
25708
|
return;
|
|
@@ -25766,10 +25795,10 @@ function _sfc_render$2Q(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
25766
25795
|
]),
|
|
25767
25796
|
_: 3
|
|
25768
25797
|
}, 16, ["class", "style"])), [
|
|
25769
|
-
[vShow, $
|
|
25798
|
+
[vShow, $options.colVisible]
|
|
25770
25799
|
]) : createCommentVNode("", true);
|
|
25771
25800
|
}
|
|
25772
|
-
var GridColItem = /* @__PURE__ */ _export_sfc$1(_sfc_main$2Q, [["render", _sfc_render$2Q], ["__scopeId", "data-v-
|
|
25801
|
+
var GridColItem = /* @__PURE__ */ _export_sfc$1(_sfc_main$2Q, [["render", _sfc_render$2Q], ["__scopeId", "data-v-76952447"]]);
|
|
25773
25802
|
var __glob_0_1$2 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
25774
25803
|
__proto__: null,
|
|
25775
25804
|
"default": GridColItem
|
|
@@ -25991,7 +26020,7 @@ function _sfc_render$2P(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
25991
26020
|
ref: $props.widget.id
|
|
25992
26021
|
}, {
|
|
25993
26022
|
default: withCtx(() => [
|
|
25994
|
-
(openBlock(true), createElementBlock(Fragment, null, renderList($props.widget.cols || [], (colWidget, colIdx) => {
|
|
26023
|
+
(openBlock(true), createElementBlock(Fragment, null, renderList($props.widget.cols.filter((item) => !item.options.hidden) || [], (colWidget, colIdx) => {
|
|
25995
26024
|
return openBlock(), createBlock(_component_grid_col_item, {
|
|
25996
26025
|
key: colIdx,
|
|
25997
26026
|
widget: colWidget,
|
|
@@ -27231,6 +27260,45 @@ const _sfc_main$2K = {
|
|
|
27231
27260
|
},
|
|
27232
27261
|
getGlobalDsv() {
|
|
27233
27262
|
return this.globalDsv;
|
|
27263
|
+
},
|
|
27264
|
+
findColByName(list, colName) {
|
|
27265
|
+
const listToSearch = list != null ? list : this.formJsonObj && this.formJsonObj.widgetList;
|
|
27266
|
+
if (!listToSearch || !colName)
|
|
27267
|
+
return null;
|
|
27268
|
+
for (const w of listToSearch) {
|
|
27269
|
+
if (w.type === "grid" && w.cols && w.cols.length) {
|
|
27270
|
+
const col = w.cols.find((c) => c.options && c.options.name === colName);
|
|
27271
|
+
if (col)
|
|
27272
|
+
return col;
|
|
27273
|
+
}
|
|
27274
|
+
if (w.type === "grid-col" && w.options && w.options.name === colName)
|
|
27275
|
+
return w;
|
|
27276
|
+
if (w.widgetList && w.widgetList.length) {
|
|
27277
|
+
const found = this.findColByName(w.widgetList, colName);
|
|
27278
|
+
if (found)
|
|
27279
|
+
return found;
|
|
27280
|
+
}
|
|
27281
|
+
if (w.cols && w.cols.length) {
|
|
27282
|
+
for (const c of w.cols) {
|
|
27283
|
+
if (c.options && c.options.name === colName)
|
|
27284
|
+
return c;
|
|
27285
|
+
if (c.widgetList && c.widgetList.length) {
|
|
27286
|
+
const found = this.findColByName(c.widgetList, colName);
|
|
27287
|
+
if (found)
|
|
27288
|
+
return found;
|
|
27289
|
+
}
|
|
27290
|
+
}
|
|
27291
|
+
}
|
|
27292
|
+
}
|
|
27293
|
+
return null;
|
|
27294
|
+
},
|
|
27295
|
+
setColHidden(colName, hidden) {
|
|
27296
|
+
const col = this.findColByName(null, colName);
|
|
27297
|
+
if (!col || !col.options)
|
|
27298
|
+
return false;
|
|
27299
|
+
col.options.hidden = !!hidden;
|
|
27300
|
+
this.$nextTick(() => this.$forceUpdate());
|
|
27301
|
+
return true;
|
|
27234
27302
|
}
|
|
27235
27303
|
}
|
|
27236
27304
|
};
|
|
@@ -27289,7 +27357,7 @@ function _sfc_render$2K(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
27289
27357
|
_: 3
|
|
27290
27358
|
}, 8, ["label-position", "size", "class", "label-width", "model"]);
|
|
27291
27359
|
}
|
|
27292
|
-
var VFormRender = /* @__PURE__ */ _export_sfc$1(_sfc_main$2K, [["render", _sfc_render$2K], ["__scopeId", "data-v-
|
|
27360
|
+
var VFormRender = /* @__PURE__ */ _export_sfc$1(_sfc_main$2K, [["render", _sfc_render$2K], ["__scopeId", "data-v-32478e29"]]);
|
|
27293
27361
|
var ace$2 = { exports: {} };
|
|
27294
27362
|
(function(module, exports) {
|
|
27295
27363
|
(function() {
|
|
@@ -53273,7 +53341,7 @@ const _hoisted_8$6 = {
|
|
|
53273
53341
|
key: 2,
|
|
53274
53342
|
class: ""
|
|
53275
53343
|
};
|
|
53276
|
-
const _hoisted_9$
|
|
53344
|
+
const _hoisted_9$5 = { class: "dialog-footer" };
|
|
53277
53345
|
const _hoisted_10$4 = {
|
|
53278
53346
|
key: 3,
|
|
53279
53347
|
class: ""
|
|
@@ -53283,8 +53351,8 @@ const _hoisted_12$2 = {
|
|
|
53283
53351
|
key: 4,
|
|
53284
53352
|
class: ""
|
|
53285
53353
|
};
|
|
53286
|
-
const _hoisted_13$
|
|
53287
|
-
const _hoisted_14$
|
|
53354
|
+
const _hoisted_13$2 = { style: { "border": "1px solid #DCDFE6" } };
|
|
53355
|
+
const _hoisted_14$2 = { class: "dialog-footer" };
|
|
53288
53356
|
const _hoisted_15$1 = {
|
|
53289
53357
|
key: 5,
|
|
53290
53358
|
class: ""
|
|
@@ -53634,7 +53702,7 @@ function _sfc_render$2I(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
53634
53702
|
"destroy-on-close": true
|
|
53635
53703
|
}, {
|
|
53636
53704
|
footer: withCtx(() => [
|
|
53637
|
-
createElementVNode("div", _hoisted_9$
|
|
53705
|
+
createElementVNode("div", _hoisted_9$5, [
|
|
53638
53706
|
createVNode(_component_el_button, {
|
|
53639
53707
|
type: "primary",
|
|
53640
53708
|
class: "copy-json-btn",
|
|
@@ -53796,7 +53864,7 @@ function _sfc_render$2I(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
53796
53864
|
"append-to-body": true
|
|
53797
53865
|
}, {
|
|
53798
53866
|
footer: withCtx(() => [
|
|
53799
|
-
createElementVNode("div", _hoisted_14$
|
|
53867
|
+
createElementVNode("div", _hoisted_14$2, [
|
|
53800
53868
|
createVNode(_component_el_button, {
|
|
53801
53869
|
type: "primary",
|
|
53802
53870
|
class: "copy-form-data-json-btn",
|
|
@@ -53825,7 +53893,7 @@ function _sfc_render$2I(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
53825
53893
|
])
|
|
53826
53894
|
]),
|
|
53827
53895
|
default: withCtx(() => [
|
|
53828
|
-
createElementVNode("div", _hoisted_13$
|
|
53896
|
+
createElementVNode("div", _hoisted_13$2, [
|
|
53829
53897
|
createVNode(_component_code_editor, {
|
|
53830
53898
|
mode: "json",
|
|
53831
53899
|
readonly: true,
|
|
@@ -55577,7 +55645,6 @@ const _sfc_main$27 = {
|
|
|
55577
55645
|
const records = (data2 == null ? void 0 : data2.records) || (data2 == null ? void 0 : data2.data) || data2 || [];
|
|
55578
55646
|
if (Array.isArray(records) && records.length > 0) {
|
|
55579
55647
|
const dictItems = records.filter((item) => item.dictType === dictCode);
|
|
55580
|
-
console.log(dictItems, "dictItems222222");
|
|
55581
55648
|
if (dictItems.length > 0) {
|
|
55582
55649
|
this.optionModel.optionItems = dictItems.map((item) => ({
|
|
55583
55650
|
id: generateId(),
|
|
@@ -55626,7 +55693,7 @@ const _hoisted_8$5 = {
|
|
|
55626
55693
|
key: 6,
|
|
55627
55694
|
style: { "margin-bottom": "10px" }
|
|
55628
55695
|
};
|
|
55629
|
-
const _hoisted_9$
|
|
55696
|
+
const _hoisted_9$4 = { key: 7 };
|
|
55630
55697
|
const _hoisted_10$3 = {
|
|
55631
55698
|
key: 8,
|
|
55632
55699
|
class: ""
|
|
@@ -55636,8 +55703,8 @@ const _hoisted_12$1 = {
|
|
|
55636
55703
|
key: 9,
|
|
55637
55704
|
class: ""
|
|
55638
55705
|
};
|
|
55639
|
-
const _hoisted_13 = { class: "dialog-footer" };
|
|
55640
|
-
const _hoisted_14 = {
|
|
55706
|
+
const _hoisted_13$1 = { class: "dialog-footer" };
|
|
55707
|
+
const _hoisted_14$1 = {
|
|
55641
55708
|
key: 10,
|
|
55642
55709
|
class: ""
|
|
55643
55710
|
};
|
|
@@ -55891,7 +55958,7 @@ function _sfc_render$27(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
55891
55958
|
_: 1
|
|
55892
55959
|
})
|
|
55893
55960
|
])) : createCommentVNode("", true),
|
|
55894
|
-
$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$
|
|
55961
|
+
$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$4, [
|
|
55895
55962
|
createVNode(_component_el_button, {
|
|
55896
55963
|
link: "",
|
|
55897
55964
|
type: "primary",
|
|
@@ -55989,7 +56056,7 @@ function _sfc_render$27(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
55989
56056
|
"destroy-on-close": true
|
|
55990
56057
|
}, {
|
|
55991
56058
|
footer: withCtx(() => [
|
|
55992
|
-
createElementVNode("div", _hoisted_13, [
|
|
56059
|
+
createElementVNode("div", _hoisted_13$1, [
|
|
55993
56060
|
createVNode(_component_el_button, {
|
|
55994
56061
|
size: "large",
|
|
55995
56062
|
type: "primary",
|
|
@@ -56024,7 +56091,7 @@ function _sfc_render$27(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
56024
56091
|
])), [
|
|
56025
56092
|
[_directive_drag, [".drag-dialog.el-dialog", ".drag-dialog .el-dialog__header"]]
|
|
56026
56093
|
]) : createCommentVNode("", true),
|
|
56027
|
-
$data.showImportTreeDialogFlag ? withDirectives((openBlock(), createElementBlock("div", _hoisted_14, [
|
|
56094
|
+
$data.showImportTreeDialogFlag ? withDirectives((openBlock(), createElementBlock("div", _hoisted_14$1, [
|
|
56028
56095
|
createVNode(_component_el_dialog, {
|
|
56029
56096
|
title: _ctx.i18nt("designer.setting.importOptions"),
|
|
56030
56097
|
modelValue: $data.showImportTreeDialogFlag,
|
|
@@ -56074,7 +56141,7 @@ function _sfc_render$27(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
56074
56141
|
]) : createCommentVNode("", true)
|
|
56075
56142
|
]);
|
|
56076
56143
|
}
|
|
56077
|
-
var OptionItemsSetting = /* @__PURE__ */ _export_sfc$1(_sfc_main$27, [["render", _sfc_render$27], ["__scopeId", "data-v-
|
|
56144
|
+
var OptionItemsSetting = /* @__PURE__ */ _export_sfc$1(_sfc_main$27, [["render", _sfc_render$27], ["__scopeId", "data-v-77962d50"]]);
|
|
56078
56145
|
const _sfc_main$26 = {
|
|
56079
56146
|
name: "optionItems-editor",
|
|
56080
56147
|
mixins: [i18n$1],
|
|
@@ -60997,6 +61064,7 @@ const COMMON_PROPERTIES$1 = {
|
|
|
60997
61064
|
"editable": "editable-editor",
|
|
60998
61065
|
"showPassword": "showPassword-editor",
|
|
60999
61066
|
"select-tree-showCheckbox": "select-tree-showCheckbox-editor",
|
|
61067
|
+
"select-tree-checkStrictly": "select-tree-checkStrictly-editor",
|
|
61000
61068
|
"textContent": "textContent-editor",
|
|
61001
61069
|
"textAlign": "textAlign-editor",
|
|
61002
61070
|
"fontSize": "fontSize-editor",
|
|
@@ -61679,7 +61747,7 @@ const _hoisted_5$7 = ["title"];
|
|
|
61679
61747
|
const _hoisted_6$7 = ["title"];
|
|
61680
61748
|
const _hoisted_7$5 = ["title"];
|
|
61681
61749
|
const _hoisted_8$4 = ["title"];
|
|
61682
|
-
const _hoisted_9$
|
|
61750
|
+
const _hoisted_9$3 = {
|
|
61683
61751
|
key: 1,
|
|
61684
61752
|
class: "drag-handler"
|
|
61685
61753
|
};
|
|
@@ -61740,7 +61808,7 @@ function _sfc_render$o(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
61740
61808
|
createVNode(_component_svg_icon, { "icon-class": "el-delete" })
|
|
61741
61809
|
], 8, _hoisted_8$4)
|
|
61742
61810
|
])) : createCommentVNode("", true),
|
|
61743
|
-
$props.designer.selectedId === $props.widget.id && !$props.widget.internal ? (openBlock(), createElementBlock("div", _hoisted_9$
|
|
61811
|
+
$props.designer.selectedId === $props.widget.id && !$props.widget.internal ? (openBlock(), createElementBlock("div", _hoisted_9$3, [
|
|
61744
61812
|
createElementVNode("i", {
|
|
61745
61813
|
title: _ctx.i18nt("designer.hint.dragHandler")
|
|
61746
61814
|
}, [
|
|
@@ -61828,6 +61896,11 @@ const _sfc_main$n = {
|
|
|
61828
61896
|
}
|
|
61829
61897
|
},
|
|
61830
61898
|
watch: {
|
|
61899
|
+
"widget.options.name": {
|
|
61900
|
+
handler(newVal, oldVal) {
|
|
61901
|
+
this.registerToRefList(oldVal);
|
|
61902
|
+
}
|
|
61903
|
+
},
|
|
61831
61904
|
"designer.formConfig.layoutType": {
|
|
61832
61905
|
handler(val) {
|
|
61833
61906
|
if (!!this.widget.options.responsive) {
|
|
@@ -61899,7 +61972,17 @@ const _sfc_main$n = {
|
|
|
61899
61972
|
this.initRefList();
|
|
61900
61973
|
this.initLayoutProps();
|
|
61901
61974
|
},
|
|
61975
|
+
beforeUnmount() {
|
|
61976
|
+
var _a2, _b2;
|
|
61977
|
+
if (this.refList != null && ((_b2 = (_a2 = this.widget) == null ? void 0 : _a2.options) == null ? void 0 : _b2.name)) {
|
|
61978
|
+
delete this.refList[this.widget.options.name];
|
|
61979
|
+
}
|
|
61980
|
+
},
|
|
61902
61981
|
methods: {
|
|
61982
|
+
setHidden(flag) {
|
|
61983
|
+
this.widget.options.hidden = !!flag;
|
|
61984
|
+
this.$nextTick(() => this.$forceUpdate());
|
|
61985
|
+
},
|
|
61903
61986
|
initLayoutProps() {
|
|
61904
61987
|
if (!!this.widget.options.responsive) {
|
|
61905
61988
|
let lyType = this.designer.formConfig.layoutType;
|
|
@@ -61984,11 +62067,15 @@ const _hoisted_8$3 = {
|
|
|
61984
62067
|
key: 1,
|
|
61985
62068
|
class: "grid-col-handler"
|
|
61986
62069
|
};
|
|
62070
|
+
const _hoisted_9$2 = {
|
|
62071
|
+
key: 0,
|
|
62072
|
+
class: "col-hidden-tag"
|
|
62073
|
+
};
|
|
61987
62074
|
function _sfc_render$n(_ctx, _cache, $props, $setup, $data, $options) {
|
|
61988
62075
|
const _component_draggable = resolveComponent("draggable");
|
|
61989
62076
|
const _component_svg_icon = resolveComponent("svg-icon");
|
|
61990
62077
|
const _component_el_col = resolveComponent("el-col");
|
|
61991
|
-
return $props.widget.type === "grid-col" ? (openBlock(), createBlock(_component_el_col, mergeProps({
|
|
62078
|
+
return $props.widget.type === "grid-col" && (!$props.widget.options.hidden || $props.designer) ? (openBlock(), createBlock(_component_el_col, mergeProps({
|
|
61992
62079
|
key: 0,
|
|
61993
62080
|
class: "grid-cell"
|
|
61994
62081
|
}, $data.layoutProps, {
|
|
@@ -62071,13 +62158,16 @@ function _sfc_render$n(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
62071
62158
|
], 8, _hoisted_7$4)
|
|
62072
62159
|
])) : createCommentVNode("", true),
|
|
62073
62160
|
$props.designer.selectedId === $props.widget.id && $props.widget.type === "grid-col" ? (openBlock(), createElementBlock("div", _hoisted_8$3, [
|
|
62074
|
-
createElementVNode("i", null, toDisplayString(_ctx.i18nt("designer.widgetLabel." + $props.widget.type)), 1)
|
|
62161
|
+
createElementVNode("i", null, toDisplayString(_ctx.i18nt("designer.widgetLabel." + $props.widget.type)), 1),
|
|
62162
|
+
$props.widget.options.hidden === true ? (openBlock(), createElementBlock("i", _hoisted_9$2, [
|
|
62163
|
+
createVNode(_component_svg_icon, { "icon-class": "el-hide" })
|
|
62164
|
+
])) : createCommentVNode("", true)
|
|
62075
62165
|
])) : createCommentVNode("", true)
|
|
62076
62166
|
]),
|
|
62077
62167
|
_: 1
|
|
62078
62168
|
}, 16, ["class", "style"])) : createCommentVNode("", true);
|
|
62079
62169
|
}
|
|
62080
|
-
var GridColWidget = /* @__PURE__ */ _export_sfc$1(_sfc_main$n, [["render", _sfc_render$n], ["__scopeId", "data-v-
|
|
62170
|
+
var GridColWidget = /* @__PURE__ */ _export_sfc$1(_sfc_main$n, [["render", _sfc_render$n], ["__scopeId", "data-v-cb053c20"]]);
|
|
62081
62171
|
var __glob_0_1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
62082
62172
|
__proto__: null,
|
|
62083
62173
|
"default": GridColWidget
|
|
@@ -63452,6 +63542,45 @@ function createDesigner(vueInstance) {
|
|
|
63452
63542
|
}
|
|
63453
63543
|
return Object.keys(originalWidget.options).indexOf(configName) > -1;
|
|
63454
63544
|
},
|
|
63545
|
+
findColByName(list, colName) {
|
|
63546
|
+
const listToSearch = list != null ? list : this.widgetList;
|
|
63547
|
+
if (!listToSearch || !colName)
|
|
63548
|
+
return null;
|
|
63549
|
+
for (const w of listToSearch) {
|
|
63550
|
+
if (w.type === "grid" && w.cols && w.cols.length) {
|
|
63551
|
+
const col = w.cols.find((c) => c.options && c.options.name === colName);
|
|
63552
|
+
if (col)
|
|
63553
|
+
return col;
|
|
63554
|
+
}
|
|
63555
|
+
if (w.type === "grid-col" && w.options && w.options.name === colName)
|
|
63556
|
+
return w;
|
|
63557
|
+
if (w.widgetList && w.widgetList.length) {
|
|
63558
|
+
const found = this.findColByName(w.widgetList, colName);
|
|
63559
|
+
if (found)
|
|
63560
|
+
return found;
|
|
63561
|
+
}
|
|
63562
|
+
if (w.cols && w.cols.length) {
|
|
63563
|
+
for (const c of w.cols) {
|
|
63564
|
+
if (c.options && c.options.name === colName)
|
|
63565
|
+
return c;
|
|
63566
|
+
if (c.widgetList && c.widgetList.length) {
|
|
63567
|
+
const found = this.findColByName(c.widgetList, colName);
|
|
63568
|
+
if (found)
|
|
63569
|
+
return found;
|
|
63570
|
+
}
|
|
63571
|
+
}
|
|
63572
|
+
}
|
|
63573
|
+
}
|
|
63574
|
+
return null;
|
|
63575
|
+
},
|
|
63576
|
+
setColHidden(colName, hidden) {
|
|
63577
|
+
const col = this.findColByName(null, colName);
|
|
63578
|
+
if (!col || !col.options)
|
|
63579
|
+
return false;
|
|
63580
|
+
col.options.hidden = !!hidden;
|
|
63581
|
+
this.saveCurrentHistoryStep();
|
|
63582
|
+
return true;
|
|
63583
|
+
},
|
|
63455
63584
|
upgradeWidgetConfig(oldWidget) {
|
|
63456
63585
|
let newWidget = null;
|
|
63457
63586
|
if (!!oldWidget.category) {
|
|
@@ -64048,7 +64177,7 @@ function _sfc_render$h(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
64048
64177
|
_: 3
|
|
64049
64178
|
});
|
|
64050
64179
|
}
|
|
64051
|
-
var VFormDesigner = /* @__PURE__ */ _export_sfc$1(_sfc_main$h, [["render", _sfc_render$h], ["__scopeId", "data-v-
|
|
64180
|
+
var VFormDesigner = /* @__PURE__ */ _export_sfc$1(_sfc_main$h, [["render", _sfc_render$h], ["__scopeId", "data-v-cd16a5dc"]]);
|
|
64052
64181
|
var vuedraggable_umd = { exports: {} };
|
|
64053
64182
|
var require$$0 = /* @__PURE__ */ getDefaultExportFromNamespaceIfPresent(vue);
|
|
64054
64183
|
(function(module, exports) {
|
|
@@ -67634,13 +67763,13 @@ function registerIcon(app) {
|
|
|
67634
67763
|
if (typeof window !== "undefined") {
|
|
67635
67764
|
let loadSvg = function() {
|
|
67636
67765
|
var body = document.body;
|
|
67637
|
-
var svgDom = document.getElementById("
|
|
67766
|
+
var svgDom = document.getElementById("__svg__icons__dom__1772520720473__");
|
|
67638
67767
|
if (!svgDom) {
|
|
67639
67768
|
svgDom = document.createElementNS("http://www.w3.org/2000/svg", "svg");
|
|
67640
67769
|
svgDom.style.position = "absolute";
|
|
67641
67770
|
svgDom.style.width = "0";
|
|
67642
67771
|
svgDom.style.height = "0";
|
|
67643
|
-
svgDom.id = "
|
|
67772
|
+
svgDom.id = "__svg__icons__dom__1772520720473__";
|
|
67644
67773
|
svgDom.setAttribute("xmlns", "http://www.w3.org/2000/svg");
|
|
67645
67774
|
svgDom.setAttribute("xmlns:link", "http://www.w3.org/1999/xlink");
|
|
67646
67775
|
}
|
|
@@ -73538,7 +73667,8 @@ var companyIcon = "data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGl
|
|
|
73538
73667
|
var deptIcon = "data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz4NCjxzdmcgd2lkdGg9IjE2cHgiIGhlaWdodD0iMTZweCIgdmlld0JveD0iMCAwIDE2IDE2IiB2ZXJzaW9uPSIxLjEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiPg0KICAgIDx0aXRsZT7nvJbnu4QgMjwvdGl0bGU+DQogICAgPGcgaWQ9Iumhtemdoi0xIiBzdHJva2U9Im5vbmUiIHN0cm9rZS13aWR0aD0iMSIgZmlsbD0ibm9uZSIgZmlsbC1ydWxlPSJldmVub2RkIj4NCiAgICAgICAgPGcgaWQ9IumAieaLqeS6uuWRmC3ot6jljZXkvY0t5aSa6YCJIiB0cmFuc2Zvcm09InRyYW5zbGF0ZSgtNzYyLCAtMzIxKSI+DQogICAgICAgICAgICA8ZyBpZD0i57yW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MjIsNy41NTg4MjYzNiAyLjY2OTkzNzQ3LDcuMTExMTExMTEgMy4yMjIyMjIyMiw3LjExMTExMTExIEwxMC4xMTExMTExLDcuMTExMTExMTEgQzEwLjY2MzM5NTksNy4xMTExMTExMSAxMS4xMTExMTExLDcuNTU4ODI2MzYgMTEuMTExMTExMSw4LjExMTExMTExIEwxMS4xMTExMTExLDkuNzc3Nzc3NzggTDExLjExMTExMTEsOS43Nzc3Nzc3OCIgaWQ9Iui3r+W+hCI+PC9wYXRoPg0KICAgICAgICAgICAgICAgICAgICAgICAgPGxpbmUgeDE9IjYuNjY2NjY2NjciIHkxPSI3LjExMTExMTExIiB4Mj0iNi42NjY2NjY2NyIgeTI9IjQuOTIyMTA5MTMiIGlkPSLot6/lvoQtNCIgZmlsbD0iI0U3QkI2NSI+PC9saW5lPg0KICAgICAgICAgICAgICAgICAgICA8L2c+DQogICAgICAgICAgICAgICAgPC9nPg0KICAgICAgICAgICAgPC9nPg0KICAgICAgICA8L2c+DQogICAgPC9nPg0KPC9zdmc+";
|
|
73539
73668
|
var personTree = "data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz4NCjxzdmcgd2lkdGg9IjZweCIgaGVpZ2h0PSI2cHgiIHZpZXdCb3g9IjAgMCA2IDYiIHZlcnNpb249IjEuMSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB4bWxuczp4bGluaz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94bGluayI+DQogICAgPHRpdGxlPue8lue7hCA35aSH5Lu9IDg8L3RpdGxlPg0KICAgIDxnIGlkPSLpobXpnaItMSIgc3Ryb2tlPSJub25lIiBzdHJva2Utd2lkdGg9IjEiIGZpbGw9Im5vbmUiIGZpbGwtcnVsZT0iZXZlbm9kZCI+DQogICAgICAgIDxnIGlkPSLpgInmi6nkurrlkZgt6Leo5Y2V5L2NLeWkmumAiSIgdHJhbnNmb3JtPSJ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AgICAgICAgIDxwYXRoIGQ9Ik0xNC41NTEwNTQsMTcuODU1OTc4NyBMMTQuMDE1NjgzNSwxNy44NTU5Nzg3IEMxMy44ODk4OTgxLDE3Ljg1NTk3ODcgMTMuNzgwMTQxMSwxNy45NDExMzU3IDEzLjc0ODgxMjYsMTguMDYyODkyNiBMMTIuOTg2NzI4MiwyMS4wMjY5NzMxIEMxMi45NzIwMjgzLDIxLjA4NDEwMTUgMTIuOTc2MDk5NywyMS4xNDQ0NDQzIDEyLjk5ODI1NjgsMjEuMTk5MTI5OSBMMTMuNzMyMjY5OCwyMy4wMDk0MTI0IEMxMy43NzQ0NDExLDIzLjExMzM4MzYgMTMuODc1NDEyNCwyMy4xODEzOTc4IDEzLjk4NzYxMjIsMjMuMTgxMzk3OCBMMTQuNTc5MTI1NCwyMy4xODEzOTc4IEMxNC42OTEyODIzLDIzLjE4MTM5NzggMTQuNzkyMjk2NCwyMy4xMTMzODM2IDE0LjgzNDQ2NzgsMjMuMDA5NDEyNCBMMTUuNTY4NDgwOCwyMS4xOTkxMjk5IEMxNS41OTA2Mzc5LDIxLjE0NDQ0NDMgMTUuNTk0NjY2NCwyMS4wODQxMDE1IDE1LjU4MDAwOTMsMjEuMDI2OTczMSBMMTQuODE3OTI1LDE4LjA2Mjg5MjYgQzE0Ljc4NjU5NjUsMTcuOTQxMTM1NyAxNC42NzY3OTY2LDE3Ljg1NTk3ODcgMTQuNTUxMDU0LDE3Ljg1NTk3ODciIGlkPSJGaWxsLTE1IiBmaWxsPSIjQTNBREMzIj48L3BhdGg+DQogICAgICAgICAgICAgICAgICAgICAgICA8L2c+DQogICAgICAgICAgICAgICAgICAgIDwvZz4NCiAgICAgICAgICAgICAgICA8L2c+DQogICAgICAgICAgICA8L2c+DQogICAgICAgIDwvZz4NCiAgICA8L2c+DQo8L3N2Zz4=";
|
|
73541
|
-
var
|
|
73670
|
+
var personTreeItem_vue_vue_type_style_index_0_lang = "";
|
|
73671
|
+
var personTreeItem_vue_vue_type_style_index_1_scoped_true_lang = "";
|
|
73542
73672
|
const _sfc_main$d = {
|
|
73543
73673
|
name: "person-tree-widget",
|
|
73544
73674
|
componentName: "FieldWidget",
|
|
@@ -73585,10 +73715,19 @@ const _sfc_main$d = {
|
|
|
73585
73715
|
},
|
|
73586
73716
|
checkedNodes: [],
|
|
73587
73717
|
treeRef: null,
|
|
73588
|
-
defaultExpandedKeys: []
|
|
73718
|
+
defaultExpandedKeys: [],
|
|
73719
|
+
currentNodeKey: null
|
|
73589
73720
|
};
|
|
73590
73721
|
},
|
|
73591
73722
|
computed: {
|
|
73723
|
+
displayModel: {
|
|
73724
|
+
get() {
|
|
73725
|
+
return this.fieldModel != null ? this.fieldModel : [];
|
|
73726
|
+
},
|
|
73727
|
+
set(val) {
|
|
73728
|
+
this.fieldModel = val;
|
|
73729
|
+
}
|
|
73730
|
+
},
|
|
73592
73731
|
widgetStyle() {
|
|
73593
73732
|
return {
|
|
73594
73733
|
width: "100%"
|
|
@@ -73665,16 +73804,21 @@ const _sfc_main$d = {
|
|
|
73665
73804
|
backgroundImage: `url(${data2.avatarUrl || personIcon})`
|
|
73666
73805
|
}
|
|
73667
73806
|
}),
|
|
73668
|
-
|
|
73669
|
-
|
|
73670
|
-
|
|
73671
|
-
|
|
73672
|
-
|
|
73673
|
-
|
|
73674
|
-
|
|
73675
|
-
|
|
73676
|
-
|
|
73677
|
-
|
|
73807
|
+
[
|
|
73808
|
+
h("div", {
|
|
73809
|
+
class: node.level === 1 ? "text-#1D2129" : "text-#4E5969 ",
|
|
73810
|
+
style: {
|
|
73811
|
+
overflow: "hidden",
|
|
73812
|
+
textOverflow: "ellipsis",
|
|
73813
|
+
whiteSpace: "nowrap",
|
|
73814
|
+
minWidth: 0,
|
|
73815
|
+
width: "80%"
|
|
73816
|
+
}
|
|
73817
|
+
}, data2.postName ? `${node.label}\uFF08${data2.postName}\uFF09` : node.label),
|
|
73818
|
+
node.level === 3 && h("div", {
|
|
73819
|
+
class: `personRadio-checked-icon ${(data2 == null ? void 0 : data2.nodeKey) === this.currentNodeKey ? "personRadio-checked" : ""}`
|
|
73820
|
+
})
|
|
73821
|
+
]
|
|
73678
73822
|
]);
|
|
73679
73823
|
},
|
|
73680
73824
|
handleClick() {
|
|
@@ -73682,15 +73826,27 @@ const _sfc_main$d = {
|
|
|
73682
73826
|
this.dialogVisible = true;
|
|
73683
73827
|
this.triggerEvent("onOpen");
|
|
73684
73828
|
this.$nextTick(() => {
|
|
73685
|
-
if (this.
|
|
73686
|
-
this
|
|
73687
|
-
|
|
73829
|
+
if (this.field.options.multiple) {
|
|
73830
|
+
if (this.fieldModel && this.fieldModel.length > 0) {
|
|
73831
|
+
this.$refs.treeRef.setCheckedKeys(this.fieldModel.map((item) => item.nodeKey));
|
|
73832
|
+
this.defaultExpandedKeys = this.fieldModel.map((item) => item.nodeKey);
|
|
73833
|
+
} else {
|
|
73834
|
+
this.$refs.treeRef.setCheckedKeys([]);
|
|
73835
|
+
this.defaultExpandedKeys = [];
|
|
73836
|
+
}
|
|
73688
73837
|
} else {
|
|
73689
|
-
this
|
|
73690
|
-
this.defaultExpandedKeys = [];
|
|
73838
|
+
this.currentNodeKey = this.fieldModel && this.fieldModel[0] ? this.fieldModel[0].nodeKey : null;
|
|
73839
|
+
this.defaultExpandedKeys = this.currentNodeKey ? [this.currentNodeKey] : [];
|
|
73691
73840
|
}
|
|
73692
73841
|
});
|
|
73693
73842
|
},
|
|
73843
|
+
handleNodeClick(data2, node) {
|
|
73844
|
+
if (this.field.options.multiple)
|
|
73845
|
+
return;
|
|
73846
|
+
this.currentNodeKey = data2.nodeKey;
|
|
73847
|
+
},
|
|
73848
|
+
handleCheck() {
|
|
73849
|
+
},
|
|
73694
73850
|
handleConfirm() {
|
|
73695
73851
|
var _a2;
|
|
73696
73852
|
this.dialogVisible = false;
|
|
@@ -73698,18 +73854,37 @@ const _sfc_main$d = {
|
|
|
73698
73854
|
this.$refs.inputTagRef.blur();
|
|
73699
73855
|
});
|
|
73700
73856
|
this.oldFieldValue = this.fieldModel ? deepClone(this.fieldModel) : null;
|
|
73701
|
-
|
|
73702
|
-
|
|
73703
|
-
|
|
73704
|
-
|
|
73705
|
-
|
|
73706
|
-
|
|
73707
|
-
|
|
73708
|
-
|
|
73709
|
-
|
|
73857
|
+
let resultNodes = [];
|
|
73858
|
+
if (this.field.options.multiple) {
|
|
73859
|
+
resultNodes = (((_a2 = this.$refs.treeRef) == null ? void 0 : _a2.getCheckedNodes()) || []).filter((item) => item.joinUserId).map((item) => ({
|
|
73860
|
+
postName: item.postName,
|
|
73861
|
+
joinUserId: item.joinUserId,
|
|
73862
|
+
name: item.name,
|
|
73863
|
+
id: item.id,
|
|
73864
|
+
nodeKey: item.nodeKey,
|
|
73865
|
+
avatar: item.avatarUrl
|
|
73866
|
+
}));
|
|
73867
|
+
} else {
|
|
73868
|
+
const key = this.currentNodeKey;
|
|
73869
|
+
if (key && this.$refs.treeRef) {
|
|
73870
|
+
const node = this.$refs.treeRef.getNode(key);
|
|
73871
|
+
const data2 = node == null ? void 0 : node.data;
|
|
73872
|
+
if (data2 == null ? void 0 : data2.joinUserId) {
|
|
73873
|
+
resultNodes = [{
|
|
73874
|
+
joinUserId: data2.joinUserId,
|
|
73875
|
+
name: data2.name,
|
|
73876
|
+
id: data2.id,
|
|
73877
|
+
nodeKey: data2.nodeKey,
|
|
73878
|
+
avatar: data2.avatarUrl,
|
|
73879
|
+
postName: data2.postName
|
|
73880
|
+
}];
|
|
73881
|
+
}
|
|
73882
|
+
}
|
|
73883
|
+
}
|
|
73884
|
+
this.fieldModel = resultNodes;
|
|
73710
73885
|
this.syncUpdateFormModel(this.fieldModel);
|
|
73711
73886
|
this.emitFieldDataChange(this.fieldModel, this.oldFieldValue);
|
|
73712
|
-
this.triggerEvent("onConfirm",
|
|
73887
|
+
this.triggerEvent("onConfirm", resultNodes);
|
|
73713
73888
|
this.$nextTick(() => {
|
|
73714
73889
|
this.dispatch("VFormRender", "fieldValidation", [this.getPropName()]);
|
|
73715
73890
|
});
|
|
@@ -73781,8 +73956,8 @@ function _sfc_render$d(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
73781
73956
|
}, [
|
|
73782
73957
|
createElementVNode("div", _hoisted_1$a, [
|
|
73783
73958
|
createVNode(_component_el_input_tag, {
|
|
73784
|
-
modelValue: $
|
|
73785
|
-
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => $
|
|
73959
|
+
modelValue: $options.displayModel,
|
|
73960
|
+
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => $options.displayModel = $event),
|
|
73786
73961
|
"tag-type": "success",
|
|
73787
73962
|
"tag-effect": "light",
|
|
73788
73963
|
placeholder: "\u8BF7\u9009\u62E9\u4EBA\u5458",
|
|
@@ -73819,15 +73994,18 @@ function _sfc_render$d(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
73819
73994
|
default: withCtx(() => [
|
|
73820
73995
|
createVNode(_component_el_tree, {
|
|
73821
73996
|
data: $data.treeData,
|
|
73822
|
-
"show-checkbox":
|
|
73997
|
+
"show-checkbox": $props.field.options.multiple,
|
|
73823
73998
|
props: $data.defaultProps,
|
|
73824
73999
|
"render-content": $options.renderContent,
|
|
73825
74000
|
"node-key": "nodeKey",
|
|
73826
74001
|
ref: "treeRef",
|
|
73827
74002
|
"default-expanded-keys": $data.defaultExpandedKeys,
|
|
73828
74003
|
"filter-node-method": _ctx.filterNode,
|
|
73829
|
-
"highlight-current":
|
|
73830
|
-
|
|
74004
|
+
"highlight-current": !$props.field.options.multiple,
|
|
74005
|
+
"current-node-key": $data.currentNodeKey,
|
|
74006
|
+
onNodeClick: $options.handleNodeClick,
|
|
74007
|
+
onCheck: $options.handleCheck
|
|
74008
|
+
}, null, 8, ["data", "show-checkbox", "props", "render-content", "default-expanded-keys", "filter-node-method", "highlight-current", "current-node-key", "onNodeClick", "onCheck"])
|
|
73831
74009
|
]),
|
|
73832
74010
|
_: 1
|
|
73833
74011
|
})
|
|
@@ -73867,7 +74045,7 @@ function _sfc_render$d(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
73867
74045
|
_: 1
|
|
73868
74046
|
}, 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"]);
|
|
73869
74047
|
}
|
|
73870
|
-
var PersonTreeWidget = /* @__PURE__ */ _export_sfc$1(_sfc_main$d, [["render", _sfc_render$d], ["__scopeId", "data-v-
|
|
74048
|
+
var PersonTreeWidget = /* @__PURE__ */ _export_sfc$1(_sfc_main$d, [["render", _sfc_render$d], ["__scopeId", "data-v-b7f72ef8"]]);
|
|
73871
74049
|
const _sfc_main$c = {
|
|
73872
74050
|
name: "radio-other-widget",
|
|
73873
74051
|
componentName: "FieldWidget",
|
|
@@ -74805,6 +74983,7 @@ const _sfc_main$8 = {
|
|
|
74805
74983
|
fieldSchemas.push(this.cloneFieldSchema(swItem));
|
|
74806
74984
|
});
|
|
74807
74985
|
if (rowIndex === void 0) {
|
|
74986
|
+
console.log(fieldSchemas, "fieldSchemas");
|
|
74808
74987
|
this.fieldSchemaData.push(fieldSchemas);
|
|
74809
74988
|
} else {
|
|
74810
74989
|
this.fieldSchemaData.splice(rowIndex, 0, fieldSchemas);
|
|
@@ -74983,34 +75162,36 @@ const _sfc_main$8 = {
|
|
|
74983
75162
|
}
|
|
74984
75163
|
}
|
|
74985
75164
|
};
|
|
74986
|
-
const _hoisted_1$7 = { class: "
|
|
74987
|
-
const _hoisted_2$5 = { class: "
|
|
74988
|
-
const _hoisted_3$5 = {
|
|
75165
|
+
const _hoisted_1$7 = { class: "sub-form-header" };
|
|
75166
|
+
const _hoisted_2$5 = { class: "sub-form-label" };
|
|
75167
|
+
const _hoisted_3$5 = { class: "group-header" };
|
|
75168
|
+
const _hoisted_4$4 = { class: "group-title" };
|
|
75169
|
+
const _hoisted_5$2 = {
|
|
74989
75170
|
key: 0,
|
|
74990
75171
|
class: "row-number-span"
|
|
74991
75172
|
};
|
|
74992
|
-
const
|
|
75173
|
+
const _hoisted_6$2 = {
|
|
74993
75174
|
key: 1,
|
|
74994
75175
|
class: "row-number-span"
|
|
74995
75176
|
};
|
|
74996
|
-
const
|
|
74997
|
-
const
|
|
74998
|
-
const
|
|
75177
|
+
const _hoisted_7$1 = { class: "group-actions" };
|
|
75178
|
+
const _hoisted_8$1 = { class: "group-content" };
|
|
75179
|
+
const _hoisted_9 = {
|
|
74999
75180
|
key: 1,
|
|
75000
75181
|
class: "field-loading",
|
|
75001
75182
|
style: { "color": "#909399", "font-size": "12px", "padding": "8px" }
|
|
75002
75183
|
};
|
|
75003
|
-
const
|
|
75184
|
+
const _hoisted_10 = {
|
|
75004
75185
|
key: 1,
|
|
75005
75186
|
class: "empty-hint"
|
|
75006
75187
|
};
|
|
75007
|
-
const
|
|
75008
|
-
const
|
|
75009
|
-
const
|
|
75188
|
+
const _hoisted_11 = { key: 0 };
|
|
75189
|
+
const _hoisted_12 = { key: 1 };
|
|
75190
|
+
const _hoisted_13 = {
|
|
75010
75191
|
key: 0,
|
|
75011
75192
|
class: "empty-hint"
|
|
75012
75193
|
};
|
|
75013
|
-
const
|
|
75194
|
+
const _hoisted_14 = {
|
|
75014
75195
|
key: 1,
|
|
75015
75196
|
class: "empty-hint"
|
|
75016
75197
|
};
|
|
@@ -75024,16 +75205,19 @@ function _sfc_render$8(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
75024
75205
|
key: $props.widget.id,
|
|
75025
75206
|
class: normalizeClass(["custom-sub-form-container", $options.customClass])
|
|
75026
75207
|
}, [
|
|
75208
|
+
createElementVNode("div", _hoisted_1$7, [
|
|
75209
|
+
createElementVNode("span", _hoisted_2$5, toDisplayString($props.widget.options.label || "\u81EA\u5B9A\u4E49\u5B50\u8868\u5355"), 1)
|
|
75210
|
+
]),
|
|
75027
75211
|
(openBlock(true), createElementBlock(Fragment, null, renderList($data.rowIdData, (subFormRowId, sfrIdx) => {
|
|
75028
75212
|
return openBlock(), createElementBlock("div", {
|
|
75029
75213
|
class: "form-group-row",
|
|
75030
75214
|
key: subFormRowId
|
|
75031
75215
|
}, [
|
|
75032
|
-
createElementVNode("div",
|
|
75033
|
-
createElementVNode("div",
|
|
75034
|
-
$props.widget.options.showRowNumber ? (openBlock(), createElementBlock("span",
|
|
75216
|
+
createElementVNode("div", _hoisted_3$5, [
|
|
75217
|
+
createElementVNode("div", _hoisted_4$4, [
|
|
75218
|
+
$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"))
|
|
75035
75219
|
]),
|
|
75036
|
-
createElementVNode("div",
|
|
75220
|
+
createElementVNode("div", _hoisted_7$1, [
|
|
75037
75221
|
sfrIdx > 0 ? (openBlock(), createBlock(_component_el_button, {
|
|
75038
75222
|
key: 0,
|
|
75039
75223
|
size: "small",
|
|
@@ -75049,7 +75233,7 @@ function _sfc_render$8(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
75049
75233
|
}, 8, ["onClick"])) : createCommentVNode("", true)
|
|
75050
75234
|
])
|
|
75051
75235
|
]),
|
|
75052
|
-
createElementVNode("div",
|
|
75236
|
+
createElementVNode("div", _hoisted_8$1, [
|
|
75053
75237
|
$props.widget && $props.widget.widgetList && $props.widget.widgetList.length > 0 ? (openBlock(true), createElementBlock(Fragment, { key: 0 }, renderList($props.widget.widgetList, (subWidget, swIdx) => {
|
|
75054
75238
|
return openBlock(), createElementBlock(Fragment, {
|
|
75055
75239
|
key: subWidget ? subWidget.id + "gc" + subFormRowId + "-" + swIdx : "gc" + subFormRowId + "-" + swIdx
|
|
@@ -75074,16 +75258,16 @@ function _sfc_render$8(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
75074
75258
|
"sub-form-row-id": subFormRowId,
|
|
75075
75259
|
"sub-form-row-index": sfrIdx,
|
|
75076
75260
|
"sub-form-col-index": swIdx
|
|
75077
|
-
}, null, 8, ["field", "parent-list", "index-of-parent-list", "parent-widget", "sub-form-row-id", "sub-form-row-index", "sub-form-col-index"])) : (openBlock(), createElementBlock("div",
|
|
75261
|
+
}, null, 8, ["field", "parent-list", "index-of-parent-list", "parent-widget", "sub-form-row-id", "sub-form-row-index", "sub-form-col-index"])) : (openBlock(), createElementBlock("div", _hoisted_9, " \u5B57\u6BB5\u52A0\u8F7D\u4E2D... "))
|
|
75078
75262
|
], 64)) : createCommentVNode("", true)
|
|
75079
75263
|
], 64);
|
|
75080
|
-
}), 128)) : (openBlock(), createElementBlock("div",
|
|
75081
|
-
!$props.widget ? (openBlock(), createElementBlock("div",
|
|
75264
|
+
}), 128)) : (openBlock(), createElementBlock("div", _hoisted_10, [
|
|
75265
|
+
!$props.widget ? (openBlock(), createElementBlock("div", _hoisted_11, "\u7EC4\u4EF6\u672A\u521D\u59CB\u5316")) : !$props.widget.widgetList || $props.widget.widgetList.length === 0 ? (openBlock(), createElementBlock("div", _hoisted_12, " \u8BF7\u5148\u5728\u8BBE\u8BA1\u5668\u4E2D\u62D6\u62FD\u7EC4\u4EF6\u5230\u5B50\u8868\u5355\u4E2D ")) : createCommentVNode("", true)
|
|
75082
75266
|
]))
|
|
75083
75267
|
])
|
|
75084
75268
|
]);
|
|
75085
75269
|
}), 128)),
|
|
75086
|
-
!$props.widget.widgetList || $props.widget.widgetList.length === 0 ? (openBlock(), createElementBlock("div",
|
|
75270
|
+
!$props.widget.widgetList || $props.widget.widgetList.length === 0 ? (openBlock(), createElementBlock("div", _hoisted_13, " \u8BF7\u5148\u5728\u8BBE\u8BA1\u5668\u4E2D\u62D6\u62FD\u7EC4\u4EF6\u5230\u5B50\u8868\u5355\u4E2D ")) : $data.rowIdData.length === 0 ? (openBlock(), createElementBlock("div", _hoisted_14, ' \u70B9\u51FB"\u6DFB\u52A0"\u6309\u94AE\u6DFB\u52A0\u6570\u636E\u884C ')) : createCommentVNode("", true),
|
|
75087
75271
|
createVNode(_component_el_button, {
|
|
75088
75272
|
disabled: $data.actionDisabled,
|
|
75089
75273
|
type: "primary",
|
|
@@ -75104,7 +75288,7 @@ function _sfc_render$8(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
75104
75288
|
_: 1
|
|
75105
75289
|
}, 8, ["widget"]);
|
|
75106
75290
|
}
|
|
75107
|
-
var CustomSubFormItem = /* @__PURE__ */ _export_sfc$1(_sfc_main$8, [["render", _sfc_render$8], ["__scopeId", "data-v-
|
|
75291
|
+
var CustomSubFormItem = /* @__PURE__ */ _export_sfc$1(_sfc_main$8, [["render", _sfc_render$8], ["__scopeId", "data-v-489afa42"]]);
|
|
75108
75292
|
const customTableCellSchema = {
|
|
75109
75293
|
type: "custom-table-cell",
|
|
75110
75294
|
category: "container",
|
|
@@ -76823,7 +77007,6 @@ const _sfc_main$1 = {
|
|
|
76823
77007
|
let dictManager = null;
|
|
76824
77008
|
if (typeof window !== "undefined" && window.getDictData) {
|
|
76825
77009
|
const dictItems = window.getDictData(dictCode);
|
|
76826
|
-
console.log(dictItems, "dictItems");
|
|
76827
77010
|
if (dictItems && Array.isArray(dictItems) && dictItems.length > 0) {
|
|
76828
77011
|
col.options = dictItems.map((item) => ({
|
|
76829
77012
|
label: item.dictLabel || item.label || item.name || item.text || "",
|
|
@@ -76839,7 +77022,6 @@ const _sfc_main$1 = {
|
|
|
76839
77022
|
}
|
|
76840
77023
|
if (typeof window !== "undefined" && window.dictCache && window.dictCache[dictCode]) {
|
|
76841
77024
|
const dictItems = window.dictCache[dictCode];
|
|
76842
|
-
console.log(dictItems, "dictItems");
|
|
76843
77025
|
if (Array.isArray(dictItems) && dictItems.length > 0) {
|
|
76844
77026
|
col.options = dictItems.map((item) => ({
|
|
76845
77027
|
label: item.dictLabel || item.label || item.name || item.text || "",
|
|
@@ -76854,7 +77036,6 @@ const _sfc_main$1 = {
|
|
|
76854
77036
|
}
|
|
76855
77037
|
}
|
|
76856
77038
|
if (typeof window !== "undefined" && window.service) {
|
|
76857
|
-
console.log(window.service, "window.service");
|
|
76858
77039
|
window.service.post("/unified-dict/sysItemDict/page", {
|
|
76859
77040
|
current: 1,
|
|
76860
77041
|
size: 1e4,
|
|
@@ -77361,7 +77542,7 @@ function _sfc_render$1(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
77361
77542
|
}, 8, ["modelValue", "title"])
|
|
77362
77543
|
], 64);
|
|
77363
77544
|
}
|
|
77364
|
-
var SubTableColumnsEditor = /* @__PURE__ */ _export_sfc$1(_sfc_main$1, [["render", _sfc_render$1], ["__scopeId", "data-v-
|
|
77545
|
+
var SubTableColumnsEditor = /* @__PURE__ */ _export_sfc$1(_sfc_main$1, [["render", _sfc_render$1], ["__scopeId", "data-v-514d67ae"]]);
|
|
77365
77546
|
const _sfc_main = {
|
|
77366
77547
|
name: "current-user-widget",
|
|
77367
77548
|
componentName: "FieldWidget",
|
|
@@ -77561,6 +77742,7 @@ const loadExtension = function(app) {
|
|
|
77561
77742
|
app.component("sub-table-columns-editor", SubTableColumnsEditor);
|
|
77562
77743
|
registerCPEditor(app, "sub-table-columns", "sub-table-columns-editor", SubTableColumnsEditor);
|
|
77563
77744
|
registerCPEditor(app, "select-tree-showCheckbox", "select-tree-showCheckbox-editor", createBooleanEditor("showCheckbox", "designer.setting.showCheckbox"));
|
|
77745
|
+
registerCPEditor(app, "select-tree-checkStrictly", "select-tree-checkStrictly-editor", createBooleanEditor("checkStrictly", "extension.setting.selectTreeCheckStrictly"));
|
|
77564
77746
|
addCustomWidgetSchema(currentUserSchema);
|
|
77565
77747
|
app.component(CurrentUserWidget.name, CurrentUserWidget);
|
|
77566
77748
|
registerCPEditor(app, "current-user-type", "current-user-type-editor", createSelectEditor("type", "extension.setting.currentUserType", {
|