yuanjia-form-pro-standard 1.1.6-beta5.9 → 1.1.6-beta6.1

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 CHANGED
@@ -1092,7 +1092,7 @@ var _export_sfc = (sfc, props) => {
1092
1092
  }
1093
1093
  return target;
1094
1094
  };
1095
- const _sfc_main$5e = {
1095
+ const _sfc_main$5f = {
1096
1096
  name: "SvgIcon",
1097
1097
  props: {
1098
1098
  iconClass: {
@@ -1120,18 +1120,18 @@ const _sfc_main$5e = {
1120
1120
  }
1121
1121
  }
1122
1122
  };
1123
- const _hoisted_1$1k = ["xlink:href"];
1123
+ const _hoisted_1$1l = ["xlink:href"];
1124
1124
  const _hoisted_2$G = { key: 0 };
1125
1125
  function _sfc_render$5e(_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$1k),
1130
+ createElementVNode("use", { "xlink:href": $options.iconName }, null, 8, _hoisted_1$1l),
1131
1131
  !!$props.title ? (openBlock(), createElementBlock("title", _hoisted_2$G, toDisplayString($props.title), 1)) : createCommentVNode("", true)
1132
1132
  ], 2);
1133
1133
  }
1134
- var SvgIcon = /* @__PURE__ */ _export_sfc(_sfc_main$5e, [["render", _sfc_render$5e], ["__scopeId", "data-v-2a03d21b"]]);
1134
+ var SvgIcon = /* @__PURE__ */ _export_sfc(_sfc_main$5f, [["render", _sfc_render$5e], ["__scopeId", "data-v-2a03d21b"]]);
1135
1135
  const almLocalStorage = {
1136
1136
  supportLoaclStorage: function() {
1137
1137
  if (window.localStorage) {
@@ -11129,8 +11129,8 @@ var Utils$4 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.definePropert
11129
11129
  isExist
11130
11130
  }, Symbol.toStringTag, { value: "Module" }));
11131
11131
  var index_vue_vue_type_style_index_0_scoped_true_lang$8 = "";
11132
- var index_vue_vue_type_style_index_1_lang$2 = "";
11133
- const _sfc_main$5d = {
11132
+ var index_vue_vue_type_style_index_1_lang$3 = "";
11133
+ const _sfc_main$5e = {
11134
11134
  name: "FieldPanel",
11135
11135
  mixins: [i18n$1],
11136
11136
  components: {
@@ -11409,7 +11409,7 @@ const _sfc_main$5d = {
11409
11409
  }
11410
11410
  }
11411
11411
  };
11412
- const _hoisted_1$1j = { class: "panel-container" };
11412
+ const _hoisted_1$1k = { class: "panel-container" };
11413
11413
  const _hoisted_2$F = ["title", "onDblclick"];
11414
11414
  const _hoisted_3$t = { class: "svg-icon-label" };
11415
11415
  const _hoisted_4$p = { class: "chart-widget-item__label" };
@@ -11417,16 +11417,16 @@ const _hoisted_5$m = ["title", "onDblclick"];
11417
11417
  const _hoisted_6$k = { class: "svg-icon-label" };
11418
11418
  const _hoisted_7$h = { class: "chart-widget-item__label" };
11419
11419
  const _hoisted_8$f = ["title", "onDblclick"];
11420
- const _hoisted_9$c = ["title", "onDblclick"];
11421
- const _hoisted_10$9 = ["title", "onDblclick"];
11422
- const _hoisted_11$9 = ["title", "onDblclick"];
11423
- const _hoisted_12$7 = ["title", "onDblclick"];
11424
- const _hoisted_13$6 = ["title", "onDblclick"];
11425
- const _hoisted_14$5 = ["title", "onDblclick"];
11426
- const _hoisted_15$3 = ["src"];
11427
- const _hoisted_16$3 = ["src"];
11428
- const _hoisted_17$2 = { class: "bottom clear-fix" };
11429
- const _hoisted_18$2 = { class: "ft-title" };
11420
+ const _hoisted_9$d = ["title", "onDblclick"];
11421
+ const _hoisted_10$a = ["title", "onDblclick"];
11422
+ const _hoisted_11$a = ["title", "onDblclick"];
11423
+ const _hoisted_12$8 = ["title", "onDblclick"];
11424
+ const _hoisted_13$7 = ["title", "onDblclick"];
11425
+ const _hoisted_14$6 = ["title", "onDblclick"];
11426
+ const _hoisted_15$4 = ["src"];
11427
+ const _hoisted_16$4 = ["src"];
11428
+ const _hoisted_17$3 = { class: "bottom clear-fix" };
11429
+ const _hoisted_18$3 = { class: "ft-title" };
11430
11430
  const _hoisted_19$2 = { class: "bottom clear-fix" };
11431
11431
  const _hoisted_20$1 = { class: "ft-title" };
11432
11432
  function _sfc_render$5d(_ctx, _cache, $props, $setup, $data, $options) {
@@ -11442,7 +11442,7 @@ function _sfc_render$5d(_ctx, _cache, $props, $setup, $data, $options) {
11442
11442
  const _component_el_scrollbar = resolveComponent("el-scrollbar");
11443
11443
  return openBlock(), createBlock(_component_el_scrollbar, { class: "side-scroll-bar" }, {
11444
11444
  default: withCtx(() => [
11445
- createElementVNode("div", _hoisted_1$1j, [
11445
+ createElementVNode("div", _hoisted_1$1k, [
11446
11446
  createVNode(_component_el_tabs, {
11447
11447
  modelValue: $data.firstTab,
11448
11448
  "onUpdate:modelValue": _cache[3] || (_cache[3] = ($event) => $data.firstTab = $event),
@@ -11627,7 +11627,7 @@ function _sfc_render$5d(_ctx, _cache, $props, $setup, $data, $options) {
11627
11627
  }, null, 8, ["icon-class"]),
11628
11628
  createTextVNode(toDisplayString($options.getMetaFieldLabel(fld)), 1)
11629
11629
  ])
11630
- ], 42, _hoisted_9$c)
11630
+ ], 42, _hoisted_9$d)
11631
11631
  ]),
11632
11632
  _: 1
11633
11633
  }, 8, ["list", "move", "clone"])
@@ -11663,7 +11663,7 @@ function _sfc_render$5d(_ctx, _cache, $props, $setup, $data, $options) {
11663
11663
  }, null, 8, ["icon-class"]),
11664
11664
  createTextVNode(toDisplayString($options.getMetaFieldLabel(fld)), 1)
11665
11665
  ])
11666
- ], 42, _hoisted_10$9)
11666
+ ], 42, _hoisted_10$a)
11667
11667
  ]),
11668
11668
  _: 2
11669
11669
  }, 1032, ["list", "move", "clone"])
@@ -11723,7 +11723,7 @@ function _sfc_render$5d(_ctx, _cache, $props, $setup, $data, $options) {
11723
11723
  }, null, 8, ["icon-class"]),
11724
11724
  createTextVNode(toDisplayString($options.getWidgetLabel(ctn)), 1)
11725
11725
  ])
11726
- ], 40, _hoisted_11$9)
11726
+ ], 40, _hoisted_11$a)
11727
11727
  ]),
11728
11728
  _: 1
11729
11729
  }, 8, ["list", "clone", "move", "onEnd"])
@@ -11758,7 +11758,7 @@ function _sfc_render$5d(_ctx, _cache, $props, $setup, $data, $options) {
11758
11758
  }, null, 8, ["icon-class"]),
11759
11759
  createTextVNode(toDisplayString($options.getWidgetLabel(fld)), 1)
11760
11760
  ])
11761
- ], 40, _hoisted_12$7)
11761
+ ], 40, _hoisted_12$8)
11762
11762
  ]),
11763
11763
  _: 1
11764
11764
  }, 8, ["list", "move", "clone"])
@@ -11793,7 +11793,7 @@ function _sfc_render$5d(_ctx, _cache, $props, $setup, $data, $options) {
11793
11793
  }, null, 8, ["icon-class"]),
11794
11794
  createTextVNode(toDisplayString($options.getWidgetLabel(fld)), 1)
11795
11795
  ])
11796
- ], 40, _hoisted_13$6)
11796
+ ], 40, _hoisted_13$7)
11797
11797
  ]),
11798
11798
  _: 1
11799
11799
  }, 8, ["list", "move", "clone"])
