super-page-runtime 2.3.16 → 2.3.17-sit2

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 (76) hide show
  1. package/dist/es/components/runtime/utils/api/page-expose-util.js +66 -61
  2. package/dist/es/components/runtime/utils/charts/chart-util.d.ts +2 -1
  3. package/dist/es/components/runtime/utils/charts/chart-util.js +5 -5
  4. package/dist/es/components/runtime/utils/events/event-util.js +3 -3
  5. package/dist/es/components/runtime/utils/events/print-label.js +25 -26
  6. package/dist/es/components/runtime/utils/events/standard-event.js +19 -19
  7. package/dist/es/components/runtime/utils/events/validator-util.d.ts +1 -1
  8. package/dist/es/components/runtime/utils/events/validator-util.js +173 -167
  9. package/dist/es/components/runtime/utils/page-init-util.js +129 -100
  10. package/dist/es/components/runtime/utils/page-store.js +10 -10
  11. package/dist/es/components/runtime/utils/table-utils.js +1 -1
  12. package/dist/es/components/runtime/views/assemblys/button/button/button-runtime.vue2.js +3 -3
  13. package/dist/es/components/runtime/views/assemblys/button/button-group/buttongroup-runtime.vue2.js +3 -3
  14. package/dist/es/components/runtime/views/assemblys/button/dropdown/dropdown-runtime.vue2.js +3 -3
  15. package/dist/es/components/runtime/views/assemblys/button/export-pdf/exportpdf-runtime.vue2.js +1 -1
  16. package/dist/es/components/runtime/views/assemblys/button/print-label/printlabel-runtime.vue2.js +3 -3
  17. package/dist/es/components/runtime/views/assemblys/chart/column-line/column-line-runtime.vue.js +1 -1
  18. package/dist/es/components/runtime/views/assemblys/chart/column-line/column-line-runtime.vue2.js +2 -2
  19. package/dist/es/components/runtime/views/assemblys/chart/common/common-chart-header-group.vue.js +6 -10
  20. package/dist/es/components/runtime/views/assemblys/chart/common/common-chart-header.vue.js +6 -8
  21. package/dist/es/components/runtime/views/assemblys/chart/common/common-homepage-search.vue2.js +1 -1
  22. package/dist/es/components/runtime/views/assemblys/chart/gauge/gauge-runtime.vue.js +1 -1
  23. package/dist/es/components/runtime/views/assemblys/chart/gauge/gauge-runtime.vue2.js +2 -2
  24. package/dist/es/components/runtime/views/assemblys/chart/pie/pie-runtime.vue.js +1 -1
  25. package/dist/es/components/runtime/views/assemblys/chart/pie/pie-runtime.vue2.js +2 -2
  26. package/dist/es/components/runtime/views/assemblys/chart/radar/radar-runtime.vue.js +1 -1
  27. package/dist/es/components/runtime/views/assemblys/chart/radar/radar-runtime.vue2.js +2 -2
  28. package/dist/es/components/runtime/views/assemblys/chart/scatter/scatter-runtime.vue.js +1 -1
  29. package/dist/es/components/runtime/views/assemblys/chart/scatter/scatter-runtime.vue2.js +2 -2
  30. package/dist/es/components/runtime/views/assemblys/chart/table/chart-table-util.js +93 -98
  31. package/dist/es/components/runtime/views/assemblys/chart/table/table-runtime.vue2.js +3 -4
  32. package/dist/es/components/runtime/views/assemblys/common/export-form-report-dialog.vue.js +9 -11
  33. package/dist/es/components/runtime/views/assemblys/common/save-chart-condition-dialog.vue.js +1 -1
  34. package/dist/es/components/runtime/views/assemblys/container/card/card-runtime.vue2.js +3 -3
  35. package/dist/es/components/runtime/views/assemblys/container/collapse/collapse-runtime.vue2.js +3 -3
  36. package/dist/es/components/runtime/views/assemblys/container/container/container-runtime.vue2.js +3 -3
  37. package/dist/es/components/runtime/views/assemblys/container/fixed/YxAffix.vue2.js +0 -2
  38. package/dist/es/components/runtime/views/assemblys/container/flex/flex-runtime.vue2.js +3 -3
  39. package/dist/es/components/runtime/views/assemblys/container/form/form-runtime.vue2.js +3 -3
  40. package/dist/es/components/runtime/views/assemblys/container/iframe/iframe-runtime.vue2.js +1 -1
  41. package/dist/es/components/runtime/views/assemblys/container/tabs/tabs-runtime.vue2.js +3 -3
  42. package/dist/es/components/runtime/views/assemblys/data/bar-code/barcode-runtime.vue2.js +10 -12
  43. package/dist/es/components/runtime/views/assemblys/data/table/main-table-runtime.vue.js +8 -8
  44. package/dist/es/components/runtime/views/assemblys/data/table/sub-table-runtime.vue.js +72 -72
  45. package/dist/es/components/runtime/views/assemblys/data/table/table-runtime.vue2.js +1 -1
  46. package/dist/es/components/runtime/views/assemblys/data/tree/tree-runtime.vue2.js +16 -16
  47. package/dist/es/components/runtime/views/assemblys/form/checkbox/checkbox-runtime.vue2.js +33 -19
  48. package/dist/es/components/runtime/views/assemblys/form/common/title-suffix-element.vue.js +3 -3
  49. package/dist/es/components/runtime/views/assemblys/form/custom/custom-runtime.vue2.js +6 -6
  50. package/dist/es/components/runtime/views/assemblys/form/date-picker/datepicker-runtime.vue2.js +37 -37
  51. package/dist/es/components/runtime/views/assemblys/form/dept-tree/depttree-runtime.vue2.js +3 -3
  52. package/dist/es/components/runtime/views/assemblys/form/divider/divider-runtime.vue2.js +3 -3
  53. package/dist/es/components/runtime/views/assemblys/form/file-upload/fileupload-runtime.vue2.js +4 -4
  54. package/dist/es/components/runtime/views/assemblys/form/input-number/input-number-runtime.vue2.js +3 -3
  55. package/dist/es/components/runtime/views/assemblys/form/input-text/inputtext-runtime.vue2.js +37 -38
  56. package/dist/es/components/runtime/views/assemblys/form/label/label-runtime.vue.js +4 -1
  57. package/dist/es/components/runtime/views/assemblys/form/label/label-runtime.vue2.js +21 -22
  58. package/dist/es/components/runtime/views/assemblys/form/link/link-runtime.vue2.js +3 -4
  59. package/dist/es/components/runtime/views/assemblys/form/radio/radio-runtime.vue2.js +27 -18
  60. package/dist/es/components/runtime/views/assemblys/form/rich-text/richtext-runtime.vue.js +2 -1
  61. package/dist/es/components/runtime/views/assemblys/form/rich-text/richtext-runtime.vue2.js +167 -94
  62. package/dist/es/components/runtime/views/assemblys/form/select/select-runtime.vue2.js +25 -25
  63. package/dist/es/components/runtime/views/assemblys/form/separatelabel/separatelabel-runtime.vue2.js +1 -1
  64. package/dist/es/components/runtime/views/assemblys/form/switch/switch-runtime.vue2.js +3 -3
  65. package/dist/es/components/runtime/views/assemblys/form/tag/tag-runtime.vue2.js +11 -11
  66. package/dist/es/components/runtime/views/assemblys/form/textarea/textarea-runtime.vue2.js +3 -3
  67. package/dist/es/components/runtime/views/assemblys/home-chart-render.vue.js +3 -3
  68. package/dist/es/components/runtime/views/assemblys/object-render.vue.js +74 -58
  69. package/dist/es/components/runtime/views/assemblys/workflow/extract-workflow/extract-workflow-runtime.vue2.js +1 -1
  70. package/dist/es/components/runtime/views/assemblys/workflow/workflow-button/workflowbutton-runtime.vue2.js +1 -1
  71. package/dist/es/components/runtime/views/home-chart.vue.js +7 -7
  72. package/dist/es/components/runtime/views/super-page-dialog.vue.js +0 -1
  73. package/dist/es/components/runtime/views/super-page.vue.js +1 -1
  74. package/dist/es/components/runtime/views/super-page.vue2.js +73 -74
  75. package/dist/es/style.css +379 -84
  76. package/package.json +2 -2
