yuanjia-form-pro-standard 1.1.6-beta6.8 → 1.1.6-beta7.0
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/designer.es.js +1612 -214
- package/designer.style.css +1 -1
- package/designer.umd.js +12 -12
- package/package.json +1 -1
package/designer.es.js
CHANGED
|
@@ -33,9 +33,9 @@ var __publicField = (obj, key, value2) => {
|
|
|
33
33
|
__defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value2);
|
|
34
34
|
return value2;
|
|
35
35
|
};
|
|
36
|
-
import require$$0$1, { openBlock, createElementBlock, normalizeClass as normalizeClass$1, createElementVNode, toDisplayString, createCommentVNode, reactive, inject, getCurrentInstance, onUnmounted, computed, ref as ref$1, onDeactivated, isRef, watch, provide, onMounted, nextTick, onActivated, unref, isVNode, defineComponent, createVNode, onBeforeUnmount, watchEffect, mergeProps, Transition, Teleport, withDirectives, vShow, Fragment, onBeforeUpdate, Comment, createTextVNode, resolveComponent, createBlock, withCtx, renderList, renderSlot, withModifiers, resolveDynamicComponent, normalizeStyle as normalizeStyle$1,
|
|
36
|
+
import require$$0$1, { openBlock, createElementBlock, normalizeClass as normalizeClass$1, createElementVNode, toDisplayString, createCommentVNode, reactive, inject, getCurrentInstance, onUnmounted, computed, ref as ref$1, onDeactivated, isRef, watch, provide, onMounted, nextTick, onActivated, unref, isVNode, defineComponent, createVNode, onBeforeUnmount, watchEffect, mergeProps, Transition, Teleport, withDirectives, vShow, Fragment, onBeforeUpdate, Comment, createTextVNode, resolveComponent, createBlock, withCtx, renderList, renderSlot, withModifiers, resolveDynamicComponent, normalizeStyle as normalizeStyle$1, resolveDirective, createSlots, h as h$1, render as render$1 } from "vue";
|
|
37
37
|
import * as ElementPlusIconsVue from "@element-plus/icons-vue";
|
|
38
|
-
import { Loading as Loading$1, User,
|
|
38
|
+
import { Loading as Loading$1, User, EditPen, View, Download, Upload, Edit, UploadFilled, Document, ArrowDown, ArrowRight, Delete, Minus, Plus, InfoFilled, Search as Search$1, CirclePlus, ArrowUp, Bottom, Top, Back, Right, BottomLeft, TopRight, DCaret, Platform, CaretLeft, CaretRight } from "@element-plus/icons-vue";
|
|
39
39
|
var commonjsGlobal = typeof globalThis !== "undefined" ? globalThis : typeof window !== "undefined" ? window : typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : {};
|
|
40
40
|
function getDefaultExportFromCjs(x) {
|
|
41
41
|
return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, "default") ? x["default"] : x;
|
|
@@ -1092,7 +1092,7 @@ var _export_sfc = (sfc, props) => {
|
|
|
1092
1092
|
}
|
|
1093
1093
|
return target;
|
|
1094
1094
|
};
|
|
1095
|
-
const _sfc_main$
|
|
1095
|
+
const _sfc_main$5h = {
|
|
1096
1096
|
name: "SvgIcon",
|
|
1097
1097
|
props: {
|
|
1098
1098
|
iconClass: {
|
|
@@ -1120,18 +1120,18 @@ const _sfc_main$5f = {
|
|
|
1120
1120
|
}
|
|
1121
1121
|
}
|
|
1122
1122
|
};
|
|
1123
|
-
const _hoisted_1$
|
|
1124
|
-
const _hoisted_2$
|
|
1125
|
-
function _sfc_render$
|
|
1123
|
+
const _hoisted_1$1n = ["xlink:href"];
|
|
1124
|
+
const _hoisted_2$I = { key: 0 };
|
|
1125
|
+
function _sfc_render$5f(_ctx, _cache, $props, $setup, $data, $options) {
|
|
1126
1126
|
return openBlock(), createElementBlock("svg", {
|
|
1127
1127
|
class: normalizeClass$1($options.svgClass),
|
|
1128
1128
|
"aria-hidden": "true"
|
|
1129
1129
|
}, [
|
|
1130
|
-
createElementVNode("use", { "xlink:href": $options.iconName }, null, 8, _hoisted_1$
|
|
1131
|
-
!!$props.title ? (openBlock(), createElementBlock("title", _hoisted_2$
|
|
1130
|
+
createElementVNode("use", { "xlink:href": $options.iconName }, null, 8, _hoisted_1$1n),
|
|
1131
|
+
!!$props.title ? (openBlock(), createElementBlock("title", _hoisted_2$I, toDisplayString($props.title), 1)) : createCommentVNode("", true)
|
|
1132
1132
|
], 2);
|
|
1133
1133
|
}
|
|
1134
|
-
var SvgIcon = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
1134
|
+
var SvgIcon = /* @__PURE__ */ _export_sfc(_sfc_main$5h, [["render", _sfc_render$5f], ["__scopeId", "data-v-2a03d21b"]]);
|
|
1135
1135
|
const almLocalStorage = {
|
|
1136
1136
|
supportLoaclStorage: function() {
|
|
1137
1137
|
if (window.localStorage) {
|
|
@@ -2936,7 +2936,40 @@ const advancedFields = [
|
|
|
2936
2936
|
}
|
|
2937
2937
|
}
|
|
2938
2938
|
];
|
|
2939
|
-
let customFields = [
|
|
2939
|
+
let customFields = [
|
|
2940
|
+
{
|
|
2941
|
+
type: "electronic-case",
|
|
2942
|
+
icon: "document",
|
|
2943
|
+
formItemFlag: true,
|
|
2944
|
+
options: {
|
|
2945
|
+
read_default: "1",
|
|
2946
|
+
unit_id: "",
|
|
2947
|
+
parentid: "",
|
|
2948
|
+
name: "",
|
|
2949
|
+
describe: "",
|
|
2950
|
+
keyNameEnabled: false,
|
|
2951
|
+
keyName: "",
|
|
2952
|
+
label: "\u7535\u5B50\u5377\u5B97",
|
|
2953
|
+
labelAlign: "",
|
|
2954
|
+
labelWidth: null,
|
|
2955
|
+
labelHidden: false,
|
|
2956
|
+
columnWidth: "200px",
|
|
2957
|
+
disabled: false,
|
|
2958
|
+
hidden: false,
|
|
2959
|
+
required: false,
|
|
2960
|
+
requiredHint: "",
|
|
2961
|
+
customRule: "",
|
|
2962
|
+
customRuleHint: "",
|
|
2963
|
+
customClass: "",
|
|
2964
|
+
labelIconClass: null,
|
|
2965
|
+
labelIconPosition: "rear",
|
|
2966
|
+
labelTooltip: null,
|
|
2967
|
+
onCreated: "",
|
|
2968
|
+
onMounted: "",
|
|
2969
|
+
onValidate: ""
|
|
2970
|
+
}
|
|
2971
|
+
}
|
|
2972
|
+
];
|
|
2940
2973
|
const chartContainers = [];
|
|
2941
2974
|
const chartWidgets = [];
|
|
2942
2975
|
function addContainerWidgetSchema(containerSchema) {
|
|
@@ -4331,6 +4364,7 @@ var zhLocale = {
|
|
|
4331
4364
|
"ai-editor": "AI\u5BCC\u6587\u672C",
|
|
4332
4365
|
cascader: "\u7EA7\u8054\u9009\u62E9",
|
|
4333
4366
|
slot: "\u63D2\u69FD",
|
|
4367
|
+
"electronic-case": "\u7535\u5B50\u5377\u5B97",
|
|
4334
4368
|
custom: "Custom Component"
|
|
4335
4369
|
},
|
|
4336
4370
|
hint: {
|
|
@@ -11120,6 +11154,7 @@ var Utils$4 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.definePropert
|
|
|
11120
11154
|
modifyWidgetListById,
|
|
11121
11155
|
clearWidgetListById,
|
|
11122
11156
|
clearChildFormWidgetList,
|
|
11157
|
+
fetchChildFormSchema,
|
|
11123
11158
|
clearChildFormSchemaCache,
|
|
11124
11159
|
processChildForms,
|
|
11125
11160
|
sanitizeFilename,
|
|
@@ -11130,7 +11165,7 @@ var Utils$4 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.definePropert
|
|
|
11130
11165
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
11131
11166
|
var index_vue_vue_type_style_index_0_scoped_true_lang$8 = "";
|
|
11132
11167
|
var index_vue_vue_type_style_index_1_lang$3 = "";
|
|
11133
|
-
const _sfc_main$
|
|
11168
|
+
const _sfc_main$5g = {
|
|
11134
11169
|
name: "FieldPanel",
|
|
11135
11170
|
mixins: [i18n$1],
|
|
11136
11171
|
components: {
|
|
@@ -11409,27 +11444,27 @@ const _sfc_main$5e = {
|
|
|
11409
11444
|
}
|
|
11410
11445
|
}
|
|
11411
11446
|
};
|
|
11412
|
-
const _hoisted_1$
|
|
11413
|
-
const _hoisted_2$
|
|
11414
|
-
const _hoisted_3$
|
|
11415
|
-
const _hoisted_4$
|
|
11416
|
-
const _hoisted_5$
|
|
11417
|
-
const _hoisted_6$
|
|
11418
|
-
const _hoisted_7$
|
|
11419
|
-
const _hoisted_8$
|
|
11420
|
-
const _hoisted_9$
|
|
11421
|
-
const _hoisted_10$
|
|
11422
|
-
const _hoisted_11$
|
|
11423
|
-
const _hoisted_12$
|
|
11424
|
-
const _hoisted_13$
|
|
11425
|
-
const _hoisted_14$
|
|
11426
|
-
const _hoisted_15$
|
|
11427
|
-
const _hoisted_16$
|
|
11428
|
-
const _hoisted_17$
|
|
11429
|
-
const _hoisted_18$
|
|
11430
|
-
const _hoisted_19$
|
|
11431
|
-
const _hoisted_20$
|
|
11432
|
-
function _sfc_render$
|
|
11447
|
+
const _hoisted_1$1m = { class: "panel-container" };
|
|
11448
|
+
const _hoisted_2$H = ["title", "onDblclick"];
|
|
11449
|
+
const _hoisted_3$v = { class: "svg-icon-label" };
|
|
11450
|
+
const _hoisted_4$q = { class: "chart-widget-item__label" };
|
|
11451
|
+
const _hoisted_5$n = ["title", "onDblclick"];
|
|
11452
|
+
const _hoisted_6$l = { class: "svg-icon-label" };
|
|
11453
|
+
const _hoisted_7$i = { class: "chart-widget-item__label" };
|
|
11454
|
+
const _hoisted_8$g = ["title", "onDblclick"];
|
|
11455
|
+
const _hoisted_9$e = ["title", "onDblclick"];
|
|
11456
|
+
const _hoisted_10$b = ["title", "onDblclick"];
|
|
11457
|
+
const _hoisted_11$b = ["title", "onDblclick"];
|
|
11458
|
+
const _hoisted_12$9 = ["title", "onDblclick"];
|
|
11459
|
+
const _hoisted_13$8 = ["title", "onDblclick"];
|
|
11460
|
+
const _hoisted_14$7 = ["title", "onDblclick"];
|
|
11461
|
+
const _hoisted_15$5 = ["src"];
|
|
11462
|
+
const _hoisted_16$5 = ["src"];
|
|
11463
|
+
const _hoisted_17$4 = { class: "bottom clear-fix" };
|
|
11464
|
+
const _hoisted_18$4 = { class: "ft-title" };
|
|
11465
|
+
const _hoisted_19$3 = { class: "bottom clear-fix" };
|
|
11466
|
+
const _hoisted_20$2 = { class: "ft-title" };
|
|
11467
|
+
function _sfc_render$5e(_ctx, _cache, $props, $setup, $data, $options) {
|
|
11433
11468
|
const _component_svg_icon = resolveComponent("svg-icon");
|
|
11434
11469
|
const _component_draggable = resolveComponent("draggable");
|
|
11435
11470
|
const _component_el_collapse_item = resolveComponent("el-collapse-item");
|
|
@@ -11442,7 +11477,7 @@ function _sfc_render$5d(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
11442
11477
|
const _component_el_scrollbar = resolveComponent("el-scrollbar");
|
|
11443
11478
|
return openBlock(), createBlock(_component_el_scrollbar, { class: "side-scroll-bar" }, {
|
|
11444
11479
|
default: withCtx(() => [
|
|
11445
|
-
createElementVNode("div", _hoisted_1$
|
|
11480
|
+
createElementVNode("div", _hoisted_1$1m, [
|
|
11446
11481
|
createVNode(_component_el_tabs, {
|
|
11447
11482
|
modelValue: $data.firstTab,
|
|
11448
11483
|
"onUpdate:modelValue": _cache[3] || (_cache[3] = ($event) => $data.firstTab = $event),
|
|
@@ -11489,14 +11524,14 @@ function _sfc_render$5d(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
11489
11524
|
title: ctn.displayName,
|
|
11490
11525
|
onDblclick: ($event) => $options.addChartContainerByDbClick(ctn)
|
|
11491
11526
|
}, [
|
|
11492
|
-
createElementVNode("div", _hoisted_3$
|
|
11527
|
+
createElementVNode("div", _hoisted_3$v, [
|
|
11493
11528
|
createVNode(_component_svg_icon, {
|
|
11494
11529
|
"icon-class": ctn.icon,
|
|
11495
11530
|
"class-name": "color-svg-icon"
|
|
11496
11531
|
}, null, 8, ["icon-class"]),
|
|
11497
|
-
createElementVNode("span", _hoisted_4$
|
|
11532
|
+
createElementVNode("span", _hoisted_4$q, toDisplayString($options.getWidgetLabel(ctn)), 1)
|
|
11498
11533
|
])
|
|
11499
|
-
], 40, _hoisted_2$
|
|
11534
|
+
], 40, _hoisted_2$H)
|
|
11500
11535
|
]),
|
|
11501
11536
|
_: 1
|
|
11502
11537
|
}, 8, ["list", "clone", "move", "onEnd"])
|
|
@@ -11525,14 +11560,14 @@ function _sfc_render$5d(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
11525
11560
|
title: chart.displayName,
|
|
11526
11561
|
onDblclick: ($event) => $options.addChartByDbClick(chart)
|
|
11527
11562
|
}, [
|
|
11528
|
-
createElementVNode("div", _hoisted_6$
|
|
11563
|
+
createElementVNode("div", _hoisted_6$l, [
|
|
11529
11564
|
createVNode(_component_svg_icon, {
|
|
11530
11565
|
"icon-class": chart.icon,
|
|
11531
11566
|
"class-name": "color-svg-icon"
|
|
11532
11567
|
}, null, 8, ["icon-class"]),
|
|
11533
|
-
createElementVNode("span", _hoisted_7$
|
|
11568
|
+
createElementVNode("span", _hoisted_7$i, toDisplayString($options.getWidgetLabel(chart)), 1)
|
|
11534
11569
|
])
|
|
11535
|
-
], 40, _hoisted_5$
|
|
11570
|
+
], 40, _hoisted_5$n)
|
|
11536
11571
|
]),
|
|
11537
11572
|
_: 1
|
|
11538
11573
|
}, 8, ["list", "move", "clone"])
|
|
@@ -11591,7 +11626,7 @@ function _sfc_render$5d(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
11591
11626
|
}, null, 8, ["icon-class"]),
|
|
11592
11627
|
createTextVNode(toDisplayString($options.getWidgetLabel(ctn)), 1)
|
|
11593
11628
|
])
|
|
11594
|
-
], 40, _hoisted_8$
|
|
11629
|
+
], 40, _hoisted_8$g)
|
|
11595
11630
|
]),
|
|
11596
11631
|
_: 1
|
|
11597
11632
|
}, 8, ["list", "clone", "move", "onEnd"])
|
|
@@ -11627,7 +11662,7 @@ function _sfc_render$5d(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
11627
11662
|
}, null, 8, ["icon-class"]),
|
|
11628
11663
|
createTextVNode(toDisplayString($options.getMetaFieldLabel(fld)), 1)
|
|
11629
11664
|
])
|
|
11630
|
-
], 42, _hoisted_9$
|
|
11665
|
+
], 42, _hoisted_9$e)
|
|
11631
11666
|
]),
|
|
11632
11667
|
_: 1
|
|
11633
11668
|
}, 8, ["list", "move", "clone"])
|
|
@@ -11663,7 +11698,7 @@ function _sfc_render$5d(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
11663
11698
|
}, null, 8, ["icon-class"]),
|
|
11664
11699
|
createTextVNode(toDisplayString($options.getMetaFieldLabel(fld)), 1)
|
|
11665
11700
|
])
|
|
11666
|
-
], 42, _hoisted_10$
|
|
11701
|
+
], 42, _hoisted_10$b)
|
|
11667
11702
|
]),
|
|
11668
11703
|
_: 2
|
|
11669
11704
|
}, 1032, ["list", "move", "clone"])
|
|
@@ -11723,7 +11758,7 @@ function _sfc_render$5d(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
11723
11758
|
}, null, 8, ["icon-class"]),
|
|
11724
11759
|
createTextVNode(toDisplayString($options.getWidgetLabel(ctn)), 1)
|
|
11725
11760
|
])
|
|
11726
|
-
], 40, _hoisted_11$
|
|
11761
|
+
], 40, _hoisted_11$b)
|
|
11727
11762
|
]),
|
|
11728
11763
|
_: 1
|
|
11729
11764
|
}, 8, ["list", "clone", "move", "onEnd"])
|
|
@@ -11758,7 +11793,7 @@ function _sfc_render$5d(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
11758
11793
|
}, null, 8, ["icon-class"]),
|
|
11759
11794
|
createTextVNode(toDisplayString($options.getWidgetLabel(fld)), 1)
|
|
11760
11795
|
])
|
|
11761
|
-
], 40, _hoisted_12$
|
|
11796
|
+
], 40, _hoisted_12$9)
|
|
11762
11797
|
]),
|
|
11763
11798
|
_: 1
|
|
11764
11799
|
}, 8, ["list", "move", "clone"])
|
|
@@ -11793,7 +11828,7 @@ function _sfc_render$5d(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
11793
11828
|
}, null, 8, ["icon-class"]),
|
|
11794
11829
|
createTextVNode(toDisplayString($options.getWidgetLabel(fld)), 1)
|
|
11795
11830
|
])
|
|
11796
|
-
], 40, _hoisted_13$
|
|
11831
|
+
], 40, _hoisted_13$8)
|
|
11797
11832
|
]),
|
|
11798
11833
|
_: 1
|
|
11799
11834
|
}, 8, ["list", "move", "clone"])
|
|
@@ -11828,7 +11863,7 @@ function _sfc_render$5d(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
11828
11863
|
}, null, 8, ["icon-class"]),
|
|
11829
11864
|
createTextVNode(toDisplayString($options.getWidgetLabel(fld)), 1)
|
|
11830
11865
|
])
|
|
11831
|
-
], 40, _hoisted_14$
|
|
11866
|
+
], 40, _hoisted_14$7)
|
|
11832
11867
|
]),
|
|
11833
11868
|
_: 1
|
|
11834
11869
|
}, 8, ["list", "move", "clone"])
|
|
@@ -11869,18 +11904,18 @@ function _sfc_render$5d(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
11869
11904
|
createElementVNode("img", {
|
|
11870
11905
|
src: ft2.imgUrl,
|
|
11871
11906
|
style: { "width": "200px" }
|
|
11872
|
-
}, null, 8, _hoisted_15$
|
|
11907
|
+
}, null, 8, _hoisted_15$5)
|
|
11873
11908
|
]),
|
|
11874
11909
|
default: withCtx(() => [
|
|
11875
11910
|
createElementVNode("img", {
|
|
11876
11911
|
src: ft2.imgUrl,
|
|
11877
11912
|
style: { "height": "600px", "width": "720px" }
|
|
11878
|
-
}, null, 8, _hoisted_16$
|
|
11913
|
+
}, null, 8, _hoisted_16$5)
|
|
11879
11914
|
]),
|
|
11880
11915
|
_: 2
|
|
11881
11916
|
}, 1024),
|
|
11882
|
-
createElementVNode("div", _hoisted_17$
|
|
11883
|
-
createElementVNode("span", _hoisted_18$
|
|
11917
|
+
createElementVNode("div", _hoisted_17$4, [
|
|
11918
|
+
createElementVNode("span", _hoisted_18$4, "#" + toDisplayString(idx + 1) + " " + toDisplayString($options.getFTTitle(ft2)), 1),
|
|
11884
11919
|
createVNode(_component_el_button, {
|
|
11885
11920
|
link: "",
|
|
11886
11921
|
type: "primary",
|
|
@@ -11919,8 +11954,8 @@ function _sfc_render$5d(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
11919
11954
|
class: "ft-card"
|
|
11920
11955
|
}, {
|
|
11921
11956
|
default: withCtx(() => [
|
|
11922
|
-
createElementVNode("div", _hoisted_19$
|
|
11923
|
-
createElementVNode("span", _hoisted_20$
|
|
11957
|
+
createElementVNode("div", _hoisted_19$3, [
|
|
11958
|
+
createElementVNode("span", _hoisted_20$2, "#" + toDisplayString(idx + 1) + " " + toDisplayString(item.name), 1),
|
|
11924
11959
|
createVNode(_component_el_button, {
|
|
11925
11960
|
link: "",
|
|
11926
11961
|
type: "primary",
|
|
@@ -11948,7 +11983,7 @@ function _sfc_render$5d(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
11948
11983
|
_: 1
|
|
11949
11984
|
});
|
|
11950
11985
|
}
|
|
11951
|
-
var WidgetPanel = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
11986
|
+
var WidgetPanel = /* @__PURE__ */ _export_sfc(_sfc_main$5g, [["render", _sfc_render$5e], ["__scopeId", "data-v-9255e958"]]);
|
|
11952
11987
|
var emitter = {
|
|
11953
11988
|
data() {
|
|
11954
11989
|
return {
|
|
@@ -12041,7 +12076,7 @@ var emitter = {
|
|
|
12041
12076
|
}
|
|
12042
12077
|
}
|
|
12043
12078
|
};
|
|
12044
|
-
const _sfc_main$
|
|
12079
|
+
const _sfc_main$5f = {
|
|
12045
12080
|
name: "container-item-wrapper",
|
|
12046
12081
|
props: {
|
|
12047
12082
|
widget: Object
|
|
@@ -12052,14 +12087,14 @@ const _sfc_main$5d = {
|
|
|
12052
12087
|
}
|
|
12053
12088
|
}
|
|
12054
12089
|
};
|
|
12055
|
-
function _sfc_render$
|
|
12090
|
+
function _sfc_render$5d(_ctx, _cache, $props, $setup, $data, $options) {
|
|
12056
12091
|
return openBlock(), createElementBlock("div", {
|
|
12057
12092
|
class: normalizeClass$1(["container-wrapper", [$options.customClass]])
|
|
12058
12093
|
}, [
|
|
12059
12094
|
renderSlot(_ctx.$slots, "default")
|
|
12060
12095
|
], 2);
|
|
12061
12096
|
}
|
|
12062
|
-
var ContainerItemWrapper = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
12097
|
+
var ContainerItemWrapper = /* @__PURE__ */ _export_sfc(_sfc_main$5f, [["render", _sfc_render$5d]]);
|
|
12063
12098
|
var __glob_0_2$3 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
12064
12099
|
__proto__: null,
|
|
12065
12100
|
"default": ContainerItemWrapper
|
|
@@ -12434,7 +12469,7 @@ var containerItemMixin = {
|
|
|
12434
12469
|
}
|
|
12435
12470
|
}
|
|
12436
12471
|
};
|
|
12437
|
-
const _sfc_main$
|
|
12472
|
+
const _sfc_main$5e = {
|
|
12438
12473
|
name: "button-group-item",
|
|
12439
12474
|
componentName: "ContainerItem",
|
|
12440
12475
|
mixins: [emitter, i18n$1, refMixin, containerItemMixin],
|
|
@@ -12514,7 +12549,7 @@ const _sfc_main$5c = {
|
|
|
12514
12549
|
}
|
|
12515
12550
|
}
|
|
12516
12551
|
};
|
|
12517
|
-
function _sfc_render$
|
|
12552
|
+
function _sfc_render$5c(_ctx, _cache, $props, $setup, $data, $options) {
|
|
12518
12553
|
const _component_el_button = resolveComponent("el-button");
|
|
12519
12554
|
const _component_el_button_group = resolveComponent("el-button-group");
|
|
12520
12555
|
const _component_container_item_wrapper = resolveComponent("container-item-wrapper");
|
|
@@ -12549,14 +12584,14 @@ function _sfc_render$5b(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
12549
12584
|
_: 1
|
|
12550
12585
|
}, 8, ["widget"]);
|
|
12551
12586
|
}
|
|
12552
|
-
var buttonGroupItem = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
12587
|
+
var buttonGroupItem = /* @__PURE__ */ _export_sfc(_sfc_main$5e, [["render", _sfc_render$5c]]);
|
|
12553
12588
|
var __glob_0_0$3 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
12554
12589
|
__proto__: null,
|
|
12555
12590
|
"default": buttonGroupItem
|
|
12556
12591
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
12557
12592
|
var AvatarCom_vue_vue_type_style_index_0_scoped_true_lang = "";
|
|
12558
|
-
const _hoisted_1$
|
|
12559
|
-
const _sfc_main$
|
|
12593
|
+
const _hoisted_1$1l = { class: "avatar-com" };
|
|
12594
|
+
const _sfc_main$5d = {
|
|
12560
12595
|
__name: "AvatarCom",
|
|
12561
12596
|
props: {
|
|
12562
12597
|
name: String
|
|
@@ -12567,14 +12602,14 @@ const _sfc_main$5b = {
|
|
|
12567
12602
|
return props.name ? props.name.charAt(0) : "";
|
|
12568
12603
|
});
|
|
12569
12604
|
return (_ctx, _cache) => {
|
|
12570
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
12605
|
+
return openBlock(), createElementBlock("div", _hoisted_1$1l, toDisplayString(nameAvatar.value), 1);
|
|
12571
12606
|
};
|
|
12572
12607
|
}
|
|
12573
12608
|
};
|
|
12574
|
-
var AvatarCom = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
12609
|
+
var AvatarCom = /* @__PURE__ */ _export_sfc(_sfc_main$5d, [["__scopeId", "data-v-2c609231"]]);
|
|
12575
12610
|
var formItemWrapper_vue_vue_type_style_index_0_scoped_true_lang = "";
|
|
12576
12611
|
var formItemWrapper_vue_vue_type_style_index_1_lang = "";
|
|
12577
|
-
const _sfc_main$
|
|
12612
|
+
const _sfc_main$5c = {
|
|
12578
12613
|
name: "form-item-wrapper",
|
|
12579
12614
|
mixins: [i18n$1],
|
|
12580
12615
|
components: {
|
|
@@ -12816,53 +12851,53 @@ const _sfc_main$5a = {
|
|
|
12816
12851
|
}
|
|
12817
12852
|
}
|
|
12818
12853
|
};
|
|
12819
|
-
const _hoisted_1$
|
|
12820
|
-
const _hoisted_2$
|
|
12821
|
-
const _hoisted_3$
|
|
12822
|
-
const _hoisted_4$
|
|
12854
|
+
const _hoisted_1$1k = { class: "label-wrapper" };
|
|
12855
|
+
const _hoisted_2$G = { class: "label-content-row" };
|
|
12856
|
+
const _hoisted_3$u = { class: "history-record-content" };
|
|
12857
|
+
const _hoisted_4$p = {
|
|
12823
12858
|
key: 0,
|
|
12824
12859
|
class: "history-loading"
|
|
12825
12860
|
};
|
|
12826
|
-
const _hoisted_5$
|
|
12861
|
+
const _hoisted_5$m = {
|
|
12827
12862
|
key: 1,
|
|
12828
12863
|
class: "history-empty"
|
|
12829
12864
|
};
|
|
12830
|
-
const _hoisted_6$
|
|
12865
|
+
const _hoisted_6$k = {
|
|
12831
12866
|
key: 2,
|
|
12832
12867
|
class: "history-list"
|
|
12833
12868
|
};
|
|
12834
|
-
const _hoisted_7$
|
|
12835
|
-
const _hoisted_8$
|
|
12836
|
-
const _hoisted_9$
|
|
12837
|
-
const _hoisted_10$
|
|
12838
|
-
const _hoisted_11$
|
|
12839
|
-
const _hoisted_12$
|
|
12840
|
-
const _hoisted_13$
|
|
12869
|
+
const _hoisted_7$h = { class: "history-item-header" };
|
|
12870
|
+
const _hoisted_8$f = { class: "history-user-info" };
|
|
12871
|
+
const _hoisted_9$d = ["src"];
|
|
12872
|
+
const _hoisted_10$a = { class: "history-user-name" };
|
|
12873
|
+
const _hoisted_11$a = { class: "history-time" };
|
|
12874
|
+
const _hoisted_12$8 = { class: "history-content" };
|
|
12875
|
+
const _hoisted_13$7 = {
|
|
12841
12876
|
key: 0,
|
|
12842
12877
|
class: "custom-label"
|
|
12843
12878
|
};
|
|
12844
|
-
const _hoisted_14$
|
|
12845
|
-
const _hoisted_15$
|
|
12846
|
-
const _hoisted_16$
|
|
12879
|
+
const _hoisted_14$6 = { key: 1 };
|
|
12880
|
+
const _hoisted_15$4 = ["title"];
|
|
12881
|
+
const _hoisted_16$4 = {
|
|
12847
12882
|
key: 0,
|
|
12848
12883
|
class: "field-describe"
|
|
12849
12884
|
};
|
|
12850
|
-
const _hoisted_17$
|
|
12885
|
+
const _hoisted_17$3 = {
|
|
12851
12886
|
key: 0,
|
|
12852
12887
|
class: "field-action"
|
|
12853
12888
|
};
|
|
12854
|
-
const _hoisted_18$
|
|
12855
|
-
const _hoisted_19$
|
|
12856
|
-
const _hoisted_20 = ["title"];
|
|
12857
|
-
const _hoisted_21 = ["title"];
|
|
12858
|
-
const _hoisted_22 = ["title"];
|
|
12859
|
-
const _hoisted_23 = {
|
|
12889
|
+
const _hoisted_18$3 = ["title"];
|
|
12890
|
+
const _hoisted_19$2 = ["title"];
|
|
12891
|
+
const _hoisted_20$1 = ["title"];
|
|
12892
|
+
const _hoisted_21$1 = ["title"];
|
|
12893
|
+
const _hoisted_22$1 = ["title"];
|
|
12894
|
+
const _hoisted_23$1 = {
|
|
12860
12895
|
key: 1,
|
|
12861
12896
|
class: "drag-handler background-opacity"
|
|
12862
12897
|
};
|
|
12863
|
-
const _hoisted_24 = ["title"];
|
|
12864
|
-
const _hoisted_25 = { key: 0 };
|
|
12865
|
-
function _sfc_render$
|
|
12898
|
+
const _hoisted_24$1 = ["title"];
|
|
12899
|
+
const _hoisted_25$1 = { key: 0 };
|
|
12900
|
+
function _sfc_render$5b(_ctx, _cache, $props, $setup, $data, $options) {
|
|
12866
12901
|
const _component_el_icon = resolveComponent("el-icon");
|
|
12867
12902
|
const _component_el_tooltip = resolveComponent("el-tooltip");
|
|
12868
12903
|
const _component_Loading = resolveComponent("Loading");
|
|
@@ -12885,8 +12920,8 @@ function _sfc_render$5a(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
12885
12920
|
onFocusin: $options.handleFormItemFocusIn
|
|
12886
12921
|
}, {
|
|
12887
12922
|
label: withCtx(() => [
|
|
12888
|
-
createElementVNode("div", _hoisted_1$
|
|
12889
|
-
createElementVNode("div", _hoisted_2$
|
|
12923
|
+
createElementVNode("div", _hoisted_1$1k, [
|
|
12924
|
+
createElementVNode("div", _hoisted_2$G, [
|
|
12890
12925
|
!$props.designState && $options.label && $options.enableHistoryView && $props.field.options.biz_meta_id ? (openBlock(), createBlock(_component_el_popover, {
|
|
12891
12926
|
key: 0,
|
|
12892
12927
|
visible: $data.historyPopoverVisible,
|
|
@@ -12962,9 +12997,9 @@ function _sfc_render$5a(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
12962
12997
|
}, toDisplayString($options.label), 1))
|
|
12963
12998
|
]),
|
|
12964
12999
|
default: withCtx(() => [
|
|
12965
|
-
createElementVNode("div", _hoisted_3$
|
|
13000
|
+
createElementVNode("div", _hoisted_3$u, [
|
|
12966
13001
|
_cache[11] || (_cache[11] = createElementVNode("div", { class: "history-header" }, "\u5386\u53F2\u8BB0\u5F55", -1)),
|
|
12967
|
-
$data.historyLoading ? (openBlock(), createElementBlock("div", _hoisted_4$
|
|
13002
|
+
$data.historyLoading ? (openBlock(), createElementBlock("div", _hoisted_4$p, [
|
|
12968
13003
|
createVNode(_component_el_icon, { class: "is-loading" }, {
|
|
12969
13004
|
default: withCtx(() => [
|
|
12970
13005
|
createVNode(_component_Loading)
|
|
@@ -12972,28 +13007,28 @@ function _sfc_render$5a(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
12972
13007
|
_: 1
|
|
12973
13008
|
}),
|
|
12974
13009
|
_cache[10] || (_cache[10] = createElementVNode("span", null, "\u52A0\u8F7D\u4E2D...", -1))
|
|
12975
|
-
])) : $data.historyList.length === 0 ? (openBlock(), createElementBlock("div", _hoisted_5$
|
|
13010
|
+
])) : $data.historyList.length === 0 ? (openBlock(), createElementBlock("div", _hoisted_5$m, "\u6682\u65E0\u5386\u53F2\u8BB0\u5F55")) : (openBlock(), createElementBlock("div", _hoisted_6$k, [
|
|
12976
13011
|
(openBlock(true), createElementBlock(Fragment, null, renderList($data.historyList, (item, index2) => {
|
|
12977
13012
|
return openBlock(), createElementBlock("div", {
|
|
12978
13013
|
key: index2,
|
|
12979
13014
|
class: "history-item"
|
|
12980
13015
|
}, [
|
|
12981
|
-
createElementVNode("div", _hoisted_7$
|
|
12982
|
-
createElementVNode("div", _hoisted_8$
|
|
13016
|
+
createElementVNode("div", _hoisted_7$h, [
|
|
13017
|
+
createElementVNode("div", _hoisted_8$f, [
|
|
12983
13018
|
item.created_avatar ? (openBlock(), createElementBlock("img", {
|
|
12984
13019
|
key: 0,
|
|
12985
13020
|
class: "history-user-avatar",
|
|
12986
13021
|
src: item.created_avatar
|
|
12987
|
-
}, null, 8, _hoisted_9$
|
|
13022
|
+
}, null, 8, _hoisted_9$d)) : (openBlock(), createBlock(_component_AvatarCom, {
|
|
12988
13023
|
key: 1,
|
|
12989
13024
|
class: "history-user-avatar",
|
|
12990
13025
|
name: item.created_username
|
|
12991
13026
|
}, null, 8, ["name"])),
|
|
12992
|
-
createElementVNode("span", _hoisted_10$
|
|
13027
|
+
createElementVNode("span", _hoisted_10$a, toDisplayString(item.created_username || "\u7CFB\u7EDF"), 1)
|
|
12993
13028
|
]),
|
|
12994
|
-
createElementVNode("span", _hoisted_11$
|
|
13029
|
+
createElementVNode("span", _hoisted_11$a, toDisplayString(item.created_time || ""), 1)
|
|
12995
13030
|
]),
|
|
12996
|
-
createElementVNode("div", _hoisted_12$
|
|
13031
|
+
createElementVNode("div", _hoisted_12$8, toDisplayString(item.content || ""), 1)
|
|
12997
13032
|
]);
|
|
12998
13033
|
}), 128))
|
|
12999
13034
|
]))
|
|
@@ -13001,7 +13036,7 @@ function _sfc_render$5a(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
13001
13036
|
]),
|
|
13002
13037
|
_: 1
|
|
13003
13038
|
}, 8, ["visible"])) : (openBlock(), createElementBlock(Fragment, { key: 1 }, [
|
|
13004
|
-
!!$props.field.options.labelIconClass ? (openBlock(), createElementBlock("span", _hoisted_13$
|
|
13039
|
+
!!$props.field.options.labelIconClass ? (openBlock(), createElementBlock("span", _hoisted_13$7, [
|
|
13005
13040
|
$props.field.options.labelIconPosition === "front" ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
|
|
13006
13041
|
!!$props.field.options.labelTooltip ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
|
|
13007
13042
|
createVNode(_component_el_tooltip, {
|
|
@@ -13055,7 +13090,7 @@ function _sfc_render$5a(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
13055
13090
|
})
|
|
13056
13091
|
], 64))
|
|
13057
13092
|
], 64)) : createCommentVNode("", true)
|
|
13058
|
-
])) : (openBlock(), createElementBlock("span", _hoisted_14$
|
|
13093
|
+
])) : (openBlock(), createElementBlock("span", _hoisted_14$6, toDisplayString($options.label), 1))
|
|
13059
13094
|
], 64)),
|
|
13060
13095
|
$props.field.type === "checkbox" && $props.field.options.enableSelectAll ? (openBlock(), createElementBlock("span", {
|
|
13061
13096
|
key: 2,
|
|
@@ -13069,9 +13104,9 @@ function _sfc_render$5a(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
13069
13104
|
]),
|
|
13070
13105
|
_: 1
|
|
13071
13106
|
})
|
|
13072
|
-
], 8, _hoisted_15$
|
|
13107
|
+
], 8, _hoisted_15$4)) : createCommentVNode("", true)
|
|
13073
13108
|
]),
|
|
13074
|
-
$props.field.options.describe ? (openBlock(), createElementBlock("div", _hoisted_16$
|
|
13109
|
+
$props.field.options.describe ? (openBlock(), createElementBlock("div", _hoisted_16$4, toDisplayString($props.field.options.describe), 1)) : createCommentVNode("", true)
|
|
13075
13110
|
])
|
|
13076
13111
|
]),
|
|
13077
13112
|
default: withCtx(() => [
|
|
@@ -13080,56 +13115,56 @@ function _sfc_render$5a(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
13080
13115
|
_: 3
|
|
13081
13116
|
}, 8, ["label", "label-width", "size", "rules", "prop", "class", "onFocusin"])) : createCommentVNode("", true),
|
|
13082
13117
|
!!this.designer ? (openBlock(), createElementBlock(Fragment, { key: 1 }, [
|
|
13083
|
-
$props.designer.selectedId === $props.field.id ? (openBlock(), createElementBlock("div", _hoisted_17$
|
|
13118
|
+
$props.designer.selectedId === $props.field.id ? (openBlock(), createElementBlock("div", _hoisted_17$3, [
|
|
13084
13119
|
createElementVNode("i", {
|
|
13085
13120
|
title: _ctx.i18nt("designer.hint.selectParentWidget"),
|
|
13086
13121
|
onClick: _cache[5] || (_cache[5] = withModifiers(($event) => $options.selectParentWidget($props.field), ["stop"]))
|
|
13087
13122
|
}, [
|
|
13088
13123
|
createVNode(_component_svg_icon, { "icon-class": "el-back" })
|
|
13089
|
-
], 8, _hoisted_18$
|
|
13124
|
+
], 8, _hoisted_18$3),
|
|
13090
13125
|
!!$props.parentList && $props.parentList.length > 1 ? (openBlock(), createElementBlock("i", {
|
|
13091
13126
|
key: 0,
|
|
13092
13127
|
title: _ctx.i18nt("designer.hint.moveUpWidget"),
|
|
13093
13128
|
onClick: _cache[6] || (_cache[6] = withModifiers(($event) => $options.moveUpWidget($props.field), ["stop"]))
|
|
13094
13129
|
}, [
|
|
13095
13130
|
createVNode(_component_svg_icon, { "icon-class": "el-move-up" })
|
|
13096
|
-
], 8, _hoisted_19$
|
|
13131
|
+
], 8, _hoisted_19$2)) : createCommentVNode("", true),
|
|
13097
13132
|
!!$props.parentList && $props.parentList.length > 1 ? (openBlock(), createElementBlock("i", {
|
|
13098
13133
|
key: 1,
|
|
13099
13134
|
title: _ctx.i18nt("designer.hint.moveDownWidget"),
|
|
13100
13135
|
onClick: _cache[7] || (_cache[7] = withModifiers(($event) => $options.moveDownWidget($props.field), ["stop"]))
|
|
13101
13136
|
}, [
|
|
13102
13137
|
createVNode(_component_svg_icon, { "icon-class": "el-move-down" })
|
|
13103
|
-
], 8, _hoisted_20)) : createCommentVNode("", true),
|
|
13138
|
+
], 8, _hoisted_20$1)) : createCommentVNode("", true),
|
|
13104
13139
|
createElementVNode("i", {
|
|
13105
13140
|
title: _ctx.i18nt("designer.hint.cloneWidget"),
|
|
13106
13141
|
onClick: _cache[8] || (_cache[8] = withModifiers(($event) => $options.cloneField($props.field), ["stop"]))
|
|
13107
13142
|
}, [
|
|
13108
13143
|
createVNode(_component_svg_icon, { "icon-class": "el-clone" })
|
|
13109
|
-
], 8, _hoisted_21),
|
|
13144
|
+
], 8, _hoisted_21$1),
|
|
13110
13145
|
createElementVNode("i", {
|
|
13111
13146
|
title: _ctx.i18nt("designer.hint.remove"),
|
|
13112
13147
|
onClick: _cache[9] || (_cache[9] = withModifiers((...args) => $options.removeFieldWidget && $options.removeFieldWidget(...args), ["stop"]))
|
|
13113
13148
|
}, [
|
|
13114
13149
|
createVNode(_component_svg_icon, { "icon-class": "el-delete" })
|
|
13115
|
-
], 8, _hoisted_22)
|
|
13150
|
+
], 8, _hoisted_22$1)
|
|
13116
13151
|
])) : createCommentVNode("", true),
|
|
13117
|
-
$props.designer.selectedId === $props.field.id ? (openBlock(), createElementBlock("div", _hoisted_23, [
|
|
13152
|
+
$props.designer.selectedId === $props.field.id ? (openBlock(), createElementBlock("div", _hoisted_23$1, [
|
|
13118
13153
|
createElementVNode("i", {
|
|
13119
13154
|
title: _ctx.i18nt("designer.hint.dragHandler")
|
|
13120
13155
|
}, [
|
|
13121
13156
|
createVNode(_component_svg_icon, { "icon-class": "el-drag-move" })
|
|
13122
|
-
], 8, _hoisted_24),
|
|
13157
|
+
], 8, _hoisted_24$1),
|
|
13123
13158
|
createElementVNode("i", null, toDisplayString(_ctx.i18n2t(`designer.widgetLabel.${$props.field.type}`, `extension.widgetLabel.${$props.field.type}`)), 1),
|
|
13124
|
-
$props.field.options.hidden === true ? (openBlock(), createElementBlock("i", _hoisted_25, [
|
|
13159
|
+
$props.field.options.hidden === true ? (openBlock(), createElementBlock("i", _hoisted_25$1, [
|
|
13125
13160
|
createVNode(_component_svg_icon, { "icon-class": "el-hide" })
|
|
13126
13161
|
])) : createCommentVNode("", true)
|
|
13127
13162
|
])) : createCommentVNode("", true)
|
|
13128
13163
|
], 64)) : createCommentVNode("", true)
|
|
13129
13164
|
], 2);
|
|
13130
13165
|
}
|
|
13131
|
-
var FormItemWrapper = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
13132
|
-
var
|
|
13166
|
+
var FormItemWrapper = /* @__PURE__ */ _export_sfc(_sfc_main$5c, [["render", _sfc_render$5b], ["__scopeId", "data-v-6c28e2c6"]]);
|
|
13167
|
+
var __glob_0_11$3 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
13133
13168
|
__proto__: null,
|
|
13134
13169
|
"default": FormItemWrapper
|
|
13135
13170
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
@@ -121574,7 +121609,7 @@ class IB {
|
|
|
121574
121609
|
}
|
|
121575
121610
|
var style = "";
|
|
121576
121611
|
var aiEditorWidget_vue_vue_type_style_index_0_scoped_true_lang = "";
|
|
121577
|
-
const _sfc_main$
|
|
121612
|
+
const _sfc_main$5b = {
|
|
121578
121613
|
name: "ai-editor-widget",
|
|
121579
121614
|
componentName: "FieldWidget",
|
|
121580
121615
|
mixins: [emitter, fieldMixin, i18n$1],
|
|
@@ -121884,15 +121919,15 @@ const _sfc_main$59 = {
|
|
|
121884
121919
|
}
|
|
121885
121920
|
}
|
|
121886
121921
|
};
|
|
121887
|
-
const _hoisted_1$
|
|
121922
|
+
const _hoisted_1$1j = {
|
|
121888
121923
|
key: 1,
|
|
121889
121924
|
class: "ai-editor-loading"
|
|
121890
121925
|
};
|
|
121891
|
-
const _hoisted_2$
|
|
121926
|
+
const _hoisted_2$F = {
|
|
121892
121927
|
key: 2,
|
|
121893
121928
|
class: "ai-editor-not-installed"
|
|
121894
121929
|
};
|
|
121895
|
-
function _sfc_render$
|
|
121930
|
+
function _sfc_render$5a(_ctx, _cache, $props, $setup, $data, $options) {
|
|
121896
121931
|
const _component_Loading = resolveComponent("Loading");
|
|
121897
121932
|
const _component_el_icon = resolveComponent("el-icon");
|
|
121898
121933
|
const _component_el_alert = resolveComponent("el-alert");
|
|
@@ -121918,7 +121953,7 @@ function _sfc_render$59(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
121918
121953
|
ref: "editorRef",
|
|
121919
121954
|
class: "ai-editor-container",
|
|
121920
121955
|
style: normalizeStyle$1($options.editorStyle)
|
|
121921
|
-
}, null, 4)) : $data.loadingAIEditor ? (openBlock(), createElementBlock("div", _hoisted_1$
|
|
121956
|
+
}, null, 4)) : $data.loadingAIEditor ? (openBlock(), createElementBlock("div", _hoisted_1$1j, [
|
|
121922
121957
|
createVNode(_component_el_icon, { class: "is-loading" }, {
|
|
121923
121958
|
default: withCtx(() => [
|
|
121924
121959
|
createVNode(_component_Loading)
|
|
@@ -121926,7 +121961,7 @@ function _sfc_render$59(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
121926
121961
|
_: 1
|
|
121927
121962
|
}),
|
|
121928
121963
|
_cache[0] || (_cache[0] = createElementVNode("span", null, "\u52A0\u8F7DAIEditor\u4E2D...", -1))
|
|
121929
|
-
])) : (openBlock(), createElementBlock("div", _hoisted_2$
|
|
121964
|
+
])) : (openBlock(), createElementBlock("div", _hoisted_2$F, [
|
|
121930
121965
|
createVNode(_component_el_alert, {
|
|
121931
121966
|
title: "AIEditor\u672A\u5B89\u88C5",
|
|
121932
121967
|
type: "warning",
|
|
@@ -121945,13 +121980,13 @@ function _sfc_render$59(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
121945
121980
|
_: 1
|
|
121946
121981
|
}, 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"]);
|
|
121947
121982
|
}
|
|
121948
|
-
var aiEditorWidget = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
121983
|
+
var aiEditorWidget = /* @__PURE__ */ _export_sfc(_sfc_main$5b, [["render", _sfc_render$5a], ["__scopeId", "data-v-1b097f26"]]);
|
|
121949
121984
|
var __glob_0_0$2 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
121950
121985
|
__proto__: null,
|
|
121951
121986
|
"default": aiEditorWidget
|
|
121952
121987
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
121953
121988
|
var staticContentWrapper_vue_vue_type_style_index_0_scoped_true_lang = "";
|
|
121954
|
-
const _sfc_main$
|
|
121989
|
+
const _sfc_main$5a = {
|
|
121955
121990
|
name: "static-content-wrapper",
|
|
121956
121991
|
mixins: [i18n$1],
|
|
121957
121992
|
components: {
|
|
@@ -122045,22 +122080,22 @@ const _sfc_main$58 = {
|
|
|
122045
122080
|
}
|
|
122046
122081
|
}
|
|
122047
122082
|
};
|
|
122048
|
-
const _hoisted_1$
|
|
122083
|
+
const _hoisted_1$1i = {
|
|
122049
122084
|
key: 0,
|
|
122050
122085
|
class: "field-action"
|
|
122051
122086
|
};
|
|
122052
|
-
const _hoisted_2$
|
|
122053
|
-
const _hoisted_3$
|
|
122054
|
-
const _hoisted_4$
|
|
122055
|
-
const _hoisted_5$
|
|
122056
|
-
const _hoisted_6$
|
|
122057
|
-
const _hoisted_7$
|
|
122087
|
+
const _hoisted_2$E = ["title"];
|
|
122088
|
+
const _hoisted_3$t = ["title"];
|
|
122089
|
+
const _hoisted_4$o = ["title"];
|
|
122090
|
+
const _hoisted_5$l = ["title"];
|
|
122091
|
+
const _hoisted_6$j = ["title"];
|
|
122092
|
+
const _hoisted_7$g = {
|
|
122058
122093
|
key: 1,
|
|
122059
122094
|
class: "drag-handler background-opacity"
|
|
122060
122095
|
};
|
|
122061
|
-
const _hoisted_8$
|
|
122062
|
-
const _hoisted_9$
|
|
122063
|
-
function _sfc_render$
|
|
122096
|
+
const _hoisted_8$e = ["title"];
|
|
122097
|
+
const _hoisted_9$c = { key: 0 };
|
|
122098
|
+
function _sfc_render$59(_ctx, _cache, $props, $setup, $data, $options) {
|
|
122064
122099
|
const _component_svg_icon = resolveComponent("svg-icon");
|
|
122065
122100
|
return openBlock(), createElementBlock("div", {
|
|
122066
122101
|
class: normalizeClass$1(["field-wrapper", { "design-time-bottom-margin": !!this.designer }]),
|
|
@@ -122075,61 +122110,61 @@ function _sfc_render$58(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
122075
122110
|
renderSlot(_ctx.$slots, "default", {}, void 0, true)
|
|
122076
122111
|
], 6)) : createCommentVNode("", true),
|
|
122077
122112
|
!!this.designer ? (openBlock(), createElementBlock(Fragment, { key: 1 }, [
|
|
122078
|
-
$props.designer.selectedId === $props.field.id ? (openBlock(), createElementBlock("div", _hoisted_1$
|
|
122113
|
+
$props.designer.selectedId === $props.field.id ? (openBlock(), createElementBlock("div", _hoisted_1$1i, [
|
|
122079
122114
|
createElementVNode("i", {
|
|
122080
122115
|
title: _ctx.i18nt("designer.hint.selectParentWidget"),
|
|
122081
122116
|
onClick: _cache[1] || (_cache[1] = withModifiers(($event) => $options.selectParentWidget($props.field), ["stop"]))
|
|
122082
122117
|
}, [
|
|
122083
122118
|
createVNode(_component_svg_icon, { "icon-class": "el-back" })
|
|
122084
|
-
], 8, _hoisted_2$
|
|
122119
|
+
], 8, _hoisted_2$E),
|
|
122085
122120
|
!!$props.parentList && $props.parentList.length > 1 ? (openBlock(), createElementBlock("i", {
|
|
122086
122121
|
key: 0,
|
|
122087
122122
|
title: _ctx.i18nt("designer.hint.moveUpWidget"),
|
|
122088
122123
|
onClick: _cache[2] || (_cache[2] = withModifiers(($event) => $options.moveUpWidget($props.field), ["stop"]))
|
|
122089
122124
|
}, [
|
|
122090
122125
|
createVNode(_component_svg_icon, { "icon-class": "el-move-up" })
|
|
122091
|
-
], 8, _hoisted_3$
|
|
122126
|
+
], 8, _hoisted_3$t)) : createCommentVNode("", true),
|
|
122092
122127
|
!!$props.parentList && $props.parentList.length > 1 ? (openBlock(), createElementBlock("i", {
|
|
122093
122128
|
key: 1,
|
|
122094
122129
|
title: _ctx.i18nt("designer.hint.moveDownWidget"),
|
|
122095
122130
|
onClick: _cache[3] || (_cache[3] = withModifiers(($event) => $options.moveDownWidget($props.field), ["stop"]))
|
|
122096
122131
|
}, [
|
|
122097
122132
|
createVNode(_component_svg_icon, { "icon-class": "el-move-down" })
|
|
122098
|
-
], 8, _hoisted_4$
|
|
122133
|
+
], 8, _hoisted_4$o)) : createCommentVNode("", true),
|
|
122099
122134
|
createElementVNode("i", {
|
|
122100
122135
|
title: _ctx.i18nt("designer.hint.cloneWidget"),
|
|
122101
122136
|
onClick: _cache[4] || (_cache[4] = withModifiers(($event) => $options.cloneField($props.field), ["stop"]))
|
|
122102
122137
|
}, [
|
|
122103
122138
|
createVNode(_component_svg_icon, { "icon-class": "el-clone" })
|
|
122104
|
-
], 8, _hoisted_5$
|
|
122139
|
+
], 8, _hoisted_5$l),
|
|
122105
122140
|
createElementVNode("i", {
|
|
122106
122141
|
title: _ctx.i18nt("designer.hint.remove"),
|
|
122107
122142
|
onClick: _cache[5] || (_cache[5] = withModifiers((...args) => $options.removeFieldWidget && $options.removeFieldWidget(...args), ["stop"]))
|
|
122108
122143
|
}, [
|
|
122109
122144
|
createVNode(_component_svg_icon, { "icon-class": "el-delete" })
|
|
122110
|
-
], 8, _hoisted_6$
|
|
122145
|
+
], 8, _hoisted_6$j)
|
|
122111
122146
|
])) : createCommentVNode("", true),
|
|
122112
|
-
$props.designer.selectedId === $props.field.id ? (openBlock(), createElementBlock("div", _hoisted_7$
|
|
122147
|
+
$props.designer.selectedId === $props.field.id ? (openBlock(), createElementBlock("div", _hoisted_7$g, [
|
|
122113
122148
|
createElementVNode("i", {
|
|
122114
122149
|
title: _ctx.i18nt("designer.hint.dragHandler")
|
|
122115
122150
|
}, [
|
|
122116
122151
|
createVNode(_component_svg_icon, { "icon-class": "el-drag-move" })
|
|
122117
|
-
], 8, _hoisted_8$
|
|
122152
|
+
], 8, _hoisted_8$e),
|
|
122118
122153
|
createElementVNode("i", null, toDisplayString(_ctx.i18n2t(`designer.widgetLabel.${$props.field.type}`, `extension.widgetLabel.${$props.field.type}`)), 1),
|
|
122119
|
-
$props.field.options.hidden === true ? (openBlock(), createElementBlock("i", _hoisted_9$
|
|
122154
|
+
$props.field.options.hidden === true ? (openBlock(), createElementBlock("i", _hoisted_9$c, [
|
|
122120
122155
|
createVNode(_component_svg_icon, { "icon-class": "el-hide" })
|
|
122121
122156
|
])) : createCommentVNode("", true)
|
|
122122
122157
|
])) : createCommentVNode("", true)
|
|
122123
122158
|
], 64)) : createCommentVNode("", true)
|
|
122124
122159
|
], 6);
|
|
122125
122160
|
}
|
|
122126
|
-
var StaticContentWrapper = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
122127
|
-
var
|
|
122161
|
+
var StaticContentWrapper = /* @__PURE__ */ _export_sfc(_sfc_main$5a, [["render", _sfc_render$59], ["__scopeId", "data-v-bd2253c0"]]);
|
|
122162
|
+
var __glob_0_23$1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
122128
122163
|
__proto__: null,
|
|
122129
122164
|
"default": StaticContentWrapper
|
|
122130
122165
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
122131
122166
|
var buttonWidget_vue_vue_type_style_index_0_scoped_true_lang = "";
|
|
122132
|
-
const _sfc_main$
|
|
122167
|
+
const _sfc_main$59 = {
|
|
122133
122168
|
name: "button-widget",
|
|
122134
122169
|
componentName: "FieldWidget",
|
|
122135
122170
|
mixins: [emitter, fieldMixin, i18n$1],
|
|
@@ -122189,7 +122224,7 @@ const _sfc_main$57 = {
|
|
|
122189
122224
|
},
|
|
122190
122225
|
methods: {}
|
|
122191
122226
|
};
|
|
122192
|
-
function _sfc_render$
|
|
122227
|
+
function _sfc_render$58(_ctx, _cache, $props, $setup, $data, $options) {
|
|
122193
122228
|
const _component_el_button = resolveComponent("el-button");
|
|
122194
122229
|
const _component_static_content_wrapper = resolveComponent("static-content-wrapper");
|
|
122195
122230
|
return openBlock(), createBlock(_component_static_content_wrapper, {
|
|
@@ -122226,7 +122261,7 @@ function _sfc_render$57(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
122226
122261
|
_: 1
|
|
122227
122262
|
}, 8, ["designer", "field", "design-state", "display-style", "parent-widget", "parent-list", "index-of-parent-list", "sub-form-row-index", "sub-form-col-index", "sub-form-row-id"]);
|
|
122228
122263
|
}
|
|
122229
|
-
var buttonWidget = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
122264
|
+
var buttonWidget = /* @__PURE__ */ _export_sfc(_sfc_main$59, [["render", _sfc_render$58], ["__scopeId", "data-v-69c930f0"]]);
|
|
122230
122265
|
var __glob_0_1$3 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
122231
122266
|
__proto__: null,
|
|
122232
122267
|
"default": buttonWidget
|
|
@@ -143040,7 +143075,7 @@ const p = Object.entries(h).map(([c, e]) => ({
|
|
|
143040
143075
|
}))
|
|
143041
143076
|
}));
|
|
143042
143077
|
var cascaderWidget_vue_vue_type_style_index_0_scoped_true_lang = "";
|
|
143043
|
-
const _sfc_main$
|
|
143078
|
+
const _sfc_main$58 = {
|
|
143044
143079
|
name: "cascader-widget",
|
|
143045
143080
|
componentName: "FieldWidget",
|
|
143046
143081
|
mixins: [emitter, fieldMixin, i18n$1],
|
|
@@ -143162,11 +143197,11 @@ const _sfc_main$56 = {
|
|
|
143162
143197
|
}
|
|
143163
143198
|
}
|
|
143164
143199
|
};
|
|
143165
|
-
const _hoisted_1$
|
|
143200
|
+
const _hoisted_1$1h = {
|
|
143166
143201
|
key: 0,
|
|
143167
143202
|
class: "readonly-mode-field"
|
|
143168
143203
|
};
|
|
143169
|
-
function _sfc_render$
|
|
143204
|
+
function _sfc_render$57(_ctx, _cache, $props, $setup, $data, $options) {
|
|
143170
143205
|
const _component_el_cascader = resolveComponent("el-cascader");
|
|
143171
143206
|
const _component_form_item_wrapper = resolveComponent("form-item-wrapper");
|
|
143172
143207
|
return openBlock(), createBlock(_component_form_item_wrapper, {
|
|
@@ -143202,19 +143237,19 @@ function _sfc_render$56(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
143202
143237
|
onBlur: _ctx.handleBlurCustomEvent,
|
|
143203
143238
|
onChange: _ctx.onFieldChangeEvent
|
|
143204
143239
|
}, null, 8, ["options", "modelValue", "disabled", "clearable", "filterable", "placeholder", "show-all-levels", "props", "onVisibleChange", "onExpandChange", "onFocus", "onBlur", "onChange"]),
|
|
143205
|
-
_ctx.isReadMode ? (openBlock(), createElementBlock("span", _hoisted_1$
|
|
143240
|
+
_ctx.isReadMode ? (openBlock(), createElementBlock("span", _hoisted_1$1h, toDisplayString($options.getContentForReadMode()), 1)) : createCommentVNode("", true)
|
|
143206
143241
|
], 2)
|
|
143207
143242
|
]),
|
|
143208
143243
|
_: 1
|
|
143209
143244
|
}, 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"]);
|
|
143210
143245
|
}
|
|
143211
|
-
var cascaderWidget = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
143246
|
+
var cascaderWidget = /* @__PURE__ */ _export_sfc(_sfc_main$58, [["render", _sfc_render$57], ["__scopeId", "data-v-47a541b4"]]);
|
|
143212
143247
|
var __glob_0_2$2 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
143213
143248
|
__proto__: null,
|
|
143214
143249
|
"default": cascaderWidget
|
|
143215
143250
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
143216
143251
|
var checkboxWidget_vue_vue_type_style_index_0_scoped_true_lang = "";
|
|
143217
|
-
const _sfc_main$
|
|
143252
|
+
const _sfc_main$57 = {
|
|
143218
143253
|
name: "checkbox-widget",
|
|
143219
143254
|
componentName: "FieldWidget",
|
|
143220
143255
|
mixins: [emitter, fieldMixin, i18n$1],
|
|
@@ -143318,11 +143353,11 @@ const _sfc_main$55 = {
|
|
|
143318
143353
|
}
|
|
143319
143354
|
}
|
|
143320
143355
|
};
|
|
143321
|
-
const _hoisted_1$
|
|
143356
|
+
const _hoisted_1$1g = {
|
|
143322
143357
|
key: 0,
|
|
143323
143358
|
class: "readonly-mode-field"
|
|
143324
143359
|
};
|
|
143325
|
-
function _sfc_render$
|
|
143360
|
+
function _sfc_render$56(_ctx, _cache, $props, $setup, $data, $options) {
|
|
143326
143361
|
const _component_el_checkbox_button = resolveComponent("el-checkbox-button");
|
|
143327
143362
|
const _component_el_checkbox = resolveComponent("el-checkbox");
|
|
143328
143363
|
const _component_el_checkbox_group = resolveComponent("el-checkbox-group");
|
|
@@ -143381,12 +143416,12 @@ function _sfc_render$55(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
143381
143416
|
}, 8, ["modelValue", "disabled", "onChange"]), [
|
|
143382
143417
|
[vShow, !_ctx.isReadMode]
|
|
143383
143418
|
]),
|
|
143384
|
-
_ctx.isReadMode ? (openBlock(), createElementBlock("span", _hoisted_1$
|
|
143419
|
+
_ctx.isReadMode ? (openBlock(), createElementBlock("span", _hoisted_1$1g, toDisplayString(_ctx.optionLabel), 1)) : createCommentVNode("", true)
|
|
143385
143420
|
]),
|
|
143386
143421
|
_: 1
|
|
143387
143422
|
}, 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", "onSelectAll"]);
|
|
143388
143423
|
}
|
|
143389
|
-
var checkboxWidget = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
143424
|
+
var checkboxWidget = /* @__PURE__ */ _export_sfc(_sfc_main$57, [["render", _sfc_render$56], ["__scopeId", "data-v-bae241a6"]]);
|
|
143390
143425
|
var __glob_0_3$3 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
143391
143426
|
__proto__: null,
|
|
143392
143427
|
"default": checkboxWidget
|
|
@@ -148919,7 +148954,7 @@ browser.toString = renderCanvas.bind(null, function(data2, _5, opts) {
|
|
|
148919
148954
|
return SvgRenderer.render(data2, opts);
|
|
148920
148955
|
});
|
|
148921
148956
|
var codeImgWidget_vue_vue_type_style_index_0_scoped_true_lang = "";
|
|
148922
|
-
const _sfc_main$
|
|
148957
|
+
const _sfc_main$56 = {
|
|
148923
148958
|
name: "code-img-widget",
|
|
148924
148959
|
componentName: "FieldWidget",
|
|
148925
148960
|
mixins: [emitter, fieldMixin, i18n$1],
|
|
@@ -149031,7 +149066,7 @@ const _sfc_main$54 = {
|
|
|
149031
149066
|
}
|
|
149032
149067
|
}
|
|
149033
149068
|
};
|
|
149034
|
-
function _sfc_render$
|
|
149069
|
+
function _sfc_render$55(_ctx, _cache, $props, $setup, $data, $options) {
|
|
149035
149070
|
const _component_static_content_wrapper = resolveComponent("static-content-wrapper");
|
|
149036
149071
|
return openBlock(), createBlock(_component_static_content_wrapper, {
|
|
149037
149072
|
designer: $props.designer,
|
|
@@ -149054,13 +149089,13 @@ function _sfc_render$54(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
149054
149089
|
_: 1
|
|
149055
149090
|
}, 8, ["designer", "field", "design-state", "display-style", "parent-widget", "parent-list", "index-of-parent-list", "sub-form-row-index", "sub-form-col-index", "sub-form-row-id"]);
|
|
149056
149091
|
}
|
|
149057
|
-
var codeImgWidget = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
149092
|
+
var codeImgWidget = /* @__PURE__ */ _export_sfc(_sfc_main$56, [["render", _sfc_render$55], ["__scopeId", "data-v-75194e64"]]);
|
|
149058
149093
|
var __glob_0_4$3 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
149059
149094
|
__proto__: null,
|
|
149060
149095
|
"default": codeImgWidget
|
|
149061
149096
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
149062
149097
|
var colorWidget_vue_vue_type_style_index_0_scoped_true_lang = "";
|
|
149063
|
-
const _sfc_main$
|
|
149098
|
+
const _sfc_main$55 = {
|
|
149064
149099
|
name: "color-widget",
|
|
149065
149100
|
componentName: "FieldWidget",
|
|
149066
149101
|
mixins: [emitter, fieldMixin, i18n$1],
|
|
@@ -149129,11 +149164,11 @@ const _sfc_main$53 = {
|
|
|
149129
149164
|
},
|
|
149130
149165
|
methods: {}
|
|
149131
149166
|
};
|
|
149132
|
-
const _hoisted_1$
|
|
149167
|
+
const _hoisted_1$1f = {
|
|
149133
149168
|
key: 0,
|
|
149134
149169
|
class: "readonly-mode-field"
|
|
149135
149170
|
};
|
|
149136
|
-
function _sfc_render$
|
|
149171
|
+
function _sfc_render$54(_ctx, _cache, $props, $setup, $data, $options) {
|
|
149137
149172
|
const _component_el_color_picker = resolveComponent("el-color-picker");
|
|
149138
149173
|
const _component_form_item_wrapper = resolveComponent("form-item-wrapper");
|
|
149139
149174
|
return openBlock(), createBlock(_component_form_item_wrapper, {
|
|
@@ -149159,19 +149194,19 @@ function _sfc_render$53(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
149159
149194
|
disabled: $props.field.options.disabled,
|
|
149160
149195
|
onChange: _ctx.onFieldChangeEvent
|
|
149161
149196
|
}, null, 8, ["modelValue", "disabled", "onChange"]),
|
|
149162
|
-
_ctx.isReadMode ? (openBlock(), createElementBlock("span", _hoisted_1$
|
|
149197
|
+
_ctx.isReadMode ? (openBlock(), createElementBlock("span", _hoisted_1$1f, toDisplayString($data.fieldModel), 1)) : createCommentVNode("", true)
|
|
149163
149198
|
], 2)
|
|
149164
149199
|
]),
|
|
149165
149200
|
_: 1
|
|
149166
149201
|
}, 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"]);
|
|
149167
149202
|
}
|
|
149168
|
-
var colorWidget = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
149203
|
+
var colorWidget = /* @__PURE__ */ _export_sfc(_sfc_main$55, [["render", _sfc_render$54], ["__scopeId", "data-v-4d64db25"]]);
|
|
149169
149204
|
var __glob_0_5$3 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
149170
149205
|
__proto__: null,
|
|
149171
149206
|
"default": colorWidget
|
|
149172
149207
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
149173
149208
|
var dateRangeWidget_vue_vue_type_style_index_0_scoped_true_lang = "";
|
|
149174
|
-
const _sfc_main$
|
|
149209
|
+
const _sfc_main$54 = {
|
|
149175
149210
|
name: "date-range-widget",
|
|
149176
149211
|
componentName: "FieldWidget",
|
|
149177
149212
|
mixins: [emitter, fieldMixin, i18n$1],
|
|
@@ -149255,11 +149290,11 @@ const _sfc_main$52 = {
|
|
|
149255
149290
|
}
|
|
149256
149291
|
}
|
|
149257
149292
|
};
|
|
149258
|
-
const _hoisted_1$
|
|
149293
|
+
const _hoisted_1$1e = {
|
|
149259
149294
|
key: 0,
|
|
149260
149295
|
class: "readonly-mode-field"
|
|
149261
149296
|
};
|
|
149262
|
-
function _sfc_render$
|
|
149297
|
+
function _sfc_render$53(_ctx, _cache, $props, $setup, $data, $options) {
|
|
149263
149298
|
const _component_el_date_picker = resolveComponent("el-date-picker");
|
|
149264
149299
|
const _component_form_item_wrapper = resolveComponent("form-item-wrapper");
|
|
149265
149300
|
return openBlock(), createBlock(_component_form_item_wrapper, {
|
|
@@ -149299,19 +149334,19 @@ function _sfc_render$52(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
149299
149334
|
}, null, 8, ["type", "modelValue", "class", "disabled", "readonly", "clearable", "editable", "format", "value-format", "start-placeholder", "end-placeholder", "onFocus", "onBlur", "onChange"])), [
|
|
149300
149335
|
[vShow, !_ctx.isReadMode]
|
|
149301
149336
|
]),
|
|
149302
|
-
_ctx.isReadMode ? (openBlock(), createElementBlock("span", _hoisted_1$
|
|
149337
|
+
_ctx.isReadMode ? (openBlock(), createElementBlock("span", _hoisted_1$1e, toDisplayString($options.contentForReadMode), 1)) : createCommentVNode("", true)
|
|
149303
149338
|
], 2)
|
|
149304
149339
|
]),
|
|
149305
149340
|
_: 1
|
|
149306
149341
|
}, 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"]);
|
|
149307
149342
|
}
|
|
149308
|
-
var dateRangeWidget = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
149343
|
+
var dateRangeWidget = /* @__PURE__ */ _export_sfc(_sfc_main$54, [["render", _sfc_render$53], ["__scopeId", "data-v-603a2f18"]]);
|
|
149309
149344
|
var __glob_0_6$3 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
149310
149345
|
__proto__: null,
|
|
149311
149346
|
"default": dateRangeWidget
|
|
149312
149347
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
149313
149348
|
var dateWidget_vue_vue_type_style_index_0_scoped_true_lang = "";
|
|
149314
|
-
const _sfc_main$
|
|
149349
|
+
const _sfc_main$53 = {
|
|
149315
149350
|
name: "date-widget",
|
|
149316
149351
|
componentName: "FieldWidget",
|
|
149317
149352
|
mixins: [emitter, fieldMixin, i18n$1],
|
|
@@ -149384,11 +149419,11 @@ const _sfc_main$51 = {
|
|
|
149384
149419
|
},
|
|
149385
149420
|
methods: {}
|
|
149386
149421
|
};
|
|
149387
|
-
const _hoisted_1$
|
|
149422
|
+
const _hoisted_1$1d = {
|
|
149388
149423
|
key: 0,
|
|
149389
149424
|
class: "readonly-mode-field"
|
|
149390
149425
|
};
|
|
149391
|
-
function _sfc_render$
|
|
149426
|
+
function _sfc_render$52(_ctx, _cache, $props, $setup, $data, $options) {
|
|
149392
149427
|
const _component_el_date_picker = resolveComponent("el-date-picker");
|
|
149393
149428
|
const _component_form_item_wrapper = resolveComponent("form-item-wrapper");
|
|
149394
149429
|
return openBlock(), createBlock(_component_form_item_wrapper, {
|
|
@@ -149424,19 +149459,19 @@ function _sfc_render$51(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
149424
149459
|
onBlur: _ctx.handleBlurCustomEvent,
|
|
149425
149460
|
onChange: _ctx.onFieldChangeEvent
|
|
149426
149461
|
}, null, 8, ["type", "modelValue", "class", "readonly", "disabled", "clearable", "editable", "format", "value-format", "placeholder", "onFocus", "onBlur", "onChange"]),
|
|
149427
|
-
_ctx.isReadMode ? (openBlock(), createElementBlock("span", _hoisted_1$
|
|
149462
|
+
_ctx.isReadMode ? (openBlock(), createElementBlock("span", _hoisted_1$1d, toDisplayString($options.contentForReadMode), 1)) : createCommentVNode("", true)
|
|
149428
149463
|
], 2)
|
|
149429
149464
|
]),
|
|
149430
149465
|
_: 1
|
|
149431
149466
|
}, 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"]);
|
|
149432
149467
|
}
|
|
149433
|
-
var dateWidget = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
149468
|
+
var dateWidget = /* @__PURE__ */ _export_sfc(_sfc_main$53, [["render", _sfc_render$52], ["__scopeId", "data-v-56bf66eb"]]);
|
|
149434
149469
|
var __glob_0_7$3 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
149435
149470
|
__proto__: null,
|
|
149436
149471
|
"default": dateWidget
|
|
149437
149472
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
149438
149473
|
var dividerWidget_vue_vue_type_style_index_0_scoped_true_lang = "";
|
|
149439
|
-
const _sfc_main$
|
|
149474
|
+
const _sfc_main$52 = {
|
|
149440
149475
|
name: "divider-widget",
|
|
149441
149476
|
componentName: "FieldWidget",
|
|
149442
149477
|
mixins: [emitter, fieldMixin, i18n$1],
|
|
@@ -149496,7 +149531,7 @@ const _sfc_main$50 = {
|
|
|
149496
149531
|
},
|
|
149497
149532
|
methods: {}
|
|
149498
149533
|
};
|
|
149499
|
-
function _sfc_render$
|
|
149534
|
+
function _sfc_render$51(_ctx, _cache, $props, $setup, $data, $options) {
|
|
149500
149535
|
const _component_el_divider = resolveComponent("el-divider");
|
|
149501
149536
|
const _component_static_content_wrapper = resolveComponent("static-content-wrapper");
|
|
149502
149537
|
return openBlock(), createBlock(_component_static_content_wrapper, {
|
|
@@ -149525,11 +149560,1373 @@ function _sfc_render$50(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
149525
149560
|
_: 1
|
|
149526
149561
|
}, 8, ["designer", "field", "design-state", "parent-widget", "parent-list", "index-of-parent-list", "sub-form-row-index", "sub-form-col-index", "sub-form-row-id"]);
|
|
149527
149562
|
}
|
|
149528
|
-
var dividerWidget = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
149563
|
+
var dividerWidget = /* @__PURE__ */ _export_sfc(_sfc_main$52, [["render", _sfc_render$51], ["__scopeId", "data-v-0a13d8cd"]]);
|
|
149529
149564
|
var __glob_0_8$3 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
149530
149565
|
__proto__: null,
|
|
149531
149566
|
"default": dividerWidget
|
|
149532
149567
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
149568
|
+
var ItemWrapper_vue_vue_type_style_index_0_scoped_true_lang = "";
|
|
149569
|
+
const _hoisted_1$1c = { class: "item-wrapper" };
|
|
149570
|
+
const _hoisted_2$D = { class: "item-title-text" };
|
|
149571
|
+
const _hoisted_3$s = { class: "item-content" };
|
|
149572
|
+
const _sfc_main$51 = defineComponent({
|
|
149573
|
+
__name: "ItemWrapper",
|
|
149574
|
+
props: {
|
|
149575
|
+
hasIcon: {
|
|
149576
|
+
type: Boolean,
|
|
149577
|
+
default: true
|
|
149578
|
+
},
|
|
149579
|
+
title: {
|
|
149580
|
+
type: String,
|
|
149581
|
+
default: ""
|
|
149582
|
+
},
|
|
149583
|
+
type: {
|
|
149584
|
+
type: String,
|
|
149585
|
+
default: "case"
|
|
149586
|
+
}
|
|
149587
|
+
},
|
|
149588
|
+
emits: ["handleEdit"],
|
|
149589
|
+
setup(__props, { emit: __emit }) {
|
|
149590
|
+
const emit = __emit;
|
|
149591
|
+
const handleEdit = () => {
|
|
149592
|
+
emit("handleEdit");
|
|
149593
|
+
};
|
|
149594
|
+
return (_ctx, _cache) => {
|
|
149595
|
+
const _component_el_icon = resolveComponent("el-icon");
|
|
149596
|
+
const _component_el_button = resolveComponent("el-button");
|
|
149597
|
+
return openBlock(), createElementBlock("div", _hoisted_1$1c, [
|
|
149598
|
+
createElementVNode("div", {
|
|
149599
|
+
class: normalizeClass$1(__props.type === "case" ? "case-title item-title" : "item-title")
|
|
149600
|
+
}, [
|
|
149601
|
+
createElementVNode("div", {
|
|
149602
|
+
class: normalizeClass$1(__props.type === "case" ? "case-symbol item-title-symbol" : "item-title-symbol")
|
|
149603
|
+
}, null, 2),
|
|
149604
|
+
createElementVNode("div", _hoisted_2$D, [
|
|
149605
|
+
createTextVNode(toDisplayString(__props.title) + " ", 1),
|
|
149606
|
+
renderSlot(_ctx.$slots, "titleNear", {}, void 0, true)
|
|
149607
|
+
]),
|
|
149608
|
+
renderSlot(_ctx.$slots, "titleExtra", {}, void 0, true),
|
|
149609
|
+
__props.hasIcon ? (openBlock(), createBlock(_component_el_button, {
|
|
149610
|
+
key: 0,
|
|
149611
|
+
class: "item-title-icon",
|
|
149612
|
+
type: "primary",
|
|
149613
|
+
onClick: handleEdit,
|
|
149614
|
+
link: ""
|
|
149615
|
+
}, {
|
|
149616
|
+
default: withCtx(() => [
|
|
149617
|
+
createVNode(_component_el_icon, null, {
|
|
149618
|
+
default: withCtx(() => [
|
|
149619
|
+
createVNode(unref(EditPen))
|
|
149620
|
+
]),
|
|
149621
|
+
_: 1
|
|
149622
|
+
}),
|
|
149623
|
+
_cache[0] || (_cache[0] = createTextVNode(" \u7F16\u8F91 ", -1))
|
|
149624
|
+
]),
|
|
149625
|
+
_: 1,
|
|
149626
|
+
__: [0]
|
|
149627
|
+
})) : createCommentVNode("", true)
|
|
149628
|
+
], 2),
|
|
149629
|
+
createElementVNode("div", _hoisted_3$s, [
|
|
149630
|
+
renderSlot(_ctx.$slots, "content", {}, void 0, true)
|
|
149631
|
+
])
|
|
149632
|
+
]);
|
|
149633
|
+
};
|
|
149634
|
+
}
|
|
149635
|
+
});
|
|
149636
|
+
var ItemWrapper = /* @__PURE__ */ _export_sfc(_sfc_main$51, [["__scopeId", "data-v-2e5e5aa0"]]);
|
|
149637
|
+
var electronicCaseWidget_vue_vue_type_style_index_0_scoped_true_lang = "";
|
|
149638
|
+
let ossConfigCache$1 = null;
|
|
149639
|
+
let pendingOSSRequest$1 = null;
|
|
149640
|
+
async function getOSSConfigWithCache$1() {
|
|
149641
|
+
if (ossConfigCache$1) {
|
|
149642
|
+
return ossConfigCache$1;
|
|
149643
|
+
}
|
|
149644
|
+
if (pendingOSSRequest$1) {
|
|
149645
|
+
return await pendingOSSRequest$1;
|
|
149646
|
+
}
|
|
149647
|
+
pendingOSSRequest$1 = axios$1.post(`https://data.yuanjia101.com/api/SmallTools/PutObjectSignPolicy`).then((res) => {
|
|
149648
|
+
const config2 = {
|
|
149649
|
+
key_id: res.data.accessKeyId,
|
|
149650
|
+
accessKeySecret: res.data.accessKeySecret,
|
|
149651
|
+
base64policy: res.data.policy,
|
|
149652
|
+
signature: res.data.signature
|
|
149653
|
+
};
|
|
149654
|
+
ossConfigCache$1 = config2;
|
|
149655
|
+
return config2;
|
|
149656
|
+
}).catch((error2) => {
|
|
149657
|
+
console.error("\u83B7\u53D6 OSS \u914D\u7F6E\u5931\u8D25:", error2);
|
|
149658
|
+
pendingOSSRequest$1 = null;
|
|
149659
|
+
throw error2;
|
|
149660
|
+
}).finally(() => {
|
|
149661
|
+
pendingOSSRequest$1 = null;
|
|
149662
|
+
});
|
|
149663
|
+
return await pendingOSSRequest$1;
|
|
149664
|
+
}
|
|
149665
|
+
const _sfc_main$50 = {
|
|
149666
|
+
name: "electronic-case-widget",
|
|
149667
|
+
componentName: "FieldWidget",
|
|
149668
|
+
mixins: [emitter, fieldMixin, i18n$1],
|
|
149669
|
+
components: {
|
|
149670
|
+
FormItemWrapper,
|
|
149671
|
+
ItemWrapper,
|
|
149672
|
+
SvgIcon,
|
|
149673
|
+
Loading: Loading$1,
|
|
149674
|
+
View,
|
|
149675
|
+
Download,
|
|
149676
|
+
Upload,
|
|
149677
|
+
Edit,
|
|
149678
|
+
UploadFilled,
|
|
149679
|
+
Document,
|
|
149680
|
+
ArrowDown,
|
|
149681
|
+
ArrowRight
|
|
149682
|
+
},
|
|
149683
|
+
props: {
|
|
149684
|
+
field: Object,
|
|
149685
|
+
parentWidget: Object,
|
|
149686
|
+
parentList: Array,
|
|
149687
|
+
indexOfParentList: Number,
|
|
149688
|
+
designer: Object,
|
|
149689
|
+
childFormFlag: String,
|
|
149690
|
+
isShow: Boolean,
|
|
149691
|
+
designState: {
|
|
149692
|
+
type: Boolean,
|
|
149693
|
+
default: false
|
|
149694
|
+
},
|
|
149695
|
+
subFormRowIndex: {
|
|
149696
|
+
type: Number,
|
|
149697
|
+
default: -1
|
|
149698
|
+
},
|
|
149699
|
+
subFormColIndex: {
|
|
149700
|
+
type: Number,
|
|
149701
|
+
default: -1
|
|
149702
|
+
},
|
|
149703
|
+
subFormRowId: {
|
|
149704
|
+
type: String,
|
|
149705
|
+
default: ""
|
|
149706
|
+
}
|
|
149707
|
+
},
|
|
149708
|
+
data() {
|
|
149709
|
+
return {
|
|
149710
|
+
activeTab: "directory",
|
|
149711
|
+
loading: false,
|
|
149712
|
+
directoryData: [],
|
|
149713
|
+
allFiles: [],
|
|
149714
|
+
previewVisible: false,
|
|
149715
|
+
previewFileUrl: "",
|
|
149716
|
+
uploadVisible: false,
|
|
149717
|
+
uploadFileList: [],
|
|
149718
|
+
currentUploadWidget: null,
|
|
149719
|
+
currentUploadItem: null,
|
|
149720
|
+
uploadAction: "https://ms-oss.yuanjia101.com",
|
|
149721
|
+
uploadHeaders: {},
|
|
149722
|
+
uploadData: {
|
|
149723
|
+
key: "",
|
|
149724
|
+
policy: "",
|
|
149725
|
+
OSSAccessKeyId: "",
|
|
149726
|
+
signature: ""
|
|
149727
|
+
},
|
|
149728
|
+
fileKeyMap: {},
|
|
149729
|
+
ossConfigParams: null,
|
|
149730
|
+
saving: false,
|
|
149731
|
+
fileLists: {
|
|
149732
|
+
lj: "https://static.yuanjia101.com/YCRM/Html/QYSCRM/h5Img/lj.png",
|
|
149733
|
+
excel: "https://static.yuanjia101.com/YCRM/Html/QYSCRM/h5Img/excel.png",
|
|
149734
|
+
mp4: "https://static.yuanjia101.com/YCRM/Html/QYSCRM/h5Img/mp4.png",
|
|
149735
|
+
ppt: "https://static.yuanjia101.com/YCRM/Html/QYSCRM/h5Img/ppt.png",
|
|
149736
|
+
text: "https://static.yuanjia101.com/YCRM/Html/QYSCRM/h5Img/text.png",
|
|
149737
|
+
video: "https://static.yuanjia101.com/YCRM/Html/QYSCRM/h5Img/video.png",
|
|
149738
|
+
word: "https://static.yuanjia101.com/YCRM/Html/QYSCRM/h5Img/word.png",
|
|
149739
|
+
words: "https://static.yuanjia101.com/YCRM/Html/QYSCRM/h5Img/words.png",
|
|
149740
|
+
wz: "https://static.yuanjia101.com/YCRM/Html/QYSCRM/h5Img/wz.png",
|
|
149741
|
+
zip: "https://static.yuanjia101.com/YCRM/Html/QYSCRM/h5Img/zip.png"
|
|
149742
|
+
},
|
|
149743
|
+
uploadBtnHidden: false,
|
|
149744
|
+
previewUrl: "",
|
|
149745
|
+
showPreviewDialogFlag: false,
|
|
149746
|
+
responseData: null,
|
|
149747
|
+
viewFilesVisible: false,
|
|
149748
|
+
currentViewFiles: [],
|
|
149749
|
+
isModifyMode: false,
|
|
149750
|
+
expandedWidgets: {}
|
|
149751
|
+
};
|
|
149752
|
+
},
|
|
149753
|
+
computed: {
|
|
149754
|
+
groupedFilesByType() {
|
|
149755
|
+
const grouped = {};
|
|
149756
|
+
this.allFiles.forEach((file) => {
|
|
149757
|
+
const typeLabel = file.typeLabel || "\u672A\u5206\u7C7B";
|
|
149758
|
+
if (!grouped[typeLabel]) {
|
|
149759
|
+
grouped[typeLabel] = [];
|
|
149760
|
+
}
|
|
149761
|
+
grouped[typeLabel].push(file);
|
|
149762
|
+
});
|
|
149763
|
+
return grouped;
|
|
149764
|
+
}
|
|
149765
|
+
},
|
|
149766
|
+
mounted() {
|
|
149767
|
+
if (!this.designState) {
|
|
149768
|
+
this.loadData();
|
|
149769
|
+
this.getOSSConfig();
|
|
149770
|
+
}
|
|
149771
|
+
},
|
|
149772
|
+
methods: {
|
|
149773
|
+
async loadData() {
|
|
149774
|
+
var _a2, _b2, _c2, _d2, _e, _f2;
|
|
149775
|
+
if (this.loading)
|
|
149776
|
+
return;
|
|
149777
|
+
try {
|
|
149778
|
+
this.loading = true;
|
|
149779
|
+
const token = almLocalStorage.getItem("token");
|
|
149780
|
+
const rToken = almLocalStorage.getItem("rToken");
|
|
149781
|
+
const tokenTime = almLocalStorage.getItem("tokenTime");
|
|
149782
|
+
const headers = {};
|
|
149783
|
+
if (token !== null)
|
|
149784
|
+
headers["Authorization"] = "Bearer " + token;
|
|
149785
|
+
if (!tokenTime && rToken) {
|
|
149786
|
+
headers["X-Authorization"] = "Bearer " + rToken;
|
|
149787
|
+
}
|
|
149788
|
+
const clueId = (_b2 = (_a2 = this.formConfig) == null ? void 0 : _a2.v_form_params) == null ? void 0 : _b2.CrmClueId;
|
|
149789
|
+
if (!clueId) {
|
|
149790
|
+
console.warn("\u7535\u5B50\u5377\u5B97\uFF1A\u672A\u627E\u5230\u7EBF\u7D22ID");
|
|
149791
|
+
this.directoryData = [];
|
|
149792
|
+
this.allFiles = [];
|
|
149793
|
+
return;
|
|
149794
|
+
}
|
|
149795
|
+
const params = {
|
|
149796
|
+
clue_id: clueId
|
|
149797
|
+
};
|
|
149798
|
+
const url = commonGETUrlTranslation("case_module/get_electronic_case_form", params);
|
|
149799
|
+
const response = await axios$1.get(url, { headers });
|
|
149800
|
+
if (((_c2 = response == null ? void 0 : response.data) == null ? void 0 : _c2.Succeeded) && ((_d2 = response == null ? void 0 : response.data) == null ? void 0 : _d2.Data)) {
|
|
149801
|
+
const data2 = response.data.Data;
|
|
149802
|
+
this.responseData = data2;
|
|
149803
|
+
if (Array.isArray(data2.schema)) {
|
|
149804
|
+
await this.processChildFormsData(data2.schema);
|
|
149805
|
+
} else {
|
|
149806
|
+
this.directoryData = [];
|
|
149807
|
+
this.allFiles = [];
|
|
149808
|
+
}
|
|
149809
|
+
} else {
|
|
149810
|
+
this.directoryData = [];
|
|
149811
|
+
this.allFiles = [];
|
|
149812
|
+
}
|
|
149813
|
+
} catch (error2) {
|
|
149814
|
+
console.error("\u52A0\u8F7D\u7535\u5B50\u5377\u5B97\u6570\u636E\u5931\u8D25:", error2);
|
|
149815
|
+
(_f2 = (_e = this.$message) == null ? void 0 : _e.error) == null ? void 0 : _f2.call(_e, "\u52A0\u8F7D\u7535\u5B50\u5377\u5B97\u6570\u636E\u5931\u8D25: " + (error2.message || error2));
|
|
149816
|
+
this.directoryData = [];
|
|
149817
|
+
this.allFiles = [];
|
|
149818
|
+
} finally {
|
|
149819
|
+
this.loading = false;
|
|
149820
|
+
}
|
|
149821
|
+
},
|
|
149822
|
+
async parseCurrentLevelChildForm(childForm) {
|
|
149823
|
+
var _a2, _b2;
|
|
149824
|
+
const childFormKey = (_a2 = childForm.options) == null ? void 0 : _a2.childFormKey;
|
|
149825
|
+
if (!childFormKey) {
|
|
149826
|
+
console.warn("\u5B50\u8868\u5355\u7F3A\u5C11 childFormKey\uFF0C\u8DF3\u8FC7\u5904\u7406");
|
|
149827
|
+
return [];
|
|
149828
|
+
}
|
|
149829
|
+
try {
|
|
149830
|
+
const schema = await fetchChildFormSchema(childFormKey);
|
|
149831
|
+
if (!Array.isArray(schema) || schema.length === 0) {
|
|
149832
|
+
return [];
|
|
149833
|
+
}
|
|
149834
|
+
const parsedWidgets = [];
|
|
149835
|
+
for (const item of schema) {
|
|
149836
|
+
const widget = __spreadValues({}, item);
|
|
149837
|
+
if (widget.options) {
|
|
149838
|
+
widget.options.childFormFlag = childForm.id;
|
|
149839
|
+
}
|
|
149840
|
+
if (childForm.options && (childForm.options.parentid || childForm.options.parentvalueList || childForm.options.parentvalue)) {
|
|
149841
|
+
widget._childFormParentConfig = {
|
|
149842
|
+
parentid: childForm.options.parentid,
|
|
149843
|
+
parentvalueList: childForm.options.parentvalueList,
|
|
149844
|
+
parentvalue: childForm.options.parentvalue,
|
|
149845
|
+
childFormId: childForm.id
|
|
149846
|
+
};
|
|
149847
|
+
}
|
|
149848
|
+
if (widget.type === "child-form") {
|
|
149849
|
+
const innerChildFormKey = (_b2 = widget.options) == null ? void 0 : _b2.childFormKey;
|
|
149850
|
+
if (innerChildFormKey) {
|
|
149851
|
+
try {
|
|
149852
|
+
const innerSchema = await fetchChildFormSchema(innerChildFormKey);
|
|
149853
|
+
if (Array.isArray(innerSchema) && innerSchema.length > 0) {
|
|
149854
|
+
widget.widgetList = innerSchema.map((innerItem) => {
|
|
149855
|
+
const innerWidget = __spreadValues({}, innerItem);
|
|
149856
|
+
if (innerWidget.options) {
|
|
149857
|
+
innerWidget.options.childFormFlag = widget.id;
|
|
149858
|
+
}
|
|
149859
|
+
return innerWidget;
|
|
149860
|
+
});
|
|
149861
|
+
} else {
|
|
149862
|
+
widget.widgetList = [];
|
|
149863
|
+
}
|
|
149864
|
+
} catch (error2) {
|
|
149865
|
+
console.error(`\u89E3\u6790\u5185\u5C42\u5B50\u8868\u5355 [${innerChildFormKey}] \u5931\u8D25:`, error2);
|
|
149866
|
+
widget.widgetList = [];
|
|
149867
|
+
}
|
|
149868
|
+
} else {
|
|
149869
|
+
widget.widgetList = [];
|
|
149870
|
+
}
|
|
149871
|
+
}
|
|
149872
|
+
parsedWidgets.push(widget);
|
|
149873
|
+
}
|
|
149874
|
+
return parsedWidgets;
|
|
149875
|
+
} catch (error2) {
|
|
149876
|
+
console.error(`\u89E3\u6790\u5B50\u8868\u5355 [${childFormKey}] \u5931\u8D25:`, error2);
|
|
149877
|
+
return [];
|
|
149878
|
+
}
|
|
149879
|
+
},
|
|
149880
|
+
async processChildFormsData(childForms) {
|
|
149881
|
+
var _a2, _b2;
|
|
149882
|
+
const processedData = [];
|
|
149883
|
+
const allFiles = [];
|
|
149884
|
+
for (const childForm of childForms) {
|
|
149885
|
+
if (childForm.type !== "child-form") {
|
|
149886
|
+
continue;
|
|
149887
|
+
}
|
|
149888
|
+
const childFormName = ((_a2 = childForm.options) == null ? void 0 : _a2.childFormName) || "\u672A\u547D\u540D";
|
|
149889
|
+
const childFormKey = (_b2 = childForm.options) == null ? void 0 : _b2.childFormKey;
|
|
149890
|
+
if (!childFormKey) {
|
|
149891
|
+
console.warn("\u5B50\u8868\u5355\u7F3A\u5C11 childFormKey\uFF0C\u8DF3\u8FC7\u5904\u7406");
|
|
149892
|
+
continue;
|
|
149893
|
+
}
|
|
149894
|
+
try {
|
|
149895
|
+
const parsedWidgets = await this.parseCurrentLevelChildForm(childForm);
|
|
149896
|
+
processedData.push({
|
|
149897
|
+
title: childFormName,
|
|
149898
|
+
childFormKey,
|
|
149899
|
+
originalChildForm: childForm,
|
|
149900
|
+
widgetList: parsedWidgets
|
|
149901
|
+
});
|
|
149902
|
+
parsedWidgets.forEach((widget) => {
|
|
149903
|
+
const widgetFiles = this.getWidgetFiles(widget);
|
|
149904
|
+
if (widgetFiles && widgetFiles.length > 0) {
|
|
149905
|
+
const filesWithType = widgetFiles.map((file) => {
|
|
149906
|
+
var _a3;
|
|
149907
|
+
return __spreadProps(__spreadValues({}, file), {
|
|
149908
|
+
typeLabel: ((_a3 = widget.options) == null ? void 0 : _a3.label) || "\u672A\u547D\u540D"
|
|
149909
|
+
});
|
|
149910
|
+
});
|
|
149911
|
+
allFiles.push(...filesWithType);
|
|
149912
|
+
}
|
|
149913
|
+
if (widget.type === "child-form" && widget.widgetList) {
|
|
149914
|
+
widget.widgetList.forEach((innerWidget) => {
|
|
149915
|
+
const innerWidgetFiles = this.getWidgetFiles(innerWidget);
|
|
149916
|
+
if (innerWidgetFiles && innerWidgetFiles.length > 0) {
|
|
149917
|
+
const filesWithType = innerWidgetFiles.map((file) => {
|
|
149918
|
+
var _a3;
|
|
149919
|
+
return __spreadProps(__spreadValues({}, file), {
|
|
149920
|
+
typeLabel: ((_a3 = innerWidget.options) == null ? void 0 : _a3.label) || "\u672A\u547D\u540D"
|
|
149921
|
+
});
|
|
149922
|
+
});
|
|
149923
|
+
allFiles.push(...filesWithType);
|
|
149924
|
+
}
|
|
149925
|
+
});
|
|
149926
|
+
}
|
|
149927
|
+
});
|
|
149928
|
+
} catch (error2) {
|
|
149929
|
+
console.error(`\u5904\u7406\u5B50\u8868\u5355 [${childFormName}] \u5931\u8D25:`, error2);
|
|
149930
|
+
processedData.push({
|
|
149931
|
+
title: childFormName,
|
|
149932
|
+
childFormKey,
|
|
149933
|
+
originalChildForm: childForm,
|
|
149934
|
+
widgetList: []
|
|
149935
|
+
});
|
|
149936
|
+
}
|
|
149937
|
+
}
|
|
149938
|
+
console.log(processedData, "processedData");
|
|
149939
|
+
this.directoryData = processedData;
|
|
149940
|
+
this.allFiles = allFiles;
|
|
149941
|
+
},
|
|
149942
|
+
extractFilesFromWidgets(widgets) {
|
|
149943
|
+
const files = [];
|
|
149944
|
+
const traverse = (widgetList2) => {
|
|
149945
|
+
if (!Array.isArray(widgetList2))
|
|
149946
|
+
return;
|
|
149947
|
+
widgetList2.forEach((widget) => {
|
|
149948
|
+
var _a2, _b2;
|
|
149949
|
+
if (widget.type === "file-upload" || widget.type === "picture-upload") {
|
|
149950
|
+
const fileList = widget.fieldModel || ((_a2 = widget.options) == null ? void 0 : _a2.defaultValue) || ((_b2 = widget.options) == null ? void 0 : _b2.fileList) || widget.value || [];
|
|
149951
|
+
if (Array.isArray(fileList) && fileList.length > 0) {
|
|
149952
|
+
fileList.forEach((file) => {
|
|
149953
|
+
var _a3, _b3;
|
|
149954
|
+
const fileData = {
|
|
149955
|
+
name: file.name || file.file_name || file.fileName || "",
|
|
149956
|
+
url: file.url || file.file_url || file.download_url || ((_a3 = file.response) == null ? void 0 : _a3.url) || "",
|
|
149957
|
+
file_name: file.name || file.file_name || file.fileName || "",
|
|
149958
|
+
file_url: file.url || file.file_url || file.download_url || ((_b3 = file.response) == null ? void 0 : _b3.url) || "",
|
|
149959
|
+
thumbnail: file.thumbnail || file.thumb_url || file.thumbUrl || "",
|
|
149960
|
+
thumb_url: file.thumbnail || file.thumb_url || file.thumbUrl || "",
|
|
149961
|
+
originalFile: file
|
|
149962
|
+
};
|
|
149963
|
+
if (fileData.name || fileData.url) {
|
|
149964
|
+
files.push(fileData);
|
|
149965
|
+
}
|
|
149966
|
+
});
|
|
149967
|
+
}
|
|
149968
|
+
}
|
|
149969
|
+
if (widget.widgetList && Array.isArray(widget.widgetList)) {
|
|
149970
|
+
traverse(widget.widgetList);
|
|
149971
|
+
}
|
|
149972
|
+
if (widget.cols && Array.isArray(widget.cols)) {
|
|
149973
|
+
widget.cols.forEach((col) => {
|
|
149974
|
+
if (col.widgetList) {
|
|
149975
|
+
traverse(col.widgetList);
|
|
149976
|
+
}
|
|
149977
|
+
});
|
|
149978
|
+
}
|
|
149979
|
+
if (widget.rows && Array.isArray(widget.rows)) {
|
|
149980
|
+
widget.rows.forEach((row) => {
|
|
149981
|
+
if (row.cols) {
|
|
149982
|
+
row.cols.forEach((cell) => {
|
|
149983
|
+
if (cell.widgetList) {
|
|
149984
|
+
traverse(cell.widgetList);
|
|
149985
|
+
}
|
|
149986
|
+
});
|
|
149987
|
+
}
|
|
149988
|
+
});
|
|
149989
|
+
}
|
|
149990
|
+
});
|
|
149991
|
+
};
|
|
149992
|
+
traverse(widgets);
|
|
149993
|
+
return files;
|
|
149994
|
+
},
|
|
149995
|
+
getWidgetFiles(widget) {
|
|
149996
|
+
var _a2;
|
|
149997
|
+
const widgetId = widget.id;
|
|
149998
|
+
if (!widgetId || !((_a2 = this.responseData) == null ? void 0 : _a2.biz_meta)) {
|
|
149999
|
+
return [];
|
|
150000
|
+
}
|
|
150001
|
+
const bizMetaItem = this.responseData.biz_meta[widgetId];
|
|
150002
|
+
if (!bizMetaItem) {
|
|
150003
|
+
return [];
|
|
150004
|
+
}
|
|
150005
|
+
const fileList = bizMetaItem.value || [];
|
|
150006
|
+
if (!Array.isArray(fileList)) {
|
|
150007
|
+
return [];
|
|
150008
|
+
}
|
|
150009
|
+
return fileList.map((file) => {
|
|
150010
|
+
var _a3, _b2;
|
|
150011
|
+
return {
|
|
150012
|
+
name: file.name || file.file_name || file.fileName || "",
|
|
150013
|
+
url: file.url || file.file_url || file.download_url || ((_a3 = file.response) == null ? void 0 : _a3.url) || "",
|
|
150014
|
+
file_name: file.name || file.file_name || file.fileName || "",
|
|
150015
|
+
file_url: file.url || file.file_url || file.download_url || ((_b2 = file.response) == null ? void 0 : _b2.url) || "",
|
|
150016
|
+
thumbnail: file.thumbnail || file.thumb_url || file.thumbUrl || "",
|
|
150017
|
+
thumb_url: file.thumbnail || file.thumb_url || file.thumbUrl || "",
|
|
150018
|
+
percentage: file.percentage,
|
|
150019
|
+
size: file.size,
|
|
150020
|
+
status: file.status,
|
|
150021
|
+
uid: file.uid,
|
|
150022
|
+
originalFile: file
|
|
150023
|
+
};
|
|
150024
|
+
}).filter((file) => file.name || file.url);
|
|
150025
|
+
},
|
|
150026
|
+
toggleWidgetExpand(widget) {
|
|
150027
|
+
const widgetId = widget.id;
|
|
150028
|
+
if (widgetId) {
|
|
150029
|
+
this.expandedWidgets[widgetId] = !this.expandedWidgets[widgetId];
|
|
150030
|
+
}
|
|
150031
|
+
},
|
|
150032
|
+
isWidgetExpanded(widget) {
|
|
150033
|
+
const widgetId = widget.id;
|
|
150034
|
+
return widgetId ? !!this.expandedWidgets[widgetId] : false;
|
|
150035
|
+
},
|
|
150036
|
+
async getOSSConfig() {
|
|
150037
|
+
var _a2, _b2;
|
|
150038
|
+
try {
|
|
150039
|
+
this.ossConfigParams = await getOSSConfigWithCache$1();
|
|
150040
|
+
} catch (error2) {
|
|
150041
|
+
console.error("\u83B7\u53D6 OSS \u914D\u7F6E\u5931\u8D25:", error2);
|
|
150042
|
+
(_b2 = (_a2 = this.$message) == null ? void 0 : _a2.error) == null ? void 0 : _b2.call(_a2, "\u83B7\u53D6\u4E0A\u4F20\u914D\u7F6E\u5931\u8D25\uFF0C\u8BF7\u7A0D\u540E\u91CD\u8BD5");
|
|
150043
|
+
}
|
|
150044
|
+
},
|
|
150045
|
+
handleUpload(widget, item) {
|
|
150046
|
+
var _a2, _b2;
|
|
150047
|
+
this.currentUploadWidget = widget;
|
|
150048
|
+
this.currentUploadItem = item;
|
|
150049
|
+
this.uploadFileList = [];
|
|
150050
|
+
this.isModifyMode = false;
|
|
150051
|
+
if (!this.ossConfigParams) {
|
|
150052
|
+
(_b2 = (_a2 = this.$message) == null ? void 0 : _a2.warning) == null ? void 0 : _b2.call(_a2, "\u4E0A\u4F20\u914D\u7F6E\u672A\u5C31\u7EEA\uFF0C\u8BF7\u7A0D\u540E\u91CD\u8BD5");
|
|
150053
|
+
return;
|
|
150054
|
+
}
|
|
150055
|
+
this.uploadVisible = true;
|
|
150056
|
+
},
|
|
150057
|
+
closeUpload() {
|
|
150058
|
+
this.uploadVisible = false;
|
|
150059
|
+
this.uploadFileList = [];
|
|
150060
|
+
this.fileKeyMap = {};
|
|
150061
|
+
this.uploadBtnHidden = false;
|
|
150062
|
+
this.currentUploadWidget = null;
|
|
150063
|
+
this.currentUploadItem = null;
|
|
150064
|
+
this.isModifyMode = false;
|
|
150065
|
+
if (this.$refs.uploadRef) {
|
|
150066
|
+
this.$refs.uploadRef.clearFiles();
|
|
150067
|
+
}
|
|
150068
|
+
},
|
|
150069
|
+
closeViewFiles() {
|
|
150070
|
+
this.viewFilesVisible = false;
|
|
150071
|
+
this.currentViewFiles = [];
|
|
150072
|
+
},
|
|
150073
|
+
isImageFile(url) {
|
|
150074
|
+
if (!url || typeof url !== "string") {
|
|
150075
|
+
return false;
|
|
150076
|
+
}
|
|
150077
|
+
const urlPath = url.split("?")[0];
|
|
150078
|
+
const extension = urlPath.substring(urlPath.lastIndexOf(".") + 1).toLowerCase();
|
|
150079
|
+
const imageExtensions = ["jpg", "jpeg", "png", "gif", "bmp", "webp", "svg", "ico", "tiff", "tif"];
|
|
150080
|
+
return imageExtensions.includes(extension);
|
|
150081
|
+
},
|
|
150082
|
+
openFileUrl(url) {
|
|
150083
|
+
if (url) {
|
|
150084
|
+
window.open(url, "_blank");
|
|
150085
|
+
}
|
|
150086
|
+
},
|
|
150087
|
+
getImagePreviewList() {
|
|
150088
|
+
return this.currentViewFiles.map((file) => file.url || file.file_url).filter((url) => url && this.isImageFile(url));
|
|
150089
|
+
},
|
|
150090
|
+
getImageIndex(file) {
|
|
150091
|
+
const imageFiles = this.currentViewFiles.filter((f) => this.isImageFile(f.url || f.file_url));
|
|
150092
|
+
return imageFiles.findIndex((f) => (f.url || f.file_url) === (file.url || file.file_url));
|
|
150093
|
+
},
|
|
150094
|
+
getImagePreviewListForType(typeGroup) {
|
|
150095
|
+
return typeGroup.map((file) => file.url || file.file_url).filter((url) => url && this.isImageFile(url));
|
|
150096
|
+
},
|
|
150097
|
+
getImageIndexInType(file, typeGroup) {
|
|
150098
|
+
const imageFiles = typeGroup.filter((f) => this.isImageFile(f.url || f.file_url));
|
|
150099
|
+
return imageFiles.findIndex((f) => (f.url || f.file_url) === (file.url || file.file_url));
|
|
150100
|
+
},
|
|
150101
|
+
handleUploadExceed() {
|
|
150102
|
+
var _a2, _b2;
|
|
150103
|
+
let uploadLimit = ((_b2 = (_a2 = this.currentUploadWidget) == null ? void 0 : _a2.options) == null ? void 0 : _b2.limit) || 100;
|
|
150104
|
+
this.$message.warning(this.i18nt("render.hint.uploadExceed").replace("${uploadLimit}", uploadLimit));
|
|
150105
|
+
},
|
|
150106
|
+
handleUploadPreview(file) {
|
|
150107
|
+
this.previewUrl = file.url;
|
|
150108
|
+
this.showPreviewDialogFlag = true;
|
|
150109
|
+
},
|
|
150110
|
+
getFileType(type) {
|
|
150111
|
+
if (!type)
|
|
150112
|
+
return this.fileLists.word;
|
|
150113
|
+
let ext = type.split(".");
|
|
150114
|
+
ext = "." + ext[ext.length - 1];
|
|
150115
|
+
if ([".mp4", ".avi", ".mov", ".rmvb", ".rm", ".flv", ".3gp"].indexOf(ext.toLowerCase()) != -1) {
|
|
150116
|
+
return this.fileLists.video;
|
|
150117
|
+
} else if ([".png", ".jpg", ".jpeg", ".bmp", ".gif", ".webp", ".psd", ".svg", ".tiff"].indexOf(ext.toLowerCase()) != -1) {
|
|
150118
|
+
return type;
|
|
150119
|
+
} else if ([".cda", ".wav", ".mp3", ".wmv", ".flac", ".aac"].indexOf(ext.toLowerCase()) != -1) {
|
|
150120
|
+
return this.fileLists.mp4;
|
|
150121
|
+
} else if ([".pdf", ".ppt", ".pptx", ".pot", ".ppa"].indexOf(ext.toLowerCase()) != -1) {
|
|
150122
|
+
return this.fileLists.ppt;
|
|
150123
|
+
} else if ([".xls", ".xlsx", ".xlsb", ".xlsm", ".xlst"].indexOf(ext.toLowerCase()) != -1) {
|
|
150124
|
+
return this.fileLists.excel;
|
|
150125
|
+
} else if ([".doc", ".docx", ".docm"].indexOf(ext.toLowerCase()) != -1) {
|
|
150126
|
+
return this.fileLists.words;
|
|
150127
|
+
} else {
|
|
150128
|
+
return this.fileLists.word;
|
|
150129
|
+
}
|
|
150130
|
+
},
|
|
150131
|
+
handleBeforeRemove(file, fileList) {
|
|
150132
|
+
return true;
|
|
150133
|
+
},
|
|
150134
|
+
beforeUpload(file) {
|
|
150135
|
+
var _a2, _b2, _c2, _d2, _e, _f2;
|
|
150136
|
+
let fileSizeCheckResult = false;
|
|
150137
|
+
let uploadFileMaxSize = 2048;
|
|
150138
|
+
if (!!((_b2 = (_a2 = this.currentUploadWidget) == null ? void 0 : _a2.options) == null ? void 0 : _b2.fileMaxSize)) {
|
|
150139
|
+
uploadFileMaxSize = this.currentUploadWidget.options.fileMaxSize;
|
|
150140
|
+
}
|
|
150141
|
+
fileSizeCheckResult = file.size / 1024 / 1024 <= uploadFileMaxSize;
|
|
150142
|
+
if (!fileSizeCheckResult) {
|
|
150143
|
+
(_d2 = (_c2 = this.$message) == null ? void 0 : _c2.error) == null ? void 0 : _d2.call(_c2, "\u6587\u4EF6\u5927\u5C0F\u8D85\u8FC7\u9650\u5236: " + uploadFileMaxSize + "MB");
|
|
150144
|
+
return false;
|
|
150145
|
+
}
|
|
150146
|
+
if (!this.ossConfigParams) {
|
|
150147
|
+
(_f2 = (_e = this.$message) == null ? void 0 : _e.error) == null ? void 0 : _f2.call(_e, "\u4E0A\u4F20\u914D\u7F6E\u672A\u5C31\u7EEA");
|
|
150148
|
+
return false;
|
|
150149
|
+
}
|
|
150150
|
+
let random = Math.random().toString(36).substr(-10) + Math.random().toString(36).substr(-5);
|
|
150151
|
+
this.uploadData.policy = this.ossConfigParams.base64policy;
|
|
150152
|
+
this.uploadData.OSSAccessKeyId = this.ossConfigParams.key_id;
|
|
150153
|
+
this.uploadData.signature = this.ossConfigParams.signature;
|
|
150154
|
+
const newFileName = sanitizeFilename(file.name);
|
|
150155
|
+
const newFile = new File([file], newFileName, { type: file.type });
|
|
150156
|
+
const ossKey = "vform/" + random + newFile.name;
|
|
150157
|
+
this.uploadData.key = ossKey;
|
|
150158
|
+
if (file.uid) {
|
|
150159
|
+
this.fileKeyMap[file.uid] = ossKey;
|
|
150160
|
+
}
|
|
150161
|
+
return true;
|
|
150162
|
+
},
|
|
150163
|
+
handleUploadSuccess(response, file, fileList) {
|
|
150164
|
+
var _a2, _b2;
|
|
150165
|
+
if (file.status === "success") {
|
|
150166
|
+
if (fileList.length) {
|
|
150167
|
+
fileList.forEach((item) => {
|
|
150168
|
+
var _a3;
|
|
150169
|
+
if (item.raw && item.raw.name) {
|
|
150170
|
+
const fileUid = item.uid || ((_a3 = item.raw) == null ? void 0 : _a3.uid);
|
|
150171
|
+
const ossKey = this.fileKeyMap[fileUid];
|
|
150172
|
+
if (ossKey) {
|
|
150173
|
+
item.url = "https://ms-oss.yuanjia101.com/" + ossKey;
|
|
150174
|
+
} else {
|
|
150175
|
+
item.url = "https://ms-oss.yuanjia101.com/" + this.uploadData.key;
|
|
150176
|
+
}
|
|
150177
|
+
}
|
|
150178
|
+
});
|
|
150179
|
+
}
|
|
150180
|
+
}
|
|
150181
|
+
this.uploadFileList = deepClone(fileList);
|
|
150182
|
+
const uploadLimit = ((_b2 = (_a2 = this.currentUploadWidget) == null ? void 0 : _a2.options) == null ? void 0 : _b2.limit) || 100;
|
|
150183
|
+
this.uploadBtnHidden = fileList.length >= uploadLimit;
|
|
150184
|
+
},
|
|
150185
|
+
handleUploadError(error2, file, fileList) {
|
|
150186
|
+
var _a2, _b2;
|
|
150187
|
+
console.error("\u6587\u4EF6\u4E0A\u4F20\u5931\u8D25:", error2);
|
|
150188
|
+
(_b2 = (_a2 = this.$message) == null ? void 0 : _a2.error) == null ? void 0 : _b2.call(_a2, "\u6587\u4EF6\u4E0A\u4F20\u5931\u8D25: " + (error2.message || error2));
|
|
150189
|
+
},
|
|
150190
|
+
handleUploadRemove(file, fileList) {
|
|
150191
|
+
var _a2, _b2, _c2;
|
|
150192
|
+
const fileUid = file.uid || ((_a2 = file.raw) == null ? void 0 : _a2.uid);
|
|
150193
|
+
if (fileUid && this.fileKeyMap[fileUid]) {
|
|
150194
|
+
delete this.fileKeyMap[fileUid];
|
|
150195
|
+
}
|
|
150196
|
+
if (fileUid) {
|
|
150197
|
+
const index2 = this.uploadFileList.findIndex((item) => {
|
|
150198
|
+
var _a3;
|
|
150199
|
+
const itemUid = item.uid || ((_a3 = item.raw) == null ? void 0 : _a3.uid);
|
|
150200
|
+
return itemUid === fileUid;
|
|
150201
|
+
});
|
|
150202
|
+
if (index2 > -1) {
|
|
150203
|
+
this.uploadFileList.splice(index2, 1);
|
|
150204
|
+
}
|
|
150205
|
+
} else {
|
|
150206
|
+
const index2 = this.uploadFileList.findIndex((item) => {
|
|
150207
|
+
return item.name === file.name && item.url === file.url;
|
|
150208
|
+
});
|
|
150209
|
+
if (index2 > -1) {
|
|
150210
|
+
this.uploadFileList.splice(index2, 1);
|
|
150211
|
+
}
|
|
150212
|
+
}
|
|
150213
|
+
const uploadLimit = ((_c2 = (_b2 = this.currentUploadWidget) == null ? void 0 : _b2.options) == null ? void 0 : _c2.limit) || 100;
|
|
150214
|
+
this.uploadBtnHidden = this.uploadFileList.length >= uploadLimit;
|
|
150215
|
+
},
|
|
150216
|
+
async handleSaveUpload() {
|
|
150217
|
+
var _a2, _b2, _c2, _d2, _e, _f2, _g2, _h2, _i2, _j, _k2, _l2, _m2, _n2, _o2, _p2, _q, _r2, _s2, _t2;
|
|
150218
|
+
try {
|
|
150219
|
+
this.saving = true;
|
|
150220
|
+
const contactId = (_c2 = (_b2 = (_a2 = this.responseData) == null ? void 0 : _a2.config) == null ? void 0 : _b2.v_form_params) == null ? void 0 : _c2.CrmContactId;
|
|
150221
|
+
const clueId = (_f2 = (_e = (_d2 = this.responseData) == null ? void 0 : _d2.config) == null ? void 0 : _e.v_form_params) == null ? void 0 : _f2.CrmClueId;
|
|
150222
|
+
const childFormKey = (_g2 = this.currentUploadItem) == null ? void 0 : _g2.childFormKey;
|
|
150223
|
+
const childFormName = (_h2 = this.currentUploadItem) == null ? void 0 : _h2.title;
|
|
150224
|
+
const bizMetaId = (_j = (_i2 = this.currentUploadWidget) == null ? void 0 : _i2.options) == null ? void 0 : _j.biz_meta_id;
|
|
150225
|
+
const fileValueList = this.uploadFileList.filter((file) => file.status === "success").map((file) => {
|
|
150226
|
+
var _a3, _b3;
|
|
150227
|
+
return {
|
|
150228
|
+
name: file.name,
|
|
150229
|
+
url: file.url || ((_a3 = file.response) == null ? void 0 : _a3.url) || "",
|
|
150230
|
+
size: file.size || ((_b3 = file.raw) == null ? void 0 : _b3.size) || 0,
|
|
150231
|
+
uid: file.uid,
|
|
150232
|
+
percentage: 100,
|
|
150233
|
+
status: "success"
|
|
150234
|
+
};
|
|
150235
|
+
});
|
|
150236
|
+
const params = {
|
|
150237
|
+
name: childFormName,
|
|
150238
|
+
formset_construct_id: childFormKey,
|
|
150239
|
+
clue_id: clueId,
|
|
150240
|
+
contact_id: contactId,
|
|
150241
|
+
customer_type: 2,
|
|
150242
|
+
form_type: 12,
|
|
150243
|
+
field_value_list: [
|
|
150244
|
+
{
|
|
150245
|
+
name: ((_l2 = (_k2 = this.currentUploadWidget) == null ? void 0 : _k2.options) == null ? void 0 : _l2.label) || "",
|
|
150246
|
+
biz_meta_id: bizMetaId,
|
|
150247
|
+
value: fileValueList,
|
|
150248
|
+
content: JSON.stringify(fileValueList)
|
|
150249
|
+
}
|
|
150250
|
+
]
|
|
150251
|
+
};
|
|
150252
|
+
const token = almLocalStorage.getItem("token");
|
|
150253
|
+
const rToken = almLocalStorage.getItem("rToken");
|
|
150254
|
+
const tokenTime = almLocalStorage.getItem("tokenTime");
|
|
150255
|
+
const headers = {
|
|
150256
|
+
"Content-Type": "application/json"
|
|
150257
|
+
};
|
|
150258
|
+
if (token !== null)
|
|
150259
|
+
headers["Authorization"] = "Bearer " + token;
|
|
150260
|
+
if (!tokenTime && rToken) {
|
|
150261
|
+
headers["X-Authorization"] = "Bearer " + rToken;
|
|
150262
|
+
}
|
|
150263
|
+
const url = commonGETUrlTranslation("formset/concrete_save", {});
|
|
150264
|
+
const postUrl = url.split("?")[0];
|
|
150265
|
+
const response = await axios$1.post(postUrl, params, { headers });
|
|
150266
|
+
if ((_m2 = response == null ? void 0 : response.data) == null ? void 0 : _m2.Succeeded) {
|
|
150267
|
+
(_o2 = (_n2 = this.$message) == null ? void 0 : _n2.success) == null ? void 0 : _o2.call(_n2, "\u4FDD\u5B58\u6210\u529F");
|
|
150268
|
+
this.closeUpload();
|
|
150269
|
+
await this.loadData();
|
|
150270
|
+
} else {
|
|
150271
|
+
(_r2 = (_p2 = this.$message) == null ? void 0 : _p2.error) == null ? void 0 : _r2.call(_p2, "\u4FDD\u5B58\u5931\u8D25: " + (((_q = response == null ? void 0 : response.data) == null ? void 0 : _q.Errors) || "\u672A\u77E5\u9519\u8BEF"));
|
|
150272
|
+
}
|
|
150273
|
+
} catch (error2) {
|
|
150274
|
+
console.error("\u4FDD\u5B58\u6587\u4EF6\u5931\u8D25:", error2);
|
|
150275
|
+
(_t2 = (_s2 = this.$message) == null ? void 0 : _s2.error) == null ? void 0 : _t2.call(_s2, "\u4FDD\u5B58\u6587\u4EF6\u5931\u8D25: " + (error2.message || error2));
|
|
150276
|
+
} finally {
|
|
150277
|
+
this.saving = false;
|
|
150278
|
+
}
|
|
150279
|
+
},
|
|
150280
|
+
handleViewFiles(widget) {
|
|
150281
|
+
var _a2, _b2;
|
|
150282
|
+
const files = this.getWidgetFiles(widget);
|
|
150283
|
+
if (!files || files.length === 0) {
|
|
150284
|
+
(_b2 = (_a2 = this.$message) == null ? void 0 : _a2.warning) == null ? void 0 : _b2.call(_a2, "\u8BE5\u7C7B\u578B\u4E0B\u6CA1\u6709\u6587\u4EF6");
|
|
150285
|
+
return;
|
|
150286
|
+
}
|
|
150287
|
+
this.currentViewFiles = files;
|
|
150288
|
+
console.log(333);
|
|
150289
|
+
this.viewFilesVisible = true;
|
|
150290
|
+
},
|
|
150291
|
+
handleModify(widget, item) {
|
|
150292
|
+
var _a2, _b2, _c2, _d2;
|
|
150293
|
+
const files = this.getWidgetFiles(widget);
|
|
150294
|
+
if (!files || files.length === 0) {
|
|
150295
|
+
(_b2 = (_a2 = this.$message) == null ? void 0 : _a2.warning) == null ? void 0 : _b2.call(_a2, "\u8BE5\u7C7B\u578B\u4E0B\u6CA1\u6709\u6587\u4EF6");
|
|
150296
|
+
return;
|
|
150297
|
+
}
|
|
150298
|
+
this.currentUploadWidget = widget;
|
|
150299
|
+
this.currentUploadItem = item;
|
|
150300
|
+
this.isModifyMode = true;
|
|
150301
|
+
if (!this.ossConfigParams) {
|
|
150302
|
+
(_d2 = (_c2 = this.$message) == null ? void 0 : _c2.warning) == null ? void 0 : _d2.call(_c2, "\u4E0A\u4F20\u914D\u7F6E\u672A\u5C31\u7EEA\uFF0C\u8BF7\u7A0D\u540E\u91CD\u8BD5");
|
|
150303
|
+
return;
|
|
150304
|
+
}
|
|
150305
|
+
this.uploadFileList = files.map((file) => ({
|
|
150306
|
+
name: file.name || file.file_name,
|
|
150307
|
+
url: file.url || file.file_url,
|
|
150308
|
+
size: file.size,
|
|
150309
|
+
uid: file.uid || Date.now() + Math.random(),
|
|
150310
|
+
percentage: 100,
|
|
150311
|
+
status: "success"
|
|
150312
|
+
}));
|
|
150313
|
+
this.uploadVisible = true;
|
|
150314
|
+
},
|
|
150315
|
+
previewFile(file) {
|
|
150316
|
+
var _a2, _b2;
|
|
150317
|
+
const fileUrl = file.url || file.file_url || file.download_url;
|
|
150318
|
+
if (!fileUrl) {
|
|
150319
|
+
(_b2 = (_a2 = this.$message) == null ? void 0 : _a2.warning) == null ? void 0 : _b2.call(_a2, "\u6587\u4EF6\u94FE\u63A5\u4E0D\u5B58\u5728");
|
|
150320
|
+
return;
|
|
150321
|
+
}
|
|
150322
|
+
this.previewFileUrl = fileUrl;
|
|
150323
|
+
this.previewVisible = true;
|
|
150324
|
+
},
|
|
150325
|
+
closePreview() {
|
|
150326
|
+
this.previewVisible = false;
|
|
150327
|
+
this.previewFileUrl = "";
|
|
150328
|
+
},
|
|
150329
|
+
downloadFile(file) {
|
|
150330
|
+
var _a2, _b2;
|
|
150331
|
+
const fileUrl = file.url || file.file_url || file.download_url;
|
|
150332
|
+
if (!fileUrl) {
|
|
150333
|
+
(_b2 = (_a2 = this.$message) == null ? void 0 : _a2.warning) == null ? void 0 : _b2.call(_a2, "\u6587\u4EF6\u94FE\u63A5\u4E0D\u5B58\u5728");
|
|
150334
|
+
return;
|
|
150335
|
+
}
|
|
150336
|
+
const link = document.createElement("a");
|
|
150337
|
+
link.href = fileUrl;
|
|
150338
|
+
link.download = file.name || file.file_name || "download";
|
|
150339
|
+
link.target = "_blank";
|
|
150340
|
+
document.body.appendChild(link);
|
|
150341
|
+
link.click();
|
|
150342
|
+
document.body.removeChild(link);
|
|
150343
|
+
},
|
|
150344
|
+
downloadAll() {
|
|
150345
|
+
var _a2, _b2;
|
|
150346
|
+
if (this.allFiles.length === 0) {
|
|
150347
|
+
(_b2 = (_a2 = this.$message) == null ? void 0 : _a2.warning) == null ? void 0 : _b2.call(_a2, "\u6CA1\u6709\u53EF\u4E0B\u8F7D\u7684\u6587\u4EF6");
|
|
150348
|
+
return;
|
|
150349
|
+
}
|
|
150350
|
+
this.allFiles.forEach((file, index2) => {
|
|
150351
|
+
setTimeout(() => {
|
|
150352
|
+
this.downloadFile(file);
|
|
150353
|
+
}, index2 * 200);
|
|
150354
|
+
});
|
|
150355
|
+
}
|
|
150356
|
+
}
|
|
150357
|
+
};
|
|
150358
|
+
const _hoisted_1$1b = {
|
|
150359
|
+
key: 0,
|
|
150360
|
+
class: "loading-container"
|
|
150361
|
+
};
|
|
150362
|
+
const _hoisted_2$C = {
|
|
150363
|
+
key: 1,
|
|
150364
|
+
class: "empty-container"
|
|
150365
|
+
};
|
|
150366
|
+
const _hoisted_3$r = {
|
|
150367
|
+
key: 2,
|
|
150368
|
+
class: "directory-container"
|
|
150369
|
+
};
|
|
150370
|
+
const _hoisted_4$n = ["onClick"];
|
|
150371
|
+
const _hoisted_5$k = { class: "file-type-title" };
|
|
150372
|
+
const _hoisted_6$i = {
|
|
150373
|
+
key: 0,
|
|
150374
|
+
class: "inner-widget-list"
|
|
150375
|
+
};
|
|
150376
|
+
const _hoisted_7$f = { class: "file-type-header" };
|
|
150377
|
+
const _hoisted_8$d = { class: "file-type-title" };
|
|
150378
|
+
const _hoisted_9$b = {
|
|
150379
|
+
key: 0,
|
|
150380
|
+
class: "file-actions"
|
|
150381
|
+
};
|
|
150382
|
+
const _hoisted_10$9 = {
|
|
150383
|
+
key: 1,
|
|
150384
|
+
class: "file-type-header"
|
|
150385
|
+
};
|
|
150386
|
+
const _hoisted_11$9 = { class: "file-type-title" };
|
|
150387
|
+
const _hoisted_12$7 = {
|
|
150388
|
+
key: 0,
|
|
150389
|
+
class: "file-actions"
|
|
150390
|
+
};
|
|
150391
|
+
const _hoisted_13$6 = { class: "files-header" };
|
|
150392
|
+
const _hoisted_14$5 = {
|
|
150393
|
+
key: 0,
|
|
150394
|
+
class: "loading-container"
|
|
150395
|
+
};
|
|
150396
|
+
const _hoisted_15$3 = {
|
|
150397
|
+
key: 1,
|
|
150398
|
+
class: "empty-container"
|
|
150399
|
+
};
|
|
150400
|
+
const _hoisted_16$3 = {
|
|
150401
|
+
key: 2,
|
|
150402
|
+
class: "files-container"
|
|
150403
|
+
};
|
|
150404
|
+
const _hoisted_17$2 = { class: "file-type-label" };
|
|
150405
|
+
const _hoisted_18$2 = { class: "file-type-files" };
|
|
150406
|
+
const _hoisted_19$1 = ["onClick", "title"];
|
|
150407
|
+
const _hoisted_20 = { class: "file-name" };
|
|
150408
|
+
const _hoisted_21 = { class: "preview-container" };
|
|
150409
|
+
const _hoisted_22 = ["src"];
|
|
150410
|
+
const _hoisted_23 = {
|
|
150411
|
+
key: 1,
|
|
150412
|
+
class: "preview-error"
|
|
150413
|
+
};
|
|
150414
|
+
const _hoisted_24 = { class: "upload-dialog-content" };
|
|
150415
|
+
const _hoisted_25 = ["src"];
|
|
150416
|
+
const _hoisted_26 = { class: "el-upload-list__item-actions" };
|
|
150417
|
+
const _hoisted_27 = { class: "el-upload-list__item-delete" };
|
|
150418
|
+
const _hoisted_28 = {
|
|
150419
|
+
key: 0,
|
|
150420
|
+
class: "el-upload__tip"
|
|
150421
|
+
};
|
|
150422
|
+
const _hoisted_29 = { class: "dialog-footer" };
|
|
150423
|
+
const _hoisted_30 = { class: "view-files-content" };
|
|
150424
|
+
const _hoisted_31 = {
|
|
150425
|
+
key: 0,
|
|
150426
|
+
class: "empty-container"
|
|
150427
|
+
};
|
|
150428
|
+
const _hoisted_32 = {
|
|
150429
|
+
key: 1,
|
|
150430
|
+
class: "view-files-list"
|
|
150431
|
+
};
|
|
150432
|
+
const _hoisted_33 = ["onClick", "title"];
|
|
150433
|
+
const _hoisted_34 = { class: "file-name" };
|
|
150434
|
+
const _hoisted_35 = { key: 0 };
|
|
150435
|
+
const _hoisted_36 = ["src"];
|
|
150436
|
+
function _sfc_render$50(_ctx, _cache, $props, $setup, $data, $options) {
|
|
150437
|
+
const _component_Loading = resolveComponent("Loading");
|
|
150438
|
+
const _component_el_icon = resolveComponent("el-icon");
|
|
150439
|
+
const _component_ArrowDown = resolveComponent("ArrowDown");
|
|
150440
|
+
const _component_ArrowRight = resolveComponent("ArrowRight");
|
|
150441
|
+
const _component_el_button = resolveComponent("el-button");
|
|
150442
|
+
const _component_View = resolveComponent("View");
|
|
150443
|
+
const _component_Edit = resolveComponent("Edit");
|
|
150444
|
+
const _component_Upload = resolveComponent("Upload");
|
|
150445
|
+
const _component_ItemWrapper = resolveComponent("ItemWrapper");
|
|
150446
|
+
const _component_el_tab_pane = resolveComponent("el-tab-pane");
|
|
150447
|
+
const _component_Download = resolveComponent("Download");
|
|
150448
|
+
const _component_el_image = resolveComponent("el-image");
|
|
150449
|
+
const _component_Document = resolveComponent("Document");
|
|
150450
|
+
const _component_el_tabs = resolveComponent("el-tabs");
|
|
150451
|
+
const _component_el_dialog = resolveComponent("el-dialog");
|
|
150452
|
+
const _component_svg_icon = resolveComponent("svg-icon");
|
|
150453
|
+
const _component_el_upload = resolveComponent("el-upload");
|
|
150454
|
+
const _component_form_item_wrapper = resolveComponent("form-item-wrapper");
|
|
150455
|
+
const _directive_drag = resolveDirective("drag");
|
|
150456
|
+
return openBlock(), createBlock(_component_form_item_wrapper, {
|
|
150457
|
+
designer: $props.designer,
|
|
150458
|
+
field: $props.field,
|
|
150459
|
+
rules: _ctx.rules,
|
|
150460
|
+
"design-state": $props.designState,
|
|
150461
|
+
"parent-widget": $props.parentWidget,
|
|
150462
|
+
"parent-list": $props.parentList,
|
|
150463
|
+
"index-of-parent-list": $props.indexOfParentList,
|
|
150464
|
+
"sub-form-row-index": $props.subFormRowIndex,
|
|
150465
|
+
"sub-form-col-index": $props.subFormColIndex,
|
|
150466
|
+
"sub-form-row-id": $props.subFormRowId
|
|
150467
|
+
}, {
|
|
150468
|
+
default: withCtx(() => [
|
|
150469
|
+
createElementVNode("div", {
|
|
150470
|
+
class: normalizeClass$1(["electronic-case-widget", { "read-mode": _ctx.isReadMode }])
|
|
150471
|
+
}, [
|
|
150472
|
+
createVNode(_component_el_tabs, {
|
|
150473
|
+
modelValue: $data.activeTab,
|
|
150474
|
+
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => $data.activeTab = $event),
|
|
150475
|
+
class: "electronic-case-tabs"
|
|
150476
|
+
}, {
|
|
150477
|
+
default: withCtx(() => [
|
|
150478
|
+
createVNode(_component_el_tab_pane, {
|
|
150479
|
+
label: "\u76EE\u5F55",
|
|
150480
|
+
name: "directory"
|
|
150481
|
+
}, {
|
|
150482
|
+
default: withCtx(() => [
|
|
150483
|
+
$data.loading ? (openBlock(), createElementBlock("div", _hoisted_1$1b, [
|
|
150484
|
+
createVNode(_component_el_icon, { class: "is-loading" }, {
|
|
150485
|
+
default: withCtx(() => [
|
|
150486
|
+
createVNode(_component_Loading)
|
|
150487
|
+
]),
|
|
150488
|
+
_: 1
|
|
150489
|
+
}),
|
|
150490
|
+
_cache[5] || (_cache[5] = createElementVNode("span", null, "\u52A0\u8F7D\u4E2D...", -1))
|
|
150491
|
+
])) : $data.directoryData.length === 0 ? (openBlock(), createElementBlock("div", _hoisted_2$C, " \u6682\u65E0\u6570\u636E ")) : (openBlock(), createElementBlock("div", _hoisted_3$r, [
|
|
150492
|
+
(openBlock(true), createElementBlock(Fragment, null, renderList($data.directoryData, (item, itemIndex) => {
|
|
150493
|
+
return openBlock(), createBlock(_component_ItemWrapper, {
|
|
150494
|
+
key: itemIndex,
|
|
150495
|
+
title: item.title,
|
|
150496
|
+
"has-icon": false,
|
|
150497
|
+
class: "file-type-group"
|
|
150498
|
+
}, {
|
|
150499
|
+
content: withCtx(() => [
|
|
150500
|
+
(openBlock(true), createElementBlock(Fragment, null, renderList(item.widgetList || [], (widget, widgetIndex) => {
|
|
150501
|
+
var _a2, _b2;
|
|
150502
|
+
return openBlock(), createElementBlock("div", {
|
|
150503
|
+
key: widgetIndex,
|
|
150504
|
+
class: normalizeClass$1(["file-type-item", { "child-form-item": widget.type === "child-form" }])
|
|
150505
|
+
}, [
|
|
150506
|
+
widget.type === "child-form" ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
|
|
150507
|
+
createElementVNode("div", {
|
|
150508
|
+
class: "file-type-header expandable-header",
|
|
150509
|
+
onClick: ($event) => $options.toggleWidgetExpand(widget)
|
|
150510
|
+
}, [
|
|
150511
|
+
createElementVNode("span", _hoisted_5$k, toDisplayString(widgetIndex + 1) + "\u3001" + toDisplayString(((_a2 = widget.options) == null ? void 0 : _a2.childFormName) || "\u672A\u547D\u540D"), 1),
|
|
150512
|
+
createVNode(_component_el_button, {
|
|
150513
|
+
class: "expand-toggle-btn",
|
|
150514
|
+
type: "primary",
|
|
150515
|
+
size: "large",
|
|
150516
|
+
link: ""
|
|
150517
|
+
}, {
|
|
150518
|
+
default: withCtx(() => [
|
|
150519
|
+
createVNode(_component_el_icon, null, {
|
|
150520
|
+
default: withCtx(() => [
|
|
150521
|
+
$options.isWidgetExpanded(widget) ? (openBlock(), createBlock(_component_ArrowDown, { key: 0 })) : (openBlock(), createBlock(_component_ArrowRight, { key: 1 }))
|
|
150522
|
+
]),
|
|
150523
|
+
_: 2
|
|
150524
|
+
}, 1024),
|
|
150525
|
+
createTextVNode(" \xA0 " + toDisplayString($options.isWidgetExpanded(widget) ? "\u6536\u8D77" : "\u5C55\u5F00"), 1)
|
|
150526
|
+
]),
|
|
150527
|
+
_: 2
|
|
150528
|
+
}, 1024)
|
|
150529
|
+
], 8, _hoisted_4$n),
|
|
150530
|
+
$options.isWidgetExpanded(widget) && widget.widgetList ? (openBlock(), createElementBlock("div", _hoisted_6$i, [
|
|
150531
|
+
(openBlock(true), createElementBlock(Fragment, null, renderList(widget.widgetList, (innerWidget, innerIndex) => {
|
|
150532
|
+
var _a3;
|
|
150533
|
+
return openBlock(), createElementBlock("div", {
|
|
150534
|
+
key: innerIndex,
|
|
150535
|
+
class: "file-type-item inner-item"
|
|
150536
|
+
}, [
|
|
150537
|
+
createElementVNode("div", _hoisted_7$f, [
|
|
150538
|
+
createElementVNode("span", _hoisted_8$d, toDisplayString((_a3 = innerWidget.options) == null ? void 0 : _a3.label), 1),
|
|
150539
|
+
$options.getWidgetFiles(innerWidget).length > 0 ? (openBlock(), createElementBlock("div", _hoisted_9$b, [
|
|
150540
|
+
createVNode(_component_el_button, {
|
|
150541
|
+
type: "primary",
|
|
150542
|
+
size: "small",
|
|
150543
|
+
round: "",
|
|
150544
|
+
plain: "",
|
|
150545
|
+
onClick: ($event) => $options.handleViewFiles(innerWidget)
|
|
150546
|
+
}, {
|
|
150547
|
+
default: withCtx(() => [
|
|
150548
|
+
createVNode(_component_el_icon, null, {
|
|
150549
|
+
default: withCtx(() => [
|
|
150550
|
+
createVNode(_component_View)
|
|
150551
|
+
]),
|
|
150552
|
+
_: 1
|
|
150553
|
+
}),
|
|
150554
|
+
_cache[6] || (_cache[6] = createTextVNode(" \u67E5\u770B ", -1))
|
|
150555
|
+
]),
|
|
150556
|
+
_: 2,
|
|
150557
|
+
__: [6]
|
|
150558
|
+
}, 1032, ["onClick"]),
|
|
150559
|
+
createVNode(_component_el_button, {
|
|
150560
|
+
type: "primary",
|
|
150561
|
+
size: "small",
|
|
150562
|
+
round: "",
|
|
150563
|
+
plain: "",
|
|
150564
|
+
onClick: ($event) => $options.handleModify(innerWidget, item)
|
|
150565
|
+
}, {
|
|
150566
|
+
default: withCtx(() => [
|
|
150567
|
+
createVNode(_component_el_icon, null, {
|
|
150568
|
+
default: withCtx(() => [
|
|
150569
|
+
createVNode(_component_Edit)
|
|
150570
|
+
]),
|
|
150571
|
+
_: 1
|
|
150572
|
+
}),
|
|
150573
|
+
_cache[7] || (_cache[7] = createTextVNode(" \u4FEE\u6539 ", -1))
|
|
150574
|
+
]),
|
|
150575
|
+
_: 2,
|
|
150576
|
+
__: [7]
|
|
150577
|
+
}, 1032, ["onClick"])
|
|
150578
|
+
])) : (openBlock(), createBlock(_component_el_button, {
|
|
150579
|
+
key: 1,
|
|
150580
|
+
class: "upload-btn",
|
|
150581
|
+
type: "primary",
|
|
150582
|
+
size: "small",
|
|
150583
|
+
round: "",
|
|
150584
|
+
plain: "",
|
|
150585
|
+
onClick: ($event) => $options.handleUpload(innerWidget, item)
|
|
150586
|
+
}, {
|
|
150587
|
+
default: withCtx(() => [
|
|
150588
|
+
createVNode(_component_el_icon, null, {
|
|
150589
|
+
default: withCtx(() => [
|
|
150590
|
+
createVNode(_component_Upload)
|
|
150591
|
+
]),
|
|
150592
|
+
_: 1
|
|
150593
|
+
}),
|
|
150594
|
+
_cache[8] || (_cache[8] = createTextVNode(" \u4E0A\u4F20 ", -1))
|
|
150595
|
+
]),
|
|
150596
|
+
_: 2,
|
|
150597
|
+
__: [8]
|
|
150598
|
+
}, 1032, ["onClick"]))
|
|
150599
|
+
])
|
|
150600
|
+
]);
|
|
150601
|
+
}), 128))
|
|
150602
|
+
])) : createCommentVNode("", true)
|
|
150603
|
+
], 64)) : (openBlock(), createElementBlock("div", _hoisted_10$9, [
|
|
150604
|
+
createElementVNode("span", _hoisted_11$9, toDisplayString(widgetIndex + 1) + "\u3001" + toDisplayString((_b2 = widget.options) == null ? void 0 : _b2.label), 1),
|
|
150605
|
+
$options.getWidgetFiles(widget).length > 0 ? (openBlock(), createElementBlock("div", _hoisted_12$7, [
|
|
150606
|
+
createVNode(_component_el_button, {
|
|
150607
|
+
type: "primary",
|
|
150608
|
+
size: "small",
|
|
150609
|
+
round: "",
|
|
150610
|
+
plain: "",
|
|
150611
|
+
onClick: ($event) => $options.handleViewFiles(widget)
|
|
150612
|
+
}, {
|
|
150613
|
+
default: withCtx(() => [
|
|
150614
|
+
createVNode(_component_el_icon, null, {
|
|
150615
|
+
default: withCtx(() => [
|
|
150616
|
+
createVNode(_component_View)
|
|
150617
|
+
]),
|
|
150618
|
+
_: 1
|
|
150619
|
+
}),
|
|
150620
|
+
_cache[9] || (_cache[9] = createTextVNode(" \u67E5\u770B ", -1))
|
|
150621
|
+
]),
|
|
150622
|
+
_: 2,
|
|
150623
|
+
__: [9]
|
|
150624
|
+
}, 1032, ["onClick"]),
|
|
150625
|
+
createVNode(_component_el_button, {
|
|
150626
|
+
type: "primary",
|
|
150627
|
+
size: "small",
|
|
150628
|
+
round: "",
|
|
150629
|
+
plain: "",
|
|
150630
|
+
onClick: ($event) => $options.handleModify(widget, item)
|
|
150631
|
+
}, {
|
|
150632
|
+
default: withCtx(() => [
|
|
150633
|
+
createVNode(_component_el_icon, null, {
|
|
150634
|
+
default: withCtx(() => [
|
|
150635
|
+
createVNode(_component_Edit)
|
|
150636
|
+
]),
|
|
150637
|
+
_: 1
|
|
150638
|
+
}),
|
|
150639
|
+
_cache[10] || (_cache[10] = createTextVNode(" \u4FEE\u6539 ", -1))
|
|
150640
|
+
]),
|
|
150641
|
+
_: 2,
|
|
150642
|
+
__: [10]
|
|
150643
|
+
}, 1032, ["onClick"])
|
|
150644
|
+
])) : (openBlock(), createBlock(_component_el_button, {
|
|
150645
|
+
key: 1,
|
|
150646
|
+
class: "upload-btn",
|
|
150647
|
+
type: "primary",
|
|
150648
|
+
size: "small",
|
|
150649
|
+
round: "",
|
|
150650
|
+
plain: "",
|
|
150651
|
+
onClick: ($event) => $options.handleUpload(widget, item)
|
|
150652
|
+
}, {
|
|
150653
|
+
default: withCtx(() => [
|
|
150654
|
+
createVNode(_component_el_icon, null, {
|
|
150655
|
+
default: withCtx(() => [
|
|
150656
|
+
createVNode(_component_Upload)
|
|
150657
|
+
]),
|
|
150658
|
+
_: 1
|
|
150659
|
+
}),
|
|
150660
|
+
_cache[11] || (_cache[11] = createTextVNode(" \u4E0A\u4F20 ", -1))
|
|
150661
|
+
]),
|
|
150662
|
+
_: 2,
|
|
150663
|
+
__: [11]
|
|
150664
|
+
}, 1032, ["onClick"]))
|
|
150665
|
+
]))
|
|
150666
|
+
], 2);
|
|
150667
|
+
}), 128))
|
|
150668
|
+
]),
|
|
150669
|
+
_: 2
|
|
150670
|
+
}, 1032, ["title"]);
|
|
150671
|
+
}), 128))
|
|
150672
|
+
]))
|
|
150673
|
+
]),
|
|
150674
|
+
_: 1
|
|
150675
|
+
}),
|
|
150676
|
+
createVNode(_component_el_tab_pane, {
|
|
150677
|
+
label: "\u6240\u6709\u4E0A\u4F20\u6587\u4EF6",
|
|
150678
|
+
name: "files"
|
|
150679
|
+
}, {
|
|
150680
|
+
default: withCtx(() => [
|
|
150681
|
+
createElementVNode("div", _hoisted_13$6, [
|
|
150682
|
+
createVNode(_component_el_button, {
|
|
150683
|
+
type: "primary",
|
|
150684
|
+
onClick: $options.downloadAll
|
|
150685
|
+
}, {
|
|
150686
|
+
default: withCtx(() => [
|
|
150687
|
+
createVNode(_component_el_icon, null, {
|
|
150688
|
+
default: withCtx(() => [
|
|
150689
|
+
createVNode(_component_Download)
|
|
150690
|
+
]),
|
|
150691
|
+
_: 1
|
|
150692
|
+
}),
|
|
150693
|
+
_cache[12] || (_cache[12] = createTextVNode(" \u4E00\u952E\u4E0B\u8F7D ", -1))
|
|
150694
|
+
]),
|
|
150695
|
+
_: 1,
|
|
150696
|
+
__: [12]
|
|
150697
|
+
}, 8, ["onClick"])
|
|
150698
|
+
]),
|
|
150699
|
+
$data.loading ? (openBlock(), createElementBlock("div", _hoisted_14$5, [
|
|
150700
|
+
createVNode(_component_el_icon, { class: "is-loading" }, {
|
|
150701
|
+
default: withCtx(() => [
|
|
150702
|
+
createVNode(_component_Loading)
|
|
150703
|
+
]),
|
|
150704
|
+
_: 1
|
|
150705
|
+
}),
|
|
150706
|
+
_cache[13] || (_cache[13] = createElementVNode("span", null, "\u52A0\u8F7D\u4E2D...", -1))
|
|
150707
|
+
])) : $data.allFiles.length === 0 ? (openBlock(), createElementBlock("div", _hoisted_15$3, " \u6682\u65E0\u6587\u4EF6 ")) : (openBlock(), createElementBlock("div", _hoisted_16$3, [
|
|
150708
|
+
(openBlock(true), createElementBlock(Fragment, null, renderList($options.groupedFilesByType, (typeGroup, typeLabel) => {
|
|
150709
|
+
return openBlock(), createElementBlock("div", {
|
|
150710
|
+
key: typeLabel,
|
|
150711
|
+
class: "file-type-group-item"
|
|
150712
|
+
}, [
|
|
150713
|
+
createElementVNode("div", _hoisted_17$2, toDisplayString(typeLabel), 1),
|
|
150714
|
+
createElementVNode("div", _hoisted_18$2, [
|
|
150715
|
+
(openBlock(true), createElementBlock(Fragment, null, renderList(typeGroup, (file, index2) => {
|
|
150716
|
+
return openBlock(), createElementBlock(Fragment, { key: index2 }, [
|
|
150717
|
+
$options.isImageFile(file.url || file.file_url) ? (openBlock(), createBlock(_component_el_image, {
|
|
150718
|
+
key: 0,
|
|
150719
|
+
class: "view-image-item",
|
|
150720
|
+
src: file.url || file.file_url,
|
|
150721
|
+
"preview-src-list": $options.getImagePreviewListForType(typeGroup),
|
|
150722
|
+
"initial-index": $options.getImageIndexInType(file, typeGroup),
|
|
150723
|
+
fit: "cover",
|
|
150724
|
+
style: { "width": "200px", "height": "200px", "margin": "8px" }
|
|
150725
|
+
}, null, 8, ["src", "preview-src-list", "initial-index"])) : (openBlock(), createElementBlock("div", {
|
|
150726
|
+
key: 1,
|
|
150727
|
+
class: "view-file-item",
|
|
150728
|
+
onClick: ($event) => $options.openFileUrl(file.url || file.file_url),
|
|
150729
|
+
title: file.name || file.file_name || "\u70B9\u51FB\u9884\u89C8"
|
|
150730
|
+
}, [
|
|
150731
|
+
createVNode(_component_el_icon, { class: "file-icon" }, {
|
|
150732
|
+
default: withCtx(() => [
|
|
150733
|
+
createVNode(_component_Document)
|
|
150734
|
+
]),
|
|
150735
|
+
_: 1
|
|
150736
|
+
}),
|
|
150737
|
+
createElementVNode("span", _hoisted_20, toDisplayString(file.name || file.file_name || `\u6587\u4EF6 ${index2 + 1}`), 1)
|
|
150738
|
+
], 8, _hoisted_19$1))
|
|
150739
|
+
], 64);
|
|
150740
|
+
}), 128))
|
|
150741
|
+
])
|
|
150742
|
+
]);
|
|
150743
|
+
}), 128))
|
|
150744
|
+
]))
|
|
150745
|
+
]),
|
|
150746
|
+
_: 1
|
|
150747
|
+
})
|
|
150748
|
+
]),
|
|
150749
|
+
_: 1
|
|
150750
|
+
}, 8, ["modelValue"]),
|
|
150751
|
+
createVNode(_component_el_dialog, {
|
|
150752
|
+
modelValue: $data.previewVisible,
|
|
150753
|
+
"onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) => $data.previewVisible = $event),
|
|
150754
|
+
title: "\u6587\u4EF6\u9884\u89C8",
|
|
150755
|
+
width: "80%",
|
|
150756
|
+
"before-close": $options.closePreview
|
|
150757
|
+
}, {
|
|
150758
|
+
default: withCtx(() => [
|
|
150759
|
+
createElementVNode("div", _hoisted_21, [
|
|
150760
|
+
$data.previewFileUrl ? (openBlock(), createElementBlock("iframe", {
|
|
150761
|
+
key: 0,
|
|
150762
|
+
src: $data.previewFileUrl,
|
|
150763
|
+
class: "preview-iframe"
|
|
150764
|
+
}, null, 8, _hoisted_22)) : (openBlock(), createElementBlock("div", _hoisted_23, "\u65E0\u6CD5\u9884\u89C8\u6B64\u6587\u4EF6"))
|
|
150765
|
+
])
|
|
150766
|
+
]),
|
|
150767
|
+
_: 1
|
|
150768
|
+
}, 8, ["modelValue", "before-close"]),
|
|
150769
|
+
createVNode(_component_el_dialog, {
|
|
150770
|
+
modelValue: $data.uploadVisible,
|
|
150771
|
+
"onUpdate:modelValue": _cache[2] || (_cache[2] = ($event) => $data.uploadVisible = $event),
|
|
150772
|
+
title: $data.isModifyMode ? "\u4FEE\u6539\u6587\u4EF6" : "\u4E0A\u4F20\u6587\u4EF6",
|
|
150773
|
+
width: "800px",
|
|
150774
|
+
"before-close": $options.closeUpload
|
|
150775
|
+
}, {
|
|
150776
|
+
footer: withCtx(() => [
|
|
150777
|
+
createElementVNode("span", _hoisted_29, [
|
|
150778
|
+
createVNode(_component_el_button, { onClick: $options.closeUpload }, {
|
|
150779
|
+
default: withCtx(() => _cache[16] || (_cache[16] = [
|
|
150780
|
+
createTextVNode("\u53D6\u6D88", -1)
|
|
150781
|
+
])),
|
|
150782
|
+
_: 1,
|
|
150783
|
+
__: [16]
|
|
150784
|
+
}, 8, ["onClick"]),
|
|
150785
|
+
createVNode(_component_el_button, {
|
|
150786
|
+
type: "primary",
|
|
150787
|
+
onClick: $options.handleSaveUpload,
|
|
150788
|
+
loading: $data.saving
|
|
150789
|
+
}, {
|
|
150790
|
+
default: withCtx(() => _cache[17] || (_cache[17] = [
|
|
150791
|
+
createTextVNode(" \u4FDD\u5B58 ", -1)
|
|
150792
|
+
])),
|
|
150793
|
+
_: 1,
|
|
150794
|
+
__: [17]
|
|
150795
|
+
}, 8, ["onClick", "loading"])
|
|
150796
|
+
])
|
|
150797
|
+
]),
|
|
150798
|
+
default: withCtx(() => {
|
|
150799
|
+
var _a2, _b2;
|
|
150800
|
+
return [
|
|
150801
|
+
createElementVNode("div", _hoisted_24, [
|
|
150802
|
+
createVNode(_component_el_upload, {
|
|
150803
|
+
ref: "uploadRef",
|
|
150804
|
+
action: $data.uploadAction,
|
|
150805
|
+
data: $data.uploadData,
|
|
150806
|
+
"file-list": $data.uploadFileList,
|
|
150807
|
+
multiple: true,
|
|
150808
|
+
"show-file-list": true,
|
|
150809
|
+
"list-type": "picture-card",
|
|
150810
|
+
class: normalizeClass$1({ hideUploadDiv: $data.uploadBtnHidden }),
|
|
150811
|
+
limit: ((_b2 = (_a2 = $data.currentUploadWidget) == null ? void 0 : _a2.options) == null ? void 0 : _b2.limit) || 100,
|
|
150812
|
+
"on-exceed": $options.handleUploadExceed,
|
|
150813
|
+
"on-preview": $options.handleUploadPreview,
|
|
150814
|
+
"before-upload": $options.beforeUpload,
|
|
150815
|
+
"on-success": $options.handleUploadSuccess,
|
|
150816
|
+
"on-error": $options.handleUploadError,
|
|
150817
|
+
"before-remove": $options.handleBeforeRemove
|
|
150818
|
+
}, {
|
|
150819
|
+
file: withCtx(({ file }) => [
|
|
150820
|
+
createElementVNode("div", null, [
|
|
150821
|
+
createElementVNode("img", {
|
|
150822
|
+
class: "el-upload-list__item-thumbnail",
|
|
150823
|
+
src: $options.getFileType(file.url),
|
|
150824
|
+
alt: ""
|
|
150825
|
+
}, null, 8, _hoisted_25),
|
|
150826
|
+
createElementVNode("span", _hoisted_26, [
|
|
150827
|
+
createElementVNode("span", _hoisted_27, [
|
|
150828
|
+
createVNode(_component_svg_icon, {
|
|
150829
|
+
onClick: ($event) => $options.handleUploadRemove(file, $data.uploadFileList),
|
|
150830
|
+
"icon-class": "el-delete"
|
|
150831
|
+
}, null, 8, ["onClick"]),
|
|
150832
|
+
_cache[14] || (_cache[14] = createElementVNode("i", { class: "el-icon-delete avatar-uploader-icon" }, null, -1))
|
|
150833
|
+
])
|
|
150834
|
+
])
|
|
150835
|
+
])
|
|
150836
|
+
]),
|
|
150837
|
+
tip: withCtx(() => {
|
|
150838
|
+
var _a3, _b3;
|
|
150839
|
+
return [
|
|
150840
|
+
((_b3 = (_a3 = $data.currentUploadWidget) == null ? void 0 : _a3.options) == null ? void 0 : _b3.uploadTip) ? (openBlock(), createElementBlock("div", _hoisted_28, toDisplayString($data.currentUploadWidget.options.uploadTip), 1)) : createCommentVNode("", true)
|
|
150841
|
+
];
|
|
150842
|
+
}),
|
|
150843
|
+
default: withCtx(() => [
|
|
150844
|
+
createVNode(_component_svg_icon, { "icon-class": "el-plus" }),
|
|
150845
|
+
_cache[15] || (_cache[15] = createElementVNode("i", { class: "el-icon-plus avatar-uploader-icon" }, null, -1))
|
|
150846
|
+
]),
|
|
150847
|
+
_: 1
|
|
150848
|
+
}, 8, ["action", "data", "file-list", "class", "limit", "on-exceed", "on-preview", "before-upload", "on-success", "on-error", "before-remove"])
|
|
150849
|
+
])
|
|
150850
|
+
];
|
|
150851
|
+
}),
|
|
150852
|
+
_: 1
|
|
150853
|
+
}, 8, ["modelValue", "title", "before-close"]),
|
|
150854
|
+
createVNode(_component_el_dialog, {
|
|
150855
|
+
modelValue: $data.viewFilesVisible,
|
|
150856
|
+
"onUpdate:modelValue": _cache[3] || (_cache[3] = ($event) => $data.viewFilesVisible = $event),
|
|
150857
|
+
title: "\u67E5\u770B\u6587\u4EF6",
|
|
150858
|
+
width: "800px",
|
|
150859
|
+
"before-close": $options.closeViewFiles
|
|
150860
|
+
}, {
|
|
150861
|
+
default: withCtx(() => [
|
|
150862
|
+
createElementVNode("div", _hoisted_30, [
|
|
150863
|
+
$data.currentViewFiles.length === 0 ? (openBlock(), createElementBlock("div", _hoisted_31, " \u6682\u65E0\u6587\u4EF6 ")) : (openBlock(), createElementBlock("div", _hoisted_32, [
|
|
150864
|
+
(openBlock(true), createElementBlock(Fragment, null, renderList($data.currentViewFiles, (file, index2) => {
|
|
150865
|
+
return openBlock(), createElementBlock(Fragment, { key: index2 }, [
|
|
150866
|
+
$options.isImageFile(file.url || file.file_url) ? (openBlock(), createBlock(_component_el_image, {
|
|
150867
|
+
key: 0,
|
|
150868
|
+
class: "view-image-item",
|
|
150869
|
+
src: file.url || file.file_url,
|
|
150870
|
+
"preview-src-list": $options.getImagePreviewList(),
|
|
150871
|
+
"initial-index": $options.getImageIndex(file),
|
|
150872
|
+
fit: "cover",
|
|
150873
|
+
style: { "width": "200px", "height": "200px", "margin": "8px" }
|
|
150874
|
+
}, null, 8, ["src", "preview-src-list", "initial-index"])) : (openBlock(), createElementBlock("div", {
|
|
150875
|
+
key: 1,
|
|
150876
|
+
class: "view-file-item",
|
|
150877
|
+
onClick: ($event) => $options.openFileUrl(file.url || file.file_url),
|
|
150878
|
+
title: file.name || file.file_name || "\u70B9\u51FB\u9884\u89C8"
|
|
150879
|
+
}, [
|
|
150880
|
+
createVNode(_component_el_icon, { class: "file-icon" }, {
|
|
150881
|
+
default: withCtx(() => [
|
|
150882
|
+
createVNode(_component_Document)
|
|
150883
|
+
]),
|
|
150884
|
+
_: 1
|
|
150885
|
+
}),
|
|
150886
|
+
createElementVNode("span", _hoisted_34, toDisplayString(file.name || file.file_name || `\u6587\u4EF6 ${index2 + 1}`), 1)
|
|
150887
|
+
], 8, _hoisted_33))
|
|
150888
|
+
], 64);
|
|
150889
|
+
}), 128))
|
|
150890
|
+
]))
|
|
150891
|
+
])
|
|
150892
|
+
]),
|
|
150893
|
+
_: 1
|
|
150894
|
+
}, 8, ["modelValue", "before-close"]),
|
|
150895
|
+
$data.showPreviewDialogFlag ? withDirectives((openBlock(), createElementBlock("div", _hoisted_35, [
|
|
150896
|
+
createVNode(_component_el_dialog, {
|
|
150897
|
+
title: "",
|
|
150898
|
+
modelValue: $data.showPreviewDialogFlag,
|
|
150899
|
+
"onUpdate:modelValue": _cache[4] || (_cache[4] = ($event) => $data.showPreviewDialogFlag = $event),
|
|
150900
|
+
"append-to-body": "",
|
|
150901
|
+
width: "60%",
|
|
150902
|
+
"show-close": true,
|
|
150903
|
+
"custom-class": "drag-dialog small-padding-dialog",
|
|
150904
|
+
"close-on-click-modal": true,
|
|
150905
|
+
"close-on-press-escape": true,
|
|
150906
|
+
"destroy-on-close": true
|
|
150907
|
+
}, {
|
|
150908
|
+
default: withCtx(() => [
|
|
150909
|
+
createElementVNode("img", {
|
|
150910
|
+
src: $data.previewUrl,
|
|
150911
|
+
style: { "width": "100%" },
|
|
150912
|
+
alt: ""
|
|
150913
|
+
}, null, 8, _hoisted_36)
|
|
150914
|
+
]),
|
|
150915
|
+
_: 1
|
|
150916
|
+
}, 8, ["modelValue"])
|
|
150917
|
+
])), [
|
|
150918
|
+
[_directive_drag, [".drag-dialog.el-dialog", ".drag-dialog .el-dialog__header"]]
|
|
150919
|
+
]) : createCommentVNode("", true)
|
|
150920
|
+
], 2)
|
|
150921
|
+
]),
|
|
150922
|
+
_: 1
|
|
150923
|
+
}, 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"]);
|
|
150924
|
+
}
|
|
150925
|
+
var electronicCaseWidget = /* @__PURE__ */ _export_sfc(_sfc_main$50, [["render", _sfc_render$50], ["__scopeId", "data-v-83c0a086"]]);
|
|
150926
|
+
var __glob_0_9$3 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
150927
|
+
__proto__: null,
|
|
150928
|
+
"default": electronicCaseWidget
|
|
150929
|
+
}, Symbol.toStringTag, { value: "Module" }));
|
|
149533
150930
|
class Stack {
|
|
149534
150931
|
constructor(p5, stack, state, reducePos, pos, score2, buffer, bufferBase, curContext, lookAhead = 0, parent) {
|
|
149535
150932
|
this.p = p5;
|
|
@@ -151834,7 +153231,7 @@ function _sfc_render$4$(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
151834
153231
|
}, 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"]);
|
|
151835
153232
|
}
|
|
151836
153233
|
var fileUploadWidget = /* @__PURE__ */ _export_sfc(_sfc_main$4$, [["render", _sfc_render$4$], ["__scopeId", "data-v-4dfd5944"]]);
|
|
151837
|
-
var
|
|
153234
|
+
var __glob_0_10$3 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
151838
153235
|
__proto__: null,
|
|
151839
153236
|
"default": fileUploadWidget
|
|
151840
153237
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
@@ -151923,7 +153320,7 @@ function _sfc_render$4_(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
151923
153320
|
}, 8, ["designer", "field", "design-state", "parent-widget", "parent-list", "index-of-parent-list", "sub-form-row-index", "sub-form-col-index", "sub-form-row-id"]);
|
|
151924
153321
|
}
|
|
151925
153322
|
var htmlTextWidget = /* @__PURE__ */ _export_sfc(_sfc_main$4_, [["render", _sfc_render$4_], ["__scopeId", "data-v-56dd7711"]]);
|
|
151926
|
-
var
|
|
153323
|
+
var __glob_0_12$3 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
151927
153324
|
__proto__: null,
|
|
151928
153325
|
"default": htmlTextWidget
|
|
151929
153326
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
@@ -152092,7 +153489,7 @@ function _sfc_render$4Z(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
152092
153489
|
}, 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"]);
|
|
152093
153490
|
}
|
|
152094
153491
|
var inputWidget = /* @__PURE__ */ _export_sfc(_sfc_main$4Z, [["render", _sfc_render$4Z], ["__scopeId", "data-v-474c451f"]]);
|
|
152095
|
-
var
|
|
153492
|
+
var __glob_0_13$3 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
152096
153493
|
__proto__: null,
|
|
152097
153494
|
"default": inputWidget
|
|
152098
153495
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
@@ -152317,7 +153714,7 @@ function _sfc_render$4Y(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
152317
153714
|
}, 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"]);
|
|
152318
153715
|
}
|
|
152319
153716
|
var moneyWidget = /* @__PURE__ */ _export_sfc(_sfc_main$4Y, [["render", _sfc_render$4Y], ["__scopeId", "data-v-31ef06ca"]]);
|
|
152320
|
-
var
|
|
153717
|
+
var __glob_0_14$3 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
152321
153718
|
__proto__: null,
|
|
152322
153719
|
"default": moneyWidget
|
|
152323
153720
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
@@ -152444,7 +153841,7 @@ function _sfc_render$4X(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
152444
153841
|
}, 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"]);
|
|
152445
153842
|
}
|
|
152446
153843
|
var numberWidget = /* @__PURE__ */ _export_sfc(_sfc_main$4X, [["render", _sfc_render$4X], ["__scopeId", "data-v-32c12092"]]);
|
|
152447
|
-
var
|
|
153844
|
+
var __glob_0_15$3 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
152448
153845
|
__proto__: null,
|
|
152449
153846
|
"default": numberWidget
|
|
152450
153847
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
@@ -152839,7 +154236,7 @@ function _sfc_render$4W(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
152839
154236
|
}, 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"]);
|
|
152840
154237
|
}
|
|
152841
154238
|
var pictureUploadWidget = /* @__PURE__ */ _export_sfc(_sfc_main$4W, [["render", _sfc_render$4W], ["__scopeId", "data-v-9dfeb0f8"]]);
|
|
152842
|
-
var
|
|
154239
|
+
var __glob_0_16$1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
152843
154240
|
__proto__: null,
|
|
152844
154241
|
clearOSSConfigCache,
|
|
152845
154242
|
"default": pictureUploadWidget
|
|
@@ -153036,7 +154433,7 @@ function _sfc_render$4V(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
153036
154433
|
}, 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"]);
|
|
153037
154434
|
}
|
|
153038
154435
|
var radioWidget = /* @__PURE__ */ _export_sfc(_sfc_main$4V, [["render", _sfc_render$4V], ["__scopeId", "data-v-6c51eaee"]]);
|
|
153039
|
-
var
|
|
154436
|
+
var __glob_0_17$1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
153040
154437
|
__proto__: null,
|
|
153041
154438
|
"default": radioWidget
|
|
153042
154439
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
@@ -153146,7 +154543,7 @@ function _sfc_render$4U(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
153146
154543
|
}, 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"]);
|
|
153147
154544
|
}
|
|
153148
154545
|
var rateWidget = /* @__PURE__ */ _export_sfc(_sfc_main$4U, [["render", _sfc_render$4U], ["__scopeId", "data-v-3af180aa"]]);
|
|
153149
|
-
var
|
|
154546
|
+
var __glob_0_18$1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
153150
154547
|
__proto__: null,
|
|
153151
154548
|
"default": rateWidget
|
|
153152
154549
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
@@ -164723,7 +166120,7 @@ function _sfc_render$4S(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
164723
166120
|
}, 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"]);
|
|
164724
166121
|
}
|
|
164725
166122
|
var richEditorWidget = /* @__PURE__ */ _export_sfc(_sfc_main$4S, [["render", _sfc_render$4S], ["__scopeId", "data-v-d0e8ce80"]]);
|
|
164726
|
-
var
|
|
166123
|
+
var __glob_0_19$1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
164727
166124
|
__proto__: null,
|
|
164728
166125
|
"default": richEditorWidget
|
|
164729
166126
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
@@ -164978,7 +166375,7 @@ function _sfc_render$4R(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
164978
166375
|
}, 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"]);
|
|
164979
166376
|
}
|
|
164980
166377
|
var selectWidget = /* @__PURE__ */ _export_sfc(_sfc_main$4R, [["render", _sfc_render$4R], ["__scopeId", "data-v-56441160"]]);
|
|
164981
|
-
var
|
|
166378
|
+
var __glob_0_20$1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
164982
166379
|
__proto__: null,
|
|
164983
166380
|
"default": selectWidget
|
|
164984
166381
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
@@ -165093,7 +166490,7 @@ function _sfc_render$4Q(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
165093
166490
|
}, 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"]);
|
|
165094
166491
|
}
|
|
165095
166492
|
var sliderWidget = /* @__PURE__ */ _export_sfc(_sfc_main$4Q, [["render", _sfc_render$4Q], ["__scopeId", "data-v-e7486d52"]]);
|
|
165096
|
-
var
|
|
166493
|
+
var __glob_0_21$1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
165097
166494
|
__proto__: null,
|
|
165098
166495
|
"default": sliderWidget
|
|
165099
166496
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
@@ -165187,7 +166584,7 @@ function _sfc_render$4P(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
165187
166584
|
}, 8, ["designer", "field", "design-state", "parent-widget", "parent-list", "index-of-parent-list", "sub-form-row-index", "sub-form-col-index", "sub-form-row-id"]);
|
|
165188
166585
|
}
|
|
165189
166586
|
var slotWidget = /* @__PURE__ */ _export_sfc(_sfc_main$4P, [["render", _sfc_render$4P], ["__scopeId", "data-v-2330ee0e"]]);
|
|
165190
|
-
var
|
|
166587
|
+
var __glob_0_22$1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
165191
166588
|
__proto__: null,
|
|
165192
166589
|
"default": slotWidget
|
|
165193
166590
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
@@ -165279,7 +166676,7 @@ function _sfc_render$4O(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
165279
166676
|
}, 8, ["designer", "field", "design-state", "parent-widget", "parent-list", "index-of-parent-list", "sub-form-row-index", "sub-form-col-index", "sub-form-row-id"]);
|
|
165280
166677
|
}
|
|
165281
166678
|
var staticTextWidget = /* @__PURE__ */ _export_sfc(_sfc_main$4O, [["render", _sfc_render$4O], ["__scopeId", "data-v-5842ea38"]]);
|
|
165282
|
-
var
|
|
166679
|
+
var __glob_0_24$1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
165283
166680
|
__proto__: null,
|
|
165284
166681
|
"default": staticTextWidget
|
|
165285
166682
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
@@ -165402,7 +166799,7 @@ function _sfc_render$4N(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
165402
166799
|
}, 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"]);
|
|
165403
166800
|
}
|
|
165404
166801
|
var switchWidget = /* @__PURE__ */ _export_sfc(_sfc_main$4N, [["render", _sfc_render$4N], ["__scopeId", "data-v-79f17239"]]);
|
|
165405
|
-
var
|
|
166802
|
+
var __glob_0_25$1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
165406
166803
|
__proto__: null,
|
|
165407
166804
|
"default": switchWidget
|
|
165408
166805
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
@@ -165537,7 +166934,7 @@ function _sfc_render$4M(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
165537
166934
|
}, 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"]);
|
|
165538
166935
|
}
|
|
165539
166936
|
var textareaWidget = /* @__PURE__ */ _export_sfc(_sfc_main$4M, [["render", _sfc_render$4M], ["__scopeId", "data-v-fb8948b6"]]);
|
|
165540
|
-
var
|
|
166937
|
+
var __glob_0_26$1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
165541
166938
|
__proto__: null,
|
|
165542
166939
|
"default": textareaWidget
|
|
165543
166940
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
@@ -165669,7 +167066,7 @@ function _sfc_render$4L(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
165669
167066
|
}, 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"]);
|
|
165670
167067
|
}
|
|
165671
167068
|
var timeRangeWidget = /* @__PURE__ */ _export_sfc(_sfc_main$4L, [["render", _sfc_render$4L], ["__scopeId", "data-v-9405763e"]]);
|
|
165672
|
-
var
|
|
167069
|
+
var __glob_0_27$1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
165673
167070
|
__proto__: null,
|
|
165674
167071
|
"default": timeRangeWidget
|
|
165675
167072
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
@@ -165792,7 +167189,7 @@ function _sfc_render$4K(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
165792
167189
|
}, 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"]);
|
|
165793
167190
|
}
|
|
165794
167191
|
var timeWidget = /* @__PURE__ */ _export_sfc(_sfc_main$4K, [["render", _sfc_render$4K], ["__scopeId", "data-v-0c2a7aa3"]]);
|
|
165795
|
-
var
|
|
167192
|
+
var __glob_0_28$1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
165796
167193
|
__proto__: null,
|
|
165797
167194
|
"default": timeWidget
|
|
165798
167195
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
@@ -166107,7 +167504,7 @@ function _sfc_render$4J(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
166107
167504
|
}, 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"]);
|
|
166108
167505
|
}
|
|
166109
167506
|
var vantCascaderWidget = /* @__PURE__ */ _export_sfc(_sfc_main$4J, [["render", _sfc_render$4J], ["__scopeId", "data-v-b6cbc63a"]]);
|
|
166110
|
-
var
|
|
167507
|
+
var __glob_0_29$1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
166111
167508
|
__proto__: null,
|
|
166112
167509
|
"default": vantCascaderWidget
|
|
166113
167510
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
@@ -166634,7 +168031,7 @@ function _sfc_render$4I(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
166634
168031
|
}, 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"]);
|
|
166635
168032
|
}
|
|
166636
168033
|
var vantDateRangeWidget = /* @__PURE__ */ _export_sfc(_sfc_main$4I, [["render", _sfc_render$4I], ["__scopeId", "data-v-1a61694a"]]);
|
|
166637
|
-
var
|
|
168034
|
+
var __glob_0_30$1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
166638
168035
|
__proto__: null,
|
|
166639
168036
|
"default": vantDateRangeWidget
|
|
166640
168037
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
@@ -167022,7 +168419,7 @@ function _sfc_render$4H(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
167022
168419
|
}, 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"]);
|
|
167023
168420
|
}
|
|
167024
168421
|
var vantDateWidget = /* @__PURE__ */ _export_sfc(_sfc_main$4H, [["render", _sfc_render$4H], ["__scopeId", "data-v-6c127c74"]]);
|
|
167025
|
-
var
|
|
168422
|
+
var __glob_0_31$1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
167026
168423
|
__proto__: null,
|
|
167027
168424
|
"default": vantDateWidget
|
|
167028
168425
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
@@ -167331,7 +168728,7 @@ function _sfc_render$4G(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
167331
168728
|
}, 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"]);
|
|
167332
168729
|
}
|
|
167333
168730
|
var vantSelectWidget = /* @__PURE__ */ _export_sfc(_sfc_main$4G, [["render", _sfc_render$4G], ["__scopeId", "data-v-245bdd58"]]);
|
|
167334
|
-
var
|
|
168731
|
+
var __glob_0_32$1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
167335
168732
|
__proto__: null,
|
|
167336
168733
|
"default": vantSelectWidget
|
|
167337
168734
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
@@ -167553,7 +168950,7 @@ function _sfc_render$4F(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
167553
168950
|
}, 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"]);
|
|
167554
168951
|
}
|
|
167555
168952
|
var vantTimeRangeWidget = /* @__PURE__ */ _export_sfc(_sfc_main$4F, [["render", _sfc_render$4F], ["__scopeId", "data-v-5c4c72f2"]]);
|
|
167556
|
-
var
|
|
168953
|
+
var __glob_0_33$1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
167557
168954
|
__proto__: null,
|
|
167558
168955
|
"default": vantTimeRangeWidget
|
|
167559
168956
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
@@ -167743,12 +169140,12 @@ function _sfc_render$4E(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
167743
169140
|
}, 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"]);
|
|
167744
169141
|
}
|
|
167745
169142
|
var vantTimeWidget = /* @__PURE__ */ _export_sfc(_sfc_main$4E, [["render", _sfc_render$4E], ["__scopeId", "data-v-df0cb3c2"]]);
|
|
167746
|
-
var
|
|
169143
|
+
var __glob_0_34$1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
167747
169144
|
__proto__: null,
|
|
167748
169145
|
"default": vantTimeWidget
|
|
167749
169146
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
167750
169147
|
let comps$1 = {};
|
|
167751
|
-
const modules$3 = { "./ai-editor-widget.vue": __glob_0_0$2, "./button-widget.vue": __glob_0_1$3, "./cascader-widget.vue": __glob_0_2$2, "./checkbox-widget.vue": __glob_0_3$3, "./code-img-widget.vue": __glob_0_4$3, "./color-widget.vue": __glob_0_5$3, "./date-range-widget.vue": __glob_0_6$3, "./date-widget.vue": __glob_0_7$3, "./divider-widget.vue": __glob_0_8$3, "./file-upload-widget.vue":
|
|
169148
|
+
const modules$3 = { "./ai-editor-widget.vue": __glob_0_0$2, "./button-widget.vue": __glob_0_1$3, "./cascader-widget.vue": __glob_0_2$2, "./checkbox-widget.vue": __glob_0_3$3, "./code-img-widget.vue": __glob_0_4$3, "./color-widget.vue": __glob_0_5$3, "./date-range-widget.vue": __glob_0_6$3, "./date-widget.vue": __glob_0_7$3, "./divider-widget.vue": __glob_0_8$3, "./electronic-case-widget.vue": __glob_0_9$3, "./file-upload-widget.vue": __glob_0_10$3, "./form-item-wrapper.vue": __glob_0_11$3, "./html-text-widget.vue": __glob_0_12$3, "./input-widget.vue": __glob_0_13$3, "./money-widget.vue": __glob_0_14$3, "./number-widget.vue": __glob_0_15$3, "./picture-upload-widget.vue": __glob_0_16$1, "./radio-widget.vue": __glob_0_17$1, "./rate-widget.vue": __glob_0_18$1, "./rich-editor-widget.vue": __glob_0_19$1, "./select-widget.vue": __glob_0_20$1, "./slider-widget.vue": __glob_0_21$1, "./slot-widget.vue": __glob_0_22$1, "./static-content-wrapper.vue": __glob_0_23$1, "./static-text-widget.vue": __glob_0_24$1, "./switch-widget.vue": __glob_0_25$1, "./textarea-widget.vue": __glob_0_26$1, "./time-range-widget.vue": __glob_0_27$1, "./time-widget.vue": __glob_0_28$1, "./vant-cascader-widget.vue": __glob_0_29$1, "./vant-date-range-widget.vue": __glob_0_30$1, "./vant-date-widget.vue": __glob_0_31$1, "./vant-select-widget.vue": __glob_0_32$1, "./vant-time-range-widget.vue": __glob_0_33$1, "./vant-time-widget.vue": __glob_0_34$1 };
|
|
167752
169149
|
for (const path in modules$3) {
|
|
167753
169150
|
let cname = modules$3[path].default.name;
|
|
167754
169151
|
comps$1[cname] = modules$3[path].default;
|
|
@@ -210797,9 +212194,6 @@ const _sfc_main$46 = {
|
|
|
210797
212194
|
loading: false
|
|
210798
212195
|
};
|
|
210799
212196
|
},
|
|
210800
|
-
created() {
|
|
210801
|
-
this.loadFormList();
|
|
210802
|
-
},
|
|
210803
212197
|
mounted() {
|
|
210804
212198
|
const token = almLocalStorage.getItem("token");
|
|
210805
212199
|
const rToken = almLocalStorage.getItem("rToken");
|
|
@@ -210823,8 +212217,9 @@ const _sfc_main$46 = {
|
|
|
210823
212217
|
axios$1.get(url, { headers: this.headers }).then((res) => {
|
|
210824
212218
|
var _a2, _b2, _c2;
|
|
210825
212219
|
this.optionList = ((_c2 = (_b2 = (_a2 = res == null ? void 0 : res.data) == null ? void 0 : _a2.Data) == null ? void 0 : _b2.Items) == null ? void 0 : _c2.map((item) => ({
|
|
210826
|
-
label: item == null ? void 0 : item.name
|
|
210827
|
-
value: item == null ? void 0 : item.id
|
|
212220
|
+
label: `${item == null ? void 0 : item.name} - ${item == null ? void 0 : item.id}`,
|
|
212221
|
+
value: item == null ? void 0 : item.id,
|
|
212222
|
+
name: item == null ? void 0 : item.name
|
|
210828
212223
|
}))) || [];
|
|
210829
212224
|
this.loading = false;
|
|
210830
212225
|
}).catch((error2) => {
|
|
@@ -210833,13 +212228,16 @@ const _sfc_main$46 = {
|
|
|
210833
212228
|
});
|
|
210834
212229
|
},
|
|
210835
212230
|
remoteSearch: _.debounce(function(query) {
|
|
210836
|
-
|
|
212231
|
+
if (query && query.trim()) {
|
|
212232
|
+
this.loadFormList(query.trim());
|
|
212233
|
+
} else {
|
|
212234
|
+
this.optionList = [];
|
|
212235
|
+
}
|
|
210837
212236
|
}, 300),
|
|
210838
212237
|
handleChange(val) {
|
|
210839
|
-
var _a2;
|
|
210840
212238
|
console.log(this.optionModel, val, "optionModel");
|
|
210841
|
-
const
|
|
210842
|
-
this.optionModel.childFormName =
|
|
212239
|
+
const selectedItem = this.optionList.find((item) => item.value === val);
|
|
212240
|
+
this.optionModel.childFormName = (selectedItem == null ? void 0 : selectedItem.name) || "";
|
|
210843
212241
|
this.optionModel.childFormKey = val;
|
|
210844
212242
|
this.optionModel.childFormExpand = false;
|
|
210845
212243
|
}
|
|
@@ -236468,13 +237866,13 @@ var Draggable = /* @__PURE__ */ getDefaultExportFromCjs(vuedraggable_umd.exports
|
|
|
236468
237866
|
if (typeof window !== "undefined") {
|
|
236469
237867
|
let loadSvg = function() {
|
|
236470
237868
|
var body = document.body;
|
|
236471
|
-
var svgDom = document.getElementById("
|
|
237869
|
+
var svgDom = document.getElementById("__svg__icons__dom__1768297881815__");
|
|
236472
237870
|
if (!svgDom) {
|
|
236473
237871
|
svgDom = document.createElementNS("http://www.w3.org/2000/svg", "svg");
|
|
236474
237872
|
svgDom.style.position = "absolute";
|
|
236475
237873
|
svgDom.style.width = "0";
|
|
236476
237874
|
svgDom.style.height = "0";
|
|
236477
|
-
svgDom.id = "
|
|
237875
|
+
svgDom.id = "__svg__icons__dom__1768297881815__";
|
|
236478
237876
|
svgDom.setAttribute("xmlns", "http://www.w3.org/2000/svg");
|
|
236479
237877
|
svgDom.setAttribute("xmlns:link", "http://www.w3.org/1999/xlink");
|
|
236480
237878
|
}
|