super-page-runtime 2.3.47-sit1 → 2.3.47

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.
Files changed (79) hide show
  1. package/dist/es/components/runtime/utils/api/page-expose-util.js +136 -136
  2. package/dist/es/components/runtime/utils/events/event-util.js +121 -121
  3. package/dist/es/components/runtime/utils/events/print-label.js +34 -33
  4. package/dist/es/components/runtime/utils/events/standard-event.js +22 -22
  5. package/dist/es/components/runtime/utils/events/validator-util.js +209 -206
  6. package/dist/es/components/runtime/utils/page-init-util.js +47 -45
  7. package/dist/es/components/runtime/utils/table-utils.js +1 -1
  8. package/dist/es/components/runtime/views/assemblys/button/button/button-runtime.vue2.js +3 -3
  9. package/dist/es/components/runtime/views/assemblys/button/button-group/buttongroup-runtime.vue2.js +3 -3
  10. package/dist/es/components/runtime/views/assemblys/button/dropdown/dropdown-runtime.vue2.js +3 -3
  11. package/dist/es/components/runtime/views/assemblys/button/export-pdf/exportpdf-runtime.vue2.js +1 -1
  12. package/dist/es/components/runtime/views/assemblys/button/print-label/printlabel-runtime.vue2.js +3 -3
  13. package/dist/es/components/runtime/views/assemblys/chart/column-line/column-line-runtime.vue2.js +1 -1
  14. package/dist/es/components/runtime/views/assemblys/chart/common/common-chart-header-group.vue.js +10 -6
  15. package/dist/es/components/runtime/views/assemblys/chart/common/common-chart-header.vue.js +8 -6
  16. package/dist/es/components/runtime/views/assemblys/chart/common/common-homepage-search.vue2.js +1 -1
  17. package/dist/es/components/runtime/views/assemblys/chart/common/home-chart-condition-render.vue.js +8 -8
  18. package/dist/es/components/runtime/views/assemblys/chart/gauge/gauge-runtime.vue2.js +1 -1
  19. package/dist/es/components/runtime/views/assemblys/chart/pie/pie-runtime.vue2.js +1 -1
  20. package/dist/es/components/runtime/views/assemblys/chart/radar/radar-runtime.vue2.js +1 -1
  21. package/dist/es/components/runtime/views/assemblys/chart/scatter/scatter-runtime.vue2.js +1 -1
  22. package/dist/es/components/runtime/views/assemblys/chart/table/chart-table-util.js +104 -99
  23. package/dist/es/components/runtime/views/assemblys/chart/table/table-runtime.vue2.js +3 -2
  24. package/dist/es/components/runtime/views/assemblys/common/event-call-component.vue.js +13 -13
  25. package/dist/es/components/runtime/views/assemblys/common/export-form-report-dialog.vue.js +11 -9
  26. package/dist/es/components/runtime/views/assemblys/common/save-chart-condition-dialog.vue.js +1 -1
  27. package/dist/es/components/runtime/views/assemblys/container/card/card-runtime.vue2.js +3 -3
  28. package/dist/es/components/runtime/views/assemblys/container/collapse/collapse-runtime.vue2.js +3 -3
  29. package/dist/es/components/runtime/views/assemblys/container/container/container-runtime.vue2.js +3 -3
  30. package/dist/es/components/runtime/views/assemblys/container/fixed/YxAffix.vue2.js +2 -0
  31. package/dist/es/components/runtime/views/assemblys/container/flex/flex-runtime.vue2.js +3 -3
  32. package/dist/es/components/runtime/views/assemblys/container/form/form-runtime.vue2.js +3 -3
  33. package/dist/es/components/runtime/views/assemblys/container/iframe/iframe-runtime.vue2.js +5 -5
  34. package/dist/es/components/runtime/views/assemblys/container/tabs/tabs-runtime.vue.js +1 -1
  35. package/dist/es/components/runtime/views/assemblys/container/tabs/tabs-runtime.vue2.js +42 -42
  36. package/dist/es/components/runtime/views/assemblys/data/bar-code/barcode-runtime.vue2.js +11 -9
  37. package/dist/es/components/runtime/views/assemblys/data/table/main-table-runtime.vue.js +1 -1
  38. package/dist/es/components/runtime/views/assemblys/data/table/table-runtime.vue2.js +1 -1
  39. package/dist/es/components/runtime/views/assemblys/data/tree/tree-runtime.vue.js +1 -1
  40. package/dist/es/components/runtime/views/assemblys/data/tree/tree-runtime.vue2.js +94 -93
  41. package/dist/es/components/runtime/views/assemblys/form/checkbox/checkbox-runtime.vue2.js +3 -3
  42. package/dist/es/components/runtime/views/assemblys/form/common/title-suffix-element.vue.js +3 -3
  43. package/dist/es/components/runtime/views/assemblys/form/custom/custom-runtime.vue2.js +6 -6
  44. package/dist/es/components/runtime/views/assemblys/form/date-picker/datepicker-runtime.vue2.js +26 -26
  45. package/dist/es/components/runtime/views/assemblys/form/dept-tree/depttree-runtime.vue2.js +3 -3
  46. package/dist/es/components/runtime/views/assemblys/form/divider/divider-runtime.vue2.js +3 -3
  47. package/dist/es/components/runtime/views/assemblys/form/file-upload/fileupload-runtime.vue2.js +8 -6
  48. package/dist/es/components/runtime/views/assemblys/form/image-upload/imageupload-runtime.vue2.js +6 -5
  49. package/dist/es/components/runtime/views/assemblys/form/input-number/input-number-runtime.vue2.js +3 -3
  50. package/dist/es/components/runtime/views/assemblys/form/input-text/inputtext-runtime.vue2.js +43 -42
  51. package/dist/es/components/runtime/views/assemblys/form/label/label-runtime.vue2.js +6 -4
  52. package/dist/es/components/runtime/views/assemblys/form/link/link-runtime.vue2.js +9 -7
  53. package/dist/es/components/runtime/views/assemblys/form/radio/radio-runtime.vue2.js +3 -3
  54. package/dist/es/components/runtime/views/assemblys/form/rich-text/richtext-runtime.vue.js +1 -1
  55. package/dist/es/components/runtime/views/assemblys/form/rich-text/richtext-runtime.vue2.js +124 -124
  56. package/dist/es/components/runtime/views/assemblys/form/select/select-runtime.vue.js +1 -1
  57. package/dist/es/components/runtime/views/assemblys/form/select/select-runtime.vue2.js +9 -8
  58. package/dist/es/components/runtime/views/assemblys/form/separatelabel/separatelabel-runtime.vue2.js +1 -1
  59. package/dist/es/components/runtime/views/assemblys/form/switch/switch-runtime.vue2.js +3 -3
  60. package/dist/es/components/runtime/views/assemblys/form/tag/tag-runtime.vue2.js +11 -11
  61. package/dist/es/components/runtime/views/assemblys/form/textarea/textarea-runtime.vue.js +1 -1
  62. package/dist/es/components/runtime/views/assemblys/form/textarea/textarea-runtime.vue2.js +3 -3
  63. package/dist/es/components/runtime/views/assemblys/home-chart-render.vue.js +3 -3
  64. package/dist/es/components/runtime/views/assemblys/object-render.vue.js +11 -9
  65. package/dist/es/components/runtime/views/assemblys/page-bottom.vue.js +2 -2
  66. package/dist/es/components/runtime/views/assemblys/workflow/component/workflow-opinion-box.vue.js +2 -2
  67. package/dist/es/components/runtime/views/assemblys/workflow/component/workflow-opinion-box.vue2.js +35 -34
  68. package/dist/es/components/runtime/views/assemblys/workflow/extract-workflow/extract-workflow-runtime-dialog.vue.js +1 -1
  69. package/dist/es/components/runtime/views/assemblys/workflow/extract-workflow/extract-workflow-runtime-dialog.vue2.js +19 -18
  70. package/dist/es/components/runtime/views/assemblys/workflow/extract-workflow/extract-workflow-runtime.vue.js +1 -1
  71. package/dist/es/components/runtime/views/assemblys/workflow/extract-workflow/extract-workflow-runtime.vue2.js +27 -27
  72. package/dist/es/components/runtime/views/assemblys/workflow/workflow-button/workflowbutton-runtime.vue2.js +1 -1
  73. package/dist/es/components/runtime/views/home-chart.vue.js +7 -7
  74. package/dist/es/components/runtime/views/super-page-dialog.vue.js +18 -16
  75. package/dist/es/components/runtime/views/super-page.vue2.js +99 -98
  76. package/dist/es/i18n/langs/cn.js +1 -1
  77. package/dist/es/i18n/langs/en.js +1 -1
  78. package/dist/es/style.css +85 -85
  79. package/package.json +2 -2