@@ -15,9 +15,9 @@ const _ = e({ __name: "flex-runtime", props: { pageContext: {}, configure: {} },
15
15
  s(() => {
16
16
  v(null, _2.pageContext, _2.configure, { componentRef: j.value, entity: _2.pageContext.entity.data, pageData: _2.pageContext.entity.page });
17
17
  });
18
- }), (t2, n2) => {
19
- const s2 = l("el-col"), C2 = l("el-row");
20
- return o(), i(C2, { ref_key: "thisRef", ref: j, justify: b.value.flexJustify, gutter: b.value.flexGutter, align: b.value.alignItems, style: u([{ display: "flex" }, r(h)]), class: a(r(w)) }, { default: f(() => [(o(true), p(g, null, m(e2.configure.items, (t3, n3) => c((o(), i(s2, { key: t3.uuid, style: u(t3.itemStyle), span: t3.flexSpan }, { default: f(() => [y(d, { pageContext: e2.pageContext, configure: t3 }, null, 8, ["pageContext", "configure"])]), _: 2 }, 1032, ["style", "span"])), [[x, t3._dynamicShowFlag]])), 128))]), _: 1 }, 8, ["justify", "gutter", "align", "style", "class"]);
18
+ }), (e3, t2) => {
19
+ const n2 = l("el-col"), s2 = l("el-row");
20
+ return o(), i(s2, { ref_key: "thisRef", ref: j, justify: b.value.flexJustify, gutter: b.value.flexGutter, align: b.value.alignItems, style: u([{ display: "flex" }, r(h)]), class: a(r(w)) }, { default: f(() => [(o(true), p(g, null, m(e3.configure.items, (t3, s3) => c((o(), i(n2, { key: t3.uuid, style: u(t3.itemStyle), span: t3.flexSpan }, { default: f(() => [y(d, { pageContext: e3.pageContext, configure: t3 }, null, 8, ["pageContext", "configure"])]), _: 2 }, 1032, ["style", "span"])), [[x, t3._dynamicShowFlag]])), 128))]), _: 1 }, 8, ["justify", "gutter", "align", "style", "class"]);
21
21
  };
22
22
  } });
23
23
  export {
@@ -10,9 +10,9 @@ const b = e({ __name: "form-runtime", props: { pageContext: {}, configure: {} },
10
10
  i(() => {
11
11
  C(null, b2.pageContext, b2.configure, "afterFormLoad", { componentRef: P.value, entity: b2.pageContext.entity.data, pageData: b2.pageContext.entity.page });
12
12
  });
13
- }), (t2, o2) => {
14
- const i2 = n("el-form");
15
- return s(), l("div", null, [a(i2, { ref_key: "thisRef", ref: P, "label-width": p(j).labelWidth, "label-position": z.value, size: p(j).componentSize, style: u(_.value), class: r(p(k)) }, { default: f(() => [p(j).formTitle ? (s(), l("div", { key: 0, class: "amb-widget-form-title", style: u(w.value) }, g(p(j).formTitle), 5)) : m("", true), (s(true), l(c, null, d(e2.configure.items, (t3, o3) => (s(), y(v, { key: t3.uuid, pageContext: e2.pageContext, configure: t3 }, null, 8, ["pageContext", "configure"]))), 128))]), _: 1 }, 8, ["label-width", "label-position", "size", "style", "class"])]);
13
+ }), (e3, t2) => {
14
+ const o2 = n("el-form");
15
+ return s(), l("div", null, [a(o2, { ref_key: "thisRef", ref: P, "label-width": p(j).labelWidth, "label-position": z.value, size: p(j).componentSize, style: u(_.value), class: r(p(k)) }, { default: f(() => [p(j).formTitle ? (s(), l("div", { key: 0, class: "amb-widget-form-title", style: u(w.value) }, g(p(j).formTitle), 5)) : m("", true), (s(true), l(c, null, d(e3.configure.items, (t3, o3) => (s(), y(v, { key: t3.uuid, pageContext: e3.pageContext, configure: t3 }, null, 8, ["pageContext", "configure"]))), 128))]), _: 1 }, 8, ["label-width", "label-position", "size", "style", "class"])]);
16
16
  };
17
17
  } });
18
18
  export {
@@ -7,7 +7,7 @@ const f = ["src"], p = e({ __name: "iframe-runtime", props: { pageContext: {}, c
7
7
  r(() => {
8
8
  l(null, p2.pageContext, p2.configure, { componentRef: c.value, entity: p2.pageContext.entity.data, pageData: p2.pageContext.entity.page });
9
9
  });
10
- }), (t2, n2) => (o(), i("iframe", { ref_key: "thisRef", ref: c, src: e2.configure.props.src, class: a(["amb-widget-container-iframe", u(x)]), style: s(u(m)) }, null, 14, f));
10
+ }), (e3, t2) => (o(), i("iframe", { ref_key: "thisRef", ref: c, src: e3.configure.props.src, class: a(["amb-widget-container-iframe", u(x)]), style: s(u(m)) }, null, 14, f));
11
11
  } });
12
12
  export {
13
13
  p as default
@@ -86,9 +86,9 @@ const A = e({ __name: "tabs-runtime", props: { pageContext: {}, configure: {} },
86
86
  P.configure.items.forEach((n2) => {
87
87
  e3.includes(n2.code) && t2.push(n2.code);
88
88
  }), w.value = [...new Set(t2)];
89
- } }), (t2, n2) => {
90
- const o2 = i("el-button");
91
- return u(), c(l(x), { ref_key: "thisRef", ref: O, modelValue: j.value, "onUpdate:modelValue": n2[0] || (n2[0] = (e3) => j.value = e3), type: e2.configure.props.cardType, "tab-position": e2.configure.props.tabPosition, style: s(l(B)), class: r([l(z), "runtime-page-container-tabs-view"]), closable: e2.configure.props.closable, "before-leave": S, onTabClick: D, onTabChange: F, onTabRemove: L, onTabAdd: q, onEdit: G }, { default: p(() => [(u(true), f(d, null, m(P.configure.items, (t3, n3) => (u(), c(l(C), { key: n3, label: t3.label, name: t3.code, lazy: !!e2.configure.props.lazy }, { label: p(() => [t3.iconType && t3.iconValue ? (u(), c(l(E), { key: 0, iconType: t3.iconType, iconValue: t3.iconValue, style: { "margin-right": "2px" } }, null, 8, ["iconType", "iconValue"])) : g("", true), b("span", { style: s(l(I)) }, y(l(V)(t3.label)), 5)]), default: p(() => [(e2.configure.props.isFullyRendered ?? 1) || t3.code === j.value ? (u(true), f(d, { key: 0 }, m(t3.items, (t4) => (u(), c(T, { key: t4.uuid, pageContext: e2.pageContext, configure: t4 }, 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(H, ["stop"]) }, { default: p(() => [h(y(e2.configure.props.resetButtonName || "重置"), 1)]), _: 1 })) : g("", true)]), _: 1 })) : g("", true)]), _: 1 }, 8, ["modelValue", "type", "tab-position", "style", "class", "closable"]);
89
+ } }), (e3, t2) => {
90
+ const n2 = i("el-button");
91
+ return u(), c(l(x), { ref_key: "thisRef", ref: O, modelValue: j.value, "onUpdate:modelValue": t2[0] || (t2[0] = (e4) => j.value = e4), type: e3.configure.props.cardType, "tab-position": e3.configure.props.tabPosition, style: s(l(B)), class: r([l(z), "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(() => [(u(true), f(d, null, m(P.configure.items, (t3, n3) => (u(), c(l(C), { key: n3, label: t3.label, name: t3.code, lazy: !!e3.configure.props.lazy }, { label: p(() => [t3.iconType && t3.iconValue ? (u(), c(l(E), { key: 0, iconType: t3.iconType, iconValue: t3.iconValue, style: { "margin-right": "2px" } }, null, 8, ["iconType", "iconValue"])) : g("", true), b("span", { style: s(l(I)) }, y(l(V)(t3.label)), 5)]), default: p(() => [(e3.configure.props.isFullyRendered ?? 1) || t3.code === j.value ? (u(true), f(d, { key: 0 }, m(t3.items, (t4) => (u(), c(T, { key: t4.uuid, pageContext: e3.pageContext, configure: t4 }, null, 8, ["pageContext", "configure"]))), 128)) : g("", true)]), _: 2 }, 1032, ["label", "name", "lazy"]))), 128)), e3.configure.props.resetable ? (u(), c(l(C), { key: 0, disabled: "", name: "-1" }, { label: p(() => [e3.configure.props.resetable ? (u(), c(n2, { 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"]);
92
92
  };
93
93
  } });
94
94
  export {
@@ -1,4 +1,4 @@
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";
1
+ import { defineComponent as e, computed as t, ref as a, onMounted as r, watch as l, resolveComponent as o, 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";
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 : {}, _ = 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([]);
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([]);
16
16
  function F(e3) {
17
17
  return h(N, k, e3);
18
18
  }
@@ -22,32 +22,31 @@ 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 ? console.error(e4) : $.value = t3;
25
+ 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);
31
30
  }
32
31
  }(e3);
33
32
  }
