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/render.es.js
CHANGED
|
@@ -1903,7 +1903,8 @@ var zhLocale_render = {
|
|
|
1903
1903
|
subFormAddActionHint: "\u65B0\u589E\u884C",
|
|
1904
1904
|
insertSubFormRow: "\u63D2\u5165\u884C",
|
|
1905
1905
|
deleteSubFormRow: "\u5220\u9664\u884C",
|
|
1906
|
-
nonSubFormType: "\u7EC4\u4EF6\u7C7B\u578B\u4E0D\u662F\u5B50\u8868\u5355"
|
|
1906
|
+
nonSubFormType: "\u7EC4\u4EF6\u7C7B\u578B\u4E0D\u662F\u5B50\u8868\u5355",
|
|
1907
|
+
selectTreeCheckStrictly: "\u662F\u5426\u4E25\u683C\u9009\u4E2D"
|
|
1907
1908
|
}
|
|
1908
1909
|
}
|
|
1909
1910
|
};
|
|
@@ -1938,9 +1939,11 @@ var enLocale_extension = {
|
|
|
1938
1939
|
personTreeConfirmText: "Confirm Button Text",
|
|
1939
1940
|
personTreeCancelText: "Cancel Button Text",
|
|
1940
1941
|
personTreeHideFooter: "Hide Dialog Footer",
|
|
1942
|
+
personTreeMultiple: "Multiple",
|
|
1941
1943
|
meetingRoomRemoteUrl: "Request URL",
|
|
1942
1944
|
allowMultiple: "Allow Multiple",
|
|
1943
|
-
currentUserType: "Current User Type"
|
|
1945
|
+
currentUserType: "Current User Type",
|
|
1946
|
+
selectTreeCheckStrictly: "Check Strictly"
|
|
1944
1947
|
}
|
|
1945
1948
|
}
|
|
1946
1949
|
};
|
|
@@ -1977,9 +1980,11 @@ var zhLocale_extension = {
|
|
|
1977
1980
|
personTreeConfirmText: "\u786E\u5B9A\u6309\u94AE\u6587\u5B57",
|
|
1978
1981
|
personTreeCancelText: "\u53D6\u6D88\u6309\u94AE\u6587\u5B57",
|
|
1979
1982
|
personTreeHideFooter: "\u9690\u85CF\u5E95\u90E8\u6309\u94AE",
|
|
1983
|
+
personTreeMultiple: "\u662F\u5426\u591A\u9009",
|
|
1980
1984
|
meetingRoomRemoteUrl: "\u8BF7\u6C42\u5730\u5740",
|
|
1981
1985
|
allowMultiple: "\u662F\u5426\u591A\u9009",
|
|
1982
|
-
currentUserType: "\u5F53\u524D\u7528\u6237\u7C7B\u578B"
|
|
1986
|
+
currentUserType: "\u5F53\u524D\u7528\u6237\u7C7B\u578B",
|
|
1987
|
+
selectTreeCheckStrictly: "\u662F\u5426\u4E25\u683C\u9009\u4E2D"
|
|
1983
1988
|
}
|
|
1984
1989
|
}
|
|
1985
1990
|
};
|
|
@@ -8843,6 +8848,14 @@ var fieldMixin = {
|
|
|
8843
8848
|
getFormRef() {
|
|
8844
8849
|
return this.refList["v_form_ref"];
|
|
8845
8850
|
},
|
|
8851
|
+
findColByName(colName) {
|
|
8852
|
+
const formRef = this.getFormRef();
|
|
8853
|
+
return formRef && typeof formRef.findColByName === "function" ? formRef.findColByName(null, colName) : null;
|
|
8854
|
+
},
|
|
8855
|
+
setColHidden(colName, hidden) {
|
|
8856
|
+
const formRef = this.getFormRef();
|
|
8857
|
+
return formRef && typeof formRef.setColHidden === "function" ? formRef.setColHidden(colName, hidden) : false;
|
|
8858
|
+
},
|
|
8846
8859
|
getWidgetRef(widgetName, showError, rowId) {
|
|
8847
8860
|
let foundRef = null;
|
|
8848
8861
|
if (this.subFormItemFlag && !this.designState) {
|
|
@@ -8957,8 +8970,7 @@ var fieldMixin = {
|
|
|
8957
8970
|
this.field.options.optionItems = deepClone(options || []);
|
|
8958
8971
|
}
|
|
8959
8972
|
} else {
|
|
8960
|
-
this.field.options.optionItems = options;
|
|
8961
|
-
console.log(this.field, "this.field.options.optionItems");
|
|
8973
|
+
this.field.options.optionItems = deepClone(options || []);
|
|
8962
8974
|
}
|
|
8963
8975
|
this.clearSelectedOptions();
|
|
8964
8976
|
},
|
|
@@ -9246,7 +9258,7 @@ const _hoisted_7$9 = {
|
|
|
9246
9258
|
class: "drag-handler background-opacity"
|
|
9247
9259
|
};
|
|
9248
9260
|
const _hoisted_8$5 = ["title"];
|
|
9249
|
-
const _hoisted_9$
|
|
9261
|
+
const _hoisted_9$4 = { key: 0 };
|
|
9250
9262
|
function _sfc_render$12(_ctx, _cache, $props, $setup, $data, $options) {
|
|
9251
9263
|
const _component_svg_icon = resolveComponent("svg-icon");
|
|
9252
9264
|
const _component_el_tooltip = resolveComponent("el-tooltip");
|
|
@@ -9355,7 +9367,7 @@ function _sfc_render$12(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
9355
9367
|
createVNode(_component_svg_icon, { "icon-class": "el-drag-move" })
|
|
9356
9368
|
], 8, _hoisted_8$5),
|
|
9357
9369
|
createElementVNode("i", null, toDisplayString(_ctx.i18n2t(`designer.widgetLabel.${$props.field.type}`, `extension.widgetLabel.${$props.field.type}`)), 1),
|
|
9358
|
-
$props.field.options.hidden === true ? (openBlock(), createElementBlock("i", _hoisted_9$
|
|
9370
|
+
$props.field.options.hidden === true ? (openBlock(), createElementBlock("i", _hoisted_9$4, [
|
|
9359
9371
|
createVNode(_component_svg_icon, { "icon-class": "el-hide" })
|
|
9360
9372
|
])) : createCommentVNode("", true)
|
|
9361
9373
|
])) : createCommentVNode("", true)
|
|
@@ -23178,8 +23190,9 @@ function _sfc_render$D(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
23178
23190
|
"remote-method": $options.remoteMethod,
|
|
23179
23191
|
onFocus: _ctx.handleFocusCustomEvent,
|
|
23180
23192
|
onBlur: _ctx.handleBlurCustomEvent,
|
|
23181
|
-
onChange: $options.handleTreeSelectChange
|
|
23182
|
-
|
|
23193
|
+
onChange: $options.handleTreeSelectChange,
|
|
23194
|
+
"check-strictly": $props.field.options.checkStrictly || false
|
|
23195
|
+
}, 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"])
|
|
23183
23196
|
]),
|
|
23184
23197
|
_: 1
|
|
23185
23198
|
}, 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"]);
|
|
@@ -23264,7 +23277,6 @@ const _sfc_main$C = {
|
|
|
23264
23277
|
if (this.field.options.optionItems) {
|
|
23265
23278
|
return this.field.options.optionItems;
|
|
23266
23279
|
}
|
|
23267
|
-
console.log(this.field.options.optionItems);
|
|
23268
23280
|
return [];
|
|
23269
23281
|
}
|
|
23270
23282
|
}
|
|
@@ -23323,7 +23335,7 @@ function _sfc_render$C(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
23323
23335
|
_: 1
|
|
23324
23336
|
}, 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"]);
|
|
23325
23337
|
}
|
|
23326
|
-
var selectWidget = /* @__PURE__ */ _export_sfc$1(_sfc_main$C, [["render", _sfc_render$C], ["__scopeId", "data-v-
|
|
23338
|
+
var selectWidget = /* @__PURE__ */ _export_sfc$1(_sfc_main$C, [["render", _sfc_render$C], ["__scopeId", "data-v-70a357a0"]]);
|
|
23327
23339
|
var __glob_0_17 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
23328
23340
|
__proto__: null,
|
|
23329
23341
|
"default": selectWidget
|
|
@@ -24030,6 +24042,9 @@ const _sfc_main$u = {
|
|
|
24030
24042
|
formConfig() {
|
|
24031
24043
|
return this.getFormConfig();
|
|
24032
24044
|
},
|
|
24045
|
+
colVisible() {
|
|
24046
|
+
return !!(this.widget && this.widget.options && !this.widget.options.hidden);
|
|
24047
|
+
},
|
|
24033
24048
|
customClass() {
|
|
24034
24049
|
if (!this.widget || !this.widget.options) {
|
|
24035
24050
|
return "";
|
|
@@ -24044,7 +24059,20 @@ const _sfc_main$u = {
|
|
|
24044
24059
|
this.initLayoutProps();
|
|
24045
24060
|
this.initRefList();
|
|
24046
24061
|
},
|
|
24062
|
+
beforeUnmount() {
|
|
24063
|
+
var _a, _b;
|
|
24064
|
+
if (this.refList != null && ((_b = (_a = this.widget) == null ? void 0 : _a.options) == null ? void 0 : _b.name)) {
|
|
24065
|
+
delete this.refList[this.widget.options.name];
|
|
24066
|
+
}
|
|
24067
|
+
},
|
|
24068
|
+
watch: {},
|
|
24047
24069
|
methods: {
|
|
24070
|
+
setHidden(flag) {
|
|
24071
|
+
if (this.widget && this.widget.options) {
|
|
24072
|
+
this.widget.options.hidden = !!flag;
|
|
24073
|
+
this.$nextTick(() => this.$forceUpdate());
|
|
24074
|
+
}
|
|
24075
|
+
},
|
|
24048
24076
|
initLayoutProps() {
|
|
24049
24077
|
if (!this.widget || !this.widget.options) {
|
|
24050
24078
|
return;
|
|
@@ -24137,10 +24165,10 @@ function _sfc_render$u(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
24137
24165
|
]),
|
|
24138
24166
|
_: 3
|
|
24139
24167
|
}, 16, ["class", "style"])), [
|
|
24140
|
-
[vShow, $
|
|
24168
|
+
[vShow, $options.colVisible]
|
|
24141
24169
|
]) : createCommentVNode("", true);
|
|
24142
24170
|
}
|
|
24143
|
-
var GridColItem = /* @__PURE__ */ _export_sfc$1(_sfc_main$u, [["render", _sfc_render$u], ["__scopeId", "data-v-
|
|
24171
|
+
var GridColItem = /* @__PURE__ */ _export_sfc$1(_sfc_main$u, [["render", _sfc_render$u], ["__scopeId", "data-v-76952447"]]);
|
|
24144
24172
|
var __glob_0_1$1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
24145
24173
|
__proto__: null,
|
|
24146
24174
|
"default": GridColItem
|
|
@@ -24362,7 +24390,7 @@ function _sfc_render$t(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
24362
24390
|
ref: $props.widget.id
|
|
24363
24391
|
}, {
|
|
24364
24392
|
default: withCtx(() => [
|
|
24365
|
-
(openBlock(true), createElementBlock(Fragment, null, renderList($props.widget.cols || [], (colWidget, colIdx) => {
|
|
24393
|
+
(openBlock(true), createElementBlock(Fragment, null, renderList($props.widget.cols.filter((item) => !item.options.hidden) || [], (colWidget, colIdx) => {
|
|
24366
24394
|
return openBlock(), createBlock(_component_grid_col_item, {
|
|
24367
24395
|
key: colIdx,
|
|
24368
24396
|
widget: colWidget,
|
|
@@ -25602,6 +25630,45 @@ const _sfc_main$o = {
|
|
|
25602
25630
|
},
|
|
25603
25631
|
getGlobalDsv() {
|
|
25604
25632
|
return this.globalDsv;
|
|
25633
|
+
},
|
|
25634
|
+
findColByName(list, colName) {
|
|
25635
|
+
const listToSearch = list != null ? list : this.formJsonObj && this.formJsonObj.widgetList;
|
|
25636
|
+
if (!listToSearch || !colName)
|
|
25637
|
+
return null;
|
|
25638
|
+
for (const w of listToSearch) {
|
|
25639
|
+
if (w.type === "grid" && w.cols && w.cols.length) {
|
|
25640
|
+
const col = w.cols.find((c) => c.options && c.options.name === colName);
|
|
25641
|
+
if (col)
|
|
25642
|
+
return col;
|
|
25643
|
+
}
|
|
25644
|
+
if (w.type === "grid-col" && w.options && w.options.name === colName)
|
|
25645
|
+
return w;
|
|
25646
|
+
if (w.widgetList && w.widgetList.length) {
|
|
25647
|
+
const found = this.findColByName(w.widgetList, colName);
|
|
25648
|
+
if (found)
|
|
25649
|
+
return found;
|
|
25650
|
+
}
|
|
25651
|
+
if (w.cols && w.cols.length) {
|
|
25652
|
+
for (const c of w.cols) {
|
|
25653
|
+
if (c.options && c.options.name === colName)
|
|
25654
|
+
return c;
|
|
25655
|
+
if (c.widgetList && c.widgetList.length) {
|
|
25656
|
+
const found = this.findColByName(c.widgetList, colName);
|
|
25657
|
+
if (found)
|
|
25658
|
+
return found;
|
|
25659
|
+
}
|
|
25660
|
+
}
|
|
25661
|
+
}
|
|
25662
|
+
}
|
|
25663
|
+
return null;
|
|
25664
|
+
},
|
|
25665
|
+
setColHidden(colName, hidden) {
|
|
25666
|
+
const col = this.findColByName(null, colName);
|
|
25667
|
+
if (!col || !col.options)
|
|
25668
|
+
return false;
|
|
25669
|
+
col.options.hidden = !!hidden;
|
|
25670
|
+
this.$nextTick(() => this.$forceUpdate());
|
|
25671
|
+
return true;
|
|
25605
25672
|
}
|
|
25606
25673
|
}
|
|
25607
25674
|
};
|
|
@@ -25660,7 +25727,7 @@ function _sfc_render$o(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
25660
25727
|
_: 3
|
|
25661
25728
|
}, 8, ["label-position", "size", "class", "label-width", "model"]);
|
|
25662
25729
|
}
|
|
25663
|
-
var VFormRender = /* @__PURE__ */ _export_sfc$1(_sfc_main$o, [["render", _sfc_render$o], ["__scopeId", "data-v-
|
|
25730
|
+
var VFormRender = /* @__PURE__ */ _export_sfc$1(_sfc_main$o, [["render", _sfc_render$o], ["__scopeId", "data-v-32478e29"]]);
|
|
25664
25731
|
function registerIcon(app) {
|
|
25665
25732
|
app.component("el-icon-edit", edit);
|
|
25666
25733
|
app.component("el-icon-minus", minus);
|
|
@@ -25675,13 +25742,13 @@ function registerIcon(app) {
|
|
|
25675
25742
|
if (typeof window !== "undefined") {
|
|
25676
25743
|
let loadSvg = function() {
|
|
25677
25744
|
var body = document.body;
|
|
25678
|
-
var svgDom = document.getElementById("
|
|
25745
|
+
var svgDom = document.getElementById("__svg__icons__dom__1772520728759__");
|
|
25679
25746
|
if (!svgDom) {
|
|
25680
25747
|
svgDom = document.createElementNS("http://www.w3.org/2000/svg", "svg");
|
|
25681
25748
|
svgDom.style.position = "absolute";
|
|
25682
25749
|
svgDom.style.width = "0";
|
|
25683
25750
|
svgDom.style.height = "0";
|
|
25684
|
-
svgDom.id = "
|
|
25751
|
+
svgDom.id = "__svg__icons__dom__1772520728759__";
|
|
25685
25752
|
svgDom.setAttribute("xmlns", "http://www.w3.org/2000/svg");
|
|
25686
25753
|
svgDom.setAttribute("xmlns:link", "http://www.w3.org/1999/xlink");
|
|
25687
25754
|
}
|
|
@@ -25956,7 +26023,7 @@ const _hoisted_5$7 = ["title"];
|
|
|
25956
26023
|
const _hoisted_6$7 = ["title"];
|
|
25957
26024
|
const _hoisted_7$5 = ["title"];
|
|
25958
26025
|
const _hoisted_8$4 = ["title"];
|
|
25959
|
-
const _hoisted_9$
|
|
26026
|
+
const _hoisted_9$3 = {
|
|
25960
26027
|
key: 1,
|
|
25961
26028
|
class: "drag-handler"
|
|
25962
26029
|
};
|
|
@@ -26017,7 +26084,7 @@ function _sfc_render$n(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
26017
26084
|
createVNode(_component_svg_icon, { "icon-class": "el-delete" })
|
|
26018
26085
|
], 8, _hoisted_8$4)
|
|
26019
26086
|
])) : createCommentVNode("", true),
|
|
26020
|
-
$props.designer.selectedId === $props.widget.id && !$props.widget.internal ? (openBlock(), createElementBlock("div", _hoisted_9$
|
|
26087
|
+
$props.designer.selectedId === $props.widget.id && !$props.widget.internal ? (openBlock(), createElementBlock("div", _hoisted_9$3, [
|
|
26021
26088
|
createElementVNode("i", {
|
|
26022
26089
|
title: _ctx.i18nt("designer.hint.dragHandler")
|
|
26023
26090
|
}, [
|
|
@@ -31665,7 +31732,8 @@ var companyIcon = "data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGl
|
|
|
31665
31732
|
var deptIcon = "data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz4NCjxzdmcgd2lkdGg9IjE2cHgiIGhlaWdodD0iMTZweCIgdmlld0JveD0iMCAwIDE2IDE2IiB2ZXJzaW9uPSIxLjEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6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MjIyIj48L3JlY3Q+DQogICAgICAgICAgICAgICAgICAgICAgICA8cmVjdCBpZD0i55+p5b2i5aSH5Lu9LTU0IiB4PSIwLjUiIHk9IjkuMzg4ODg4ODkiIHdpZHRoPSIzLjQ0NDQ0NDQ0IiBoZWlnaHQ9IjMuNDQ0NDQ0NDQiIHJ4PSIxLjcyMjIyMjIyIj48L3JlY3Q+DQogICAgICAgICAgICAgICAgICAgICAgICA8cGF0aCBkPSJNMi4yMjIyMjIyMiw5Ljc3Nzc3Nzc4IEwyLjIyMjIyMjIyLDguMTExMTExMTEgQzIuMjIyMjIyMjIsNy41NTg4MjYzNiAyLjY2OTkzNzQ3LDcuMTExMTExMTEgMy4yMjIyMjIyMiw3LjExMTExMTExIEwxMC4xMTExMTExLDcuMTExMTExMTEgQzEwLjY2MzM5NTksNy4xMTExMTExMSAxMS4xMTExMTExLDcuNTU4ODI2MzYgMTEuMTExMTExMSw4LjExMTExMTExIEwxMS4xMTExMTExLDkuNzc3Nzc3NzggTDExLjExMTExMTEsOS43Nzc3Nzc3OCIgaWQ9Iui3r+W+hCI+PC9wYXRoPg0KICAgICAgICAgICAgICAgICAgICAgICAgPGxpbmUgeDE9IjYuNjY2NjY2NjciIHkxPSI3LjExMTExMTExIiB4Mj0iNi42NjY2NjY2NyIgeTI9IjQuOTIyMTA5MTMiIGlkPSLot6/lvoQtNCIgZmlsbD0iI0U3QkI2NSI+PC9saW5lPg0KICAgICAgICAgICAgICAgICAgICA8L2c+DQogICAgICAgICAgICAgICAgPC9nPg0KICAgICAgICAgICAgPC9nPg0KICAgICAgICA8L2c+DQogICAgPC9nPg0KPC9zdmc+";
|
|
31666
31733
|
var personTree = "data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz4NCjxzdmcgd2lkdGg9IjZweCIgaGVpZ2h0PSI2cHgiIHZpZXdCb3g9IjAgMCA2IDYiIHZlcnNpb249IjEuMSIgeG1sbnM9Imh0dHA6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ljg1NTk3ODcgMTQuNTUxMDU0LDE3Ljg1NTk3ODciIGlkPSJGaWxsLTE1IiBmaWxsPSIjQTNBREMzIj48L3BhdGg+DQogICAgICAgICAgICAgICAgICAgICAgICA8L2c+DQogICAgICAgICAgICAgICAgICAgIDwvZz4NCiAgICAgICAgICAgICAgICA8L2c+DQogICAgICAgICAgICA8L2c+DQogICAgICAgIDwvZz4NCiAgICA8L2c+DQo8L3N2Zz4=";
|
|
31668
|
-
var
|
|
31735
|
+
var personTreeItem_vue_vue_type_style_index_0_lang = "";
|
|
31736
|
+
var personTreeItem_vue_vue_type_style_index_1_scoped_true_lang = "";
|
|
31669
31737
|
const _sfc_main$j = {
|
|
31670
31738
|
name: "person-tree-widget",
|
|
31671
31739
|
componentName: "FieldWidget",
|
|
@@ -31712,10 +31780,19 @@ const _sfc_main$j = {
|
|
|
31712
31780
|
},
|
|
31713
31781
|
checkedNodes: [],
|
|
31714
31782
|
treeRef: null,
|
|
31715
|
-
defaultExpandedKeys: []
|
|
31783
|
+
defaultExpandedKeys: [],
|
|
31784
|
+
currentNodeKey: null
|
|
31716
31785
|
};
|
|
31717
31786
|
},
|
|
31718
31787
|
computed: {
|
|
31788
|
+
displayModel: {
|
|
31789
|
+
get() {
|
|
31790
|
+
return this.fieldModel != null ? this.fieldModel : [];
|
|
31791
|
+
},
|
|
31792
|
+
set(val) {
|
|
31793
|
+
this.fieldModel = val;
|
|
31794
|
+
}
|
|
31795
|
+
},
|
|
31719
31796
|
widgetStyle() {
|
|
31720
31797
|
return {
|
|
31721
31798
|
width: "100%"
|
|
@@ -31792,16 +31869,21 @@ const _sfc_main$j = {
|
|
|
31792
31869
|
backgroundImage: `url(${data2.avatarUrl || personIcon})`
|
|
31793
31870
|
}
|
|
31794
31871
|
}),
|
|
31795
|
-
|
|
31796
|
-
|
|
31797
|
-
|
|
31798
|
-
|
|
31799
|
-
|
|
31800
|
-
|
|
31801
|
-
|
|
31802
|
-
|
|
31803
|
-
|
|
31804
|
-
|
|
31872
|
+
[
|
|
31873
|
+
h("div", {
|
|
31874
|
+
class: node.level === 1 ? "text-#1D2129" : "text-#4E5969 ",
|
|
31875
|
+
style: {
|
|
31876
|
+
overflow: "hidden",
|
|
31877
|
+
textOverflow: "ellipsis",
|
|
31878
|
+
whiteSpace: "nowrap",
|
|
31879
|
+
minWidth: 0,
|
|
31880
|
+
width: "80%"
|
|
31881
|
+
}
|
|
31882
|
+
}, data2.postName ? `${node.label}\uFF08${data2.postName}\uFF09` : node.label),
|
|
31883
|
+
node.level === 3 && h("div", {
|
|
31884
|
+
class: `personRadio-checked-icon ${(data2 == null ? void 0 : data2.nodeKey) === this.currentNodeKey ? "personRadio-checked" : ""}`
|
|
31885
|
+
})
|
|
31886
|
+
]
|
|
31805
31887
|
]);
|
|
31806
31888
|
},
|
|
31807
31889
|
handleClick() {
|
|
@@ -31809,15 +31891,27 @@ const _sfc_main$j = {
|
|
|
31809
31891
|
this.dialogVisible = true;
|
|
31810
31892
|
this.triggerEvent("onOpen");
|
|
31811
31893
|
this.$nextTick(() => {
|
|
31812
|
-
if (this.
|
|
31813
|
-
this
|
|
31814
|
-
|
|
31894
|
+
if (this.field.options.multiple) {
|
|
31895
|
+
if (this.fieldModel && this.fieldModel.length > 0) {
|
|
31896
|
+
this.$refs.treeRef.setCheckedKeys(this.fieldModel.map((item) => item.nodeKey));
|
|
31897
|
+
this.defaultExpandedKeys = this.fieldModel.map((item) => item.nodeKey);
|
|
31898
|
+
} else {
|
|
31899
|
+
this.$refs.treeRef.setCheckedKeys([]);
|
|
31900
|
+
this.defaultExpandedKeys = [];
|
|
31901
|
+
}
|
|
31815
31902
|
} else {
|
|
31816
|
-
this
|
|
31817
|
-
this.defaultExpandedKeys = [];
|
|
31903
|
+
this.currentNodeKey = this.fieldModel && this.fieldModel[0] ? this.fieldModel[0].nodeKey : null;
|
|
31904
|
+
this.defaultExpandedKeys = this.currentNodeKey ? [this.currentNodeKey] : [];
|
|
31818
31905
|
}
|
|
31819
31906
|
});
|
|
31820
31907
|
},
|
|
31908
|
+
handleNodeClick(data2, node) {
|
|
31909
|
+
if (this.field.options.multiple)
|
|
31910
|
+
return;
|
|
31911
|
+
this.currentNodeKey = data2.nodeKey;
|
|
31912
|
+
},
|
|
31913
|
+
handleCheck() {
|
|
31914
|
+
},
|
|
31821
31915
|
handleConfirm() {
|
|
31822
31916
|
var _a;
|
|
31823
31917
|
this.dialogVisible = false;
|
|
@@ -31825,18 +31919,37 @@ const _sfc_main$j = {
|
|
|
31825
31919
|
this.$refs.inputTagRef.blur();
|
|
31826
31920
|
});
|
|
31827
31921
|
this.oldFieldValue = this.fieldModel ? deepClone(this.fieldModel) : null;
|
|
31828
|
-
|
|
31829
|
-
|
|
31830
|
-
|
|
31831
|
-
|
|
31832
|
-
|
|
31833
|
-
|
|
31834
|
-
|
|
31835
|
-
|
|
31836
|
-
|
|
31922
|
+
let resultNodes = [];
|
|
31923
|
+
if (this.field.options.multiple) {
|
|
31924
|
+
resultNodes = (((_a = this.$refs.treeRef) == null ? void 0 : _a.getCheckedNodes()) || []).filter((item) => item.joinUserId).map((item) => ({
|
|
31925
|
+
postName: item.postName,
|
|
31926
|
+
joinUserId: item.joinUserId,
|
|
31927
|
+
name: item.name,
|
|
31928
|
+
id: item.id,
|
|
31929
|
+
nodeKey: item.nodeKey,
|
|
31930
|
+
avatar: item.avatarUrl
|
|
31931
|
+
}));
|
|
31932
|
+
} else {
|
|
31933
|
+
const key = this.currentNodeKey;
|
|
31934
|
+
if (key && this.$refs.treeRef) {
|
|
31935
|
+
const node = this.$refs.treeRef.getNode(key);
|
|
31936
|
+
const data2 = node == null ? void 0 : node.data;
|
|
31937
|
+
if (data2 == null ? void 0 : data2.joinUserId) {
|
|
31938
|
+
resultNodes = [{
|
|
31939
|
+
joinUserId: data2.joinUserId,
|
|
31940
|
+
name: data2.name,
|
|
31941
|
+
id: data2.id,
|
|
31942
|
+
nodeKey: data2.nodeKey,
|
|
31943
|
+
avatar: data2.avatarUrl,
|
|
31944
|
+
postName: data2.postName
|
|
31945
|
+
}];
|
|
31946
|
+
}
|
|
31947
|
+
}
|
|
31948
|
+
}
|
|
31949
|
+
this.fieldModel = resultNodes;
|
|
31837
31950
|
this.syncUpdateFormModel(this.fieldModel);
|
|
31838
31951
|
this.emitFieldDataChange(this.fieldModel, this.oldFieldValue);
|
|
31839
|
-
this.triggerEvent("onConfirm",
|
|
31952
|
+
this.triggerEvent("onConfirm", resultNodes);
|
|
31840
31953
|
this.$nextTick(() => {
|
|
31841
31954
|
this.dispatch("VFormRender", "fieldValidation", [this.getPropName()]);
|
|
31842
31955
|
});
|
|
@@ -31908,8 +32021,8 @@ function _sfc_render$j(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
31908
32021
|
}, [
|
|
31909
32022
|
createElementVNode("div", _hoisted_1$f, [
|
|
31910
32023
|
createVNode(_component_el_input_tag, {
|
|
31911
|
-
modelValue: $
|
|
31912
|
-
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => $
|
|
32024
|
+
modelValue: $options.displayModel,
|
|
32025
|
+
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => $options.displayModel = $event),
|
|
31913
32026
|
"tag-type": "success",
|
|
31914
32027
|
"tag-effect": "light",
|
|
31915
32028
|
placeholder: "\u8BF7\u9009\u62E9\u4EBA\u5458",
|
|
@@ -31946,15 +32059,18 @@ function _sfc_render$j(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
31946
32059
|
default: withCtx(() => [
|
|
31947
32060
|
createVNode(_component_el_tree, {
|
|
31948
32061
|
data: $data.treeData,
|
|
31949
|
-
"show-checkbox":
|
|
32062
|
+
"show-checkbox": $props.field.options.multiple,
|
|
31950
32063
|
props: $data.defaultProps,
|
|
31951
32064
|
"render-content": $options.renderContent,
|
|
31952
32065
|
"node-key": "nodeKey",
|
|
31953
32066
|
ref: "treeRef",
|
|
31954
32067
|
"default-expanded-keys": $data.defaultExpandedKeys,
|
|
31955
32068
|
"filter-node-method": _ctx.filterNode,
|
|
31956
|
-
"highlight-current":
|
|
31957
|
-
|
|
32069
|
+
"highlight-current": !$props.field.options.multiple,
|
|
32070
|
+
"current-node-key": $data.currentNodeKey,
|
|
32071
|
+
onNodeClick: $options.handleNodeClick,
|
|
32072
|
+
onCheck: $options.handleCheck
|
|
32073
|
+
}, null, 8, ["data", "show-checkbox", "props", "render-content", "default-expanded-keys", "filter-node-method", "highlight-current", "current-node-key", "onNodeClick", "onCheck"])
|
|
31958
32074
|
]),
|
|
31959
32075
|
_: 1
|
|
31960
32076
|
})
|
|
@@ -31994,7 +32110,7 @@ function _sfc_render$j(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
31994
32110
|
_: 1
|
|
31995
32111
|
}, 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"]);
|
|
31996
32112
|
}
|
|
31997
|
-
var PersonTreeWidget = /* @__PURE__ */ _export_sfc$1(_sfc_main$j, [["render", _sfc_render$j], ["__scopeId", "data-v-
|
|
32113
|
+
var PersonTreeWidget = /* @__PURE__ */ _export_sfc$1(_sfc_main$j, [["render", _sfc_render$j], ["__scopeId", "data-v-b7f72ef8"]]);
|
|
31998
32114
|
const _sfc_main$i = {
|
|
31999
32115
|
name: "radio-other-widget",
|
|
32000
32116
|
componentName: "FieldWidget",
|
|
@@ -32638,6 +32754,11 @@ const _sfc_main$f = {
|
|
|
32638
32754
|
}
|
|
32639
32755
|
},
|
|
32640
32756
|
watch: {
|
|
32757
|
+
"widget.options.name": {
|
|
32758
|
+
handler(newVal, oldVal) {
|
|
32759
|
+
this.registerToRefList(oldVal);
|
|
32760
|
+
}
|
|
32761
|
+
},
|
|
32641
32762
|
"designer.formConfig.layoutType": {
|
|
32642
32763
|
handler(val) {
|
|
32643
32764
|
if (!!this.widget.options.responsive) {
|
|
@@ -32709,7 +32830,17 @@ const _sfc_main$f = {
|
|
|
32709
32830
|
this.initRefList();
|
|
32710
32831
|
this.initLayoutProps();
|
|
32711
32832
|
},
|
|
32833
|
+
beforeUnmount() {
|
|
32834
|
+
var _a, _b;
|
|
32835
|
+
if (this.refList != null && ((_b = (_a = this.widget) == null ? void 0 : _a.options) == null ? void 0 : _b.name)) {
|
|
32836
|
+
delete this.refList[this.widget.options.name];
|
|
32837
|
+
}
|
|
32838
|
+
},
|
|
32712
32839
|
methods: {
|
|
32840
|
+
setHidden(flag) {
|
|
32841
|
+
this.widget.options.hidden = !!flag;
|
|
32842
|
+
this.$nextTick(() => this.$forceUpdate());
|
|
32843
|
+
},
|
|
32713
32844
|
initLayoutProps() {
|
|
32714
32845
|
if (!!this.widget.options.responsive) {
|
|
32715
32846
|
let lyType = this.designer.formConfig.layoutType;
|
|
@@ -32794,11 +32925,15 @@ const _hoisted_8$3 = {
|
|
|
32794
32925
|
key: 1,
|
|
32795
32926
|
class: "grid-col-handler"
|
|
32796
32927
|
};
|
|
32928
|
+
const _hoisted_9$2 = {
|
|
32929
|
+
key: 0,
|
|
32930
|
+
class: "col-hidden-tag"
|
|
32931
|
+
};
|
|
32797
32932
|
function _sfc_render$f(_ctx, _cache, $props, $setup, $data, $options) {
|
|
32798
32933
|
const _component_draggable = resolveComponent("draggable");
|
|
32799
32934
|
const _component_svg_icon = resolveComponent("svg-icon");
|
|
32800
32935
|
const _component_el_col = resolveComponent("el-col");
|
|
32801
|
-
return $props.widget.type === "grid-col" ? (openBlock(), createBlock(_component_el_col, mergeProps({
|
|
32936
|
+
return $props.widget.type === "grid-col" && (!$props.widget.options.hidden || $props.designer) ? (openBlock(), createBlock(_component_el_col, mergeProps({
|
|
32802
32937
|
key: 0,
|
|
32803
32938
|
class: "grid-cell"
|
|
32804
32939
|
}, $data.layoutProps, {
|
|
@@ -32881,13 +33016,16 @@ function _sfc_render$f(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
32881
33016
|
], 8, _hoisted_7$3)
|
|
32882
33017
|
])) : createCommentVNode("", true),
|
|
32883
33018
|
$props.designer.selectedId === $props.widget.id && $props.widget.type === "grid-col" ? (openBlock(), createElementBlock("div", _hoisted_8$3, [
|
|
32884
|
-
createElementVNode("i", null, toDisplayString(_ctx.i18nt("designer.widgetLabel." + $props.widget.type)), 1)
|
|
33019
|
+
createElementVNode("i", null, toDisplayString(_ctx.i18nt("designer.widgetLabel." + $props.widget.type)), 1),
|
|
33020
|
+
$props.widget.options.hidden === true ? (openBlock(), createElementBlock("i", _hoisted_9$2, [
|
|
33021
|
+
createVNode(_component_svg_icon, { "icon-class": "el-hide" })
|
|
33022
|
+
])) : createCommentVNode("", true)
|
|
32885
33023
|
])) : createCommentVNode("", true)
|
|
32886
33024
|
]),
|
|
32887
33025
|
_: 1
|
|
32888
33026
|
}, 16, ["class", "style"])) : createCommentVNode("", true);
|
|
32889
33027
|
}
|
|
32890
|
-
var GridColWidget = /* @__PURE__ */ _export_sfc$1(_sfc_main$f, [["render", _sfc_render$f], ["__scopeId", "data-v-
|
|
33028
|
+
var GridColWidget = /* @__PURE__ */ _export_sfc$1(_sfc_main$f, [["render", _sfc_render$f], ["__scopeId", "data-v-cb053c20"]]);
|
|
32891
33029
|
var __glob_0_1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
32892
33030
|
__proto__: null,
|
|
32893
33031
|
"default": GridColWidget
|
|
@@ -33893,6 +34031,7 @@ const _sfc_main$9 = {
|
|
|
33893
34031
|
fieldSchemas.push(this.cloneFieldSchema(swItem));
|
|
33894
34032
|
});
|
|
33895
34033
|
if (rowIndex === void 0) {
|
|
34034
|
+
console.log(fieldSchemas, "fieldSchemas");
|
|
33896
34035
|
this.fieldSchemaData.push(fieldSchemas);
|
|
33897
34036
|
} else {
|
|
33898
34037
|
this.fieldSchemaData.splice(rowIndex, 0, fieldSchemas);
|
|
@@ -34071,34 +34210,36 @@ const _sfc_main$9 = {
|
|
|
34071
34210
|
}
|
|
34072
34211
|
}
|
|
34073
34212
|
};
|
|
34074
|
-
const _hoisted_1$8 = { class: "
|
|
34075
|
-
const _hoisted_2$6 = { class: "
|
|
34076
|
-
const _hoisted_3$5 = {
|
|
34213
|
+
const _hoisted_1$8 = { class: "sub-form-header" };
|
|
34214
|
+
const _hoisted_2$6 = { class: "sub-form-label" };
|
|
34215
|
+
const _hoisted_3$5 = { class: "group-header" };
|
|
34216
|
+
const _hoisted_4$4 = { class: "group-title" };
|
|
34217
|
+
const _hoisted_5$2 = {
|
|
34077
34218
|
key: 0,
|
|
34078
34219
|
class: "row-number-span"
|
|
34079
34220
|
};
|
|
34080
|
-
const
|
|
34221
|
+
const _hoisted_6$2 = {
|
|
34081
34222
|
key: 1,
|
|
34082
34223
|
class: "row-number-span"
|
|
34083
34224
|
};
|
|
34084
|
-
const
|
|
34085
|
-
const
|
|
34086
|
-
const
|
|
34225
|
+
const _hoisted_7$1 = { class: "group-actions" };
|
|
34226
|
+
const _hoisted_8$1 = { class: "group-content" };
|
|
34227
|
+
const _hoisted_9 = {
|
|
34087
34228
|
key: 1,
|
|
34088
34229
|
class: "field-loading",
|
|
34089
34230
|
style: { "color": "#909399", "font-size": "12px", "padding": "8px" }
|
|
34090
34231
|
};
|
|
34091
|
-
const
|
|
34232
|
+
const _hoisted_10 = {
|
|
34092
34233
|
key: 1,
|
|
34093
34234
|
class: "empty-hint"
|
|
34094
34235
|
};
|
|
34095
|
-
const
|
|
34096
|
-
const
|
|
34097
|
-
const
|
|
34236
|
+
const _hoisted_11 = { key: 0 };
|
|
34237
|
+
const _hoisted_12 = { key: 1 };
|
|
34238
|
+
const _hoisted_13 = {
|
|
34098
34239
|
key: 0,
|
|
34099
34240
|
class: "empty-hint"
|
|
34100
34241
|
};
|
|
34101
|
-
const
|
|
34242
|
+
const _hoisted_14 = {
|
|
34102
34243
|
key: 1,
|
|
34103
34244
|
class: "empty-hint"
|
|
34104
34245
|
};
|
|
@@ -34112,16 +34253,19 @@ function _sfc_render$9(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
34112
34253
|
key: $props.widget.id,
|
|
34113
34254
|
class: normalizeClass(["custom-sub-form-container", $options.customClass])
|
|
34114
34255
|
}, [
|
|
34256
|
+
createElementVNode("div", _hoisted_1$8, [
|
|
34257
|
+
createElementVNode("span", _hoisted_2$6, toDisplayString($props.widget.options.label || "\u81EA\u5B9A\u4E49\u5B50\u8868\u5355"), 1)
|
|
34258
|
+
]),
|
|
34115
34259
|
(openBlock(true), createElementBlock(Fragment, null, renderList($data.rowIdData, (subFormRowId, sfrIdx) => {
|
|
34116
34260
|
return openBlock(), createElementBlock("div", {
|
|
34117
34261
|
class: "form-group-row",
|
|
34118
34262
|
key: subFormRowId
|
|
34119
34263
|
}, [
|
|
34120
|
-
createElementVNode("div",
|
|
34121
|
-
createElementVNode("div",
|
|
34122
|
-
$props.widget.options.showRowNumber ? (openBlock(), createElementBlock("span",
|
|
34264
|
+
createElementVNode("div", _hoisted_3$5, [
|
|
34265
|
+
createElementVNode("div", _hoisted_4$4, [
|
|
34266
|
+
$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"))
|
|
34123
34267
|
]),
|
|
34124
|
-
createElementVNode("div",
|
|
34268
|
+
createElementVNode("div", _hoisted_7$1, [
|
|
34125
34269
|
sfrIdx > 0 ? (openBlock(), createBlock(_component_el_button, {
|
|
34126
34270
|
key: 0,
|
|
34127
34271
|
size: "small",
|
|
@@ -34137,7 +34281,7 @@ function _sfc_render$9(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
34137
34281
|
}, 8, ["onClick"])) : createCommentVNode("", true)
|
|
34138
34282
|
])
|
|
34139
34283
|
]),
|
|
34140
|
-
createElementVNode("div",
|
|
34284
|
+
createElementVNode("div", _hoisted_8$1, [
|
|
34141
34285
|
$props.widget && $props.widget.widgetList && $props.widget.widgetList.length > 0 ? (openBlock(true), createElementBlock(Fragment, { key: 0 }, renderList($props.widget.widgetList, (subWidget, swIdx) => {
|
|
34142
34286
|
return openBlock(), createElementBlock(Fragment, {
|
|
34143
34287
|
key: subWidget ? subWidget.id + "gc" + subFormRowId + "-" + swIdx : "gc" + subFormRowId + "-" + swIdx
|
|
@@ -34162,16 +34306,16 @@ function _sfc_render$9(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
34162
34306
|
"sub-form-row-id": subFormRowId,
|
|
34163
34307
|
"sub-form-row-index": sfrIdx,
|
|
34164
34308
|
"sub-form-col-index": swIdx
|
|
34165
|
-
}, 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",
|
|
34309
|
+
}, 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... "))
|
|
34166
34310
|
], 64)) : createCommentVNode("", true)
|
|
34167
34311
|
], 64);
|
|
34168
|
-
}), 128)) : (openBlock(), createElementBlock("div",
|
|
34169
|
-
!$props.widget ? (openBlock(), createElementBlock("div",
|
|
34312
|
+
}), 128)) : (openBlock(), createElementBlock("div", _hoisted_10, [
|
|
34313
|
+
!$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)
|
|
34170
34314
|
]))
|
|
34171
34315
|
])
|
|
34172
34316
|
]);
|
|
34173
34317
|
}), 128)),
|
|
34174
|
-
!$props.widget.widgetList || $props.widget.widgetList.length === 0 ? (openBlock(), createElementBlock("div",
|
|
34318
|
+
!$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),
|
|
34175
34319
|
createVNode(_component_el_button, {
|
|
34176
34320
|
disabled: $data.actionDisabled,
|
|
34177
34321
|
type: "primary",
|
|
@@ -34192,7 +34336,7 @@ function _sfc_render$9(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
34192
34336
|
_: 1
|
|
34193
34337
|
}, 8, ["widget"]);
|
|
34194
34338
|
}
|
|
34195
|
-
var CustomSubFormItem = /* @__PURE__ */ _export_sfc$1(_sfc_main$9, [["render", _sfc_render$9], ["__scopeId", "data-v-
|
|
34339
|
+
var CustomSubFormItem = /* @__PURE__ */ _export_sfc$1(_sfc_main$9, [["render", _sfc_render$9], ["__scopeId", "data-v-489afa42"]]);
|
|
34196
34340
|
var customTableCellWidget_vue_vue_type_style_index_0_scoped_true_lang = "";
|
|
34197
34341
|
const _sfc_main$8 = {
|
|
34198
34342
|
name: "custom-table-cell-widget",
|
|
@@ -60390,7 +60534,6 @@ const _sfc_main$1 = {
|
|
|
60390
60534
|
let dictManager = null;
|
|
60391
60535
|
if (typeof window !== "undefined" && window.getDictData) {
|
|
60392
60536
|
const dictItems = window.getDictData(dictCode);
|
|
60393
|
-
console.log(dictItems, "dictItems");
|
|
60394
60537
|
if (dictItems && Array.isArray(dictItems) && dictItems.length > 0) {
|
|
60395
60538
|
col.options = dictItems.map((item) => ({
|
|
60396
60539
|
label: item.dictLabel || item.label || item.name || item.text || "",
|
|
@@ -60406,7 +60549,6 @@ const _sfc_main$1 = {
|
|
|
60406
60549
|
}
|
|
60407
60550
|
if (typeof window !== "undefined" && window.dictCache && window.dictCache[dictCode]) {
|
|
60408
60551
|
const dictItems = window.dictCache[dictCode];
|
|
60409
|
-
console.log(dictItems, "dictItems");
|
|
60410
60552
|
if (Array.isArray(dictItems) && dictItems.length > 0) {
|
|
60411
60553
|
col.options = dictItems.map((item) => ({
|
|
60412
60554
|
label: item.dictLabel || item.label || item.name || item.text || "",
|
|
@@ -60421,7 +60563,6 @@ const _sfc_main$1 = {
|
|
|
60421
60563
|
}
|
|
60422
60564
|
}
|
|
60423
60565
|
if (typeof window !== "undefined" && window.service) {
|
|
60424
|
-
console.log(window.service, "window.service");
|
|
60425
60566
|
window.service.post("/unified-dict/sysItemDict/page", {
|
|
60426
60567
|
current: 1,
|
|
60427
60568
|
size: 1e4,
|
|
@@ -60928,7 +61069,7 @@ function _sfc_render$1(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
60928
61069
|
}, 8, ["modelValue", "title"])
|
|
60929
61070
|
], 64);
|
|
60930
61071
|
}
|
|
60931
|
-
var SubTableColumnsEditor = /* @__PURE__ */ _export_sfc$1(_sfc_main$1, [["render", _sfc_render$1], ["__scopeId", "data-v-
|
|
61072
|
+
var SubTableColumnsEditor = /* @__PURE__ */ _export_sfc$1(_sfc_main$1, [["render", _sfc_render$1], ["__scopeId", "data-v-514d67ae"]]);
|
|
60932
61073
|
const _sfc_main = {
|
|
60933
61074
|
name: "current-user-widget",
|
|
60934
61075
|
componentName: "FieldWidget",
|
|
@@ -61116,6 +61257,7 @@ const loadExtension = function(app) {
|
|
|
61116
61257
|
app.component("sub-table-columns-editor", SubTableColumnsEditor);
|
|
61117
61258
|
registerCPEditor(app, "sub-table-columns", "sub-table-columns-editor", SubTableColumnsEditor);
|
|
61118
61259
|
registerCPEditor(app, "select-tree-showCheckbox", "select-tree-showCheckbox-editor", createBooleanEditor("showCheckbox", "designer.setting.showCheckbox"));
|
|
61260
|
+
registerCPEditor(app, "select-tree-checkStrictly", "select-tree-checkStrictly-editor", createBooleanEditor("checkStrictly", "extension.setting.selectTreeCheckStrictly"));
|
|
61119
61261
|
app.component(CurrentUserWidget.name, CurrentUserWidget);
|
|
61120
61262
|
registerCPEditor(app, "current-user-type", "current-user-type-editor", createSelectEditor("type", "extension.setting.currentUserType", {
|
|
61121
61263
|
optionItems: [
|