@@ -11828,7 +11828,7 @@ function _sfc_render$5d(_ctx, _cache, $props, $setup, $data, $options) {
11828
11828
  }, null, 8, ["icon-class"]),
11829
11829
  createTextVNode(toDisplayString($options.getWidgetLabel(fld)), 1)
11830
11830
  ])
11831
- ], 40, _hoisted_14$5)
11831
+ ], 40, _hoisted_14$6)
11832
11832
  ]),
11833
11833
  _: 1
11834
11834
  }, 8, ["list", "move", "clone"])
@@ -11869,18 +11869,18 @@ function _sfc_render$5d(_ctx, _cache, $props, $setup, $data, $options) {
11869
11869
  createElementVNode("img", {
11870
11870
  src: ft2.imgUrl,
11871
11871
  style: { "width": "200px" }
11872
- }, null, 8, _hoisted_15$3)
11872
+ }, null, 8, _hoisted_15$4)
11873
11873
  ]),
11874
11874
  default: withCtx(() => [
11875
11875
  createElementVNode("img", {
11876
11876
  src: ft2.imgUrl,
11877
11877
  style: { "height": "600px", "width": "720px" }
11878
- }, null, 8, _hoisted_16$3)
11878
+ }, null, 8, _hoisted_16$4)
11879
11879
  ]),
11880
11880
  _: 2
11881
11881
  }, 1024),
11882
- createElementVNode("div", _hoisted_17$2, [
11883
- createElementVNode("span", _hoisted_18$2, "#" + toDisplayString(idx + 1) + " " + toDisplayString($options.getFTTitle(ft2)), 1),
11882
+ createElementVNode("div", _hoisted_17$3, [
11883
+ createElementVNode("span", _hoisted_18$3, "#" + toDisplayString(idx + 1) + " " + toDisplayString($options.getFTTitle(ft2)), 1),
11884
11884
  createVNode(_component_el_button, {
11885
11885
  link: "",
11886
11886
  type: "primary",
@@ -11948,7 +11948,7 @@ function _sfc_render$5d(_ctx, _cache, $props, $setup, $data, $options) {
11948
11948
  _: 1
11949
11949
  });
11950
11950
  }
11951
- var WidgetPanel = /* @__PURE__ */ _export_sfc(_sfc_main$5d, [["render", _sfc_render$5d], ["__scopeId", "data-v-9255e958"]]);
11951
+ var WidgetPanel = /* @__PURE__ */ _export_sfc(_sfc_main$5e, [["render", _sfc_render$5d], ["__scopeId", "data-v-9255e958"]]);
11952
11952
  var emitter = {
11953
11953
  data() {
11954
11954
  return {
@@ -12041,7 +12041,7 @@ var emitter = {
12041
12041
  }
12042
12042
  }
12043
12043
  };
12044
- const _sfc_main$5c = {
12044
+ const _sfc_main$5d = {
12045
12045
  name: "container-item-wrapper",
12046
12046
  props: {
12047
12047
  widget: Object
@@ -12059,7 +12059,7 @@ function _sfc_render$5c(_ctx, _cache, $props, $setup, $data, $options) {
12059
12059
  renderSlot(_ctx.$slots, "default")
12060
12060
  ], 2);
12061
12061
  }
12062
- var ContainerItemWrapper = /* @__PURE__ */ _export_sfc(_sfc_main$5c, [["render", _sfc_render$5c]]);
12062
+ var ContainerItemWrapper = /* @__PURE__ */ _export_sfc(_sfc_main$5d, [["render", _sfc_render$5c]]);
12063
12063
  var __glob_0_2$3 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
12064
12064
  __proto__: null,
12065
12065
  "default": ContainerItemWrapper
@@ -12434,7 +12434,7 @@ var containerItemMixin = {
12434
12434
  }
12435
12435
  }
12436
12436
  };
12437
- const _sfc_main$5b = {
12437
+ const _sfc_main$5c = {
12438
12438
  name: "button-group-item",
12439
12439
  componentName: "ContainerItem",
12440
12440
  mixins: [emitter, i18n$1, refMixin, containerItemMixin],
@@ -12549,12 +12549,29 @@ function _sfc_render$5b(_ctx, _cache, $props, $setup, $data, $options) {
12549
12549
  _: 1
12550
12550
  }, 8, ["widget"]);
12551
12551
  }
12552
- var buttonGroupItem = /* @__PURE__ */ _export_sfc(_sfc_main$5b, [["render", _sfc_render$5b]]);
12552
+ var buttonGroupItem = /* @__PURE__ */ _export_sfc(_sfc_main$5c, [["render", _sfc_render$5b]]);
12553
12553
  var __glob_0_0$3 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
12554
12554
  __proto__: null,
12555
12555
  "default": buttonGroupItem
12556
12556
  }, Symbol.toStringTag, { value: "Module" }));
12557
12557
  var AvatarCom_vue_vue_type_style_index_0_scoped_true_lang = "";
12558
+ const _hoisted_1$1j = { class: "avatar-com" };
12559
+ const _sfc_main$5b = {
12560
+ __name: "AvatarCom",
12561
+ props: {
12562
+ name: String
12563
+ },
12564
+ setup(__props) {
12565
+ const props = __props;
12566
+ const nameAvatar = computed(() => {
12567
+ return props.name ? props.name.charAt(0) : "";
12568
+ });
12569
+ return (_ctx, _cache) => {
12570
+ return openBlock(), createElementBlock("div", _hoisted_1$1j, toDisplayString(nameAvatar.value), 1);
12571
+ };
12572
+ }
12573
+ };
12574
+ var AvatarCom = /* @__PURE__ */ _export_sfc(_sfc_main$5b, [["__scopeId", "data-v-2c609231"]]);
12558
12575
  var formItemWrapper_vue_vue_type_style_index_0_scoped_true_lang = "";
12559
12576
  var formItemWrapper_vue_vue_type_style_index_1_lang = "";
12560
12577
  const _sfc_main$5a = {
@@ -12594,7 +12611,7 @@ const _sfc_main$5a = {
12594
12611
  },
12595
12612
  rules: Array
12596
12613
  },
12597
- inject: ["getFormConfig", "getSubFormFieldFlag", "getSubFormName", "getObjectFieldFlag", "getObjectName"],
12614
+ inject: ["getFormConfig", "getSubFormFieldFlag", "getSubFormName", "getObjectFieldFlag", "getObjectName", "enableHistoryView"],
12598
12615
  data() {
12599
12616
  return {
12600
12617
  historyPopoverVisible: false,
@@ -12787,25 +12804,25 @@ const _hoisted_6$j = {
12787
12804
  };
12788
12805
  const _hoisted_7$g = { class: "history-item-header" };
12789
12806
  const _hoisted_8$e = { class: "history-user-info" };
12790
- const _hoisted_9$b = ["src"];
12791
- const _hoisted_10$8 = { class: "history-user-name" };
12792
- const _hoisted_11$8 = { class: "history-time" };
12793
- const _hoisted_12$6 = { class: "history-content" };
12794
- const _hoisted_13$5 = {
12807
+ const _hoisted_9$c = ["src"];
12808
+ const _hoisted_10$9 = { class: "history-user-name" };
12809
+ const _hoisted_11$9 = { class: "history-time" };
12810
+ const _hoisted_12$7 = { class: "history-content" };
12811
+ const _hoisted_13$6 = {
12795
12812
  key: 0,
12796
12813
  class: "custom-label"
12797
12814
  };
12798
- const _hoisted_14$4 = { key: 1 };
12799
- const _hoisted_15$2 = ["title"];
12800
- const _hoisted_16$2 = {
12815
+ const _hoisted_14$5 = { key: 1 };
12816
+ const _hoisted_15$3 = ["title"];
12817
+ const _hoisted_16$3 = {
12801
12818
  key: 0,
12802
12819
  class: "field-describe"
12803
12820
  };
12804
- const _hoisted_17$1 = {
12821
+ const _hoisted_17$2 = {
12805
12822
  key: 0,
12806
12823
  class: "field-action"
12807
12824
  };
12808
- const _hoisted_18$1 = ["title"];
12825
+ const _hoisted_18$2 = ["title"];
12809
12826
  const _hoisted_19$1 = ["title"];
12810
12827
  const _hoisted_20 = ["title"];
12811
12828
  const _hoisted_21 = ["title"];
@@ -12840,7 +12857,7 @@ function _sfc_render$5a(_ctx, _cache, $props, $setup, $data, $options) {
12840
12857
  label: withCtx(() => [
12841
12858
  createElementVNode("div", _hoisted_1$1i, [
12842
12859
  createElementVNode("div", _hoisted_2$E, [
12843
- !$props.designState && $options.label ? (openBlock(), createBlock(_component_el_popover, {
12860
+ !$props.designState && $options.label && $options.enableHistoryView ? (openBlock(), createBlock(_component_el_popover, {
12844
12861
  key: 0,
12845
12862
  visible: $data.historyPopoverVisible,
12846
12863
  "onUpdate:visible": _cache[2] || (_cache[2] = ($event) => $data.historyPopoverVisible = $event),
@@ -12937,16 +12954,16 @@ function _sfc_render$5a(_ctx, _cache, $props, $setup, $data, $options) {
12937
12954
  key: 0,
12938
12955
  class: "history-user-avatar",
12939
12956
  src: item.created_avatar
12940
- }, null, 8, _hoisted_9$b)) : (openBlock(), createBlock(_component_AvatarCom, {
12957
+ }, null, 8, _hoisted_9$c)) : (openBlock(), createBlock(_component_AvatarCom, {
12941
12958
  key: 1,
12942
12959
  class: "history-user-avatar",
12943
12960
  name: item.created_username
12944
12961
  }, null, 8, ["name"])),
12945
- createElementVNode("span", _hoisted_10$8, toDisplayString(item.created_username || "\u7CFB\u7EDF"), 1)
12962
+ createElementVNode("span", _hoisted_10$9, toDisplayString(item.created_username || "\u7CFB\u7EDF"), 1)
12946
12963
  ]),
12947
- createElementVNode("span", _hoisted_11$8, toDisplayString(item.created_time || ""), 1)
12964
+ createElementVNode("span", _hoisted_11$9, toDisplayString(item.created_time || ""), 1)
12948
12965
  ]),
12949
- createElementVNode("div", _hoisted_12$6, toDisplayString(item.content || ""), 1)
12966
+ createElementVNode("div", _hoisted_12$7, toDisplayString(item.content || ""), 1)
12950
12967
  ]);
12951
12968
  }), 128))
12952
12969
  ]))
@@ -12954,7 +12971,7 @@ function _sfc_render$5a(_ctx, _cache, $props, $setup, $data, $options) {
12954
12971
  ]),
12955
12972
  _: 1
12956
12973
  }, 8, ["visible"])) : (openBlock(), createElementBlock(Fragment, { key: 1 }, [
12957
- !!$props.field.options.labelIconClass ? (openBlock(), createElementBlock("span", _hoisted_13$5, [
12974
+ !!$props.field.options.labelIconClass ? (openBlock(), createElementBlock("span", _hoisted_13$6, [
12958
12975
  $props.field.options.labelIconPosition === "front" ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
12959
12976
  !!$props.field.options.labelTooltip ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
12960
12977
  createVNode(_component_el_tooltip, {
@@ -13008,7 +13025,7 @@ function _sfc_render$5a(_ctx, _cache, $props, $setup, $data, $options) {
13008
13025
  })
13009
13026
  ], 64))
13010
13027
  ], 64)) : createCommentVNode("", true)
13011
- ])) : (openBlock(), createElementBlock("span", _hoisted_14$4, toDisplayString($options.label), 1))
13028
+ ])) : (openBlock(), createElementBlock("span", _hoisted_14$5, toDisplayString($options.label), 1))
13012
13029
  ], 64)),