34
- return a(() => {
33
+ return r(() => {
35
34
  _.value.generateRule && ("fixed" === _.value.generateRuleType ? (V.value = Array.from(_.value.generateRule.matchAll(/\$\{(\w+)\}/g), (e3) => e3[1]), V.value.forEach((e3) => {
36
- o(() => q.pageContext.entity.data[e3], (e4, t2) => {
35
+ l(() => q.pageContext.entity.data[e3], (e4, t2) => {
37
36
  null != e4 && function() {
38
37
  let e5 = true;
39
38
  V.value.forEach((t3) => {
40
39
  q.pageContext.entity.data[t3] || (e5 = false);
41
40
  }), e5 && J(function(e6, t3) {
42
- const r2 = /\$\{(\w+)\}/g;
43
- return e6.replace(r2, (e7, r3) => t3.hasOwnProperty(r3) ? t3[r3] : e7);
41
+ const a2 = /\$\{(\w+)\}/g;
42
+ return e6.replace(a2, (e7, a3) => t3.hasOwnProperty(a3) ? t3[a3] : e7);
44
43
  }(_.value.generateRule, q.pageContext.entity.data));
45
44
  }();
46
45
  });
47
46
  })) : w.get(window.$vueApp.config.globalProperties.baseAPI + "/dc/setting-barcode-models/by-code/" + _.value.generateRule).then((e3) => {
48
47
  const t2 = JSON.parse(e3.barcodeModelItems);
49
48
  t2.forEach((e4) => {
50
- "-1" !== e4.propDbName && -1 !== e4.propDbName && (V.value.push(e4.propDbName), o(() => q.pageContext.entity.data[e4.propDbName], (e5, r2) => {
49
+ "-1" !== e4.propDbName && -1 !== e4.propDbName && (V.value.push(e4.propDbName), l(() => q.pageContext.entity.data[e4.propDbName], (e5, a2) => {
51
50
  if (null != e5) {
52
51
  const e6 = b(t2, q.pageContext.entity.data);
53
52
  e6 && J(e6);
@@ -55,13 +54,12 @@ const j = ["src"], D = e({ __name: "barcode-runtime", props: { pageContext: {},
55
54
  }));
56
55
  });
57
56
  }).catch((e3) => {
58
- console.error("获取条码规则失败:", e3);
59
57
  })), A.value && L(A.value);
60
58
  }), D2({ getValue: function() {
61
59
  return x(N, k);
62
60
  }, setValue: F }), (e3, t2) => {
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"]);
61
+ const a2 = o("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"]);
65
63
  };
66
64
  } });
67
65
  export {
@@ -1,5 +1,5 @@
1
1
  import { defineComponent as e, ref as t, onMounted as n, watch as o, onUnmounted as i, resolveComponent as a, createElementBlock as l, openBlock as r, unref as u, createVNode as s } from "vue";
2
- import { setTableEvents as c, canExecuteButton as p, doAfterClickEvent as d, doBeforeClickEvent as f, gridSelectRecord as g, gridSelectAllRecords as m, gridSelectionChange as v, cellClick as h, cellDblClick as b, rowClick as S, rowDblClick as w, headerClick as C, getEventNameByType as y, getEventFuncByType as x, getHandleEvent as D } from "../../../../utils/events/event-util.js";
2
+ import { setTableEvents as c, canExecuteButton as p, doAfterClickEvent as d, doBeforeClickEvent as f, gridSelectRecord as g, gridSelectAllRecords as m, gridSelectionChange as v, cellClick as h, cellDblClick as b, rowClick as w, rowDblClick as S, headerClick as C, getEventNameByType as y, getEventFuncByType as x, getHandleEvent as D } from "../../../../utils/events/event-util.js";
3
3
  import { getBaseUrl as E, getListCode as T, getRealRestApiPath as O, isWorkflowPage as R, isVariableInvalidValue as k } from "../../../../utils/common-util.js";
4
4
  import { getAdditionalParamMap as I, getSaveFormRequestWithRow as V, standardEvents as j } from "../../../../utils/events/standard-event.js";
5
5
  import { isPromise as N } from "agilebuilder-ui/src/utils/common-util";
@@ -23,7 +23,7 @@ const z = ["id"], W = e({ __name: "main-table-runtime", props: { pageContext: {}
23
23
  const e3 = Y.systemCode, t2 = Y.code;
24
24
  let n2 = J.props && J.props.dataOrigin && "[]" !== J.props.dataOrigin.sqlFilterCondition ? J.props.dataOrigin.sqlFilterCondition : null;
25
25
  null == n2 && (n2 = []);
26
- const o2 = (_a = J.props) == null ? void 0 : _a.dataOrigin.principalLinkage, i2 = { isSql: true, optionTableHeight: 0, rowKeyProp: o2, extraParam: { beanName: Y.beanName, functionCode: t2 + ".listData", tableName: ne, systemCode: e3, pageCode: Y.code, pageVersion: Y.version }, initSearchForm: n2, lineEditOptions: { aftersaveIsCreateRow: false, autoSave: false, enter: we, esc: Ee }, indexContinuous: !(!J.props || !J.props.otherSettings) && J.props.otherSettings.serialNumberContinuous, initSearch: !J.props || false !== J.props.dataOrigin.initializationQuery, resizeHeight: je, pageCode: Y.code, pageVersion: Y.version, additionalParamMap: I(Y), showOverflowTooltip: !(!J.props || !J.props.otherSettings || void 0 !== J.props.otherSettings.isBreakLine && false !== J.props.otherSettings.isBreakLine), isEnableEnterEvent: J.props && J.props.otherSettings && J.props.otherSettings.isEnableEnterEvent, isWithDataPermission: !!(J.props && J.props.otherSettings && J.props.otherSettings.isWithDataPermission) && J.props.otherSettings.isWithDataPermission, pageDevMode: false, isWorkflowEntity: R(Y), tableClass: Z, tableStyle: X, pageContext: Y, configureObj: J, backendUrl: oe, cellStyleRender: qe, rowStyleRender: We, titleStyleRender: Qe, validateEitConditions: Xe };
26
+ const o2 = (_a = J.props) == null ? void 0 : _a.dataOrigin.principalLinkage, i2 = { isSql: true, optionTableHeight: 0, rowKeyProp: o2, extraParam: { beanName: Y.beanName, functionCode: t2 + ".listData", tableName: ne, systemCode: e3, pageCode: Y.code, pageVersion: Y.version }, initSearchForm: n2, lineEditOptions: { aftersaveIsCreateRow: false, autoSave: false, enter: Se, esc: Ee }, indexContinuous: !(!J.props || !J.props.otherSettings) && J.props.otherSettings.serialNumberContinuous, initSearch: !J.props || false !== J.props.dataOrigin.initializationQuery, resizeHeight: je, pageCode: Y.code, pageVersion: Y.version, additionalParamMap: I(Y), showOverflowTooltip: !(!J.props || !J.props.otherSettings || void 0 !== J.props.otherSettings.isBreakLine && false !== J.props.otherSettings.isBreakLine), isEnableEnterEvent: J.props && J.props.otherSettings && J.props.otherSettings.isEnableEnterEvent, isWithDataPermission: !!(J.props && J.props.otherSettings && J.props.otherSettings.isWithDataPermission) && J.props.otherSettings.isWithDataPermission, pageDevMode: false, isWorkflowEntity: R(Y), tableClass: Z, tableStyle: X, pageContext: Y, configureObj: J, backendUrl: oe, cellStyleRender: qe, rowStyleRender: We, titleStyleRender: Qe, validateEitConditions: Xe };
27
27
  return function(e4) {
28
28
  var _a2;
29
29
  ((_a2 = J.props.highOrder) == null ? void 0 : _a2.mergeFields) && J.props.highOrder.mergeFields.length > 0 && (e4.mergeFields = J.props.highOrder.mergeFields.join(","));
@@ -60,7 +60,7 @@ const z = ["id"], W = e({ __name: "main-table-runtime", props: { pageContext: {}
60
60
  e3 && (e3 = O(e3, ee, te, Y.isTest));
61
61
  return e3;
62
62
  }(), ce = T(Y.code, Y.version, J.uuid), pe = Y.code + "_" + ce, de = t([]), fe = Y.entity.page, ge = t({ data: [] }), me = Y.superGridItems, ve = me ? me[J.uuid] : null, he = t(false), be = q;
63
- function Se() {
63
+ function we() {
64
64
  J.props.linkages && J.props.linkages.length > 0 && (J.props.linkages.forEach((e3) => {
65
65
  const t2 = M(e3.fieldName);
66
66
  t2 && t2.length > 1 && ae.push(t2[1]);
@@ -84,7 +84,7 @@ const z = ["id"], W = e({ __name: "main-table-runtime", props: { pageContext: {}
84
84
  }
85
85
  }());
86
86
  }
87
- function we({ rowIndex: e3, column: t2, row: n2, orgRow: o2 }) {
87
+ function Se({ rowIndex: e3, column: t2, row: n2, orgRow: o2 }) {
88
88
  Ce(null, null, n2, t2, e3);
89
89
  }
90
90
  function Ce(e3, t2, n2, o2, i2) {
@@ -244,10 +244,10 @@ const z = ["id"], W = e({ __name: "main-table-runtime", props: { pageContext: {}
244
244
  b(Y, J, { row: e3, column: t2, cell: n2, event: o2 });
245
245
  }
246
246
  function $e(e3, t2, n2) {
247
- S(Y, J, { row: e3, column: t2, event: n2 });
247
+ w(Y, J, { row: e3, column: t2, event: n2 });
248
248
  }
249
249
  function _e(e3, t2, n2) {
250
- w(Y, J, { row: e3, column: t2, event: n2 });
250
+ S(Y, J, { row: e3, column: t2, event: n2 });
251
251
  }
252
252
  function Ae(e3, t2) {
253
253
  C(Y, J, { column: e3, event: t2 });
@@ -283,7 +283,7 @@ const z = ["id"], W = e({ __name: "main-table-runtime", props: { pageContext: {}
283
283
  }
284
284
  n(() => {
285
285
  const e3 = Ke();
286
- ue.value && e3 && e3.distanceToBottom && (ue.value.tableHeight = e3.distanceToBottom - 110), Q.pageContext.pageRuntimeStyle && Q.pageContext.pageRuntimeStyle.height, window.addEventListener("message", Pe), F.$on(pe + "-close-component-page-dialog", function({ jumpInfo: e4, popEntity: t2, popPageCode: n2 }) {
286
+ ue.value && e3 && e3.distanceToBottom && (ue.value.tableHeight = e3.distanceToBottom - 110), Q.pageContext.pageRuntimeStyle, window.addEventListener("message", Pe), F.$on(pe + "-close-component-page-dialog", function({ jumpInfo: e4, popEntity: t2, popPageCode: n2 }) {
287
287
  ue.value.closePageDialog({ entity: t2, pageCode: n2, jumpInfo: e4 });
288
288
  }), F.$on(pe + "_close-dialog-get-entity", () => {
289
289
  F.$emit(pe + "_close-super-dialog");
@@ -370,7 +370,7 @@ const z = ["id"], W = e({ __name: "main-table-runtime", props: { pageContext: {}
370
370
  return (_a = ue.value) == null ? void 0 : _a.handleSearch(e3, t2);
371
371
  } }), (e3, t2) => {
372
372
  const n2 = a("super-grid");
373
- return r(), l("div", { ref_key: "tableDivRef", ref: re, id: u(ce) + "_tableDiv" }, [s(n2, { ref_key: "gridRef", ref: ue, url: u(se), options: le.value, code: u(ce), settings: u(ve), "search-form-info": ge.value, "list-toolbar-form-data": u(fe), onSelect: Fe, onSelectAll: He, onSelectionChange: Ue, onCellClick: Le, onCellDblclick: Me, onRowClick: $e, onRowDblclick: _e, onHeaderClick: Ae, onRefresh: Ge, onNewOpenGridDialog: u(P), onCanShowMobileSearch: ze, onGridOnmounted: Se }, null, 8, ["url", "options", "code", "settings", "search-form-info", "list-toolbar-form-data", "onNewOpenGridDialog"])], 8, z);
373
+ return r(), l("div", { ref_key: "tableDivRef", ref: re, id: u(ce) + "_tableDiv" }, [s(n2, { ref_key: "gridRef", ref: ue, url: u(se), options: le.value, code: u(ce), settings: u(ve), "search-form-info": ge.value, "list-toolbar-form-data": u(fe), isDialog: u(Y).isDialog, onSelect: Fe, onSelectAll: He, onSelectionChange: Ue, onCellClick: Le, onCellDblclick: Me, onRowClick: $e, onRowDblclick: _e, onHeaderClick: Ae, onRefresh: Ge, onNewOpenGridDialog: u(P), onCanShowMobileSearch: ze, onGridOnmounted: we }, null, 8, ["url", "options", "code", "settings", "search-form-info", "list-toolbar-form-data", "isDialog", "onNewOpenGridDialog"])], 8, z);
374
374
  };
375
375
  } });
376
376
  export {
@@ -1,50 +1,50 @@
1
1
  import { defineComponent as e, ref as t, onMounted as n, onUnmounted as o, resolveComponent as l, createElementBlock as a, openBlock as i, createBlock as u, createCommentVNode as r, unref as s } from "vue";
2
- import { setTableEvents as c, gridSelectRecord as p, gridSelectAllRecords as d, gridSelectionChange as f, cellClick as v, cellDblClick as b, rowClick as g, rowDblClick as m, headerClick as h, getHandleEvent as S } from "../../../../utils/events/event-util.js";
3
- import { caculateShowCondition as w, setVariableValue as T, getVariableValue as x, getSizeConfig as C } from "../../../../utils/page-helper-util.js";
4
- import { getModelFields as D, getDefaultValue as y } from "../../../../utils/page-init-util.js";
2
+ import { setTableEvents as c, gridSelectRecord as p, gridSelectAllRecords as d, gridSelectionChange as f, cellClick as b, cellDblClick as v, rowClick as g, rowDblClick as m, headerClick as h, getHandleEvent as S } from "../../../../utils/events/event-util.js";
3
+ import { caculateShowCondition as w, setVariableValue as T, getVariableValue as x, getSizeConfig as D } from "../../../../utils/page-helper-util.js";
4
+ import { getModelFields as C, getDefaultValue as y } from "../../../../utils/page-init-util.js";
5
5
  import P from "../../../../utils/eventBus.js";
6
6
  import { popupToPage as R, getOperationButtons as I } from "../../../../utils/table-utils.js";
7
7
  import { getListCode as O, getBaseUrl as _ } from "../../../../utils/common-util.js";
8
8
  import { getAdditionalParamMap as k } from "../../../../utils/events/standard-event.js";
9
9
  import { getRowStyleUtil as M, getCellStyleUtil as A, getHeaderCellStyleUtil as F } from "../../chart/table/chart-table-util.js";
10
10
  const $ = e({ __name: "sub-table-runtime", props: { pageContext: {}, configure: {} }, emits: ["setSafeDeleteTableCode"], setup(e2, { expose: $2, emit: j }) {
11
- var _a;
12
- const L = e2, B = L.pageContext;
13
- let N = L.configure;
14
- const E = L.configure.runtime ? L.configure.runtime : {};
15
- B.isTest ? E.value = L.configure.runtime ? L.configure.runtime : {} : B.tableRuntimes && B.tableRuntimes[N.uuid] && (N = JSON.parse(B.tableRuntimes[N.uuid].configure), E.value = N.runtime ? N.runtime : {});
16
- const G = O(B.code, B.version, N.uuid), H = B.entity.data, V = N.code ? N.code : G, U = k(B), z = E && E.events ? E.events : [], q = t([]), J = B.superGridItems, K = J ? J[N.uuid] : null, Q = E.style, W = E.class, X = L.pageContext.entity ? L.pageContext.entity : {};
17
- let Y = D(L.configure, V), Z = _(B.backendUrl, B.isTest);
11
+ var _a, _b, _c;
12
+ const E = e2, L = E.pageContext;
13
+ let B = E.configure;
14
+ const N = E.configure.runtime ? E.configure.runtime : {};
15
+ L.isTest ? N.value = E.configure.runtime ? E.configure.runtime : {} : L.tableRuntimes && L.tableRuntimes[B.uuid] && (B = JSON.parse(L.tableRuntimes[B.uuid].configure), N.value = B.runtime ? B.runtime : {});
16
+ const G = O(L.code, L.version, B.uuid), H = L.entity.data, V = B.code ? B.code : G, U = k(L), z = N && N.events ? N.events : [], q = t([]), J = L.superGridItems, K = J ? J[B.uuid] : null, Q = N.style, W = N.class, X = E.pageContext.entity ? E.pageContext.entity : {};
17
+ let Y = C(E.configure, V), Z = _(L.backendUrl, L.isTest);
18
18
  Z || (Z = window.$vueApp.config.globalProperties.baseURL);
19
19
  const ee = t(false);
20
20
  let te = t(0);
21
- const ne = (_a = N.props) == null ? void 0 : _a.dataOrigin.principalLinkage, oe = t({ title: (N == null ? void 0 : N.title) || null, isSql: true, subTableData: null, rowKeyProp: ne, extraParam: {}, operations: {}, hiddenColumns: [], pageCode: B.code, pageVersion: B.version, pageContext: B, configureObj: N, showPageArea: false, showRowForm: false, showOverflowTooltip: !(!N.props || !N.props.otherSettings || void 0 !== N.props.otherSettings.isBreakLine && false !== N.props.otherSettings.isBreakLine), backendUrl: Z, cellStyleRender: function(e3) {
22
- return A(e3, e3.cellStyle, L);
21
+ const ne = (_a = B.props) == null ? void 0 : _a.dataOrigin.principalLinkage, oe = t({ title: (B == null ? void 0 : B.title) || null, isSql: true, subTableData: null, rowKeyProp: ne, extraParam: {}, operations: {}, hiddenColumns: [], pageCode: L.code, pageVersion: L.version, pageContext: L, configureObj: B, showPageArea: false, showRowForm: false, showOverflowTooltip: !(!B.props || !B.props.otherSettings || void 0 !== B.props.otherSettings.isBreakLine && false !== B.props.otherSettings.isBreakLine), backendUrl: Z, cellStyleRender: function(e3) {
22
+ return A(e3, e3.cellStyle, E);
23
23
  }, rowStyleRender: function(e3) {
24
- return M(e3, null, L);
24
+ return M(e3, null, E);
25
25
  }, titleStyleRender: function(e3) {
26
- const t2 = e3.titleStyle, n2 = L.configure.style.titleStyle;
27
- return F(e3, { cellTitleStyle: t2, titleStyle: n2 }, L);
28
- } }), le = j;
29
- Q && (oe.value.tableStyle = Q), W && (oe.value.tableClass = W), N.props && N.props.base && true === N.props.base.subPaging ? oe.value.showPageArea = true : oe.value.showPageArea = false, N.props.base.showRowForm && (oe.value.showRowForm = N.props.base.showRowForm);
26
+ const t2 = e3.titleStyle, n2 = E.configure.style.titleStyle;
27
+ return F(e3, { cellTitleStyle: t2, titleStyle: n2 }, E);
28
+ }, allEditable: (_c = (_b = B.props) == null ? void 0 : _b.base) == null ? void 0 : _c.allEditable }), le = j;
29
+ Q && (oe.value.tableStyle = Q), W && (oe.value.tableClass = W), B.props && B.props.base && true === B.props.base.subPaging ? oe.value.showPageArea = true : oe.value.showPageArea = false, B.props.base.showRowForm && (oe.value.showRowForm = B.props.base.showRowForm);
30
30
  const ae = t(null);
31
31
  function ie() {
32
32
  ae.value && (oe.value.subTableData = null, ae.value.reloadSubTableData(G));
33
33
  }
34
34
  function ue(e3) {
35
- if (void 0 === e3 && (e3 = re()), oe.value.isPageInfo = false, oe.value.isFormSubTable = true, oe.value.canRrefreshSubtableData = e3, oe.value.getFormData = se, oe.value.getGridData = ce, oe.value.extraParam.subTableListViewCode = G, oe.value.extraParam.beanName = B.beanName, oe.value.extraParam.subtableSetting = N.props && N.props.otherSettings ? JSON.stringify(N.props.otherSettings) : null, oe.value.extraParam.additionalParamMap = U, oe.value.extraParam.entityMap = B.entity.data, oe.value.extraParam.contextMap = B.entity.context, oe.value.extraParam.taskMap = B.entity.task, !(N.props && N.props.base && N.props.base.showOperation)) {
35
+ if (void 0 === e3 && (e3 = re()), oe.value.isPageInfo = false, oe.value.isFormSubTable = true, oe.value.canRrefreshSubtableData = e3, oe.value.getFormData = se, oe.value.getGridData = ce, oe.value.extraParam.subTableListViewCode = G, oe.value.extraParam.beanName = L.beanName, oe.value.extraParam.subtableSetting = B.props && B.props.otherSettings ? JSON.stringify(B.props.otherSettings) : null, oe.value.extraParam.additionalParamMap = U, oe.value.extraParam.entityMap = L.entity.data, oe.value.extraParam.contextMap = L.entity.context, oe.value.extraParam.taskMap = L.entity.task, !(B.props && B.props.base && B.props.base.showOperation)) {
36
36
  let e4 = oe.value.hiddenColumns;
37
37
  e4 ? e4.push("operation") : e4 = ["operation"], oe.value.hiddenColumns = e4;
38
38
  }
39
- oe.value.showOperationButton = !(!N.props || !N.props.base) && N.props.base.showOperation, oe.value.isPdfEditor = false, oe.value.tableRecordMaxNum = N.props && N.props.otherSettings ? N.props.otherSettings.tableRecordMaxNum : null;
40
- let t2 = C(B, N);
39
+ oe.value.showOperationButton = !(!B.props || !B.props.base) && B.props.base.showOperation, oe.value.isPdfEditor = false, oe.value.tableRecordMaxNum = B.props && B.props.otherSettings ? B.props.otherSettings.tableRecordMaxNum : null;
40
+ let t2 = D(L, B);
41
41
  t2 && t2.fixHeight && (oe.value.formSetHeight = t2.fixHeight), t2 && t2.maxHeight && (oe.value.formSetMaxHeight = t2.maxHeight), oe.value.validateEitConditions = Ge;
42
42
  }
43
43
  function re() {
44
- if (N.props && N.props.otherSettings) {
45
- if (N.props.otherSettings.sourceQueryTableData && N.props.otherSettings.timeToInitializeSubTable && N.props.otherSettings.timeToInitializeSubTable.length > 0) {
44
+ if (B.props && B.props.otherSettings) {
45
+ if (B.props.otherSettings.sourceQueryTableData && B.props.otherSettings.timeToInitializeSubTable && B.props.otherSettings.timeToInitializeSubTable.length > 0) {
46
46
  let e3 = false;
47
- if (-1 !== N.props.otherSettings.timeToInitializeSubTable.indexOf("create") && (e3 = !H.id && !H.ID), -1 !== N.props.otherSettings.timeToInitializeSubTable.indexOf("noData")) {
47
+ if (-1 !== B.props.otherSettings.timeToInitializeSubTable.indexOf("create") && (e3 = !H.id && !H.ID), -1 !== B.props.otherSettings.timeToInitializeSubTable.indexOf("noData")) {
48
48
  const t2 = H[V];
49
49
  (!t2 || t2.length <= 0) && (e3 = true);
50
50
  }
@@ -54,20 +54,20 @@ const $ = e({ __name: "sub-table-runtime", props: { pageContext: {}, configure:
54
54
  }
55
55
  }
56
56
  function se() {
57
- return B.entity.data;
57
+ return L.entity.data;
58
58
  }
59
59
  function ce() {
60
60
  return x(X, Y);
61
61
  }
62
62
  let pe, de;
63
63
  function fe(e3) {
64
- ue(e3), oe.value.subTableData = null, ve(), ee.value = false, pe = setTimeout(() => {
65
- ee.value = true, te.value = te.value + 1, be();
64
+ ue(e3), oe.value.subTableData = null, be(), ee.value = false, pe = setTimeout(() => {
65
+ ee.value = true, te.value = te.value + 1, ve();
66
66
  }, 10);
67
67
  }
68
- function ve() {
68
+ function be() {
69
69
  !function() {
70
- const e4 = B.fieldPermissionMap, t2 = B.actionPermissionMap;
70
+ const e4 = L.fieldPermissionMap, t2 = L.actionPermissionMap;
71
71
  if (e4 && null != e4) {
72
72
  let t3 = e4.get(V);
73
73
  if (!t3) {
@@ -82,27 +82,27 @@ const $ = e({ __name: "sub-table-runtime", props: { pageContext: {}, configure:
82
82
  }
83
83
  oe.value.operations || (oe.value.operations = {});
84
84
  const n2 = function() {
85
- let e5 = [], t3 = w(L.pageContext, N.props.base.showOperationCondition);
85
+ let e5 = [], t3 = w(E.pageContext, B.props.base.showOperationCondition);
86
86
  if (t3 && Se(null, null, null, null, null, true, "canAdd")) {
87
- const t4 = { props: { elementType: "el-button", icon: "Plus", type: "primary", circle: true, size: "mini", permission: "true" }, onClick: Ce, isShow: we };
87
+ const t4 = { props: { elementType: "el-button", icon: "Plus", type: "primary", circle: true, size: "mini", permission: "true" }, onClick: De, isShow: we };
88
88
  e5.push(t4);
89
89
  }
90
90
  if (t3 && Te(null, null, null, null, null, true)) {
91
- const t4 = { props: { elementType: "el-button", icon: "Minus", type: "danger", circle: true, size: "mini", permission: "true" }, onClick: De, isShow: xe };
91
+ const t4 = { props: { elementType: "el-button", icon: "Minus", type: "danger", circle: true, size: "mini", permission: "true" }, onClick: Ce, isShow: xe };
92
92
  e5.push(t4);
93
93
  }
94
- return I(B, N, e5, me), e5;
94
+ return I(L, B, e5, me), e5;
95
95
  }();
96
96
  oe.value.operations.operation = n2, oe.value.subTableCanAdd = Se(null, null, null, null, null, true, "canAdd"), oe.value.subTableCanDelete = Se(null, null, null, null, null, true, "canDelete");
97
- }(), c(oe.value, z, B, N);
98
- const e3 = B.customEvents;
99
- e3 && (oe.value.eventCallBack = e3), ee.value = true, be();
97
+ }(), c(oe.value, z, L, B);
98
+ const e3 = L.customEvents;
99
+ e3 && (oe.value.eventCallBack = e3), ee.value = true, ve();
100
100
  }
101
- function be() {
102
- B.tableUuids || (B.tableUuids = []), B.tableUuids.indexOf(N.uuid) < 0 && B.tableUuids.push(N.uuid);
101
+ function ve() {
102
+ L.tableUuids || (L.tableUuids = []), L.tableUuids.indexOf(B.uuid) < 0 && L.tableUuids.push(B.uuid);
103
103
  }
104
104
  n(() => {
105
- const e3 = N.uuid, t2 = B.subTableWatchProps;
105
+ const e3 = B.uuid, t2 = L.subTableWatchProps;
106
106
  P.$on("_refreshSubTable_" + e3, (n2) => {
107
107
  const o2 = n2.propName;
108
108
  if (t2 && t2[e3] && t2[e3].length > 0) {
@@ -112,8 +112,8 @@ const $ = e({ __name: "sub-table-runtime", props: { pageContext: {}, configure:
112
112
  ie();
113
113
  }), P.$on("_refreshChildData_" + e3, (e4) => {
114
114
  !function(e5) {
115
- Ee(e5), de = setTimeout(() => {
116
- ae.value && (ae.value.refreshChildData(G, e5, N.props && N.props.base && true === N.props.base.subPaging), oe.value.extraParam.entityMap = B.entity.data);
115
+ Ne(e5), de = setTimeout(() => {
116
+ ae.value && (ae.value.refreshChildData(G, e5, B.props && B.props.base && true === B.props.base.subPaging), oe.value.extraParam.entityMap = L.entity.data);
117
117
  }, 10);
118
118
  }(e4);
119
119
  }), P.$on(G + "-pickFileDone", (e4) => {
@@ -123,7 +123,7 @@ const $ = e({ __name: "sub-table-runtime", props: { pageContext: {}, configure:
123
123
  }), oe.value && oe.value.configureObj.props.base && oe.value.configureObj.props.base.isSafeDelete && le("setSafeDeleteTableCode", oe.value.extraParam.tableName);
124
124
  }), o(() => {
125
125
  pe && clearTimeout(pe), de && clearTimeout(de);
126
- const e3 = N.uuid;
126
+ const e3 = B.uuid;
127
127
  P.$off("_refreshSubTable_" + e3), P.$off("_refreshSubTableHandle_" + e3), P.$off("_refreshChildData_" + e3), P.$off(G + "-pickFileDone"), P.$off(G + "-scanDone");
128
128
  });
129
129
  const ge = t({});
@@ -132,13 +132,13 @@ const $ = e({ __name: "sub-table-runtime", props: { pageContext: {}, configure:
132
132
  return ge.value[e3.uuid] = e3, he;
133
133
  }
134
134
  function he(e3, t2, n2, o2, l2, a2) {
135
- const i2 = { originalValue: e3, formatValue: t2, row: n2, column: o2, rowIndex: l2, button: a2, id: n2.ID ? n2.ID : n2.id }, u2 = ge.value[a2.sourceButton.uuid], r2 = N;
136
- u2.props.base.tableUuid = r2.uuid, S(null, B, u2, "click", i2);
135
+ const i2 = { originalValue: e3, formatValue: t2, row: n2, column: o2, rowIndex: l2, button: a2, id: n2.ID ? n2.ID : n2.id }, u2 = ge.value[a2.sourceButton.uuid], r2 = B;
136
+ u2.props.base.tableUuid = r2.uuid, S(null, L, u2, "click", i2);
137
137
  }
138
138
  function Se(e3, t2, n2, o2, l2, a2, i2) {
139
139
  i2 || (i2 = "canAdd");
140
- if (!w(L.pageContext, N.props.base.showOperationCondition)) return false;
141
- const u2 = B.fieldPermissionMap, r2 = B.actionPermissionMap;
140
+ if (!w(E.pageContext, B.props.base.showOperationCondition)) return false;
141
+ const u2 = L.fieldPermissionMap, r2 = L.actionPermissionMap;
142
142
  let s2 = true;
143
143
  if (u2 && null !== u2) {
144
144
  const e4 = u2.get("all_fields");
@@ -152,10 +152,10 @@ const $ = e({ __name: "sub-table-runtime", props: { pageContext: {}, configure:
152
152
  }
153
153
  function we(e3, t2, n2, o2, l2, a2) {
154
154
  let i2 = Se(0, 0, 0, 0, 0, 0, "canAdd");
155
- return true === i2 && (i2 = w(L.pageContext, N.props.base.showAddBtnCondition, n2)), i2;
155
+ return true === i2 && (i2 = w(E.pageContext, B.props.base.showAddBtnCondition, n2)), i2;
156
156
  }
157
157
  function Te(e3, t2, n2, o2, l2, a2) {
158
- const i2 = B.fieldPermissionMap, u2 = B.actionPermissionMap;
158
+ const i2 = L.fieldPermissionMap, u2 = L.actionPermissionMap;
159
159
  let r2 = true;
160
160
  if (i2 && null !== i2) {
161
161
  const e4 = i2.get("all_fields");
@@ -176,76 +176,76 @@ const $ = e({ __name: "sub-table-runtime", props: { pageContext: {}, configure:
176
176
  }
177
177
  function xe(e3, t2, n2, o2, l2, a2) {
178
178
  let i2 = Te(0, 0, n2, 0, 0, a2);
179
- return true === i2 && (i2 = w(L.pageContext, N.props.base.showDeleteBtnCondition, n2)), i2;
179
+ return true === i2 && (i2 = w(E.pageContext, B.props.base.showDeleteBtnCondition, n2)), i2;
180
180
  }
181
- function Ce(e3, t2, n2, o2, l2) {
181
+ function De(e3, t2, n2, o2, l2) {
182
182
  ae.value.createRow(G, {}, { getDefaultValueFunc: y }, { originalValue: e3, formatValue: t2, row: n2, column: o2, rowIndex: l2 });
183
183
  }
184
- function De(e3, t2, n2, o2, l2) {
184
+ function Ce(e3, t2, n2, o2, l2) {
185
185
  ae.value.deleteRow(l2, G, false);
186
186
  }
187
187
  function ye(e3) {
188
188
  T(X, Y, e3);
189
189
  }
190
190
  function Pe(e3) {
191
- B.subTablePageInfo || (B.subTablePageInfo = {}), B.subTablePageInfo[V] || (B.subTablePageInfo[V] = {}), B.subTablePageInfo[V].pageSize = e3;
191
+ L.subTablePageInfo || (L.subTablePageInfo = {}), L.subTablePageInfo[V] || (L.subTablePageInfo[V] = {}), L.subTablePageInfo[V].pageSize = e3;
192
192
  }
193
193
  function Re(e3) {
194
194
  const t2 = e3.key, n2 = e3.value;
195
- B.selectOptions || (B.selectOptions = {}), B.selectOptions[t2] = n2;
195
+ L.selectOptions || (L.selectOptions = {}), L.selectOptions[t2] = n2;
196
196
  }
197
197
  function Ie(e3) {
198
- const t2 = B.code + "_";
198
+ const t2 = L.code + "_";
199
199
  P.$emit(t2 + "prohibit-edit", e3);
200
200
  }
201
201
  function Oe(e3) {
202
- const t2 = B.entity.data;
202
+ const t2 = L.entity.data;
203
203
  if (e3) for (const n2 in e3) t2[n2] = e3[n2];
204
204
  }
205
205
  function _e(e3, t2) {
206
206
  if (void 0 !== t2) {
207
207
  q.value = e3;
208
- p(B, N, { selection: e3, row: t2 });
208
+ p(L, B, { selection: e3, row: t2 });
209
209
  }
210
210
  }
211
211
  function ke(e3) {
212
212
  q.value = e3;
213
- d(B, N, { selection: e3 });
213
+ d(L, B, { selection: e3 });
214
214
  }
215
215
  function Me(e3) {
216
- f(B, N, { newSelection: e3 });
216
+ f(L, B, { newSelection: e3 });
217
217
  }
218
218
  function Ae(e3, t2, n2, o2) {
219
- v(B, N, { row: e3, column: t2, cell: n2, event: o2 });
219
+ b(L, B, { row: e3, column: t2, cell: n2, event: o2 });
220
220
  }
221
221
  function Fe(e3, t2, n2, o2) {
222
- b(B, N, { row: e3, column: t2, cell: n2, event: o2 });
222
+ v(L, B, { row: e3, column: t2, cell: n2, event: o2 });
223
223
  }
224
224
  function $e(e3, t2, n2) {
225
- g(B, N, { row: e3, column: t2, event: n2 });
225
+ g(L, B, { row: e3, column: t2, event: n2 });
226
226
  }
227
227
  function je(e3, t2, n2) {
228
- m(B, N, { row: e3, column: t2, event: n2 });
228
+ m(L, B, { row: e3, column: t2, event: n2 });
229
229
  }
230
- function Le(e3, t2) {
231
- h(B, N, { column: e3, event: t2 });
230
+ function Ee(e3, t2) {
231
+ h(L, B, { column: e3, event: t2 });
232
232
  }
233
- function Be(e3) {
234
- B.entity.data = e3;
233
+ function Le(e3) {
234
+ L.entity.data = e3;
235
235
  }
236
- function Ne() {
236
+ function Be() {
237
237
  return x(X, Y);
238
238
  }
239
- function Ee(e3) {
239
+ function Ne(e3) {
240
240
  return T(X, Y, e3);
241
241
  }
242
242
  function Ge({ row: e3, editConditions: t2 }) {
243
243
  let n2 = true;
244
- return t2 && t2.length > 0 && (n2 = w(L.pageContext, t2, e3)), n2;
244
+ return t2 && t2.length > 0 && (n2 = w(E.pageContext, t2, e3)), n2;
245
245
  }
246
246
  return function() {
247
247
  const e3 = re();
248
- e3 ? fe(e3) : (ue(e3), oe.value.isPageInfo = false, oe.value.subTableData = Ne(), ve());
248
+ e3 ? fe(e3) : (ue(e3), oe.value.isPageInfo = false, oe.value.subTableData = Be(), be());
249
249
  }(), $2({ createRow: function() {
250
250
  return ae.value.createRow(G);
251
251
  }, getSelections: function() {
@@ -258,10 +258,10 @@ const $ = e({ __name: "sub-table-runtime", props: { pageContext: {}, configure:
258
258
  }, clearSelections: function() {
259
259
  q.value = [];
260
260
  }, getTableConfigure: function() {
261
- return N;
261
+ return B;
262
262
  }, validatorSunTableListData: function() {
263
263
  return ae.value.validatorSunTableListData();
264
- }, getValue: Ne, setValue: Ee, getTableSelectOptions: function() {
264
+ }, getValue: Be, setValue: Ne, getTableSelectOptions: function() {
265
265
  if (ae.value) return ae.value.getTableSelectOptions(G);
266
266
  }, dynamicControlTableEdit: function(e3, t2, n2) {
267
267
  ae.value && ae.value.dynamicControlTableEdit(e3, t2, n2);
@@ -293,7 +293,7 @@ const $ = e({ __name: "sub-table-runtime", props: { pageContext: {}, configure:
293
293
  (_a2 = ae.value) == null ? void 0 : _a2.addRequiredClass(e3, G, t2, n2);
294
294
  } }), (e3, t2) => {
295
295
  const n2 = l("super-grid");
296
- return i(), a("div", null, [ee.value ? (i(), u(n2, { key: 0, ref_key: "gridRef", ref: ae, url: s(Z) + "/dsc/commons/sub-table", options: oe.value, code: s(G), settings: s(K), onSelect: _e, onSelectAll: ke, onSelectionChange: Me, onCellClick: Ae, onCellDblclick: Fe, onRowClick: $e, onRowDblclick: je, onHeaderClick: Le, onFnProhibitToEdit: Ie, onChangeGridData: ye, onReloadGrid: fe, onRefresMainTableFields: Oe, onSetSelectOptions: Re, onChangeRowsPerPage: Pe, onNewOpenGridDialog: s(R), onChangeFormData: Be }, null, 8, ["url", "options", "code", "settings", "onNewOpenGridDialog"])) : r("", true)]);
296
+ return i(), a("div", null, [ee.value ? (i(), u(n2, { key: 0, ref_key: "gridRef", ref: ae, url: s(Z) + "/dsc/commons/sub-table", options: oe.value, code: s(G), settings: s(K), isDialog: s(L).isDialog, onSelect: _e, onSelectAll: ke, onSelectionChange: Me, onCellClick: Ae, onCellDblclick: Fe, onRowClick: $e, onRowDblclick: je, onHeaderClick: Ee, onFnProhibitToEdit: Ie, onChangeGridData: ye, onReloadGrid: fe, onRefresMainTableFields: Oe, onSetSelectOptions: Re, onChangeRowsPerPage: Pe, onNewOpenGridDialog: s(R), onChangeFormData: Le }, null, 8, ["url", "options", "code", "settings", "isDialog", "onNewOpenGridDialog"])) : r("", true)]);
297
297
  };
298
298
  } });
299
299
  export {
@@ -75,7 +75,7 @@ const f = e({ __name: "table-runtime", props: { pageContext: {}, configure: {} }
75
75
  }, handleSearch: function(e3, t2) {
76
76
  var _a;
77
77
  (_a = b.value) == null ? void 0 : _a.handleSearch(e3, t2);
78
- } }), (t2, n2) => (a(), u("div", null, [r(g) && "form" === r(g) && C.value ? (a(), o(i, { key: 0, ref_key: "gridRef", ref: b, pageContext: e2.pageContext, configure: d.value, onSetSafeDeleteTableCode: E }, null, 8, ["pageContext", "configure"])) : r(g) && "form" === r(g) ? l("", true) : (a(), o(c, { key: 1, ref_key: "gridRef", ref: b, pageContext: e2.pageContext, configure: d.value, onSetSafeDeleteTableCode: E }, null, 8, ["pageContext", "configure"]))]));
78
+ } }), (e3, t2) => (a(), u("div", null, [r(g) && "form" === r(g) && C.value ? (a(), o(i, { key: 0, ref_key: "gridRef", ref: b, pageContext: e3.pageContext, configure: d.value, onSetSafeDeleteTableCode: E }, null, 8, ["pageContext", "configure"])) : r(g) && "form" === r(g) ? l("", true) : (a(), o(c, { key: 1, ref_key: "gridRef", ref: b, pageContext: e3.pageContext, configure: d.value, onSetSafeDeleteTableCode: E }, null, 8, ["pageContext", "configure"]))]));
79
79
  } });
80
80
  export {
81
81
  f as default
@@ -104,29 +104,29 @@ const P = { key: 0, class: "custom-tree-node" }, W = ["title"], R = { key: 0, cl
104
104
  te.value.setCheckedKeys(e3, t2);
105
105
  }, setChecked: (e3, t2, a2) => {
106
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) }), (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) => {
108
108
  var _a2;
109
- const n2 = d("el-input"), l2 = d("el-button"), o2 = d("SuperIcon"), V2 = d("el-tree");
110
- return i(), u("div", { class: s(["amb-tree-runtime-main", r(ee)]) }, [ae.value.filter ? (i(), c(n2, { key: 0, modelValue: ue.value, "onUpdate:modelValue": a2[0] || (a2[0] = (e3) => ue.value = e3), style: { width: "100%" }, placeholder: "请输入查询条件" }, null, 8, ["modelValue"])) : p("", true), le.value ? (i(), c(V2, { 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: t3, data: d2 }) => [d2.nodeId === se.value ? (i(), u("div", P, [m(n2, { modelValue: ce.value, "onUpdate:modelValue": a2[1] || (a2[1] = (e3) => ce.value = e3), size: "small" }, null, 8, ["modelValue"]), h("div", null, [m(l2, { type: "primary", link: "", onClick: (e3) => ((e4) => {
111
- "" !== ce.value ? (e4.data.name = ce.value, re.value && e4.data.nodeId === re.value ? w(e4, X.configure, X.pageContext).then((t4) => {
112
- ye(e4, t4.currentNode), Ce(), z.success("保存成功!");
113
- }) : E(e4, X.configure, X.pageContext).then((t4) => {
114
- ye(e4, t4.currentNode), Ce(), z.success("保存成功!");
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
115
  })) : z.warning("请输入节点名称");
116
- })(t3) }, { default: g(() => [...a2[2] || (a2[2] = [y(" 保存 ", -1)])]), _: 1 }, 8, ["onClick"]), m(l2, { style: { "margin-left": "4px" }, type: "primary", link: "", onClick: (a3) => ((e3) => {
117
- re.value && e3.data.nodeId === re.value && te.value.remove(e3), Ce();
118
- })(t3, e2.configure, e2.pageContext) }, { default: g(() => [...a2[3] || (a2[3] = [y(" 撤销 ", -1)])]), _: 1 }, 8, ["onClick"])])])) : (i(), u("span", { key: 1, title: t3.label, class: "ellipsis" }, [d2.iconValue ? (i(), c(o2, { key: 0, iconType: d2.iconType, iconValue: d2.iconValue }, null, 8, ["iconType", "iconValue"])) : ae.value.iconValue ? (i(), c(o2, { 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, [a2[5] || (a2[5] = h("img", { src: I, class: "file" }, null, -1)), h("span", null, x(d2.name), 1)])) : (i(), u("div", R, [h("div", D, [a2[4] || (a2[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, (e3, t3) => (i(), u("li", { key: t3, tabindex: "-1", class: "menu__item", onClick: (t4) => ((e4) => {
119
- if (ge.value && "standard" === e4.type && e4.standardEvent) if ("edit" === e4.standardEvent) se.value = ge.value.data.nodeId, ce.value = ge.value.data.name;
120
- else if ("delete" === e4.standardEvent) ge.value.childNodes && ge.value.childNodes.length > 0 && e4.deleteParentNodeTip ? (e4.deleteParentNodeTipMessage || (e4.deleteParentNodeTipMessage = "当前节点下有子节点,确认删除?"), S.confirm(e4.deleteParentNodeTipMessage, { confirmButtonText: "确定", cancelButtonText: "取消", type: "error" }).then(() => {
121
- ke(e4);
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);
122
122
  }).catch(() => {
123
123
  ge.value = null;
124
- })) : ke(e4);
124
+ })) : ke(e5);
125
125
  else {
126
126
  const t5 = xe();
127
- se.value = t5.nodeId, re.value = t5.nodeId, ce.value = t5.name, "addSiblingNode" === e4.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" === e4.standardEvent && (t5.isLeaf = true, ge.value.data.isLeaf = false, te.value.append(t5, ge.value), te.value.setCurrentKey(t5.nodeId, true));
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));
128
128
  }
129
- })(e3) }, [h("span", null, x(e3.name), 1)], 8, O))), 128))], 512)], 512), [[N, A.value && ((_a2 = q.value) == null ? void 0 : _a2.length) > 0]])], 2);
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
130
  };
131
131
  } });
132
132
  export {