@@ -1,5 +1,5 @@
1
- import { defineComponent as e, ref as t, onMounted as n, nextTick as o, createElementBlock as i, openBlock as r, normalizeStyle as s, normalizeClass as a, unref as c } from "vue";
2
- import { handleAfterInitEvent as l } from "../../../../utils/events/event-util.js";
1
+ import { defineComponent as e, ref as t, onMounted as n, nextTick as o, createElementBlock as r, openBlock as i, normalizeStyle as a, normalizeClass as s, unref as l } from "vue";
2
+ import { handleAfterInitEvent as c } from "../../../../utils/events/event-util.js";
3
3
  import { getSystemFrontendUrl as u } from "agilebuilder-ui/src/utils/common-util.js";
4
4
  const f = ["src"], g = e({ __name: "iframe-runtime", props: { pageContext: {}, configure: {}, indexObj: {}, selectWidget: {} }, setup(e2, { expose: g2 }) {
5
5
  const p = e2, m = t(null), d = p.configure.runtime ? p.configure.runtime : {}, y = d.style, w = d.class, h = t();
@@ -26,7 +26,7 @@ const f = ["src"], g = e({ __name: "iframe-runtime", props: { pageContext: {}, c
26
26
  t2(n3);
27
27
  } else n2(new Error("System not found"));
28
28
  }).catch((e4) => {
29
- n2(e4);
29
+ console.error("Failed to load page for iframe:", e4), n2(e4);
30
30
  });
31
31
  });
32
32
  }
@@ -35,11 +35,11 @@ const f = ["src"], g = e({ __name: "iframe-runtime", props: { pageContext: {}, c
35
35
  }
36
36
  return n(() => {
37
37
  o(() => {
38
- l(null, p.pageContext, p.configure, { componentRef: m.value, entity: p.pageContext.entity.data, pageData: p.pageContext.entity.page });
38
+ c(null, p.pageContext, p.configure, { componentRef: m.value, entity: p.pageContext.entity.data, pageData: p.pageContext.entity.page });
39
39
  });
40
40
  }), g2({ changeIframeSrc: b, changeIframeSrcByPage: v, getPagePathByCode: P, refreshIframe: function() {
41
41
  m.value && m.value.contentWindow.location.reload();
42
- } }), (e3, t2) => (r(), i("iframe", { ref_key: "thisRef", ref: m, src: h.value, class: a(["amb-widget-container-iframe", c(w)]), style: s(c(y)) }, null, 14, f));
42
+ } }), (e3, t2) => (i(), r("iframe", { ref_key: "thisRef", ref: m, src: h.value, class: s(["amb-widget-container-iframe", l(w)]), style: a(l(y)) }, null, 14, f));
43
43
  } });