13013
13030
  $props.field.type === "checkbox" && $props.field.options.enableSelectAll ? (openBlock(), createElementBlock("span", {
13014
13031
  key: 2,
@@ -13022,9 +13039,9 @@ function _sfc_render$5a(_ctx, _cache, $props, $setup, $data, $options) {
13022
13039
  ]),
13023
13040
  _: 1
13024
13041
  })
13025
- ], 8, _hoisted_15$2)) : createCommentVNode("", true)
13042
+ ], 8, _hoisted_15$3)) : createCommentVNode("", true)
13026
13043
  ]),
13027
- $props.field.options.describe ? (openBlock(), createElementBlock("div", _hoisted_16$2, toDisplayString($props.field.options.describe), 1)) : createCommentVNode("", true)
13044
+ $props.field.options.describe ? (openBlock(), createElementBlock("div", _hoisted_16$3, toDisplayString($props.field.options.describe), 1)) : createCommentVNode("", true)
13028
13045
  ])
13029
13046
  ]),
13030
13047
  default: withCtx(() => [
@@ -13033,13 +13050,13 @@ function _sfc_render$5a(_ctx, _cache, $props, $setup, $data, $options) {
13033
13050
  _: 3
13034
13051
  }, 8, ["label", "label-width", "size", "rules", "prop", "class"])) : createCommentVNode("", true),
13035
13052
  !!this.designer ? (openBlock(), createElementBlock(Fragment, { key: 1 }, [
13036
- $props.designer.selectedId === $props.field.id ? (openBlock(), createElementBlock("div", _hoisted_17$1, [
13053
+ $props.designer.selectedId === $props.field.id ? (openBlock(), createElementBlock("div", _hoisted_17$2, [
13037
13054
  createElementVNode("i", {
13038
13055
  title: _ctx.i18nt("designer.hint.selectParentWidget"),
13039
13056
  onClick: _cache[5] || (_cache[5] = withModifiers(($event) => $options.selectParentWidget($props.field), ["stop"]))
13040
13057
  }, [
13041
13058
  createVNode(_component_svg_icon, { "icon-class": "el-back" })
13042
- ], 8, _hoisted_18$1),
13059
+ ], 8, _hoisted_18$2),
13043
13060
  !!$props.parentList && $props.parentList.length > 1 ? (openBlock(), createElementBlock("i", {
13044
13061
  key: 0,
13045
13062
  title: _ctx.i18nt("designer.hint.moveUpWidget"),
@@ -13081,7 +13098,7 @@ function _sfc_render$5a(_ctx, _cache, $props, $setup, $data, $options) {
13081
13098
  ], 64)) : createCommentVNode("", true)
13082
13099
  ], 2);
13083
13100
  }
13084
- var FormItemWrapper = /* @__PURE__ */ _export_sfc(_sfc_main$5a, [["render", _sfc_render$5a], ["__scopeId", "data-v-79e50b5e"]]);
13101
+ var FormItemWrapper = /* @__PURE__ */ _export_sfc(_sfc_main$5a, [["render", _sfc_render$5a], ["__scopeId", "data-v-45439cfe"]]);
13085
13102
  var __glob_0_10$3 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
13086
13103
  __proto__: null,
13087
13104
  "default": FormItemWrapper
@@ -122012,7 +122029,7 @@ const _hoisted_7$f = {
122012
122029
  class: "drag-handler background-opacity"
122013
122030
  };
122014
122031
  const _hoisted_8$d = ["title"];
122015
- const _hoisted_9$a = { key: 0 };
122032
+ const _hoisted_9$b = { key: 0 };
122016
122033
  function _sfc_render$58(_ctx, _cache, $props, $setup, $data, $options) {
122017
122034
  const _component_svg_icon = resolveComponent("svg-icon");
122018
122035
  return openBlock(), createElementBlock("div", {
@@ -122069,7 +122086,7 @@ function _sfc_render$58(_ctx, _cache, $props, $setup, $data, $options) {
122069
122086
  createVNode(_component_svg_icon, { "icon-class": "el-drag-move" })
122070
122087
  ], 8, _hoisted_8$d),
122071
122088
  createElementVNode("i", null, toDisplayString(_ctx.i18n2t(`designer.widgetLabel.${$props.field.type}`, `extension.widgetLabel.${$props.field.type}`)), 1),
122072
- $props.field.options.hidden === true ? (openBlock(), createElementBlock("i", _hoisted_9$a, [
122089
+ $props.field.options.hidden === true ? (openBlock(), createElementBlock("i", _hoisted_9$b, [
122073
122090
  createVNode(_component_svg_icon, { "icon-class": "el-hide" })
122074
122091
  ])) : createCommentVNode("", true)
122075
122092
  ])) : createCommentVNode("", true)
@@ -151692,7 +151709,7 @@ const _hoisted_5$j = ["href"];
151692
151709
  const _hoisted_6$h = ["title"];
151693
151710
  const _hoisted_7$e = ["onClick"];
151694
151711
  const _hoisted_8$c = ["title"];
151695
- const _hoisted_9$9 = ["title", "onClick"];
151712
+ const _hoisted_9$a = ["title", "onClick"];
151696
151713
  function _sfc_render$4$(_ctx, _cache, $props, $setup, $data, $options) {
151697
151714
  const _component_svg_icon = resolveComponent("svg-icon");
151698
151715
  const _component_el_upload = resolveComponent("el-upload");
@@ -151777,7 +151794,7 @@ function _sfc_render$4$(_ctx, _cache, $props, $setup, $data, $options) {
151777
151794
  onClick: ($event) => $options.removeUploadFile(file.name, file.url, file.uid)
151778
151795
  }, [
151779
151796
  createVNode(_component_svg_icon, { "icon-class": "el-delete" })
151780
- ], 8, _hoisted_9$9)) : createCommentVNode("", true)
151797
+ ], 8, _hoisted_9$a)) : createCommentVNode("", true)
151781
151798
  ])
151782
151799
  ]),
