form-custom-test 3.0.67 → 3.0.69
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 +164 -43
- package/dist/designer.style.css +2 -2
- package/dist/designer.umd.js +4 -4
- package/dist/render.es.js +170 -37
- package/dist/render.style.css +2 -2
- package/dist/render.umd.js +81 -81
- package/package.json +1 -1
package/dist/render.es.js
CHANGED
|
@@ -2185,7 +2185,7 @@ const _hoisted_6$c = {
|
|
|
2185
2185
|
class: "drag-handler background-opacity"
|
|
2186
2186
|
};
|
|
2187
2187
|
const _hoisted_7$a = ["title"];
|
|
2188
|
-
const _hoisted_8$
|
|
2188
|
+
const _hoisted_8$7 = { key: 0 };
|
|
2189
2189
|
function _sfc_render$14(_ctx, _cache, $props, $setup, $data, $options) {
|
|
2190
2190
|
const _component_svg_icon = resolveComponent("svg-icon");
|
|
2191
2191
|
return openBlock(), createElementBlock("div", {
|
|
@@ -2236,7 +2236,7 @@ function _sfc_render$14(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
2236
2236
|
createVNode(_component_svg_icon, { "icon-class": "el-drag-move" })
|
|
2237
2237
|
], 8, _hoisted_7$a),
|
|
2238
2238
|
createElementVNode("i", null, toDisplayString(_ctx.i18n2t(`designer.widgetLabel.${$props.field.type}`, `extension.widgetLabel.${$props.field.type}`)), 1),
|
|
2239
|
-
$props.field.options.hidden === true ? (openBlock(), createElementBlock("i", _hoisted_8$
|
|
2239
|
+
$props.field.options.hidden === true ? (openBlock(), createElementBlock("i", _hoisted_8$7, [
|
|
2240
2240
|
createVNode(_component_svg_icon, { "icon-class": "el-hide" })
|
|
2241
2241
|
])) : createCommentVNode("", true)
|
|
2242
2242
|
])) : createCommentVNode("", true)
|
|
@@ -9282,8 +9282,8 @@ const _hoisted_7$9 = {
|
|
|
9282
9282
|
key: 1,
|
|
9283
9283
|
class: "drag-handler background-opacity"
|
|
9284
9284
|
};
|
|
9285
|
-
const _hoisted_8$
|
|
9286
|
-
const _hoisted_9$
|
|
9285
|
+
const _hoisted_8$6 = ["title"];
|
|
9286
|
+
const _hoisted_9$5 = { key: 0 };
|
|
9287
9287
|
function _sfc_render$12(_ctx, _cache, $props, $setup, $data, $options) {
|
|
9288
9288
|
const _component_svg_icon = resolveComponent("svg-icon");
|
|
9289
9289
|
const _component_el_tooltip = resolveComponent("el-tooltip");
|
|
@@ -9390,9 +9390,9 @@ function _sfc_render$12(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
9390
9390
|
title: _ctx.i18nt("designer.hint.dragHandler")
|
|
9391
9391
|
}, [
|
|
9392
9392
|
createVNode(_component_svg_icon, { "icon-class": "el-drag-move" })
|
|
9393
|
-
], 8, _hoisted_8$
|
|
9393
|
+
], 8, _hoisted_8$6),
|
|
9394
9394
|
createElementVNode("i", null, toDisplayString(_ctx.i18n2t(`designer.widgetLabel.${$props.field.type}`, `extension.widgetLabel.${$props.field.type}`)), 1),
|
|
9395
|
-
$props.field.options.hidden === true ? (openBlock(), createElementBlock("i", _hoisted_9$
|
|
9395
|
+
$props.field.options.hidden === true ? (openBlock(), createElementBlock("i", _hoisted_9$5, [
|
|
9396
9396
|
createVNode(_component_svg_icon, { "icon-class": "el-hide" })
|
|
9397
9397
|
])) : createCommentVNode("", true)
|
|
9398
9398
|
])) : createCommentVNode("", true)
|
|
@@ -10365,6 +10365,17 @@ function useCookies() {
|
|
|
10365
10365
|
var cookies2 = reactive(GLOBAL_COOKIES_MANAGER);
|
|
10366
10366
|
return { cookies: cookies2 };
|
|
10367
10367
|
}
|
|
10368
|
+
function downloadMethod(fileData, fileName) {
|
|
10369
|
+
const blob = new Blob([fileData]);
|
|
10370
|
+
const downloadUrl = window.URL.createObjectURL(blob);
|
|
10371
|
+
const downloadLink = document.createElement("a");
|
|
10372
|
+
downloadLink.href = downloadUrl;
|
|
10373
|
+
downloadLink.download = fileName;
|
|
10374
|
+
document.body.appendChild(downloadLink);
|
|
10375
|
+
downloadLink.click();
|
|
10376
|
+
document.body.removeChild(downloadLink);
|
|
10377
|
+
window.URL.revokeObjectURL(downloadUrl);
|
|
10378
|
+
}
|
|
10368
10379
|
var _imports_0 = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAABsUlEQVR4AaxSy0ojURA9dTMZZobxA4ZhZhgXLlwo4kLcuRMknU4aIuILFPyP/Ieg4Asx0El3B8GdO3EhogsXLhQV8QMUFTVdnmC6JWkVRIu6fU/XOXW41L0GH4zPM1DLmVDL3lMrb792KM3mHfLU2KOR5vkEvV3LgJxCw2XNZnvQEprL9UJ1EdBjBN5qRMcGUiyGkJDOcoTQ+Dro/IpEmsn8Rk08CA5xmR4XIIy42KBeEN+/ZLNFYRpfw4oWCt/Vsn5AvnjsSUE0K5ulq7o2Wk0G9aKsuydQyQPahdv7eSC1wHonDHLieWdoiYRBnZdqeQsiM8TDXA7xNJu3iRP5okFC9UbhRQPN5Ps58Vn2rXG5xHNq233EiUwY6JDzj8MqA7KPb+kpoDYJ4IBzr9DkD3FTNhnw/ttgwoCKO9yZnJRKNxIE19AHPi5T43B9HSj8JB+niZAWiwZqVjj9dkhoy4Z7EXFSrZ4jpTYUHWi7X1LwThpkbICd/TE2/4WYMb6H3QYfb1Kp7PA2JgD5D8seQSNiAwncRQm8bgnKfDQNtmUTv+ySp8bjSZ/I2ODp9/3fRwAAAP//S/wI2gAAAAZJREFUAwCGXJIhFOitmwAAAABJRU5ErkJggg==";
|
|
10369
10380
|
var fileUploadWidget_vue_vue_type_style_index_0_scoped_true_lang = "";
|
|
10370
10381
|
useCookies();
|
|
@@ -10614,6 +10625,58 @@ const _sfc_main$M = {
|
|
|
10614
10625
|
type: "error"
|
|
10615
10626
|
});
|
|
10616
10627
|
}
|
|
10628
|
+
},
|
|
10629
|
+
async handlePreview(file) {
|
|
10630
|
+
console.log(file, "file");
|
|
10631
|
+
try {
|
|
10632
|
+
const { response, fileId } = file;
|
|
10633
|
+
if (response) {
|
|
10634
|
+
const { data: data2 } = response;
|
|
10635
|
+
if (!data2.fileId) {
|
|
10636
|
+
throw new Error("\u6587\u4EF6ID\u4E0D\u80FD\u4E3A\u7A7A");
|
|
10637
|
+
}
|
|
10638
|
+
const { data: previewData } = await service({
|
|
10639
|
+
method: "get",
|
|
10640
|
+
url: "unified-file/sys-file/kkfile-url",
|
|
10641
|
+
params: { fileId: data2.fileId }
|
|
10642
|
+
});
|
|
10643
|
+
window.open(previewData);
|
|
10644
|
+
} else {
|
|
10645
|
+
if (!fileId) {
|
|
10646
|
+
throw new Error("\u6587\u4EF6ID\u4E0D\u80FD\u4E3A\u7A7A");
|
|
10647
|
+
}
|
|
10648
|
+
const { data: previewData } = await filePreview(fileId);
|
|
10649
|
+
window.open(previewData);
|
|
10650
|
+
}
|
|
10651
|
+
} catch (error) {
|
|
10652
|
+
console.error(error);
|
|
10653
|
+
}
|
|
10654
|
+
},
|
|
10655
|
+
async handleDownload(file) {
|
|
10656
|
+
const { response, fileId, fileName, name } = file;
|
|
10657
|
+
if (response) {
|
|
10658
|
+
const { data: data2 } = response;
|
|
10659
|
+
if (!data2.fileId) {
|
|
10660
|
+
throw new Error("\u6587\u4EF6ID\u4E0D\u80FD\u4E3A\u7A7A");
|
|
10661
|
+
}
|
|
10662
|
+
const { data: downloadData } = await service({
|
|
10663
|
+
method: "post",
|
|
10664
|
+
url: "unified-file/sys-file/download",
|
|
10665
|
+
params: { fileId: data2.fileId },
|
|
10666
|
+
responseType: "blob"
|
|
10667
|
+
});
|
|
10668
|
+
downloadMethod(downloadData, data2.fileName);
|
|
10669
|
+
} else {
|
|
10670
|
+
if (!fileId) {
|
|
10671
|
+
throw new Error("\u6587\u4EF6ID\u4E0D\u80FD\u4E3A\u7A7A");
|
|
10672
|
+
}
|
|
10673
|
+
const { data: downloadData } = await service({
|
|
10674
|
+
method: "post",
|
|
10675
|
+
url: "unified-file/sys-file/download",
|
|
10676
|
+
params: { fileId }
|
|
10677
|
+
});
|
|
10678
|
+
downloadMethod(downloadData, name || fileName);
|
|
10679
|
+
}
|
|
10617
10680
|
}
|
|
10618
10681
|
}
|
|
10619
10682
|
};
|
|
@@ -10627,6 +10690,8 @@ const _hoisted_4$c = { class: "left-wrap" };
|
|
|
10627
10690
|
const _hoisted_5$a = ["title"];
|
|
10628
10691
|
const _hoisted_6$a = { class: "right-wrap" };
|
|
10629
10692
|
const _hoisted_7$8 = ["title", "onClick"];
|
|
10693
|
+
const _hoisted_8$5 = ["onClick"];
|
|
10694
|
+
const _hoisted_9$4 = ["onClick"];
|
|
10630
10695
|
function _sfc_render$M(_ctx, _cache, $props, $setup, $data, $options) {
|
|
10631
10696
|
const _component_upload_filled = resolveComponent("upload-filled");
|
|
10632
10697
|
const _component_el_icon = resolveComponent("el-icon");
|
|
@@ -10690,7 +10755,17 @@ function _sfc_render$M(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
10690
10755
|
src: _imports_0,
|
|
10691
10756
|
alt: ""
|
|
10692
10757
|
}, null, -1)
|
|
10693
|
-
])], 8, _hoisted_7$8)) : createCommentVNode("", true)
|
|
10758
|
+
])], 8, _hoisted_7$8)) : createCommentVNode("", true),
|
|
10759
|
+
_ctx.getDisabled() ? (openBlock(), createElementBlock("div", {
|
|
10760
|
+
key: 1,
|
|
10761
|
+
onClick: withModifiers(($event) => $options.handlePreview(file), ["stop"]),
|
|
10762
|
+
class: "pr-8px cursor-pointer"
|
|
10763
|
+
}, " \u9884\u89C8 ", 8, _hoisted_8$5)) : createCommentVNode("", true),
|
|
10764
|
+
_ctx.getDisabled() ? (openBlock(), createElementBlock("div", {
|
|
10765
|
+
key: 2,
|
|
10766
|
+
onClick: withModifiers(($event) => $options.handleDownload(file), ["stop"]),
|
|
10767
|
+
class: "pr-8px cursor-pointer"
|
|
10768
|
+
}, " \u4E0B\u8F7D ", 8, _hoisted_9$4)) : createCommentVNode("", true)
|
|
10694
10769
|
])
|
|
10695
10770
|
])
|
|
10696
10771
|
]),
|
|
@@ -10732,7 +10807,7 @@ function _sfc_render$M(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
10732
10807
|
_: 1
|
|
10733
10808
|
}, 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"]);
|
|
10734
10809
|
}
|
|
10735
|
-
var fileUploadWidget = /* @__PURE__ */ _export_sfc$1(_sfc_main$M, [["render", _sfc_render$M], ["__scopeId", "data-v-
|
|
10810
|
+
var fileUploadWidget = /* @__PURE__ */ _export_sfc$1(_sfc_main$M, [["render", _sfc_render$M], ["__scopeId", "data-v-ad7262c4"]]);
|
|
10736
10811
|
var __glob_0_7 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
10737
10812
|
__proto__: null,
|
|
10738
10813
|
"default": fileUploadWidget
|
|
@@ -25907,13 +25982,13 @@ function registerIcon(app) {
|
|
|
25907
25982
|
if (typeof window !== "undefined") {
|
|
25908
25983
|
let loadSvg = function() {
|
|
25909
25984
|
var body = document.body;
|
|
25910
|
-
var svgDom = document.getElementById("
|
|
25985
|
+
var svgDom = document.getElementById("__svg__icons__dom__1774320780224__");
|
|
25911
25986
|
if (!svgDom) {
|
|
25912
25987
|
svgDom = document.createElementNS("http://www.w3.org/2000/svg", "svg");
|
|
25913
25988
|
svgDom.style.position = "absolute";
|
|
25914
25989
|
svgDom.style.width = "0";
|
|
25915
25990
|
svgDom.style.height = "0";
|
|
25916
|
-
svgDom.id = "
|
|
25991
|
+
svgDom.id = "__svg__icons__dom__1774320780224__";
|
|
25917
25992
|
svgDom.setAttribute("xmlns", "http://www.w3.org/2000/svg");
|
|
25918
25993
|
svgDom.setAttribute("xmlns:link", "http://www.w3.org/1999/xlink");
|
|
25919
25994
|
}
|
|
@@ -31814,12 +31889,12 @@ const getToken = () => {
|
|
|
31814
31889
|
return accessToken;
|
|
31815
31890
|
};
|
|
31816
31891
|
useCookies();
|
|
31817
|
-
const service = axios.create({
|
|
31892
|
+
const service$1 = axios.create({
|
|
31818
31893
|
baseURL: "/api",
|
|
31819
31894
|
timeout: 5e4,
|
|
31820
31895
|
headers: { "Content-Type": "application/json;charset=utf-8" }
|
|
31821
31896
|
});
|
|
31822
|
-
service.interceptors.request.use((config) => {
|
|
31897
|
+
service$1.interceptors.request.use((config) => {
|
|
31823
31898
|
config.headers["Client"] = "web";
|
|
31824
31899
|
const accessToken = getToken();
|
|
31825
31900
|
const company = sessionStorage.getItem("companyId");
|
|
@@ -31837,7 +31912,7 @@ service.interceptors.request.use((config) => {
|
|
|
31837
31912
|
}, (error) => {
|
|
31838
31913
|
return Promise.reject(error);
|
|
31839
31914
|
});
|
|
31840
|
-
service.interceptors.response.use((response) => {
|
|
31915
|
+
service$1.interceptors.response.use((response) => {
|
|
31841
31916
|
const { responseType } = response.config;
|
|
31842
31917
|
if (responseType === "blob") {
|
|
31843
31918
|
return response;
|
|
@@ -31946,7 +32021,8 @@ const _sfc_main$j = {
|
|
|
31946
32021
|
checkedNodes: [],
|
|
31947
32022
|
treeRef: null,
|
|
31948
32023
|
defaultExpandedKeys: [],
|
|
31949
|
-
currentNodeKey: null
|
|
32024
|
+
currentNodeKey: null,
|
|
32025
|
+
search: ""
|
|
31950
32026
|
};
|
|
31951
32027
|
},
|
|
31952
32028
|
computed: {
|
|
@@ -31990,20 +32066,29 @@ const _sfc_main$j = {
|
|
|
31990
32066
|
this.unregisterFromRefList();
|
|
31991
32067
|
},
|
|
31992
32068
|
methods: {
|
|
31993
|
-
|
|
31994
|
-
|
|
31995
|
-
|
|
31996
|
-
|
|
31997
|
-
|
|
31998
|
-
|
|
31999
|
-
|
|
32069
|
+
handleRemoveTag(removedItem, removedIndex) {
|
|
32070
|
+
if (this.field.options.disabled) {
|
|
32071
|
+
return;
|
|
32072
|
+
}
|
|
32073
|
+
const remaining = Array.isArray(this.fieldModel) ? this.fieldModel : [];
|
|
32074
|
+
let prevSnapshot;
|
|
32075
|
+
if (removedItem != null && typeof removedIndex === "number" && removedIndex >= 0) {
|
|
32076
|
+
prevSnapshot = deepClone(remaining);
|
|
32077
|
+
prevSnapshot.splice(removedIndex, 0, removedItem);
|
|
32078
|
+
} else {
|
|
32079
|
+
prevSnapshot = deepClone(remaining);
|
|
32080
|
+
}
|
|
32081
|
+
this.oldFieldValue = prevSnapshot;
|
|
32082
|
+
this.syncUpdateFormModel(remaining);
|
|
32083
|
+
this.emitFieldDataChange(remaining, this.oldFieldValue);
|
|
32084
|
+
this.triggerEvent("onRemoveTag", removedItem, remaining, removedIndex);
|
|
32000
32085
|
this.$nextTick(() => {
|
|
32001
32086
|
this.dispatch("VFormRender", "fieldValidation", [this.getPropName()]);
|
|
32002
32087
|
});
|
|
32003
32088
|
},
|
|
32004
32089
|
getTreeData() {
|
|
32005
32090
|
const data2 = this.field.options.treeParams ? JSON.parse(this.field.options.treeParams) : {};
|
|
32006
|
-
service({
|
|
32091
|
+
service$1({
|
|
32007
32092
|
method: "post",
|
|
32008
32093
|
url: "/unified-system/sysCompany/fullTree",
|
|
32009
32094
|
data: __spreadValues({ companyId: sessionStorage.getItem("companyId") }, data2)
|
|
@@ -32019,8 +32104,24 @@ const _sfc_main$j = {
|
|
|
32019
32104
|
}
|
|
32020
32105
|
return data4;
|
|
32021
32106
|
}
|
|
32107
|
+
this.$nextTick(() => {
|
|
32108
|
+
this.applyTreeFilter();
|
|
32109
|
+
});
|
|
32022
32110
|
});
|
|
32023
32111
|
},
|
|
32112
|
+
filterNode(value2, data2) {
|
|
32113
|
+
if (value2 == null || String(value2).trim() === "")
|
|
32114
|
+
return true;
|
|
32115
|
+
const keyword = String(value2).trim().toLowerCase();
|
|
32116
|
+
const name = (data2.name || "").toLowerCase();
|
|
32117
|
+
(data2.postName || "").toLowerCase();
|
|
32118
|
+
return name.includes(keyword);
|
|
32119
|
+
},
|
|
32120
|
+
applyTreeFilter() {
|
|
32121
|
+
if (this.$refs.treeRef && typeof this.$refs.treeRef.filter === "function") {
|
|
32122
|
+
this.$refs.treeRef.filter(this.search);
|
|
32123
|
+
}
|
|
32124
|
+
},
|
|
32024
32125
|
renderContent(h, { node, data: data2 }) {
|
|
32025
32126
|
return h("div", {
|
|
32026
32127
|
class: "custom-tree-node"
|
|
@@ -32068,6 +32169,7 @@ const _sfc_main$j = {
|
|
|
32068
32169
|
this.currentNodeKey = this.fieldModel && this.fieldModel[0] ? this.fieldModel[0].nodeKey : null;
|
|
32069
32170
|
this.defaultExpandedKeys = this.currentNodeKey ? [this.currentNodeKey] : [];
|
|
32070
32171
|
}
|
|
32172
|
+
this.applyTreeFilter();
|
|
32071
32173
|
});
|
|
32072
32174
|
},
|
|
32073
32175
|
handleNodeClick(data2, node) {
|
|
@@ -32140,6 +32242,12 @@ const _sfc_main$j = {
|
|
|
32140
32242
|
const nodes = args[0];
|
|
32141
32243
|
const fn = new Function("checkedNodes", "selectedNodes", "selectedValue", handler);
|
|
32142
32244
|
fn.call(this, nodes, nodes, nodes);
|
|
32245
|
+
} else if (eventName === "onRemoveTag" && args.length >= 2) {
|
|
32246
|
+
const removedItem = args[0];
|
|
32247
|
+
const remainingNodes = args[1];
|
|
32248
|
+
const removedIndex = args[2];
|
|
32249
|
+
const fn = new Function("removedItem", "remainingNodes", "remainingValue", "selectedValue", "removedIndex", handler);
|
|
32250
|
+
fn.call(this, removedItem, remainingNodes, remainingNodes, remainingNodes, removedIndex);
|
|
32143
32251
|
} else if (args.length > 0) {
|
|
32144
32252
|
const paramNames = args.map((_, index2) => `arg${index2}`).join(", ");
|
|
32145
32253
|
const fn = new Function(paramNames, handler);
|
|
@@ -32154,6 +32262,11 @@ const _sfc_main$j = {
|
|
|
32154
32262
|
console.error("Args:", args);
|
|
32155
32263
|
}
|
|
32156
32264
|
}
|
|
32265
|
+
},
|
|
32266
|
+
handleSearch() {
|
|
32267
|
+
this.$nextTick(() => {
|
|
32268
|
+
this.applyTreeFilter();
|
|
32269
|
+
});
|
|
32157
32270
|
}
|
|
32158
32271
|
}
|
|
32159
32272
|
};
|
|
@@ -32194,7 +32307,8 @@ function _sfc_render$j(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
32194
32307
|
disabled: $props.field.options.disabled,
|
|
32195
32308
|
placeholder: "\u8BF7\u9009\u62E9\u4EBA\u5458",
|
|
32196
32309
|
onClick: $options.handleClick,
|
|
32197
|
-
ref: "inputTagRef"
|
|
32310
|
+
ref: "inputTagRef",
|
|
32311
|
+
onRemoveTag: $options.handleRemoveTag
|
|
32198
32312
|
}, {
|
|
32199
32313
|
tag: withCtx(({ value: value2 }) => [
|
|
32200
32314
|
createElementVNode("div", _hoisted_2$b, [
|
|
@@ -32202,7 +32316,7 @@ function _sfc_render$j(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
32202
32316
|
])
|
|
32203
32317
|
]),
|
|
32204
32318
|
_: 1
|
|
32205
|
-
}, 8, ["modelValue", "disabled", "onClick"])
|
|
32319
|
+
}, 8, ["modelValue", "disabled", "onClick", "onRemoveTag"])
|
|
32206
32320
|
]),
|
|
32207
32321
|
createVNode(_component_el_dialog, {
|
|
32208
32322
|
modelValue: $data.dialogVisible,
|
|
@@ -32210,15 +32324,16 @@ function _sfc_render$j(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
32210
32324
|
title: $props.field.options.dialogTitle || "\u4EBA\u5458\u6811",
|
|
32211
32325
|
width: "480px",
|
|
32212
32326
|
onClose: $options.handleClose,
|
|
32213
|
-
"body-class": " pl-24px pt-24px"
|
|
32327
|
+
"body-class": " pl-24px pt-24px pb-0px"
|
|
32214
32328
|
}, createSlots({
|
|
32215
32329
|
default: withCtx(() => [
|
|
32216
32330
|
createVNode(_component_el_input, {
|
|
32217
|
-
modelValue:
|
|
32218
|
-
"onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) =>
|
|
32331
|
+
modelValue: $data.search,
|
|
32332
|
+
"onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) => $data.search = $event),
|
|
32219
32333
|
placeholder: "\u8BF7\u8F93\u5165\u59D3\u540D\u8FDB\u884C\u641C\u7D22",
|
|
32334
|
+
onInput: $options.handleSearch,
|
|
32220
32335
|
class: "pr-24px mb-30px"
|
|
32221
|
-
}, null, 8, ["modelValue"]),
|
|
32336
|
+
}, null, 8, ["modelValue", "onInput"]),
|
|
32222
32337
|
createVNode(_component_el_scrollbar, {
|
|
32223
32338
|
height: "538px",
|
|
32224
32339
|
class: "pr-24px"
|
|
@@ -32232,7 +32347,7 @@ function _sfc_render$j(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
32232
32347
|
"node-key": "nodeKey",
|
|
32233
32348
|
ref: "treeRef",
|
|
32234
32349
|
"default-expanded-keys": $data.defaultExpandedKeys,
|
|
32235
|
-
"filter-node-method":
|
|
32350
|
+
"filter-node-method": $options.filterNode,
|
|
32236
32351
|
"highlight-current": !$props.field.options.multiple,
|
|
32237
32352
|
"current-node-key": $data.currentNodeKey,
|
|
32238
32353
|
onNodeClick: $options.handleNodeClick,
|
|
@@ -32277,7 +32392,7 @@ function _sfc_render$j(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
32277
32392
|
_: 1
|
|
32278
32393
|
}, 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"]);
|
|
32279
32394
|
}
|
|
32280
|
-
var PersonTreeWidget = /* @__PURE__ */ _export_sfc$1(_sfc_main$j, [["render", _sfc_render$j], ["__scopeId", "data-v-
|
|
32395
|
+
var PersonTreeWidget = /* @__PURE__ */ _export_sfc$1(_sfc_main$j, [["render", _sfc_render$j], ["__scopeId", "data-v-0fdf3b3c"]]);
|
|
32281
32396
|
const _sfc_main$i = {
|
|
32282
32397
|
name: "radio-other-widget",
|
|
32283
32398
|
componentName: "FieldWidget",
|
|
@@ -32723,7 +32838,7 @@ const _sfc_main$g = {
|
|
|
32723
32838
|
}
|
|
32724
32839
|
this.loading = true;
|
|
32725
32840
|
this.roomList = [];
|
|
32726
|
-
service.get(this.field.options.remoteUrl).then((response) => {
|
|
32841
|
+
service$1.get(this.field.options.remoteUrl).then((response) => {
|
|
32727
32842
|
let data2 = response;
|
|
32728
32843
|
if (response && response.data) {
|
|
32729
32844
|
data2 = response.data;
|
|
@@ -61369,7 +61484,7 @@ const _sfc_main = {
|
|
|
61369
61484
|
return v !== void 0 && v !== null && v !== "";
|
|
61370
61485
|
},
|
|
61371
61486
|
async getCurrentUser() {
|
|
61372
|
-
const { data: data2 } = await service({
|
|
61487
|
+
const { data: data2 } = await service$1({
|
|
61373
61488
|
method: "get",
|
|
61374
61489
|
url: "unified-system/employee/loginInfo?accessType=0"
|
|
61375
61490
|
});
|
|
@@ -61482,6 +61597,11 @@ const loadExtension = function(app) {
|
|
|
61482
61597
|
registerCPEditor(app, "person-tree-hideFooter", "person-tree-hideFooter-editor", createBooleanEditor("hideFooter", "extension.setting.personTreeHideFooter"));
|
|
61483
61598
|
registerEPEditor(app, "person-tree-onOpen", "person-tree-onOpen-editor", createEventHandlerEditor("onOpen", []));
|
|
61484
61599
|
registerEPEditor(app, "person-tree-onConfirm", "person-tree-onConfirm-editor", createEventHandlerEditor("onConfirm", ["checkedNodes"]));
|
|
61600
|
+
registerEPEditor(app, "person-tree-onRemoveTag", "person-tree-onRemoveTag-editor", createEventHandlerEditor("onRemoveTag", [
|
|
61601
|
+
"removedItem",
|
|
61602
|
+
"remainingNodes",
|
|
61603
|
+
"removedIndex"
|
|
61604
|
+
]));
|
|
61485
61605
|
registerEPEditor(app, "person-tree-onCancel", "person-tree-onCancel-editor", createEventHandlerEditor("onCancel", []));
|
|
61486
61606
|
registerEPEditor(app, "person-tree-onClose", "person-tree-onClose-editor", createEventHandlerEditor("onClose", []));
|
|
61487
61607
|
app.component(radioOtherItem.name, radioOtherItem);
|
|
@@ -61509,13 +61629,26 @@ const loadExtension = function(app) {
|
|
|
61509
61629
|
]
|
|
61510
61630
|
}));
|
|
61511
61631
|
};
|
|
61632
|
+
function getElMessage(app) {
|
|
61633
|
+
var _a, _b, _c;
|
|
61634
|
+
try {
|
|
61635
|
+
if ((_b = (_a = app == null ? void 0 : app.config) == null ? void 0 : _a.globalProperties) == null ? void 0 : _b.$message)
|
|
61636
|
+
return app.config.globalProperties.$message;
|
|
61637
|
+
if (typeof window !== "undefined" && window.ElementPlus) {
|
|
61638
|
+
return window.ElementPlus.ElMessage || ((_c = window.ElementPlus.default) == null ? void 0 : _c.ElMessage) || null;
|
|
61639
|
+
}
|
|
61640
|
+
} catch (e) {
|
|
61641
|
+
}
|
|
61642
|
+
return null;
|
|
61643
|
+
}
|
|
61512
61644
|
VFormRender.install = function(app) {
|
|
61513
61645
|
loadExtension(app);
|
|
61514
61646
|
app.use(ContainerItems);
|
|
61515
61647
|
registerIcon(app);
|
|
61516
61648
|
app.component(VFormRender.name, VFormRender);
|
|
61517
|
-
app.config.globalProperties.$service = service;
|
|
61518
|
-
app.provide("service", service);
|
|
61649
|
+
app.config.globalProperties.$service = service$1;
|
|
61650
|
+
app.provide("service", service$1);
|
|
61651
|
+
app.provide("ElMessage", getElMessage(app));
|
|
61519
61652
|
};
|
|
61520
61653
|
const components = [
|
|
61521
61654
|
VFormRender
|
|
@@ -61527,11 +61660,11 @@ const install = (app) => {
|
|
|
61527
61660
|
components.forEach((component) => {
|
|
61528
61661
|
app.component(component.name, component);
|
|
61529
61662
|
});
|
|
61530
|
-
app.config.globalProperties.$service = service;
|
|
61531
|
-
app.provide("service", service);
|
|
61663
|
+
app.config.globalProperties.$service = service$1;
|
|
61664
|
+
app.provide("service", service$1);
|
|
61532
61665
|
window.axios = axios;
|
|
61533
61666
|
if (typeof window !== "undefined") {
|
|
61534
|
-
window.service = service;
|
|
61667
|
+
window.service = service$1;
|
|
61535
61668
|
}
|
|
61536
61669
|
};
|
|
61537
61670
|
var installRender = {
|