44
44
  export {
45
45
  g as default
@@ -1,7 +1,7 @@
1
1
  import t from "./tabs-runtime.vue2.js";
2
2
  /* empty css */
3
3
  import e from "../../../../../../_virtual/_plugin-vue_export-helper.js";
4
- const r = e(t, [["__scopeId", "data-v-07e944bd"]]);
4
+ const r = e(t, [["__scopeId", "data-v-5141e37d"]]);
5
5
  export {
6
6
  r as default
7
7
  };
@@ -1,96 +1,96 @@
1
- import { defineComponent as e, ref as n, watch as t, onMounted as o, nextTick as a, resolveComponent as i, createBlock as c, openBlock as l, unref as u, normalizeClass as r, normalizeStyle as s, withCtx as p, createElementBlock as f, createCommentVNode as g, Fragment as d, renderList as m, createElementVNode as b, toDisplayString as y, withModifiers as v, createTextVNode as h } from "vue";
1
+ import { defineComponent as e, ref as n, watch as t, onMounted as o, nextTick as a, resolveComponent as i, createBlock as c, openBlock as u, unref as l, normalizeClass as r, normalizeStyle as s, withCtx as p, createElementBlock as f, createCommentVNode as g, Fragment as d, renderList as m, createElementVNode as b, toDisplayString as y, withModifiers as v, createTextVNode as h } from "vue";
2
2
  import { ElTabs as x, ElTabPane as C } from "element-plus";
3
3
  import T from "../../object-render.vue.js";
4
4
  import { SuperIcon as k } from "agilebuilder-ui";
5
5
  import { handleAfterInitEvent as w, handleEvent as E } from "../../../../utils/events/event-util.js";
6
6
  import { $t as O } from "../../../../utils/i18n-util.js";
7
7
  import { isPromise as N } from "../../../../utils/page-helper-util.js";
8
- const V = e({ __name: "tabs-runtime", props: { pageContext: {}, configure: {} }, setup(e2, { expose: V2 }) {
9
- const _ = e2, A = n(""), I = n([]);
10
- _.configure.items.forEach((e3) => {
8
+ const P = e({ __name: "tabs-runtime", props: { pageContext: {}, configure: {} }, setup(e2, { expose: P2 }) {
9
+ const V = e2, _ = n(""), A = n([]);
10
+ V.configure.items.forEach((e3) => {
11
11
  e3.code || (e3.code = e3.index);
12
- }), A.value = _.configure.props.defaultOpen ? _.configure.props.defaultOpen : 1;
13
- const P = n(null), j = _.configure.runtime ? _.configure.runtime : {}, R = j.style, B = j.class, z = j.headerStyle;
12
+ }), _.value = V.configure.props.defaultOpen ? V.configure.props.defaultOpen : 1;
13
+ const I = n(null), R = V.configure.runtime ? V.configure.runtime : {}, j = R.style, B = R.class, z = R.headerStyle;
14
14
  function S(e3, n2) {
15
- return E(e3, _.pageContext, _.configure, "before-leave", { activeName: e3, oldActiveName: n2 }) ?? true;
15
+ return E(e3, V.pageContext, V.configure, "before-leave", { activeName: e3, oldActiveName: n2 }) ?? true;
16
16
  }
17
17
  function D(e3, n2) {
18
18
  const t2 = { pane: e3, ev: n2 }, o2 = e3.paneName;
19
- return _.pageContext.activeTab = o2, _.pageContext.activeLabel = t2.label, _.pageContext.workflowOpinion && _.pageContext.workflowOpinion.boxInstance && (o2 === _.configure.items[0].code ? _.pageContext.workflowOpinion.boxInstance.show() : _.pageContext.workflowOpinion.boxInstance.hide()), E(o2, _.pageContext, _.configure, "tab-click", t2);
19
+ return V.pageContext.activeTab = o2, V.pageContext.activeLabel = t2.label, V.pageContext.workflowOpinion && V.pageContext.workflowOpinion.boxInstance && (o2 === V.configure.items[0].code ? V.pageContext.workflowOpinion.boxInstance.show() : V.pageContext.workflowOpinion.boxInstance.hide()), E(o2, V.pageContext, V.configure, "tab-click", t2);
20
20
  }
21
21
  function F(e3) {
22
22
  const n2 = { paneName: e3 };
23
- return _.pageContext.activeTab = e3, E(e3, _.pageContext, _.configure, "tab-change", n2);
23
+ return V.pageContext.activeTab = e3, E(e3, V.pageContext, V.configure, "tab-change", n2);
24
24
  }
25
25
  function L(e3) {
26
- const n2 = { paneName: e3 }, t2 = E(e3, _.pageContext, _.configure, "tab-remove", n2);
26
+ const n2 = { paneName: e3 }, t2 = E(e3, V.pageContext, V.configure, "tab-remove", n2);
27
27
  N(t2) ? t2.then((n3) => {
28
- false !== n3 && U(e3);
29
- }) : false !== t2 && U(e3);
28
+ false !== n3 && M(e3);
29
+ }) : false !== t2 && M(e3);
30
30
  }
31
- function U(e3) {
32
- A.value === e3 && _.configure.items.forEach((n2, t2) => {
31
+ function M(e3) {
32
+ _.value === e3 && V.configure.items.forEach((n2, t2) => {
33
33
  if (n2.code === e3) {
34
- const e4 = _.configure.items[t2 + 1] || _.configure.items[t2 - 1];
35
- e4 && void 0 !== e4.code && (A.value = e4.code);
34
+ const e4 = V.configure.items[t2 + 1] || V.configure.items[t2 - 1];
35
+ e4 && void 0 !== e4.code && (_.value = e4.code);
36
36
  }
37
- }), I.value.includes(e3) || I.value.push(e3);
37
+ }), A.value.includes(e3) || A.value.push(e3);
38
38
  }
39
- function q() {
40
- return E(null, _.pageContext, _.configure, "tab-add");
39
+ function U() {
40
+ return E(null, V.pageContext, V.configure, "tab-add");
41
41
  }
42
- function G(e3, n2) {
42
+ function q(e3, n2) {
43
43
  const t2 = { paneName: e3, action: n2 };
44
- return E(e3, _.pageContext, _.configure, "edit", t2);
44
+ return E(e3, V.pageContext, V.configure, "edit", t2);
45
45
  }
46
- function H() {
47
- const e3 = E(_.configure.items, _.pageContext, _.configure, "tab-reset");
46
+ function G() {
47
+ const e3 = E(V.configure.items, V.pageContext, V.configure, "tab-reset");
48
48
  N(e3) ? e3.then((e4) => {
49
- I.value = [];
50
- }) : false !== e3 && (I.value = []);
49
+ A.value = [];
50
+ }) : false !== e3 && (A.value = []);
51
51
  }
52
- return t(I, (e3) => {
52
+ return t(A, (e3) => {
53
53
  e3 && e3.length > 0 ? e3.forEach((e4) => {
54
54
  const n2 = document.getElementById("tab-" + e4);
55
55
  n2 && (n2.style.display = "none");
56
- }) : _.configure.items.forEach((e4) => {
56
+ }) : V.configure.items.forEach((e4) => {
57
57
  const n2 = document.getElementById("tab-" + e4.code);
58
58
  n2 && (n2.style.display = "");
59
59
  });
60
60
  }, { deep: true }), o(() => {
61
61
  a(() => {
62
62
  let e3 = [];
63
- _.configure.items.forEach((n2) => {
63
+ V.configure.items.forEach((n2) => {
64
64
  n2.code && e3.push(document.getElementById("tab-" + n2.code));
65
- }), w(null, _.pageContext, _.configure, { componentRef: P.value, tabsDom: e3, entity: _.pageContext.entity.data, pageData: _.pageContext.entity.page });
65
+ }), w(null, V.pageContext, V.configure, { componentRef: I.value, tabsDom: e3, entity: V.pageContext.entity.data, pageData: V.pageContext.entity.page });
66
66
  });
67
- }), V2({ thisRef: P, activeName: A, hiddenPanes: I, resetTab: H, hiddenTabPanes: function(e3) {
67
+ }), P2({ thisRef: I, activeName: _, hiddenPanes: A, resetTab: G, hiddenTabPanes: function(e3) {
68
68
  if (Array.isArray(e3)) {
69
69
  const n2 = [];
70
70
  e3.forEach((e4) => {
71
- I.value.includes(e4) || n2.push(e4);
72
- }), n2.length > 0 && I.value.push(...n2);
71
+ A.value.includes(e4) || n2.push(e4);
72
+ }), n2.length > 0 && A.value.push(...n2);
73
73
  }
74
74
  }, showTabPanes: function(e3) {
75
75
  Array.isArray(e3) && e3.forEach((e4) => {
76
- const n2 = I.value.indexOf(e4);
77
- n2 > -1 && I.value.splice(n2, 1);
76
+ const n2 = A.value.indexOf(e4);
77
+ n2 > -1 && A.value.splice(n2, 1);
78
78
  });
79
79
  }, showTabPanesOnly: function(e3) {
80
80
  const n2 = [];
81
- _.configure.items.forEach((t2) => {
81
+ V.configure.items.forEach((t2) => {
82
82
  e3.includes(t2.code) || n2.push(t2.code);
83
- }), I.value = [...new Set(n2)];
83
+ }), A.value = [...new Set(n2)];
84
84
  }, hiddenTabPanesOnly: function(e3) {
85
85
  const n2 = [];
86
- _.configure.items.forEach((t2) => {
86
+ V.configure.items.forEach((t2) => {
87
87
  e3.includes(t2.code) && n2.push(t2.code);
88
- }), I.value = [...new Set(n2)];
89
- } }), (e3, n2) => {
90
- const t2 = i("el-button");
91
- return l(), c(u(x), { ref_key: "thisRef", ref: P, modelValue: A.value, "onUpdate:modelValue": n2[0] || (n2[0] = (e4) => A.value = e4), type: e3.configure.props.cardType, "tab-position": e3.configure.props.tabPosition, style: s(u(R)), class: r([u(B), "runtime-page-container-tabs-view"]), closable: e3.configure.props.closable, "before-leave": S, onTabClick: D, onTabChange: F, onTabRemove: L, onTabAdd: q, onEdit: G }, { default: p(() => [(l(true), f(d, null, m(_.configure.items, (n3, t3) => (l(), c(u(C), { key: t3, label: n3.label, name: n3.code, lazy: !!e3.configure.props.lazy }, { label: p(() => [n3.iconType && n3.iconValue ? (l(), c(u(k), { key: 0, iconType: n3.iconType, iconValue: n3.iconValue, style: { "margin-right": "2px" } }, null, 8, ["iconType", "iconValue"])) : g("", true), b("span", { style: s(u(z)) }, y(u(O)(n3.label)), 5)]), default: p(() => [(e3.configure.props.isFullyRendered ?? 1) || n3.code === A.value ? (l(true), f(d, { key: 0 }, m(n3.items, (n4) => (l(), c(T, { key: n4.uuid, pageContext: e3.pageContext, configure: n4 }, null, 8, ["pageContext", "configure"]))), 128)) : g("", true)]), _: 2 }, 1032, ["label", "name", "lazy"]))), 128)), e3.configure.props.resetable ? (l(), c(u(C), { key: 0, disabled: "", name: "-1" }, { label: p(() => [e3.configure.props.resetable ? (l(), c(t2, { key: 0, type: "text", circle: "", onClick: v(H, ["stop"]) }, { default: p(() => [h(y(e3.configure.props.resetButtonName || "重置"), 1)]), _: 1 })) : g("", true)]), _: 1 })) : g("", true)]), _: 1 }, 8, ["modelValue", "type", "tab-position", "style", "class", "closable"]);
88
+ }), A.value = [...new Set(n2)];
89
+ } }), (n2, t2) => {
90
+ const o2 = i("el-button");
91
+ return u(), c(l(x), { ref_key: "thisRef", ref: I, modelValue: _.value, "onUpdate:modelValue": t2[0] || (t2[0] = (e3) => _.value = e3), type: e2.configure.props.cardType, "tab-position": e2.configure.props.tabPosition, style: s(l(j)), class: r([l(B), "runtime-page-container-tabs-view"]), closable: e2.configure.props.closable, "before-leave": S, onTabClick: D, onTabChange: F, onTabRemove: L, onTabAdd: U, onEdit: q }, { default: p(() => [(u(true), f(d, null, m(V.configure.items, (n3, t3) => (u(), c(l(C), { key: t3, label: n3.label, name: n3.code, lazy: !!e2.configure.props.lazy }, { label: p(() => [n3.iconType && n3.iconValue ? (u(), c(l(k), { key: 0, iconType: n3.iconType, iconValue: n3.iconValue, style: { "margin-right": "2px" } }, null, 8, ["iconType", "iconValue"])) : g("", true), b("span", { style: s(l(z)) }, y(l(O)(n3.label)), 5)]), default: p(() => [(e2.configure.props.isFullyRendered ?? 1) || n3.code === _.value ? (u(true), f(d, { key: 0 }, m(n3.items, (n4) => (u(), c(T, { key: n4.uuid, pageContext: e2.pageContext, configure: n4 }, null, 8, ["pageContext", "configure"]))), 128)) : g("", true)]), _: 2 }, 1032, ["label", "name", "lazy"]))), 128)), e2.configure.props.resetable ? (u(), c(l(C), { key: 0, disabled: "", name: "-1" }, { label: p(() => [e2.configure.props.resetable ? (u(), c(o2, { key: 0, type: "text", circle: "", onClick: v(G, ["stop"]) }, { default: p(() => [h(y(e2.configure.props.resetButtonName || l(O)("superPageRuntimeMessage.reset")), 1)]), _: 1 })) : g("", true)]), _: 1 })) : g("", true)]), _: 1 }, 8, ["modelValue", "type", "tab-position", "style", "class", "closable"]);
92
92
  };
93
93
  } });
94
94
  export {
95
- V as default
95
+ P as default
96
96
  };
@@ -1,4 +1,4 @@
1
- import { defineComponent as e, computed as t, ref as a, onMounted as r, watch as o, resolveComponent as l, createBlock as u, openBlock as n, normalizeStyle as i, normalizeClass as s, unref as p, withCtx as c, createElementBlock as m, createCommentVNode as f, toDisplayString as g } from "vue";
1
+ import { defineComponent as e, computed as t, ref as r, onMounted as a, watch as o, resolveComponent as l, createBlock as n, openBlock as u, normalizeStyle as i, normalizeClass as s, unref as c, withCtx as p, createElementBlock as m, createCommentVNode as f, toDisplayString as g } from "vue";
2
2
  import d from "qrcode";
3
3
  import v from "jsbarcode";
4
4
  import { getFormModelFields as y } from "../../../../utils/page-init-util.js";
@@ -12,7 +12,7 @@ const j = ["src"], D = e({ __name: "barcode-runtime", props: { pageContext: {},
12
12
  let k = y(q.pageContext, q.configure);
13
13
  const A = t({ get: () => x(N, k), set(e3) {
14
14
  h(N, k, e3);
15
- } }), E = q.configure.runtime ? q.configure.runtime : {}, _ = a(E.props ? E.props : {}), O = E.style, P = E.class, S = E.headerStyle, $ = a(""), I = a(null), Q = a(_.value.brCodeFormat ?? "CODE128"), V = a([]);
15
+ } }), E = q.configure.runtime ? q.configure.runtime : {}, _ = r(E.props ? E.props : {}), O = E.style, P = E.class, S = E.headerStyle, $ = r(""), I = r(null), Q = r(_.value.brCodeFormat ?? "CODE128"), V = r([]);
16
16
  function F(e3) {
17
17
  return h(N, k, e3);
18
18
  }
@@ -22,15 +22,16 @@ const j = ["src"], D = e({ __name: "barcode-runtime", props: { pageContext: {},
22
22
  function L(e3) {
23
23
  var t2;
24
24
  "QR-code" === _.value.type ? (t2 = e3, d.toDataURL(t2, (e4, t3) => {
25
- e4 || ($.value = t3);
25
+ e4 ? console.error(e4) : $.value = t3;
26
26
  })) : function(e4) {
27
27
  try {
28
28
  v(I.value, e4, { format: Q.value });
29
29
  } catch (e5) {
30
+ console.error("生成条形码时发生错误:", e5);
30
31
  }
31
32
  }(e3);
32
33
  }
33
- return r(() => {
34
+ return a(() => {
34
35
  _.value.generateRule && ("fixed" === _.value.generateRuleType ? (V.value = Array.from(_.value.generateRule.matchAll(/\$\{(\w+)\}/g), (e3) => e3[1]), V.value.forEach((e3) => {
35
36
  o(() => q.pageContext.entity.data[e3], (e4, t2) => {
36
37
  null != e4 && function() {
@@ -38,15 +39,15 @@ const j = ["src"], D = e({ __name: "barcode-runtime", props: { pageContext: {},
38
39
  V.value.forEach((t3) => {
39
40
  q.pageContext.entity.data[t3] || (e5 = false);
40
41
  }), e5 && J(function(e6, t3) {
41
- const a2 = /\$\{(\w+)\}/g;
42
- return e6.replace(a2, (e7, a3) => t3.hasOwnProperty(a3) ? t3[a3] : e7);
42
+ const r2 = /\$\{(\w+)\}/g;
43
+ return e6.replace(r2, (e7, r3) => t3.hasOwnProperty(r3) ? t3[r3] : e7);
43
44
  }(_.value.generateRule, q.pageContext.entity.data));
44
45
  }();
45
46
  });
46
47
  })) : w.get(window.$vueApp.config.globalProperties.baseAPI + "/component/setting-barcode-models/by-code/" + _.value.generateRule).then((e3) => {
47
48
  const t2 = JSON.parse(e3.barcodeModelItems);
48
49
  t2.forEach((e4) => {
49
- "-1" !== e4.propDbName && -1 !== e4.propDbName && (V.value.push(e4.propDbName), o(() => q.pageContext.entity.data[e4.propDbName], (e5, a2) => {
50
+ "-1" !== e4.propDbName && -1 !== e4.propDbName && (V.value.push(e4.propDbName), o(() => q.pageContext.entity.data[e4.propDbName], (e5, r2) => {
50
51
  if (null != e5) {
51
52
  const e6 = b(t2, q.pageContext.entity.data);
52
53
  e6 && J(e6);
@@ -54,12 +55,13 @@ const j = ["src"], D = e({ __name: "barcode-runtime", props: { pageContext: {},
54
55
  }));
55
56
  });
56
57
  }).catch((e3) => {
58
+ console.error("获取条码规则失败:", e3);
57
59
  })), A.value && L(A.value);
58
60
  }), D2({ getValue: function() {
59
61
  return x(N, k);
60
62
  }, setValue: F }), (e3, t2) => {
61
- const a2 = l("el-form-item");
62
- return n(), u(a2, { required: !!_.value.required, class: s(p(P)), "label-width": _.value.labelWidth, style: i(p(O)) }, { label: c(() => [_.value.tittleShow ? (n(), m("div", { key: 0, style: i({ ...p(S) }) }, g(p(R)(_.value.title)), 5)) : f("", true)]), default: c(() => ["QR-code" === _.value.type ? (n(), m("img", { key: 0, src: $.value }, null, 8, j)) : (n(), m("canvas", { key: 1, ref_key: "barcode", ref: I }, null, 512))]), _: 1 }, 8, ["required", "class", "label-width", "style"]);
63
+ const r2 = l("el-form-item");
64
+ return u(), n(r2, { required: !!_.value.required, class: s(c(P)), "label-width": _.value.labelWidth, style: i(c(O)) }, { label: p(() => [_.value.tittleShow ? (u(), m("div", { key: 0, style: i({ ...c(S) }) }, g(c(R)(_.value.title)), 5)) : f("", true)]), default: p(() => ["QR-code" === _.value.type ? (u(), m("img", { key: 0, src: $.value }, null, 8, j)) : (u(), m("canvas", { key: 1, ref_key: "barcode", ref: I }, null, 512))]), _: 1 }, 8, ["required", "class", "label-width", "style"]);
63
65
  };
64
66
  } });
65
67
  export {
@@ -285,7 +285,7 @@ const W = ["id"], q = e({ __name: "main-table-runtime", props: { pageContext: {}
285
285
  }
286
286
  n(() => {
287
287
  const e3 = Xe();
288
- se.value && e3 && e3.distanceToBottom && (se.value.tableHeight = e3.distanceToBottom - 110), Y.pageContext.pageRuntimeStyle, window.addEventListener("message", Fe), H.$on(de + "-close-component-page-dialog", function({ jumpInfo: e4, popEntity: t2, popPageCode: n2 }) {
288
+ se.value && e3 && e3.distanceToBottom && (se.value.tableHeight = e3.distanceToBottom - 110), Y.pageContext.pageRuntimeStyle && Y.pageContext.pageRuntimeStyle.height, window.addEventListener("message", Fe), H.$on(de + "-close-component-page-dialog", function({ jumpInfo: e4, popEntity: t2, popPageCode: n2 }) {
289
289
  se.value.closePageDialog({ entity: t2, pageCode: n2, jumpInfo: e4 });
290
290
  }), H.$on(de + "_close-dialog-get-entity", () => {
291
291
  H.$emit(de + "_close-super-dialog");
@@ -83,7 +83,7 @@ const f = e({ __name: "table-runtime", props: { pageContext: {}, configure: {} }
83
83
  }, scrollToCell: function({ fieldName: e3, rowIndex: t2, pageNum: n2 }) {
84
84
  var _a;
85
85
  (_a = m.value) == null ? void 0 : _a.scrollToCell({ fieldName: e3, rowIndex: t2, pageNum: n2 });
86
- } }), (e3, t2) => (l(), u("div", null, [r(g) && "form" === r(g) && C.value ? (l(), o(i, { key: 0, ref_key: "gridRef", ref: m, pageContext: e3.pageContext, configure: d.value, onSetSafeDeleteTableCode: x }, null, 8, ["pageContext", "configure"])) : r(g) && "form" === r(g) ? a("", true) : (l(), o(c, { key: 1, ref_key: "gridRef", ref: m, pageContext: e3.pageContext, configure: d.value, onSetSafeDeleteTableCode: x }, null, 8, ["pageContext", "configure"]))]));
86
+ } }), (t2, n2) => (l(), u("div", null, [r(g) && "form" === r(g) && C.value ? (l(), o(i, { key: 0, ref_key: "gridRef", ref: m, pageContext: e2.pageContext, configure: d.value, onSetSafeDeleteTableCode: x }, null, 8, ["pageContext", "configure"])) : r(g) && "form" === r(g) ? a("", true) : (l(), o(c, { key: 1, ref_key: "gridRef", ref: m, pageContext: e2.pageContext, configure: d.value, onSetSafeDeleteTableCode: x }, null, 8, ["pageContext", "configure"]))]));
87
87
  } });
88
88
  export {
89
89
  f as default
@@ -1,7 +1,7 @@
1
1
  import e from "./tree-runtime.vue2.js";
2
2
  /* empty css */
3
3
  import r from "../../../../../../_virtual/_plugin-vue_export-helper.js";
4
- const t = r(e, [["__scopeId", "data-v-89330064"]]);
4
+ const t = r(e, [["__scopeId", "data-v-60cfad06"]]);
5
5
  export {
6
6
  t as default
7
7
  };
@@ -1,134 +1,135 @@
1
- import { defineComponent as e, ref as t, computed as a, onMounted as n, nextTick as l, watch as o, resolveComponent as d, createElementBlock as u, openBlock as i, normalizeClass as s, unref as r, createBlock as c, createCommentVNode as p, withDirectives as v, normalizeStyle as f, withCtx as g, createVNode as m, createElementVNode as h, createTextVNode as y, Fragment as C, toDisplayString as x, renderList as k, vShow as N } from "vue";
2
- import T from "../../../../../../assets/folder.png.js";
1
+ import { defineComponent as e, ref as a, computed as t, onMounted as n, nextTick as l, watch as u, resolveComponent as o, createElementBlock as s, openBlock as d, normalizeClass as i, unref as r, createBlock as c, createCommentVNode as p, withDirectives as v, normalizeStyle as g, withCtx as f, createVNode as m, createElementVNode as h, createTextVNode as y, toDisplayString as C, Fragment as x, renderList as k, vShow as N } from "vue";
2
+ import M from "../../../../../../assets/folder.png.js";
3
3
  import I from "../../../../../../assets/file.png.js";
4
- import { getFormModelFields as V } from "../../../../utils/page-init-util.js";
5
- import { setVariableValue as b, getVariableValue as L } from "../../../../utils/page-helper-util.js";
6
- import { getMenuTreeData as M, createTreeNode as w, updateTreeNode as E, deleteNode as K } from "../../../../utils/tree-utils.js";
7
- import { handleAfterInitEvent as _, handleFormEvent as j } from "../../../../utils/events/event-util.js";
8
- import { ElMessageBox as S, ElMessage as z } from "element-plus";
9
- import { checkPermission as B } from "agilebuilder-ui/src/utils/permission";
10
- const P = { key: 0, class: "custom-tree-node" }, W = ["title"], R = { key: 0, class: "item-row" }, D = { class: "item-side" }, H = { key: 1, class: "item-side", style: { display: "flex", "align-items": "center" } }, O = ["onClick"], U = e({ __name: "tree-runtime", props: { pageContext: {}, configure: {} }, setup(e2, { expose: U2 }) {
4
+ import { getFormModelFields as T } from "../../../../utils/page-init-util.js";
5
+ import { setVariableValue as P, getVariableValue as R } from "../../../../utils/page-helper-util.js";
6
+ import { getMenuTreeData as V, createTreeNode as b, updateTreeNode as L, deleteNode as w } from "../../../../utils/tree-utils.js";
7
+ import { handleAfterInitEvent as E, handleFormEvent as K } from "../../../../utils/events/event-util.js";
8
+ import { ElMessageBox as S, ElMessage as _ } from "element-plus";
9
+ import { checkPermission as j } from "agilebuilder-ui/src/utils/permission";
10
+ import { $t as D } from "../../../../utils/i18n-util.js";
11
+ const W = { key: 0, class: "custom-tree-node" }, z = ["title"], B = { key: 0, class: "item-row" }, H = { class: "item-side" }, O = { key: 1, class: "item-side", style: { display: "flex", "align-items": "center" } }, U = ["onClick"], $ = e({ __name: "tree-runtime", props: { pageContext: {}, configure: {} }, setup(e2, { expose: $2 }) {
11
12
  var _a, _b, _c;
12
- const $ = t(), A = t(false), X = e2, Y = X.pageContext.entity ? X.pageContext.entity : {}, q = t([]);
13
+ const A = a(), F = a(false), X = e2, Y = X.pageContext.entity ? X.pageContext.entity : {}, q = a([]);
13
14
  ((_a = X.configure.props) == null ? void 0 : _a.contextMenus) && (X.pageContext && X.configure && !X.pageContext.isTest ? X.configure.props.contextMenus.forEach((e3) => {
14
- if (e3.functionCodes && e3.functionCodes.length > 0) for (let t2 = 0; t2 < e3.functionCodes.length; t2++) {
15
- const a2 = e3.functionCodes[t2];
16
- if (B(a2, X.pageContext.systemCode)) return void q.value.push(e3);
15
+ if (e3.functionCodes && e3.functionCodes.length > 0) for (let a2 = 0; a2 < e3.functionCodes.length; a2++) {
16
+ const t2 = e3.functionCodes[a2];
17
+ if (j(t2, X.pageContext.systemCode)) return void q.value.push(e3);
17
18
  }
18
19
  else q.value.push(e3);
19
20
  }) : q.value = X.configure.props.contextMenus);
20
- let F = V(X.pageContext, X.configure);
21
- const G = a({ get: () => L(Y, F), set(e3) {
22
- b(Y, F, e3);
23
- } }), J = t(!!((_c = (_b = X.configure.props) == null ? void 0 : _b.base) == null ? void 0 : _c.lazy)), Q = X.configure.runtime ? X.configure.runtime : {}, Z = Q.style, ee = Q.class, te = t(), ae = t(Q.props ? Q.props : {}), ne = t({ id: "nodeId", label: "name", children: "children", isLeaf: "leaf", disabled: "disabled", nodeType: "nodeType", iconType: "iconType", iconValue: "iconValue" }), le = t(false), oe = t([]), de = t(null), ue = t(""), ie = t(false), se = t(""), re = t(""), ce = t("");
21
+ let G = T(X.pageContext, X.configure);
22
+ const J = t({ get: () => R(Y, G), set(e3) {
23
+ P(Y, G, e3);
24
+ } }), Q = a(!!((_c = (_b = X.configure.props) == null ? void 0 : _b.base) == null ? void 0 : _c.lazy)), Z = X.configure.runtime ? X.configure.runtime : {}, ee = Z.style, ae = Z.class, te = a(), ne = a(Z.props ? Z.props : {}), le = a({ id: "nodeId", label: "name", children: "children", isLeaf: "leaf", disabled: "disabled", nodeType: "nodeType", iconType: "iconType", iconValue: "iconValue" }), ue = a(false), oe = a([]), se = a(null), de = a(""), ie = a(false), re = a(""), ce = a(""), pe = a("");
24
25
  n(() => {
25
26
  l(() => {
26
- const e3 = G.value;
27
- _(e3, X.pageContext, X.configure, { componentRef: te.value, value: e3, entity: X.pageContext.entity.data, pageData: X.pageContext.entity.page });
27
+ const e3 = J.value;
28
+ E(e3, X.pageContext, X.configure, { componentRef: te.value, value: e3, entity: X.pageContext.entity.data, pageData: X.pageContext.entity.page });
28
29
  });
29
- }), J.value ? le.value = true : M(X.pageContext, X.configure).then((e3) => {
30
- oe.value = e3, le.value = true;
31
- }), o(ue, (e3) => {
30
+ }), Q.value ? ue.value = true : V(X.pageContext, X.configure).then((e3) => {
31
+ oe.value = e3, ue.value = true;
32
+ }), u(de, (e3) => {
32
33
  ie.value = true, te.value.filter(e3);
33
34
  });
34
- const pe = (e3, t2) => !e3 || t2.name.includes(e3);
35
- function ve(e3, t2, a2) {
36
- de.value = t2, j(null, X.pageContext, X.configure, "node-click", { data: e3, node: t2, nodeTree: a2 });
35
+ const ve = (e3, a2) => !e3 || a2.name.includes(e3);
36
+ function ge(e3, a2, t2) {
37
+ se.value = a2, K(null, X.pageContext, X.configure, "node-click", { data: e3, node: a2, nodeTree: t2 });
37
38
  }
38
- function fe(e3, t2) {
39
- let a2 = "0";
40
- a2 = 0 === e3.level ? "0" : e3.data.nodeId, function(e4, t3, a3) {
41
- const n2 = { parentNodeId: e4, data: t3.data, searchValue: ue, isSearch: ie.value };
42
- M(X.pageContext, X.configure, e4, t3, n2).then((n3) => {
43
- if (ie.value = false, a3(n3), "0" === e4) {
44
- !function(e5, t4) {
45
- const a4 = { parentNodeId: e5, data: t4.data, searchValue: ue, isSearch: ie.value };
46
- M(X.pageContext, X.configure, e5, t4, a4).then((t5) => {
47
- ie.value = false, te.value.updateKeyChildren(e5, t5), te.value.store.nodesMap[e5] && (te.value.store.nodesMap[e5].expanded = true);
39
+ function fe(e3, a2) {
40
+ let t2 = "0";
41
+ t2 = 0 === e3.level ? "0" : e3.data.nodeId, function(e4, a3, t3) {
42
+ const n2 = { parentNodeId: e4, data: a3.data, searchValue: de, isSearch: ie.value };
43
+ V(X.pageContext, X.configure, e4, a3, n2).then((n3) => {
44
+ if (ie.value = false, t3(n3), "0" === e4) {
45
+ !function(e5, a4) {
46
+ const t4 = { parentNodeId: e5, data: a4.data, searchValue: de, isSearch: ie.value };
47
+ V(X.pageContext, X.configure, e5, a4, t4).then((a5) => {
48
+ ie.value = false, te.value.updateKeyChildren(e5, a5), te.value.store.nodesMap[e5] && (te.value.store.nodesMap[e5].expanded = true);
48
49
  });
49
- }(n3[0].nodeId, t3);
50
+ }(n3[0].nodeId, a3);
50
51
  }
51
52
  });
52
- }(a2, e3, t2);
53
+ }(t2, e3, a2);
53
54
  }
54
- const ge = t({}), me = (e3, t2, a2, n2) => {
55
- if (se.value) return void z.warning("请先保存当前编辑节点!");
56
- document.removeEventListener("click", he), ge.value = a2, A.value = true;
57
- const { clientX: l2, clientY: o2 } = e3, d2 = $.value;
58
- if (d2) {
59
- const { innerWidth: e4, innerHeight: t3 } = window, { offsetWidth: a3, offsetHeight: n3 } = d2, u2 = l2 + a3 > e4 ? l2 - a3 : l2, i2 = o2 + n3 > t3 ? o2 - n3 : o2;
60
- d2.style.left = `${u2}px`, d2.style.top = `${i2}px`, d2.style.display = "block";
55
+ const me = a({}), he = (e3, a2, t2, n2) => {
56
+ if (re.value) return void _.warning(D("superPageRuntimeMessage.pleaseSaveCurrentNodeFirst"));
57
+ document.removeEventListener("click", ye), me.value = t2, F.value = true;
58
+ const { clientX: l2, clientY: u2 } = e3, o2 = A.value;
59
+ if (o2) {
60
+ const { innerWidth: e4, innerHeight: a3 } = window, { offsetWidth: t3, offsetHeight: n3 } = o2, s2 = l2 + t3 > e4 ? l2 - t3 : l2, d2 = u2 + n3 > a3 ? u2 - n3 : u2;
61
+ o2.style.left = `${s2}px`, o2.style.top = `${d2}px`, o2.style.display = "block";
61
62
  }
62
- document.addEventListener("click", he);
63
- }, he = () => {
64
- A.value = false, document.removeEventListener("click", he);
65
- }, ye = (e3, t2) => {
63
+ document.addEventListener("click", ye);
64
+ }, ye = () => {
65
+ F.value = false, document.removeEventListener("click", ye);
66
+ }, Ce = (e3, a2) => {
66
67
  if (e3.parent && e3.parent.level > 0) {
67
- const a2 = e3.parent.data.children.findIndex((t3) => t3.nodeId === e3.data.nodeId);
68
- e3.parent.data.children[a2] = t2, e3.data = t2;
68
+ const t2 = e3.parent.data.children.findIndex((a3) => a3.nodeId === e3.data.nodeId);
69
+ e3.parent.data.children[t2] = a2, e3.data = a2;
69
70
  } else {
70
- const a2 = e3.parent.data.findIndex((t3) => t3.nodeId === e3.data.nodeId);
71
- e3.parent.data[a2] = t2, e3.data = t2;
71
+ const t2 = e3.parent.data.findIndex((a3) => a3.nodeId === e3.data.nodeId);
72
+ e3.parent.data[t2] = a2, e3.data = a2;
72
73
  }
73
- }, Ce = () => {
74
- se.value = "", ce.value = "", re.value = "";
75
- }, xe = () => ({ nodeId: "primary" + (/* @__PURE__ */ new Date()).getTime(), name: "新增节点", disabled: false, iconType: "custom", isLeaf: true });
76
- function ke(e3) {
77
- e3.tipMessage ? S.confirm(e3.tipMessage, { confirmButtonText: "确定", cancelButtonText: "取消", type: "error" }).then(() => {
78
- K(ge.value, X.configure, X.pageContext).then(() => {
79
- z.success("删除成功!"), Ne(), ge.value = null;
74
+ }, xe = () => {
75
+ re.value = "", pe.value = "", ce.value = "";
76
+ }, ke = () => ({ nodeId: "primary" + (/* @__PURE__ */ new Date()).getTime(), name: D("superPageRuntimeMessage.addNode"), disabled: false, iconType: "custom", isLeaf: true });
77
+ function Ne(e3) {
78
+ e3.tipMessage ? S.confirm(e3.tipMessage, { confirmButtonText: D("superPageRuntimeMessage.sure"), cancelButtonText: D("superPageRuntimeMessage.cancel"), type: "error" }).then(() => {
79
+ w(me.value, X.configure, X.pageContext).then(() => {
80
+ _.success(D("superPageRuntimeMessage.successfulDelete")), Me(), me.value = null;
80
81
  });
81
82
  }).catch(() => {
82
- ge.value = null;
83
- }) : K(ge.value, X.configure, X.pageContext).then(() => {
84
- z.success("删除成功!"), Ne(), ge.value = null;
83
+ me.value = null;
84
+ }) : w(me.value, X.configure, X.pageContext).then(() => {
85
+ _.success(D("superPageRuntimeMessage.successfulDelete")), Me(), me.value = null;
85
86
  });
86
87
  }
87
- const Ne = () => {
88
- const e3 = ge.value.parent;
89
- te.value.remove(ge.value), e3.childNodes && 0 === e3.childNodes.length && (e3.data.isLeaf = true), e3.data.children && e3.data.children.length > 0 && (e3.data.children = e3.data.children.filter((e4) => e4.nodeId !== ge.value.data.nodeId));
88
+ const Me = () => {
89
+ const e3 = me.value.parent;
90
+ te.value.remove(me.value), e3.childNodes && 0 === e3.childNodes.length && (e3.data.isLeaf = true), e3.data.children && e3.data.children.length > 0 && (e3.data.children = e3.data.children.filter((e4) => e4.nodeId !== me.value.data.nodeId));
90
91
  };
91
- return U2({ getSelectNode: function() {
92
- return de.value;
92
+ return $2({ getSelectNode: function() {
93
+ return se.value;
93
94
  }, expandNode: function(e3) {
94
95
  e3.loaded = false, e3.expand();
95
96
  }, loadTreeNodes: function() {
96
- M(X.pageContext, X.configure).then((e3) => {
97
+ V(X.pageContext, X.configure).then((e3) => {
97
98
  ie.value = false, oe.value = e3;
98
99
  });
99
100
  }, getNode: function(e3) {
100
101
  te.value.getNode(e3);
101
- }, getCheckedNodes: (e3, t2) => te.value.getCheckedNodes(e3, t2), setCheckedNodes: (e3) => {
102
+ }, getCheckedNodes: (e3, a2) => te.value.getCheckedNodes(e3, a2), setCheckedNodes: (e3) => {
102
103
  te.value.setCheckedNodes(e3);
103
- }, getCheckedKeys: (e3) => te.value.getCheckedKeysleafOnly(), setCheckedKeys: (e3, t2) => {
104
- te.value.setCheckedKeys(e3, t2);
105
- }, setChecked: (e3, t2, a2) => {
106
- te.value.setChecked(e3, t2, a2);
107
- }, getCurrentKey: () => te.value.getCurrentKey(), getCurrentNode: () => te.value.getCurrentNode(), setCurrentKey: (e3, t2 = true) => te.value.setCurrentKey(e3, t2), setCurrentNode: (e3, t2 = true) => te.value.setCurrentNode(e3, t2) }), (e3, t2) => {
104
+ }, getCheckedKeys: (e3) => te.value.getCheckedKeysleafOnly(), setCheckedKeys: (e3, a2) => {
105
+ te.value.setCheckedKeys(e3, a2);
106
+ }, setChecked: (e3, a2, t2) => {
107
+ te.value.setChecked(e3, a2, t2);
108
+ }, getCurrentKey: () => te.value.getCurrentKey(), getCurrentNode: () => te.value.getCurrentNode(), setCurrentKey: (e3, a2 = true) => te.value.setCurrentKey(e3, a2), setCurrentNode: (e3, a2 = true) => te.value.setCurrentNode(e3, a2) }), (a2, t2) => {
108
109
  var _a2;
109
- const a2 = d("el-input"), n2 = d("el-button"), l2 = d("SuperIcon"), o2 = d("el-tree");
110
- return i(), u("div", { class: s(["amb-tree-runtime-main", r(ee)]) }, [ae.value.filter ? (i(), c(a2, { key: 0, modelValue: ue.value, "onUpdate:modelValue": t2[0] || (t2[0] = (e4) => ue.value = e4), style: { width: "100%" }, placeholder: "请输入查询条件" }, null, 8, ["modelValue"])) : p("", true), le.value ? (i(), c(o2, { key: 1, ref_key: "menuTreeRef", ref: te, style: f(r(Z)), load: fe, data: oe.value, "node-key": "nodeId", props: ne.value, "default-expand-all": ae.value.defaultExpandAll, "expand-on-click-node": ae.value.expandOnClickNode, indent: ae.value.retractWidth ? ae.value.retractWidth : 18, accordion: ae.value.accordion, "show-checkbox": !!ae.value.showCheckbox, "highlight-current": "", lazy: J.value, "filter-node-method": pe, onNodeClick: ve, onNodeContextmenu: me }, { default: g(({ node: o3, data: d2 }) => [d2.nodeId === se.value ? (i(), u("div", P, [m(a2, { modelValue: ce.value, "onUpdate:modelValue": t2[1] || (t2[1] = (e4) => ce.value = e4), size: "small" }, null, 8, ["modelValue"]), h("div", null, [m(n2, { type: "primary", link: "", onClick: (e4) => ((e5) => {
111
- "" !== ce.value ? (e5.data.name = ce.value, re.value && e5.data.nodeId === re.value ? w(e5, X.configure, X.pageContext).then((t3) => {
112
- ye(e5, t3.currentNode), Ce(), z.success("保存成功!");
113
- }) : E(e5, X.configure, X.pageContext).then((t3) => {
114
- ye(e5, t3.currentNode), Ce(), z.success("保存成功!");
115
- })) : z.warning("请输入节点名称");
116
- })(o3) }, { default: g(() => t2[2] || (t2[2] = [y(" 保存 ")])), _: 2 }, 1032, ["onClick"]), m(n2, { style: { "margin-left": "4px" }, type: "primary", link: "", onClick: (t3) => ((e4) => {
117
- re.value && e4.data.nodeId === re.value && te.value.remove(e4), Ce();
118
- })(o3, e3.configure, e3.pageContext) }, { default: g(() => t2[3] || (t2[3] = [y(" 撤销 ")])), _: 2 }, 1032, ["onClick"])])])) : (i(), u("span", { key: 1, title: o3.label, class: "ellipsis" }, [d2.iconValue ? (i(), c(l2, { key: 0, iconType: d2.iconType, iconValue: d2.iconValue }, null, 8, ["iconType", "iconValue"])) : ae.value.iconValue ? (i(), c(l2, { key: 1, iconType: ae.value.iconType, iconValue: ae.value.iconValue }, null, 8, ["iconType", "iconValue"])) : (i(), u(C, { key: 2 }, [d2.isLeaf ? (i(), u("div", H, [t2[5] || (t2[5] = h("img", { src: I, class: "file" }, null, -1)), h("span", null, x(d2.name), 1)])) : (i(), u("div", R, [h("div", D, [t2[4] || (t2[4] = h("img", { src: T, class: "file" }, null, -1)), h("span", null, x(d2.name), 1)])]))], 64))], 8, W))]), _: 1 }, 8, ["style", "data", "props", "default-expand-all", "expand-on-click-node", "indent", "accordion", "show-checkbox", "lazy"])) : p("", true), v(h("div", null, [h("ul", { ref_key: "contxtMenuRef", ref: $, class: "context-menu" }, [(i(true), u(C, null, k(q.value, (e4, t3) => (i(), u("li", { key: t3, tabindex: "-1", class: "menu__item", onClick: (t4) => ((e5) => {
119
- if (ge.value && "standard" === e5.type && e5.standardEvent) if ("edit" === e5.standardEvent) se.value = ge.value.data.nodeId, ce.value = ge.value.data.name;
120
- else if ("delete" === e5.standardEvent) ge.value.childNodes && ge.value.childNodes.length > 0 && e5.deleteParentNodeTip ? (e5.deleteParentNodeTipMessage || (e5.deleteParentNodeTipMessage = "当前节点下有子节点,确认删除?"), S.confirm(e5.deleteParentNodeTipMessage, { confirmButtonText: "确定", cancelButtonText: "取消", type: "error" }).then(() => {
121
- ke(e5);
110
+ const n2 = o("el-input"), l2 = o("el-button"), u2 = o("SuperIcon"), T2 = o("el-tree");
111
+ return d(), s("div", { class: i(["amb-tree-runtime-main", r(ae)]) }, [ne.value.filter ? (d(), c(n2, { key: 0, modelValue: de.value, "onUpdate:modelValue": t2[0] || (t2[0] = (e3) => de.value = e3), style: { width: "100%" }, placeholder: r(D)("superPageRuntimeMessage.pleaseInputSearchCondition") }, null, 8, ["modelValue", "placeholder"])) : p("", true), ue.value ? (d(), c(T2, { key: 1, ref_key: "menuTreeRef", ref: te, style: g(r(ee)), load: fe, data: oe.value, "node-key": "nodeId", props: le.value, "default-expand-all": ne.value.defaultExpandAll, "expand-on-click-node": ne.value.expandOnClickNode, indent: ne.value.retractWidth ? ne.value.retractWidth : 18, accordion: ne.value.accordion, "show-checkbox": !!ne.value.showCheckbox, "highlight-current": "", lazy: Q.value, "filter-node-method": ve, onNodeClick: ge, onNodeContextmenu: he }, { default: f(({ node: a3, data: o2 }) => [o2.nodeId === re.value ? (d(), s("div", W, [m(n2, { modelValue: pe.value, "onUpdate:modelValue": t2[1] || (t2[1] = (e3) => pe.value = e3), size: "small" }, null, 8, ["modelValue"]), h("div", null, [m(l2, { type: "primary", link: "", onClick: (e3) => ((e4) => {
112
+ "" !== pe.value ? (e4.data.name = pe.value, ce.value && e4.data.nodeId === ce.value ? b(e4, X.configure, X.pageContext).then((a4) => {
113
+ Ce(e4, a4.currentNode), xe(), _.success(D("superPageRuntimeMessage.successfulSave"));
114
+ }) : L(e4, X.configure, X.pageContext).then((a4) => {
115
+ Ce(e4, a4.currentNode), xe(), _.success(D("superPageRuntimeMessage.successfulSave"));
116
+ })) : _.warning(D("superPageRuntimeMessage.pleaseInputNodeName"));
117
+ })(a3) }, { default: f(() => [y(C(r(D)("superPageRuntimeMessage.save")), 1)]), _: 1 }, 8, ["onClick"]), m(l2, { style: { "margin-left": "4px" }, type: "primary", link: "", onClick: (t3) => ((e3) => {
118
+ ce.value && e3.data.nodeId === ce.value && te.value.remove(e3), xe();
119
+ })(a3, e2.configure, e2.pageContext) }, { default: f(() => [y(C(r(D)("superPageRuntimeMessage.undo")), 1)]), _: 1 }, 8, ["onClick"])])])) : (d(), s("span", { key: 1, title: a3.label, class: "ellipsis" }, [o2.iconValue ? (d(), c(u2, { key: 0, iconType: o2.iconType, iconValue: o2.iconValue }, null, 8, ["iconType", "iconValue"])) : ne.value.iconValue ? (d(), c(u2, { key: 1, iconType: ne.value.iconType, iconValue: ne.value.iconValue }, null, 8, ["iconType", "iconValue"])) : (d(), s(x, { key: 2 }, [o2.isLeaf ? (d(), s("div", O, [t2[3] || (t2[3] = h("img", { src: I, class: "file" }, null, -1)), h("span", null, C(o2.name), 1)])) : (d(), s("div", B, [h("div", H, [t2[2] || (t2[2] = h("img", { src: M, class: "file" }, null, -1)), h("span", null, C(o2.name), 1)])]))], 64))], 8, z))]), _: 1 }, 8, ["style", "data", "props", "default-expand-all", "expand-on-click-node", "indent", "accordion", "show-checkbox", "lazy"])) : p("", true), v(h("div", null, [h("ul", { ref_key: "contxtMenuRef", ref: A, class: "context-menu" }, [(d(true), s(x, null, k(q.value, (e3, a3) => (d(), s("li", { key: a3, tabindex: "-1", class: "menu__item", onClick: (a4) => ((e4) => {
120
+ if (me.value && "standard" === e4.type && e4.standardEvent) if ("edit" === e4.standardEvent) re.value = me.value.data.nodeId, pe.value = me.value.data.name;
121
+ else if ("delete" === e4.standardEvent) me.value.childNodes && me.value.childNodes.length > 0 && e4.deleteParentNodeTip ? (e4.deleteParentNodeTipMessage || (e4.deleteParentNodeTipMessage = D("superPageRuntimeMessage.confirmDeleteNodeWithChildren")), S.confirm(e4.deleteParentNodeTipMessage, { confirmButtonText: D("superPageRuntimeMessage.sure"), cancelButtonText: D("superPageRuntimeMessage.cancel"), type: "error" }).then(() => {
122
+ Ne(e4);
122
123
  }).catch(() => {
123
- ge.value = null;
124
- })) : ke(e5);
124
+ me.value = null;
125
+ })) : Ne(e4);
125
126
  else {
126
- const t5 = xe();
127
- se.value = t5.nodeId, re.value = t5.nodeId, ce.value = t5.name, "addSiblingNode" === e5.standardEvent ? (t5.isLeaf = ge.value.data.isLeaf, ge.value.parent && ge.value.parent.level > 0 ? te.value.append(t5, ge.value.parent) : oe.value.push(t5)) : "addChildNode" === e5.standardEvent && (t5.isLeaf = true, ge.value.data.isLeaf = false, te.value.append(t5, ge.value), te.value.setCurrentKey(t5.nodeId, true));
127
+ const a5 = ke();
128
+ re.value = a5.nodeId, ce.value = a5.nodeId, pe.value = a5.name, "addSiblingNode" === e4.standardEvent ? (a5.isLeaf = me.value.data.isLeaf, me.value.parent && me.value.parent.level > 0 ? te.value.append(a5, me.value.parent) : oe.value.push(a5)) : "addChildNode" === e4.standardEvent && (a5.isLeaf = true, me.value.data.isLeaf = false, te.value.append(a5, me.value), te.value.setCurrentKey(a5.nodeId, true));
128
129
  }
129
- })(e4) }, [h("span", null, x(e4.name), 1)], 8, O))), 128))], 512)], 512), [[N, A.value && ((_a2 = q.value) == null ? void 0 : _a2.length) > 0]])], 2);
130
+ })(e3) }, [h("span", null, C(e3.name), 1)], 8, U))), 128))], 512)], 512), [[N, F.value && ((_a2 = q.value) == null ? void 0 : _a2.length) > 0]])], 2);
130
131
  };
131
132
  } });
132
133
  export {
133
- U as default
134
+ $ as default
134
135
  };
@@ -56,9 +56,9 @@ const z = e({ __name: "checkbox-runtime", props: { pageContext: {}, configure: {
56
56
  });
57
57
  }), t2 = t2.slice(0, t2.length - 1)) : t2 = e3.join(","), t2;
58
58
  }
59
- } }), (e3, t2) => {
60
- const l2 = a("el-checkbox"), o2 = a("el-checkbox-group"), n2 = a("el-form-item");
61
- return i(), u(n2, { ref_key: "formItemRef", ref: X, class: s(c(F) + (E.value ? " " + E.value : "")), required: !!B.value.required, "label-width": B.value.labelWidth, style: r(c(T)) }, p({ default: f(() => [g(o2, { ref_key: "componentRef", ref: Y, disabled: "disabled" === B.value.state, size: B.value.size, onChange: B.value.changeMethod, modelValue: M.value, "onUpdate:modelValue": t2[0] || (t2[0] = (e4) => M.value = e4) }, { default: f(() => [(i(true), v(d, null, m(G.value, (t3) => (i(), u(l2, { key: t3.value, value: t3.value, label: t3.label, onClick: (l3) => c(I)(t3.value, e3.pageContext, e3.configure, "click", { values: M.value }) }, null, 8, ["value", "label", "onClick"]))), 128))]), _: 1 }, 8, ["disabled", "size", "onChange", "modelValue"])]), _: 2 }, [B.value.tittleShow ? { name: "label", fn: f(() => [h("div", { ref_key: "titleRef", ref: Z, style: r({ ...c(U), ...c(W) }), class: "amb-form-item-label" }, y(c(V)(B.value.title)), 5)]), key: "0" } : void 0]), 1032, ["class", "required", "label-width", "style"]);
59
+ } }), (t2, l2) => {
60
+ const o2 = a("el-checkbox"), n2 = a("el-checkbox-group"), b2 = a("el-form-item");
61
+ return i(), u(b2, { ref_key: "formItemRef", ref: X, class: s(c(F) + (E.value ? " " + E.value : "")), required: !!B.value.required, "label-width": B.value.labelWidth, style: r(c(T)) }, p({ default: f(() => [g(n2, { ref_key: "componentRef", ref: Y, disabled: "disabled" === B.value.state, size: B.value.size, onChange: B.value.changeMethod, modelValue: M.value, "onUpdate:modelValue": l2[0] || (l2[0] = (e3) => M.value = e3) }, { default: f(() => [(i(true), v(d, null, m(G.value, (t3) => (i(), u(o2, { key: t3.value, value: t3.value, label: t3.label, onClick: (l3) => c(I)(t3.value, e2.pageContext, e2.configure, "click", { values: M.value }) }, null, 8, ["value", "label", "onClick"]))), 128))]), _: 1 }, 8, ["disabled", "size", "onChange", "modelValue"])]), _: 2 }, [B.value.tittleShow ? { name: "label", fn: f(() => [h("div", { ref_key: "titleRef", ref: Z, style: r({ ...c(U), ...c(W) }), class: "amb-form-item-label" }, y(c(V)(B.value.title)), 5)]), key: "0" } : void 0]), 1032, ["class", "required", "label-width", "style"]);
62
62
  };
63
63
  } });
64
64
  export {
@@ -28,9 +28,9 @@ const x = e({ __name: "title-suffix-element", props: { pageContext: {}, property
28
28
  const r2 = l2.indexOf(h);
29
29
  e3 ? -1 == r2 && l2.push(h) : r2 > -1 && l2.splice(r2, 1), y(c, d, l2);
30
30
  } else y(c, d, e3);
31
- } })), (e3, l2) => {
32
- const s2 = r("el-radio"), y2 = r("el-checkbox");
33
- return p(), t(o, null, ["radio" === e3.property.prefixType ? (p(), u(s2, { key: 0, value: e3.property.prefixValue, label: e3.property.title, modelValue: i(b), "onUpdate:modelValue": l2[0] || (l2[0] = (e4) => n(b) ? b.value = e4 : b = e4) }, null, 8, ["value", "label", "modelValue"])) : a("", true), "checkbox" === e3.property.prefixType ? (p(), u(y2, { key: 1, label: e3.property.title, value: e3.property.prefixValue, modelValue: i(b), "onUpdate:modelValue": l2[1] || (l2[1] = (e4) => n(b) ? b.value = e4 : b = e4) }, null, 8, ["label", "value", "modelValue"])) : a("", true)], 64);
31
+ } })), (l2, s2) => {
32
+ const y2 = r("el-radio"), f2 = r("el-checkbox");
33
+ return p(), t(o, null, ["radio" === e2.property.prefixType ? (p(), u(y2, { key: 0, value: e2.property.prefixValue, label: e2.property.title, modelValue: i(b), "onUpdate:modelValue": s2[0] || (s2[0] = (e3) => n(b) ? b.value = e3 : b = e3) }, null, 8, ["value", "label", "modelValue"])) : a("", true), "checkbox" === e2.property.prefixType ? (p(), u(f2, { key: 1, label: e2.property.title, value: e2.property.prefixValue, modelValue: i(b), "onUpdate:modelValue": s2[1] || (s2[1] = (e3) => n(b) ? b.value = e3 : b = e3) }, null, 8, ["label", "value", "modelValue"])) : a("", true)], 64);
34
34
  };
35
35
  } });
36
36
  export {