151783
151800
  _: 1
@@ -167165,7 +167182,7 @@ const _hoisted_8$b = {
167165
167182
  key: 0,
167166
167183
  class: "tab-item-icon fr"
167167
167184
  };
167168
- const _hoisted_9$8 = {
167185
+ const _hoisted_9$9 = {
167169
167186
  key: 0,
167170
167187
  class: "readonly-mode-field"
167171
167188
  };
@@ -167278,7 +167295,7 @@ function _sfc_render$4G(_ctx, _cache, $props, $setup, $data, $options) {
167278
167295
  ]),
167279
167296
  _: 1
167280
167297
  }, 8, ["show"]),
167281
- _ctx.isReadMode ? (openBlock(), createElementBlock("span", _hoisted_9$8, toDisplayString(_ctx.optionLabel), 1)) : createCommentVNode("", true)
167298
+ _ctx.isReadMode ? (openBlock(), createElementBlock("span", _hoisted_9$9, toDisplayString(_ctx.optionLabel), 1)) : createCommentVNode("", true)
167282
167299
  ]),
167283
167300
  _: 1
167284
167301
  }, 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"]);
@@ -169612,12 +169629,12 @@ const _hoisted_8$a = {
169612
169629
  key: 0,
169613
169630
  class: "row-number-span"
169614
169631
  };
169615
- const _hoisted_9$7 = { class: "grid-sub-form-data-row" };
169616
- const _hoisted_10$7 = {
169632
+ const _hoisted_9$8 = { class: "grid-sub-form-data-row" };
169633
+ const _hoisted_10$8 = {
169617
169634
  key: 2,
169618
169635
  class: "sub-form-action-column hide-label"
169619
169636
  };
169620
- const _hoisted_11$7 = { class: "action-button-column" };
169637
+ const _hoisted_11$8 = { class: "action-button-column" };
169621
169638
  function _sfc_render$4y(_ctx, _cache, $props, $setup, $data, $options) {
169622
169639
  const _component_el_button = resolveComponent("el-button");
169623
169640
  const _component_Delete = resolveComponent("Delete");
@@ -169707,7 +169724,7 @@ function _sfc_render$4y(_ctx, _cache, $props, $setup, $data, $options) {
169707
169724
  !$options.leftActionColumn && $props.widget.options.showRowNumber ? (openBlock(), createElementBlock("div", _hoisted_7$c, [
169708
169725
  $props.widget.options.showRowNumber ? (openBlock(), createElementBlock("span", _hoisted_8$a, "#" + toDisplayString($options.getSubFormRowIndex(sfrIdx) + 1), 1)) : createCommentVNode("", true)
169709
169726
  ])) : createCommentVNode("", true),
169710
- createElementVNode("div", _hoisted_9$7, [
169727
+ createElementVNode("div", _hoisted_9$8, [
169711
169728
  (openBlock(true), createElementBlock(Fragment, null, renderList($props.widget.widgetList, (subWidget, swIdx) => {
169712
169729
  return openBlock(), createBlock(resolveDynamicComponent(_ctx.getComponentByContainer(subWidget)), {
169713
169730
  key: $data.widgetSchemaData[$options.getSubFormRowIndex(sfrIdx)][swIdx].id,
@@ -169721,8 +169738,8 @@ function _sfc_render$4y(_ctx, _cache, $props, $setup, $data, $options) {
169721
169738
  }, null, 8, ["widget", "parent-list", "index-of-parent-list", "parent-widget", "sub-form-row-id", "sub-form-row-index", "sub-form-col-index"]);
169722
169739
  }), 128))
169723
169740
  ]),
169724
- $options.rightActionColumn && !$options.isReadMode ? (openBlock(), createElementBlock("div", _hoisted_10$7, [
169725
- createElementVNode("div", _hoisted_11$7, [
169741
+ $options.rightActionColumn && !$options.isReadMode ? (openBlock(), createElementBlock("div", _hoisted_10$8, [
169742
+ createElementVNode("div", _hoisted_11$8, [
169726
169743
  withDirectives(createVNode(_component_el_button, {
169727
169744
  disabled: $options.widgetDisabled || $data.actionDisabled || $data.insertDisabled,
169728
169745
  circle: "",
@@ -170357,24 +170374,24 @@ const _hoisted_8$9 = {
170357
170374
  key: 0,
170358
170375
  class: "sub-form-action-column hide-label"
170359
170376
  };
170360
- const _hoisted_9$6 = { class: "action-button-column" };
170361
- const _hoisted_10$6 = {
170377
+ const _hoisted_9$7 = { class: "action-button-column" };
170378
+ const _hoisted_10$7 = {
170362
170379
  key: 0,
170363
170380
  class: "row-number-span"
170364
170381
  };
170365
- const _hoisted_11$6 = {
170382
+ const _hoisted_11$7 = {
170366
170383
  key: 1,
170367
170384
  class: "row-no-column"
170368
170385
  };
170369
- const _hoisted_12$5 = {
170386
+ const _hoisted_12$6 = {
170370
170387
  key: 0,
170371
170388
  class: "row-number-span"
170372
170389
  };
170373
- const _hoisted_13$4 = {
170390
+ const _hoisted_13$5 = {
170374
170391
  key: 2,
170375
170392
  class: "sub-form-action-column hide-label"
170376
170393
  };
170377
- const _hoisted_14$3 = { class: "action-button-column" };
170394
+ const _hoisted_14$4 = { class: "action-button-column" };
170378
170395
  function _sfc_render$4w(_ctx, _cache, $props, $setup, $data, $options) {
170379
170396
  const _component_svg_icon = resolveComponent("svg-icon");
170380
170397
  const _component_el_button = resolveComponent("el-button");
@@ -170512,7 +170529,7 @@ function _sfc_render$4w(_ctx, _cache, $props, $setup, $data, $options) {
170512
170529
  }, {
170513
170530
  default: withCtx(() => [
170514
170531
  $options.leftActionColumn ? (openBlock(), createElementBlock("div", _hoisted_8$9, [
170515
- createElementVNode("div", _hoisted_9$6, [
170532
+ createElementVNode("div", _hoisted_9$7, [
170516
170533
  withDirectives(createVNode(_component_el_button, {
170517
170534
  disabled: $options.widgetDisabled || $data.actionDisabled || $data.insertDisabled,
170518
170535
  circle: "",
@@ -170539,11 +170556,11 @@ function _sfc_render$4w(_ctx, _cache, $props, $setup, $data, $options) {
170539
170556
  }, 1032, ["disabled", "onClick", "title"]), [
170540
170557
  [vShow, !$options.isReadMode]
170541
170558
  ]),
170542
- $props.widget.options.showRowNumber ? (openBlock(), createElementBlock("span", _hoisted_10$6, "#" + toDisplayString($options.getSubFormRowIndex(sfrIdx) + 1), 1)) : createCommentVNode("", true)
170559
+ $props.widget.options.showRowNumber ? (openBlock(), createElementBlock("span", _hoisted_10$7, "#" + toDisplayString($options.getSubFormRowIndex(sfrIdx) + 1), 1)) : createCommentVNode("", true)
170543
170560
  ])
170544
170561
  ])) : createCommentVNode("", true),
170545
- !$options.leftActionColumn && $props.widget.options.showRowNumber ? (openBlock(), createElementBlock("div", _hoisted_11$6, [
170546
- $props.widget.options.showRowNumber ? (openBlock(), createElementBlock("span", _hoisted_12$5, "#" + toDisplayString($options.getSubFormRowIndex(sfrIdx) + 1), 1)) : createCommentVNode("", true)
170562
+ !$options.leftActionColumn && $props.widget.options.showRowNumber ? (openBlock(), createElementBlock("div", _hoisted_11$7, [
170563
+ $props.widget.options.showRowNumber ? (openBlock(), createElementBlock("span", _hoisted_12$6, "#" + toDisplayString($options.getSubFormRowIndex(sfrIdx) + 1), 1)) : createCommentVNode("", true)
170547
170564
  ])) : createCommentVNode("", true),
170548
170565
  (openBlock(true), createElementBlock(Fragment, null, renderList($props.widget.widgetList, (subWidget, swIdx) => {
170549
170566
  return withDirectives((openBlock(), createElementBlock("div", {
@@ -170564,8 +170581,8 @@ function _sfc_render$4w(_ctx, _cache, $props, $setup, $data, $options) {
170564
170581
  [vShow, !subWidget.options.hidden]
170565
170582
  ]);
170566
170583
  }), 128)),
170567
- !$options.leftActionColumn && !$options.isReadMode ? (openBlock(), createElementBlock("div", _hoisted_13$4, [
170568
- createElementVNode("div", _hoisted_14$3, [
170584
+ !$options.leftActionColumn && !$options.isReadMode ? (openBlock(), createElementBlock("div", _hoisted_13$5, [
170585
+ createElementVNode("div", _hoisted_14$4, [
170569
170586
  withDirectives(createVNode(_component_el_button, {
170570
170587
  disabled: $options.widgetDisabled || $data.actionDisabled || $data.insertDisabled,
170571
170588
  circle: "",
@@ -175007,12 +175024,14 @@ const containerKeys = [
175007
175024
  "alert"
175008
175025
  ];
175009
175026
  var index_vue_vue_type_style_index_0_scoped_true_lang$6 = "";
175027
+ var index_vue_vue_type_style_index_1_lang$2 = "";
175010
175028
  const _sfc_main$4l = {
175011
175029
  name: "VFormRender",
175012
175030
  componentName: "VFormRender",
175013
175031
  mixins: [emitter, i18n$1],
175014
175032
  components: __spreadValues({
175015
- Document
175033
+ Document,
175034
+ AvatarCom
175016
175035
  }, comps$1),
175017
175036
  props: {
175018
175037
  apiResponse: {
@@ -175090,6 +175109,10 @@ const _sfc_main$4l = {
175090
175109
  previewOnlyWithValue: {
175091
175110
  type: Boolean,
175092
175111
  default: false
175112
+ },
175113
+ enableHistoryView: {
175114
+ type: Boolean,
175115
+ default: false
175093
175116
  }
175094
175117
  },
175095
175118
  provide() {
@@ -175101,6 +175124,7 @@ const _sfc_main$4l = {
175101
175124
  getGlobalDsv: () => this.globalDsv,
175102
175125
  globalOptionData: this.optionData,
175103
175126
  getOptionData: () => this.optionData,
175127
+ enableHistoryView: this.enableHistoryView,
175104
175128
  globalModel: {
175105
175129
  formModel: this.formDataModel
175106
175130
  },
@@ -175130,6 +175154,9 @@ const _sfc_main$4l = {
175130
175154
  data() {
175131
175155
  return {
175132
175156
  previewData: [],
175157
+ previewHistoryPopoverVisible: {},
175158
+ previewHistoryLoading: {},
175159
+ previewHistoryList: {},
175133
175160
  formJsonObj: this.formJson,
175134
175161
  formDataModel: {},
175135
175162
  widgetRefList: {},
@@ -175657,7 +175684,7 @@ const _sfc_main$4l = {
175657
175684
  headers["X-Authorization"] = "Bearer " + rToken;
175658
175685
  }
175659
175686
  const url = commonGETUrlTranslation("formset/data_source_manage", { is_all: 1 });
175660
- return axios.get(url, { headers });
175687
+ return axios$1.get(url, { headers });
175661
175688
  } catch (error2) {
175662
175689
  console.error(error2);
175663
175690
  }
@@ -176098,6 +176125,57 @@ const _sfc_main$4l = {
176098
176125
  }
176099
176126
  return mappedResult;
176100
176127
  },
176128
+ async handlePreviewLabelClick(item) {
176129
+ if (!this.enableHistoryView || !item.biz_meta_id) {
176130
+ return;
176131
+ }
176132
+ const bizMetaId = item.biz_meta_id;
176133
+ if (this.previewHistoryPopoverVisible[bizMetaId]) {
176134
+ this.$set(this.previewHistoryPopoverVisible, bizMetaId, false);
176135
+ return;
176136
+ }
176137
+ this.$set(this.previewHistoryPopoverVisible, bizMetaId, true);
176138
+ await this.loadPreviewHistoryRecord(bizMetaId);
176139
+ },
176140
+ async loadPreviewHistoryRecord(bizMetaId) {
176141
+ var _a2, _b2, _c2, _d2, _e;
176142
+ if (this.previewHistoryLoading[bizMetaId]) {
176143
+ return;
176144
+ }
176145
+ try {
176146
+ this.$set(this.previewHistoryLoading, bizMetaId, true);
176147
+ this.$set(this.previewHistoryList, bizMetaId, []);
176148
+ if (!bizMetaId) {
176149
+ this.$set(this.previewHistoryList, bizMetaId, []);
176150
+ return;
176151
+ }
176152
+ const token = almLocalStorage.getItem("token");
176153
+ const rToken = almLocalStorage.getItem("rToken");
176154
+ const tokenTime = almLocalStorage.getItem("tokenTime");
176155
+ const headers = {};
176156
+ if (token !== null)
176157
+ headers["Authorization"] = "Bearer " + token;
176158
+ if (!tokenTime && rToken) {
176159
+ headers["X-Authorization"] = "Bearer " + rToken;
176160
+ }
176161
+ const params = {
176162
+ biz_meta_id: bizMetaId
176163
+ };
176164
+ params.clue_id = (_c2 = (_b2 = (_a2 = this.formJsonObj) == null ? void 0 : _a2.formConfig) == null ? void 0 : _b2.v_form_params) == null ? void 0 : _c2.CrmClueId;
176165
+ const url = commonGETUrlTranslation("case_module/biz_metadata_history_value", params);
176166
+ const response = await axios$1.get(url, { headers });
176167
+ if (((_d2 = response == null ? void 0 : response.data) == null ? void 0 : _d2.Succeeded) && Array.isArray((_e = response == null ? void 0 : response.data) == null ? void 0 : _e.Data)) {
176168
+ this.$set(this.previewHistoryList, bizMetaId, response.data.Data);
176169
+ } else {
176170
+ this.$set(this.previewHistoryList, bizMetaId, []);
176171
+ }
176172
+ } catch (error2) {
176173
+ console.error("\u83B7\u53D6\u5386\u53F2\u8BB0\u5F55\u5931\u8D25:", error2);
176174
+ this.$set(this.previewHistoryList, bizMetaId, []);
176175
+ } finally {
176176
+ this.$set(this.previewHistoryLoading, bizMetaId, false);
176177
+ }
176178
+ },
176101
176179
  hasParentLogic(item) {
176102
176180
  return item.options && item.options.parentid && (item.options.parentvalueList && item.options.parentvalueList.length || item.options.parentvalue);
176103
176181
  },
@@ -176280,7 +176358,7 @@ const _sfc_main$4l = {
176280
176358
  });
176281
176359
  return this.doGetFormData(formDataModelEx, needValidation);
176282
176360
  },
176283
- setFormData(formData, disableChangeEvent = false) {
176361
+ setFormData(formData, disableChangeEvent = false, fullData = {}) {
176284
176362
  let formDataObj = formData;
176285
176363
  if (typeof formData === "string") {
176286
176364
  formDataObj = JSON.parse(formData);
@@ -176290,22 +176368,46 @@ const _sfc_main$4l = {
176290
176368
  this.formDataModel[propName] = deepClone(formDataObj[propName]);
176291
176369
  }
176292
176370
  });
176293
- const fieldContentMap = {};
176294
- if (this.formObj && Object.keys(this.formObj).length > 0) {
176295
- Object.keys(this.formObj).forEach((fieldName) => {
176296
- const fieldObj = this.formObj[fieldName];
176297
- if (fieldObj && fieldObj.content !== void 0) {
176298
- if (fieldObj.value !== void 0 && !Array.isArray(fieldObj.value)) {
176299
- fieldContentMap[fieldName] = {
176300
- value: fieldObj.value,
176301
- content: fieldObj.content
176302
- };
176303
- } else if (Array.isArray(fieldObj.value) && Array.isArray(fieldObj.content)) {
176304
- fieldContentMap[fieldName] = {};
176305
- fieldObj.value.forEach((val, index2) => {
176306
- if (fieldContentMap[fieldName][val] === void 0) {
176307
- fieldContentMap[fieldName][val] = fieldObj.content[index2] || val;
176308
- }
176371
+ if (fullData && typeof fullData === "object" && Object.keys(fullData).length > 0) {
176372
+ const allFields = getAllFieldWidgets(this.formJsonObj.widgetList, false);
176373
+ Object.keys(fullData).forEach((fieldName) => {
176374
+ const fullDataItem = fullData[fieldName];
176375
+ if (!fullDataItem || typeof fullDataItem !== "object") {
176376
+ return;
176377
+ }
176378
+ const { value: value2, content: content2 } = fullDataItem;
176379
+ if (value2 === void 0 || value2 === null || content2 === void 0 || content2 === null) {
176380
+ return;
176381
+ }
176382
+ const matchedField = allFields.find((f) => f.name === fieldName);
176383
+ if (!matchedField || !matchedField.field) {
176384
+ return;
176385
+ }
176386
+ const field = matchedField.field;
176387
+ const fieldType = field.type;
176388
+ if (fieldType !== "select" && fieldType !== "DIYselect") {
176389
+ return;
176390
+ }
176391
+ if (!field.options.optionItems) {
176392
+ field.options.optionItems = [];
176393
+ }
176394
+ let exists = false;
176395
+ if (fieldType === "select") {
176396
+ exists = field.options.optionItems.some((item) => item.value === value2);
176397
+ if (!exists) {
176398
+ field.options.optionItems.push({
176399
+ label: content2,
176400
+ value: value2,
176401
+ disabled: false
176402
+ });
176403
+ }
176404
+ } else if (fieldType === "DIYselect") {
176405
+ exists = field.options.optionItems.some((item) => item.Id === value2 || item.id === value2);
176406
+ if (!exists) {
176407
+ field.options.optionItems.push({
176408
+ Id: value2,
176409
+ Name: content2,
176410
+ disabled: false
176309
176411
  });
176310
176412
  }
176311
176413
  }
@@ -176313,7 +176415,7 @@ const _sfc_main$4l = {
176313
176415
  }
176314
176416
  this.setCEOCDisabledFlag(disableChangeEvent);
176315
176417
  this.broadcast("ContainerItem", "setFormData", [this.formDataModel, disableChangeEvent, this.isCaseEdit]);
176316
- this.broadcast("FieldWidget", "setFormData", [this.formDataModel, disableChangeEvent, this.isCaseEdit, fieldContentMap]);
176418
+ this.broadcast("FieldWidget", "setFormData", [this.formDataModel, disableChangeEvent, this.isCaseEdit]);
176317
176419
  },
176318
176420
  setFormDataEx(formData, disableChangeEvent = false) {
176319
176421
  let formDataObj = formData;
@@ -176724,24 +176826,49 @@ const _hoisted_2$o = {
176724
176826
  key: 0,
176725
176827
  class: "empty-preview"
176726
176828
  };
176727
- const _hoisted_3$j = { class: "wrapper" };
176728
- const _hoisted_4$g = { class: "title" };
176829
+ const _hoisted_3$j = ["onClick"];
176830
+ const _hoisted_4$g = { class: "history-record-content" };
176729
176831
  const _hoisted_5$d = {
176730
176832
  key: 0,
176731
- class: "content image"
176833
+ class: "history-loading"
176834
+ };
176835
+ const _hoisted_6$b = {
176836
+ key: 1,
176837
+ class: "history-empty"
176838
+ };
176839
+ const _hoisted_7$9 = {
176840
+ key: 2,
176841
+ class: "history-list"
176732
176842
  };
176733
- const _hoisted_6$b = ["onClick", "title"];
176734
- const _hoisted_7$9 = { class: "file-name" };
176735
- const _hoisted_8$8 = {
176843
+ const _hoisted_8$8 = { class: "history-item-header" };
176844
+ const _hoisted_9$6 = { class: "history-user-info" };
176845
+ const _hoisted_10$6 = ["src"];
176846
+ const _hoisted_11$6 = { class: "history-user-name" };
176847
+ const _hoisted_12$5 = { class: "history-time" };
176848
+ const _hoisted_13$4 = { class: "history-content" };
176849
+ const _hoisted_14$3 = {
176736
176850
  key: 1,
176851
+ class: "title"
176852
+ };
176853
+ const _hoisted_15$2 = {
176854
+ key: 2,
176855
+ class: "content image"
176856
+ };
176857
+ const _hoisted_16$2 = ["onClick", "title"];
176858
+ const _hoisted_17$1 = { class: "file-name" };
176859
+ const _hoisted_18$1 = {
176860
+ key: 3,
176737
176861
  class: "content"
176738
176862
  };
176739
176863
  function _sfc_render$4l(_ctx, _cache, $props, $setup, $data, $options) {
176740
176864
  const _component_el_form = resolveComponent("el-form");
176741
176865
  const _component_el_empty = resolveComponent("el-empty");
176866
+ const _component_Loading = resolveComponent("Loading");
176867
+ const _component_el_icon = resolveComponent("el-icon");
176868
+ const _component_AvatarCom = resolveComponent("AvatarCom");
176869
+ const _component_el_popover = resolveComponent("el-popover");
176742
176870
  const _component_el_image = resolveComponent("el-image");
176743
176871
  const _component_Document = resolveComponent("Document");
176744
- const _component_el_icon = resolveComponent("el-icon");
176745
176872
  const _directive_loading = resolveDirective("loading");
176746
176873
  return withDirectives((openBlock(), createElementBlock("div", _hoisted_1$E, [
176747
176874
  !$props.isPreview ? (openBlock(), createBlock(_component_el_form, {
@@ -176817,10 +176944,67 @@ function _sfc_render$4l(_ctx, _cache, $props, $setup, $data, $options) {
176817
176944
  description: "\u6682\u65E0\u6570\u636E",
176818
176945
  "image-size": 100
176819
176946
  })
176820
- ])) : (openBlock(true), createElementBlock(Fragment, { key: 1 }, renderList($options.previewData, (item) => {
176821
- return openBlock(), createElementBlock("div", _hoisted_3$j, [
176822
- createElementVNode("div", _hoisted_4$g, toDisplayString(item == null ? void 0 : item.name), 1),
176823
- Array.isArray(item.value) ? (openBlock(), createElementBlock("div", _hoisted_5$d, [
176947
+ ])) : (openBlock(true), createElementBlock(Fragment, { key: 1 }, renderList($options.previewData, (item, index2) => {
176948
+ return openBlock(), createElementBlock("div", {
176949
+ class: "wrapper",
176950
+ key: index2
176951
+ }, [
176952
+ $props.enableHistoryView && item.biz_meta_id ? (openBlock(), createBlock(_component_el_popover, {
176953
+ key: 0,
176954
+ visible: $data.previewHistoryPopoverVisible[item.biz_meta_id],
176955
+ "onUpdate:visible": ($event) => $data.previewHistoryPopoverVisible[item.biz_meta_id] = $event,
176956
+ placement: "top-start",
176957
+ width: 400,
176958
+ trigger: "manual",
176959
+ "popper-class": "field-history-popover"
176960
+ }, {
176961
+ reference: withCtx(() => [
176962
+ createElementVNode("div", {
176963
+ class: "title title-clickable",
176964
+ onClick: withModifiers(($event) => $options.handlePreviewLabelClick(item), ["stop"])
176965
+ }, toDisplayString(item == null ? void 0 : item.name), 9, _hoisted_3$j)
176966
+ ]),
176967
+ default: withCtx(() => [
176968
+ createElementVNode("div", _hoisted_4$g, [
176969
+ _cache[2] || (_cache[2] = createElementVNode("div", { class: "history-header" }, "\u5386\u53F2\u8BB0\u5F55", -1)),
176970
+ $data.previewHistoryLoading[item.biz_meta_id] ? (openBlock(), createElementBlock("div", _hoisted_5$d, [
176971
+ createVNode(_component_el_icon, { class: "is-loading" }, {
176972
+ default: withCtx(() => [
176973
+ createVNode(_component_Loading)
176974
+ ]),
176975
+ _: 1
176976
+ }),
176977
+ _cache[1] || (_cache[1] = createElementVNode("span", null, "\u52A0\u8F7D\u4E2D...", -1))
176978
+ ])) : !$data.previewHistoryList[item.biz_meta_id] || $data.previewHistoryList[item.biz_meta_id].length === 0 ? (openBlock(), createElementBlock("div", _hoisted_6$b, "\u6682\u65E0\u5386\u53F2\u8BB0\u5F55")) : (openBlock(), createElementBlock("div", _hoisted_7$9, [
176979
+ (openBlock(true), createElementBlock(Fragment, null, renderList($data.previewHistoryList[item.biz_meta_id], (historyItem, historyIndex) => {
176980
+ return openBlock(), createElementBlock("div", {
176981
+ key: historyIndex,
176982
+ class: "history-item"
176983
+ }, [
176984
+ createElementVNode("div", _hoisted_8$8, [
176985
+ createElementVNode("div", _hoisted_9$6, [
176986
+ historyItem.created_avatar ? (openBlock(), createElementBlock("img", {
176987
+ key: 0,
176988
+ class: "history-user-avatar",
176989
+ src: historyItem.created_avatar
176990
+ }, null, 8, _hoisted_10$6)) : (openBlock(), createBlock(_component_AvatarCom, {
176991
+ key: 1,
176992
+ class: "history-user-avatar",
176993
+ name: historyItem.created_username
176994
+ }, null, 8, ["name"])),
176995
+ createElementVNode("span", _hoisted_11$6, toDisplayString(historyItem.created_username || "\u7CFB\u7EDF"), 1)
176996
+ ]),
176997
+ createElementVNode("span", _hoisted_12$5, toDisplayString(historyItem.created_time || ""), 1)
176998
+ ]),
176999
+ createElementVNode("div", _hoisted_13$4, toDisplayString(historyItem.content || ""), 1)
177000
+ ]);
177001
+ }), 128))
177002
+ ]))
177003
+ ])
177004
+ ]),
177005
+ _: 2
177006
+ }, 1032, ["visible", "onUpdate:visible"])) : (openBlock(), createElementBlock("div", _hoisted_14$3, toDisplayString(item == null ? void 0 : item.name), 1)),
177007
+ Array.isArray(item.value) ? (openBlock(), createElementBlock("div", _hoisted_15$2, [
176824
177008
  item.type === "file-upload" || item.type === "picture-upload" ? (openBlock(true), createElementBlock(Fragment, { key: 0 }, renderList(item.value, (file) => {
176825
177009
  return openBlock(), createElementBlock(Fragment, {
176826
177010
  key: file.uid || file.url
@@ -176843,8 +177027,8 @@ function _sfc_render$4l(_ctx, _cache, $props, $setup, $data, $options) {
176843
177027
  ]),
176844
177028
  _: 1
176845
177029
  }),
176846
- createElementVNode("span", _hoisted_7$9, toDisplayString(file.name || "\u6587\u4EF6"), 1)
176847
- ], 8, _hoisted_6$b))
177030
+ createElementVNode("span", _hoisted_17$1, toDisplayString(file.name || "\u6587\u4EF6"), 1)
177031
+ ], 8, _hoisted_16$2))
176848
177032
  ], 64);
176849
177033
  }), 128)) : (openBlock(), createElementBlock(Fragment, { key: 1 }, [
176850
177034
  createTextVNode(toDisplayString(item.content ? (() => {
@@ -176856,15 +177040,15 @@ function _sfc_render$4l(_ctx, _cache, $props, $setup, $data, $options) {
176856
177040
  }
176857
177041
  })() : "--"), 1)
176858
177042
  ], 64))
176859
- ])) : (openBlock(), createElementBlock("div", _hoisted_8$8, toDisplayString((item == null ? void 0 : item.content) || "--"), 1))
177043
+ ])) : (openBlock(), createElementBlock("div", _hoisted_18$1, toDisplayString((item == null ? void 0 : item.content) || "--"), 1))
176860
177044
  ]);
176861
- }), 256))
177045
+ }), 128))
176862
177046
  ], 64))
176863
177047
  ])), [
176864
177048
  [_directive_loading, $data.formLoading]
176865
177049
  ]);
176866
177050
  }
176867
- var VFormRender = /* @__PURE__ */ _export_sfc(_sfc_main$4l, [["render", _sfc_render$4l], ["__scopeId", "data-v-744f2dc0"]]);
177051
+ var VFormRender = /* @__PURE__ */ _export_sfc(_sfc_main$4l, [["render", _sfc_render$4l], ["__scopeId", "data-v-b2986030"]]);
176868
177052
  var ace$2 = { exports: {} };
176869
177053
  (function(module, exports) {
176870
177054
  (function() {
@@ -236229,13 +236413,13 @@ var Draggable = /* @__PURE__ */ getDefaultExportFromCjs(vuedraggable_umd.exports
236229
236413
  if (typeof window !== "undefined") {
236230
236414
  let loadSvg = function() {
236231
236415
  var body = document.body;
236232
- var svgDom = document.getElementById("__svg__icons__dom__1767697756187__");
236416
+ var svgDom = document.getElementById("__svg__icons__dom__1767769755264__");
236233
236417
  if (!svgDom) {
236234
236418
  svgDom = document.createElementNS("http://www.w3.org/2000/svg", "svg");
236235
236419
  svgDom.style.position = "absolute";
236236
236420
  svgDom.style.width = "0";
236237
236421
  svgDom.style.height = "0";
236238
- svgDom.id = "__svg__icons__dom__1767697756187__";
236422
+ svgDom.id = "__svg__icons__dom__1767769755264__";
236239
236423
  svgDom.setAttribute("xmlns", "http://www.w3.org/2000/svg");
236240
236424
  svgDom.setAttribute("xmlns:link", "http://www.w3.org/1999/xlink");
236241
236425
  }
@@ -237216,8 +237400,7 @@ const _sfc_main$3 = {
237216
237400
  rules: [],
237217
237401
  requestData: [],
237218
237402
  defaultAvatarSrc: "https://static.yuanjia101.com/CRMProjectH5/public/image/avatar.png",
237219
- isSettingValue: false,
237220
- queryingIds: new Set()
237403
+ isSettingValue: false
237221
237404
  };
237222
237405
  },
237223
237406
  computed: {
@@ -237258,35 +237441,6 @@ const _sfc_main$3 = {
237258
237441
  this.initEventHandler();
237259
237442
  this.buildFieldRules();
237260
237443
  this.handleOnCreated();
237261
- this.$nextTick(() => {
237262
- this.off$("setFormData");
237263
- this.on$("setFormData", (params) => {
237264
- const newFormData = params[0];
237265
- const disableChangeEvent = params[1];
237266
- const isCaseEdit = params[2];
237267
- const fieldContentMap = params[3];
237268
- if (!this.subFormItemFlag) {
237269
- if (!!this.getObjectFieldFlag() && !this.designState) {
237270
- const objectModel = this.getObjectModel();
237271
- this.setValue(objectModel === void 0 ? null : objectModel[this.fieldKeyName], disableChangeEvent);
237272
- } else {
237273
- if (this.field.options.disabled === 1) {
237274
- this.setDisabled(!!newFormData[this.fieldKeyName]);
237275
- } else if (this.field.options.disabled === 2 && isCaseEdit) {
237276
- this.setDisabled(!!newFormData[this.fieldKeyName]);
237277
- } else {
237278
- this.setDisabled(false);
237279
- }
237280
- const fieldValue = newFormData[this.fieldKeyName];
237281
- if (fieldValue !== null && fieldValue !== void 0 && fieldValue !== "") {
237282
- this.handleSetFormDataWithContent(fieldValue, fieldContentMap, disableChangeEvent);
237283
- } else {
237284
- this.setValue(fieldValue, disableChangeEvent);
237285
- }
237286
- }
237287
- }
237288
- });
237289
- });
237290
237444
  },
237291
237445
  mounted() {
237292
237446
  this.handleOnMounted();
@@ -237295,156 +237449,6 @@ const _sfc_main$3 = {
237295
237449
  this.unregisterFromRefList();
237296
237450
  },
237297
237451
  methods: {
237298
- isValueInOptions(value2) {
237299
- if (value2 === null || value2 === void 0 || value2 === "") {
237300
- return true;
237301
- }
237302
- const optionItems = this.field.options.optionItems || [];
237303
- if (this.field.options.multiple && Array.isArray(value2)) {
237304
- return value2.every((v) => optionItems.some((item) => item.Id === v || item.id === v));
237305
- }
237306
- return optionItems.some((item) => item.Id === value2 || item.id === value2);
237307
- },
237308
- queryById(idValue) {
237309
- if (!idValue || idValue === "") {
237310
- return;
237311
- }
237312
- if (this.queryingIds.has(idValue)) {
237313
- return;
237314
- }
237315
- if (this.isValueInOptions(idValue)) {
237316
- return;
237317
- }
237318
- this.queryingIds.add(idValue);
237319
- let that = this;
237320
- almLocalStorage.removeItem("formId");
237321
- let header = {};
237322
- const token = almLocalStorage.getItem("token");
237323
- const rToken = almLocalStorage.getItem("rToken");
237324
- const tokenTime = almLocalStorage.getItem("tokenTime");
237325
- if (token !== null)
237326
- header["Authorization"] = "Bearer " + token;
237327
- if (!tokenTime && rToken) {
237328
- header["X-Authorization"] = "Bearer " + rToken;
237329
- }
237330
- this.loading = true;
237331
- let url = null;
237332
- let foundDataSource = false;
237333
- for (let i5 = 0; i5 < this.formatDataSourceList.length && !foundDataSource; i5++) {
237334
- const item = this.formatDataSourceList[i5];
237335
- for (let j5 = 0; j5 < this.widgetList.length && !foundDataSource; j5++) {
237336
- const items = this.widgetList[j5];
237337
- if (this.field.options.name == items.options.name) {
237338
- let dsName = items.options.dsName || null;
237339
- let dsID = items.options.dsID || null;
237340
- if (dsID == item.dataSourceId || dsName == item.uniqueName) {
237341
- url = JSON.parse(JSON.stringify(item));
237342
- foundDataSource = true;
237343
- const request_url = commonGETUrlTranslation("formset/formset_construct_manage");
237344
- const handleSuccess = (result) => {
237345
- var _a2;
237346
- let requestData = ((_a2 = result.data.Data) == null ? void 0 : _a2.Items) || result.data.Data || [];
237347
- if (!Array.isArray(requestData)) {
237348
- requestData = [requestData];
237349
- }
237350
- if (requestData.length > 0) {
237351
- requestData.forEach((dtem) => {
237352
- dtem.label = dtem[url.labelKey] || dtem.Name;
237353
- dtem.value = dtem[url.valueKey] || dtem.Id;
237354
- });
237355
- const existingIds = (that.field.options.optionItems || []).map((item2) => item2.Id || item2.id);
237356
- requestData.forEach((newItem) => {
237357
- const itemId = newItem.Id || newItem.id;
237358
- if (!existingIds.includes(itemId)) {
237359
- if (!that.field.options.optionItems) {
237360
- that.field.options.optionItems = [];
237361
- }
237362
- that.field.options.optionItems.push(newItem);
237363
- }
237364
- });
237365
- }
237366
- that.queryingIds.delete(idValue);
237367
- that.loading = false;
237368
- };
237369
- const handleError = (error2) => {
237370
- console.error("\u67E5\u8BE2\u9009\u9879\u5931\u8D25:", error2);
237371
- that.queryingIds.delete(idValue);
237372
- that.loading = false;
237373
- };
237374
- if (url.requestMethod == "post") {
237375
- axios$1[url.requestMethod](request_url, {
237376
- keywords: idValue
237377
- }, {
237378
- headers: header
237379
- }).then(handleSuccess).catch(handleError);
237380
- } else {
237381
- const idParam = `keywords=${idValue}`;
237382
- const baseUrl = url.requestURL || "";
237383
- const queryUrl = baseUrl.includes("?") ? `${baseUrl}&${idParam}` : `${baseUrl}?${idParam}`;
237384
- axios$1[url.requestMethod](queryUrl, {
237385
- headers: header
237386
- }).then(handleSuccess).catch(handleError);
237387
- }
237388
- }
237389
- }
237390
- }
237391
- }
237392
- if (!foundDataSource) {
237393
- this.queryingIds.delete(idValue);
237394
- this.loading = false;
237395
- }
237396
- },
237397
- handleSetFormDataWithContent(fieldValue, fieldContentMap, disableChangeEvent = false) {
237398
- if (!fieldContentMap) {
237399
- this.setValue(fieldValue, disableChangeEvent);
237400
- return;
237401
- }
237402
- const fieldName = this.field.options.name;
237403
- const contentInfo = fieldContentMap[fieldName];
237404
- if (!contentInfo) {
237405
- this.setValue(fieldValue, disableChangeEvent);
237406
- return;
237407
- }
237408
- if (this.field.options.multiple && Array.isArray(fieldValue)) {
237409
- const missingValues = fieldValue.filter((v) => v !== null && v !== void 0 && v !== "" && !this.isValueInOptions(v));
237410
- if (missingValues.length > 0 && typeof contentInfo === "object" && !Array.isArray(contentInfo)) {
237411
- missingValues.forEach((value2) => {
237412
- const content2 = contentInfo[value2];
237413
- if (content2 && !this.isValueInOptions(value2)) {
237414
- this.addOptionFromContent(value2, content2);
237415
- }
237416
- });
237417
- }
237418
- } else if (!this.isValueInOptions(fieldValue)) {
237419
- const content2 = typeof contentInfo === "object" && !Array.isArray(contentInfo) ? contentInfo[fieldValue] : contentInfo.content || contentInfo;
237420
- if (content2) {
237421
- this.addOptionFromContent(fieldValue, content2);
237422
- }
237423
- }
237424
- this.setValue(fieldValue, disableChangeEvent);
237425
- },
237426
- addOptionFromContent(value2, content2) {
237427
- if (!value2 || value2 === "") {
237428
- return;
237429
- }
237430
- const existingIds = (this.field.options.optionItems || []).map((item) => item.Id || item.id);
237431
- if (existingIds.includes(value2)) {
237432
- return;
237433
- }
237434
- const newOption = {
237435
- Id: value2,
237436
- id: value2,
237437
- Name: content2 || String(value2),
237438
- name: content2 || String(value2),
237439
- label: content2 || String(value2),
237440
- value: value2,
237441
- Avatar: this.defaultAvatarSrc
237442
- };
237443
- if (!this.field.options.optionItems) {
237444
- this.field.options.optionItems = [];
237445
- }
237446
- this.field.options.optionItems.push(newOption);
237447
- },
237448
237452
  setValue(newValue, disableChangeEvent = false) {
237449
237453
  if (!!this.field.formItemFlag) {
237450
237454
  this.isSettingValue = true;
@@ -237457,13 +237461,6 @@ const _sfc_main$3 = {
237457
237461
  }
237458
237462
  this.oldFieldValue = newValue;
237459
237463
  this.clearValidate();
237460
- const valuesToCheck = this.field.options.multiple && Array.isArray(newValue) ? newValue : newValue !== null && newValue !== void 0 ? [newValue] : [];
237461
- const missingValues = valuesToCheck.filter((v) => v !== null && v !== void 0 && v !== "" && !this.isValueInOptions(v));
237462
- if (missingValues.length > 0) {
237463
- missingValues.forEach((id2) => {
237464
- this.queryById(id2);
237465
- });
237466
- }
237467
237464
  this.isSettingValue = false;
237468
237465
  }
237469
237466
  },
@@ -237618,7 +237615,7 @@ function _sfc_render$3(_ctx, _cache, $props, $setup, $data, $options) {
237618
237615
  __: [2]
237619
237616
  }, 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"]);
237620
237617
  }
237621
- var SelectWidget = /* @__PURE__ */ _export_sfc(_sfc_main$3, [["render", _sfc_render$3], ["__scopeId", "data-v-2408940e"]]);
237618
+ var SelectWidget = /* @__PURE__ */ _export_sfc(_sfc_main$3, [["render", _sfc_render$3], ["__scopeId", "data-v-2ffe261c"]]);
237622
237619
  var DIYtableWidget_vue_vue_type_style_index_0_scoped_true_lang = "";
237623
237620
  const _sfc_main$2 = {
237624
237621
  name: "DIYtable-widget",