super-page-runtime 2.3.19 → 2.3.20-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 (87) hide show
  1. package/dist/es/components/runtime/utils/anchor-util.d.ts +13 -0
  2. package/dist/es/components/runtime/utils/anchor-util.js +69 -0
  3. package/dist/es/components/runtime/utils/api/page-expose-util.js +135 -122
  4. package/dist/es/components/runtime/utils/events/data-backfill-util.d.ts +27 -0
  5. package/dist/es/components/runtime/utils/events/data-backfill-util.js +39 -0
  6. package/dist/es/components/runtime/utils/events/event-util.js +3 -3
  7. package/dist/es/components/runtime/utils/events/print-label.js +25 -26
  8. package/dist/es/components/runtime/utils/events/standard-event.d.ts +1 -0
  9. package/dist/es/components/runtime/utils/events/standard-event.js +605 -549
  10. package/dist/es/components/runtime/utils/events/validator-util.js +1 -1
  11. package/dist/es/components/runtime/utils/page-init-util.js +9 -11
  12. package/dist/es/components/runtime/utils/page-store.d.ts +13 -1
  13. package/dist/es/components/runtime/utils/page-store.js +46 -19
  14. package/dist/es/components/runtime/utils/table-utils.d.ts +2 -0
  15. package/dist/es/components/runtime/utils/table-utils.js +64 -55
  16. package/dist/es/components/runtime/views/assemblys/button/button/button-runtime.vue2.js +20 -18
  17. package/dist/es/components/runtime/views/assemblys/button/button-group/buttongroup-runtime.vue2.js +3 -3
  18. package/dist/es/components/runtime/views/assemblys/button/dropdown/dropdown-runtime.vue2.js +3 -3
  19. package/dist/es/components/runtime/views/assemblys/button/export-pdf/exportpdf-runtime.vue2.js +1 -1
  20. package/dist/es/components/runtime/views/assemblys/button/print-label/printlabel-runtime.vue2.js +3 -3
  21. package/dist/es/components/runtime/views/assemblys/chart/column-line/column-line-runtime.vue2.js +1 -1
  22. package/dist/es/components/runtime/views/assemblys/chart/common/common-chart-header-group.vue.js +6 -10
  23. package/dist/es/components/runtime/views/assemblys/chart/common/common-chart-header.vue.js +6 -8
  24. package/dist/es/components/runtime/views/assemblys/chart/common/common-homepage-search.vue2.js +10 -11
  25. package/dist/es/components/runtime/views/assemblys/chart/gauge/gauge-runtime.vue2.js +1 -1
  26. package/dist/es/components/runtime/views/assemblys/chart/pie/pie-runtime.vue2.js +1 -1
  27. package/dist/es/components/runtime/views/assemblys/chart/radar/radar-runtime.vue2.js +1 -1
  28. package/dist/es/components/runtime/views/assemblys/chart/scatter/scatter-runtime.vue2.js +1 -1
  29. package/dist/es/components/runtime/views/assemblys/chart/table/chart-table-util.js +93 -98
  30. package/dist/es/components/runtime/views/assemblys/chart/table/normal-column.vue.js +3 -2
  31. package/dist/es/components/runtime/views/assemblys/chart/table/table-runtime.vue2.js +2 -3
  32. package/dist/es/components/runtime/views/assemblys/common/event-call-component.vue.js +13 -13
  33. package/dist/es/components/runtime/views/assemblys/common/export-form-report-dialog.vue.js +9 -11
  34. package/dist/es/components/runtime/views/assemblys/common/file-task-notice.vue.d.ts +27 -0
  35. package/dist/es/components/runtime/views/assemblys/common/file-task-notice.vue.js +35 -0
  36. package/dist/es/components/runtime/views/assemblys/common/file-task-notice.vue2.js +4 -0
  37. package/dist/es/components/runtime/views/assemblys/common/format-file-task-notice-message.vue.d.ts +59 -0
  38. package/dist/es/components/runtime/views/assemblys/common/format-file-task-notice-message.vue.js +32 -0
  39. package/dist/es/components/runtime/views/assemblys/common/format-file-task-notice-message.vue2.js +4 -0
  40. package/dist/es/components/runtime/views/assemblys/common/save-chart-condition-dialog.vue.js +1 -1
  41. package/dist/es/components/runtime/views/assemblys/container/card/card-runtime.vue2.js +3 -3
  42. package/dist/es/components/runtime/views/assemblys/container/collapse/collapse-runtime.vue2.js +3 -3
  43. package/dist/es/components/runtime/views/assemblys/container/container/container-runtime.vue2.js +3 -3
  44. package/dist/es/components/runtime/views/assemblys/container/fixed/YxAffix.vue2.js +0 -2
  45. package/dist/es/components/runtime/views/assemblys/container/flex/flex-runtime.vue2.js +3 -3
  46. package/dist/es/components/runtime/views/assemblys/container/form/form-runtime.vue2.js +3 -3
  47. package/dist/es/components/runtime/views/assemblys/container/iframe/iframe-runtime.vue2.js +1 -1
  48. package/dist/es/components/runtime/views/assemblys/container/tabs/tabs-runtime.vue2.js +3 -3
  49. package/dist/es/components/runtime/views/assemblys/data/bar-code/barcode-runtime.vue2.js +10 -12
  50. package/dist/es/components/runtime/views/assemblys/data/table/main-table-runtime.vue.js +8 -8
  51. package/dist/es/components/runtime/views/assemblys/data/table/sub-table-runtime.vue.js +176 -156
  52. package/dist/es/components/runtime/views/assemblys/data/table/table-runtime.vue2.js +1 -1
  53. package/dist/es/components/runtime/views/assemblys/data/tree/tree-runtime.vue2.js +16 -16
  54. package/dist/es/components/runtime/views/assemblys/form/checkbox/checkbox-runtime.vue2.js +3 -3
  55. package/dist/es/components/runtime/views/assemblys/form/common/title-suffix-element.vue.js +3 -3
  56. package/dist/es/components/runtime/views/assemblys/form/custom/custom-runtime.vue2.js +6 -6
  57. package/dist/es/components/runtime/views/assemblys/form/date-picker/datepicker-runtime.vue2.js +40 -40
  58. package/dist/es/components/runtime/views/assemblys/form/dept-tree/depttree-runtime.vue2.js +3 -3
  59. package/dist/es/components/runtime/views/assemblys/form/divider/divider-runtime.vue2.js +3 -3
  60. package/dist/es/components/runtime/views/assemblys/form/file-upload/fileupload-runtime.vue2.js +4 -4
  61. package/dist/es/components/runtime/views/assemblys/form/input-number/input-number-runtime.vue2.js +3 -3
  62. package/dist/es/components/runtime/views/assemblys/form/input-text/inputtext-runtime.vue2.js +37 -38
  63. package/dist/es/components/runtime/views/assemblys/form/label/label-runtime.vue2.js +5 -7
  64. package/dist/es/components/runtime/views/assemblys/form/link/link-runtime.vue2.js +3 -4
  65. package/dist/es/components/runtime/views/assemblys/form/radio/radio-runtime.vue2.js +3 -3
  66. package/dist/es/components/runtime/views/assemblys/form/rich-text/richtext-runtime.vue2.js +2 -2
  67. package/dist/es/components/runtime/views/assemblys/form/select/select-runtime.vue2.js +4 -5
  68. package/dist/es/components/runtime/views/assemblys/form/separatelabel/separatelabel-runtime.vue2.js +1 -1
  69. package/dist/es/components/runtime/views/assemblys/form/switch/switch-runtime.vue2.js +3 -3
  70. package/dist/es/components/runtime/views/assemblys/form/tag/tag-runtime.vue2.js +11 -11
  71. package/dist/es/components/runtime/views/assemblys/form/textarea/textarea-runtime.vue2.js +3 -3
  72. package/dist/es/components/runtime/views/assemblys/home-chart-render.vue.js +3 -3
  73. package/dist/es/components/runtime/views/assemblys/object-render.vue.js +37 -41
  74. package/dist/es/components/runtime/views/assemblys/page-bottom.vue.js +1 -1
  75. package/dist/es/components/runtime/views/assemblys/workflow/component/workflow-opinion-box.vue2.js +4 -4
  76. package/dist/es/components/runtime/views/assemblys/workflow/extract-workflow/extract-workflow-runtime-dialog.vue2.js +1 -1
  77. package/dist/es/components/runtime/views/assemblys/workflow/extract-workflow/extract-workflow-runtime.vue2.js +1 -1
  78. package/dist/es/components/runtime/views/assemblys/workflow/workflow-button/workflowbutton-runtime.vue2.js +1 -1
  79. package/dist/es/components/runtime/views/assemblys/workflow/workflow-node/workflownode-runtime.vue2.js +22 -13
  80. package/dist/es/components/runtime/views/home-chart.vue.js +7 -7
  81. package/dist/es/components/runtime/views/super-page-dialog.vue.js +0 -1
  82. package/dist/es/components/runtime/views/super-page.vue.js +1 -1
  83. package/dist/es/components/runtime/views/super-page.vue2.js +173 -173
  84. package/dist/es/i18n/langs/cn.js +1 -1
  85. package/dist/es/i18n/langs/en.js +1 -1
  86. package/dist/es/style.css +79 -78
  87. package/package.json +2 -2
@@ -9,7 +9,7 @@ const d = e({ __name: "separatelabel-runtime", props: { pageContext: {}, configu
9
9
  const e3 = y(v.configure.props.base.title);
10
10
  b(e3, v.pageContext, v.configure, { componentRef: x.value, value: e3, entity: v.pageContext.entity.data, pageData: v.pageContext.entity.page });
11
11
  });
12
- }), d2({}), (t2, i2) => (r(), n("div", { style: p(l(T)), class: a([l(V), "amb-widget-separatelabel"]), ref_key: "thisRef", ref: x }, [s("div", { class: "label", style: p(l(h)) }, [e2.configure.props.iconType && e2.configure.props.iconValue ? (r(), u(l(m), { key: 0, iconType: e2.configure.props.iconType, iconValue: e2.configure.props.iconValue, style: { "margin-right": "2px" } }, null, 8, ["iconType", "iconValue"])) : c("", true), g(" " + f(l(y)(e2.configure.props.base.title)), 1)], 4)], 6));
12
+ }), d2({}), (e3, t2) => (r(), n("div", { style: p(l(T)), class: a([l(V), "amb-widget-separatelabel"]), ref_key: "thisRef", ref: x }, [s("div", { class: "label", style: p(l(h)) }, [e3.configure.props.iconType && e3.configure.props.iconValue ? (r(), u(l(m), { key: 0, iconType: e3.configure.props.iconType, iconValue: e3.configure.props.iconValue, style: { "margin-right": "2px" } }, null, 8, ["iconType", "iconValue"])) : c("", true), g(" " + f(l(y)(e3.configure.props.base.title)), 1)], 4)], 6));
13
13
  } });
14
14
  export {
15
15
  d as default
@@ -26,9 +26,9 @@ const w = e({ __name: "switch-runtime", props: { pageContext: {}, configure: {}
26
26
  });
27
27
  }), w2({ addRequiredClass: function() {
28
28
  _.value = b();
29
- } }), (t2, l2) => {
30
- const a2 = i("el-switch"), u2 = i("el-form-item");
31
- return v(), n(u2, { ref_key: "formItemRef", ref: A, required: W.value.required, class: r(c(z) + (_.value ? " " + _.value : "")), "label-width": W.value.labelWidth, style: o(c(S)) }, { label: s(() => [W.value.tittleShow ? (v(), p("div", { key: 0, ref_key: "titleRef", ref: F, style: o({ ...c(I), ...c(T) }) }, d(c(C)(W.value.title)), 5)) : m("", true)]), default: s(() => [f(a2, { ref_key: "componentRef", ref: B, disabled: "disabled" === W.value.state, "active-value": W.value.activeValue, "active-text": W.value.activeText, "inactive-value": W.value.inactiveValue, "inactive-text": W.value.inactiveText, width: W.value.offOnWidth, size: W.value.size, style: o(c(O)), modelValue: U.value, "onUpdate:modelValue": l2[0] || (l2[0] = (e3) => U.value = e3), onChange: l2[1] || (l2[1] = (t3) => c(h)(t3, e2.pageContext, e2.configure, "change")) }, null, 8, ["disabled", "active-value", "active-text", "inactive-value", "inactive-text", "width", "size", "style", "modelValue"])]), _: 1 }, 8, ["required", "class", "label-width", "style"]);
29
+ } }), (e3, t2) => {
30
+ const l2 = i("el-switch"), a2 = i("el-form-item");
31
+ return v(), n(a2, { ref_key: "formItemRef", ref: A, required: W.value.required, class: r(c(z) + (_.value ? " " + _.value : "")), "label-width": W.value.labelWidth, style: o(c(S)) }, { label: s(() => [W.value.tittleShow ? (v(), p("div", { key: 0, ref_key: "titleRef", ref: F, style: o({ ...c(I), ...c(T) }) }, d(c(C)(W.value.title)), 5)) : m("", true)]), default: s(() => [f(l2, { ref_key: "componentRef", ref: B, disabled: "disabled" === W.value.state, "active-value": W.value.activeValue, "active-text": W.value.activeText, "inactive-value": W.value.inactiveValue, "inactive-text": W.value.inactiveText, width: W.value.offOnWidth, size: W.value.size, style: o(c(O)), modelValue: U.value, "onUpdate:modelValue": t2[0] || (t2[0] = (e4) => U.value = e4), onChange: t2[1] || (t2[1] = (t3) => c(h)(t3, e3.pageContext, e3.configure, "change")) }, null, 8, ["disabled", "active-value", "active-text", "inactive-value", "inactive-text", "width", "size", "style", "modelValue"])]), _: 1 }, 8, ["required", "class", "label-width", "style"]);
32
32
  };
33
33
  } });
34
34
  export {
@@ -24,19 +24,19 @@ const j = e({ __name: "tag-runtime", props: { pageContext: {}, configure: {} },
24
24
  const e3 = E.value;
25
25
  h(e3, j2.pageContext, j2.configure, { formItemRef: O.value, titleRef: W.value, value: e3, entity: j2.pageContext.entity.data, pageData: j2.pageContext.entity.page });
26
26
  });
27
- }), (t2, l2) => {
28
- const a2 = o("el-tag"), i2 = o("el-form-item");
29
- return r(), n(i2, { ref_key: "formItemRef", ref: O, required: I.value.required, class: s(p(w)), "label-width": I.value.labelWidth, style: u(p(q)) }, { label: c(() => [I.value.tittleShow ? (r(), f("div", { key: 0, ref_key: "titleRef", ref: W, style: u({ ...p(z), ...p(S) }) }, y(p(_)(I.value.title)), 5)) : d("", true)]), default: c(() => [(r(true), f(g, null, m(E.value, (t3) => (r(), n(a2, { key: t3, size: I.value.size, closable: I.value.closable, type: I.value.type, style: { "margin-right": "4px" }, onClose: (e3) => function(e4, t4) {
27
+ }), (e3, t2) => {
28
+ const l2 = o("el-tag"), a2 = o("el-form-item");
29
+ return r(), n(a2, { ref_key: "formItemRef", ref: O, required: I.value.required, class: s(p(w)), "label-width": I.value.labelWidth, style: u(p(q)) }, { label: c(() => [I.value.tittleShow ? (r(), f("div", { key: 0, ref_key: "titleRef", ref: W, style: u({ ...p(z), ...p(S) }) }, y(p(_)(I.value.title)), 5)) : d("", true)]), default: c(() => [(r(true), f(g, null, m(E.value, (a3) => (r(), n(l2, { key: a3, size: I.value.size, closable: I.value.closable, type: I.value.type, style: { "margin-right": "4px" }, onClose: (e4) => function(e5, t3) {
30
30
  if (I.value.closable) {
31
- let e5 = C(D, A);
32
- null == e5 && (e5 = []);
33
- const l3 = Array.isArray(e5);
34
- l3 || (e5 = (e5 + "").split(","));
35
- const a3 = e5.indexOf(t4.value);
36
- a3 > -1 && e5.splice(a3, 1), l3 || (e5 = e5.join(",")), b(D, A, e5);
31
+ let e6 = C(D, A);
32
+ null == e6 && (e6 = []);
33
+ const l3 = Array.isArray(e6);
34
+ l3 || (e6 = (e6 + "").split(","));
35
+ const a4 = e6.indexOf(t3.value);
36
+ a4 > -1 && e6.splice(a4, 1), l3 || (e6 = e6.join(",")), b(D, A, e6);
37
37
  }
38
- k(e4, j2.pageContext, j2.configure, "remove");
39
- }(e3, t3), onClick: l2[0] || (l2[0] = (t4) => p(k)(t4, e2.pageContext, e2.configure, "click")) }, { default: c(() => [v(y(t3.label), 1)]), _: 2 }, 1032, ["size", "closable", "type", "onClose"]))), 128))]), _: 1 }, 8, ["required", "class", "label-width", "style"]);
38
+ k(e5, j2.pageContext, j2.configure, "remove");
39
+ }(e4, a3), onClick: t2[0] || (t2[0] = (t3) => p(k)(t3, e3.pageContext, e3.configure, "click")) }, { default: c(() => [v(y(a3.label), 1)]), _: 2 }, 1032, ["size", "closable", "type", "onClose"]))), 128))]), _: 1 }, 8, ["required", "class", "label-width", "style"]);
40
40
  };
41
41
  } });
42
42
  export {
@@ -18,9 +18,9 @@ const _ = e({ __name: "textarea-runtime", props: { pageContext: {}, configure: {
18
18
  });
19
19
  }), _2({ addRequiredClass: function() {
20
20
  I.value = j();
21
- } }), (t2, l2) => {
22
- const a2 = n("el-input"), o2 = n("el-form-item");
23
- return r(), u("div", null, [i(o2, { ref_key: "formItemRef", ref: U, required: !!D.value.required, class: p(m(F) + (I.value ? " " + I.value : "")), "label-width": D.value.labelWidth, style: s(m(E)) }, { label: f(() => [D.value.tittleShow ? (r(), u("div", { key: 0, ref_key: "titleRef", ref: A, style: s({ ...m(N), ...m(T) }) }, [D.value.prefixType ? (r(), c(k, { key: 0, pageContext: e2.pageContext, property: D.value }, null, 8, ["pageContext", "property"])) : (r(), u(d, { key: 1 }, [v(x(m(R)(D.value.title)), 1)], 64))], 4)) : g("", true)]), default: f(() => [i(a2, { ref_key: "componentRef", ref: W, disabled: "disabled" === D.value.state, readonly: "readonly" === D.value.state, size: D.value.size, clearable: D.value.clearable, placeholder: D.value.placeholder, modelValue: V.value, "onUpdate:modelValue": l2[0] || (l2[0] = (e3) => V.value = e3), rows: D.value.rows ? D.value.rows : 2, maxlength: D.value.maxlength, minlength: D.value.minlength, "show-word-limit": D.value.showInputNum, type: "textarea", onInput: l2[1] || (l2[1] = (t3) => m(b)(t3, e2.pageContext, e2.configure, "input")), onChange: l2[2] || (l2[2] = (t3) => m(b)(t3, e2.pageContext, e2.configure, "change")), onBlur: l2[3] || (l2[3] = (t3) => m(b)(t3, e2.pageContext, e2.configure, "blur")), onFocus: l2[4] || (l2[4] = (t3) => m(b)(t3, e2.pageContext, e2.configure, "focus")), onClick: l2[5] || (l2[5] = (t3) => m(b)(t3, e2.pageContext, e2.configure, "click")) }, null, 8, ["disabled", "readonly", "size", "clearable", "placeholder", "modelValue", "rows", "maxlength", "minlength", "show-word-limit"])]), _: 1 }, 8, ["required", "class", "label-width", "style"])]);
21
+ } }), (e3, t2) => {
22
+ const l2 = n("el-input"), a2 = n("el-form-item");
23
+ return r(), u("div", null, [i(a2, { ref_key: "formItemRef", ref: U, required: !!D.value.required, class: p(m(F) + (I.value ? " " + I.value : "")), "label-width": D.value.labelWidth, style: s(m(E)) }, { label: f(() => [D.value.tittleShow ? (r(), u("div", { key: 0, ref_key: "titleRef", ref: A, style: s({ ...m(N), ...m(T) }) }, [D.value.prefixType ? (r(), c(k, { key: 0, pageContext: e3.pageContext, property: D.value }, null, 8, ["pageContext", "property"])) : (r(), u(d, { key: 1 }, [v(x(m(R)(D.value.title)), 1)], 64))], 4)) : g("", true)]), default: f(() => [i(l2, { ref_key: "componentRef", ref: W, disabled: "disabled" === D.value.state, readonly: "readonly" === D.value.state, size: D.value.size, clearable: D.value.clearable, placeholder: D.value.placeholder, modelValue: V.value, "onUpdate:modelValue": t2[0] || (t2[0] = (e4) => V.value = e4), rows: D.value.rows ? D.value.rows : 2, maxlength: D.value.maxlength, minlength: D.value.minlength, "show-word-limit": D.value.showInputNum, type: "textarea", onInput: t2[1] || (t2[1] = (t3) => m(b)(t3, e3.pageContext, e3.configure, "input")), onChange: t2[2] || (t2[2] = (t3) => m(b)(t3, e3.pageContext, e3.configure, "change")), onBlur: t2[3] || (t2[3] = (t3) => m(b)(t3, e3.pageContext, e3.configure, "blur")), onFocus: t2[4] || (t2[4] = (t3) => m(b)(t3, e3.pageContext, e3.configure, "focus")), onClick: t2[5] || (t2[5] = (t3) => m(b)(t3, e3.pageContext, e3.configure, "click")) }, null, 8, ["disabled", "readonly", "size", "clearable", "placeholder", "modelValue", "rows", "maxlength", "minlength", "show-word-limit"])]), _: 1 }, 8, ["required", "class", "label-width", "style"])]);
24
24
  };
25
25
  } });
26
26
  export {
@@ -73,9 +73,9 @@ const H = e({ __name: "home-chart-render", props: { pageContext: {}, configure:
73
73
  const t2 = H2.configure.props ? H2.configure.props : {}, n2 = H2.configure.style ? H2.configure.style : {}, i2 = t2.position;
74
74
  "top" == i2 || "bottom" == i2 || n2.position;
75
75
  };
76
- return (o2, t2) => {
77
- const n2 = i("permission");
78
- return u($)(e2.configure) ? r((c(), l(g(P.value), { key: 0, ref: D, style: a(W.value), class: f(q.value), configure: e2.configure, pageContext: e2.pageContext }, null, 8, ["style", "class", "configure", "pageContext"])), [[p, u(B)], [n2, { codes: u(N) ? u(N) : "true", systemCode: e2.pageContext.systemCode }]]) : s("", true);
76
+ return (e3, o2) => {
77
+ const t2 = i("permission");
78
+ return u($)(e3.configure) ? r((c(), l(g(P.value), { key: 0, ref: D, style: a(W.value), class: f(q.value), configure: e3.configure, pageContext: e3.pageContext }, null, 8, ["style", "class", "configure", "pageContext"])), [[p, u(B)], [t2, { codes: u(N) ? u(N) : "true", systemCode: e3.pageContext.systemCode }]]) : s("", true);
79
79
  };
80
80
  } });
81
81
  export {
@@ -1,14 +1,14 @@
1
- import { defineComponent as e, ref as o, computed as t, markRaw as n, onMounted as i, onUnmounted as s, withDirectives as r, createCommentVNode as u, unref as l, createBlock as a, openBlock as p, resolveDynamicComponent as c, normalizeClass as g, normalizeStyle as f, vShow as m, nextTick as d } from "vue";
1
+ import { defineComponent as e, ref as o, computed as t, markRaw as n, onMounted as i, onUnmounted as s, withDirectives as r, createCommentVNode as u, unref as l, createBlock as p, openBlock as a, resolveDynamicComponent as c, normalizeClass as g, normalizeStyle as f, vShow as m, nextTick as d } from "vue";
2
2
  import C from "./error-render.vue.js";
3
3
  import { getRuntimeComponentByName as v } from "../../utils/assemblys-config.js";
4
4
  import { PageDimensions as b } from "../../utils/interfaces/page-design-types.js";
5
- import { addComponentRef as x, addComponentRefByCode as h } from "../../utils/global-refs.js";
6
- import { getPermissionCodes as y, packageFormRules as w, controlObjectRenderState as j } from "../../utils/page-init-util.js";
7
- import { caculateShowCondition as T, getFormPropName as M, getSizeConfig as N } from "../../utils/page-helper-util.js";
8
- import { isWorkflowPage as _, getPropClassName as P, isNumber as $ } from "../../utils/common-util.js";
9
- import { isShowMobileEvent as H, isShowComponent as L } from "../../utils/events/event-util.js";
10
- import { usePageContextStore as O } from "../../utils/page-store.js";
11
- import { isHasFieldAuth as S } from "../../utils/table-utils.js";
5
+ import { addComponentRef as h, addComponentRefByCode as x } from "../../utils/global-refs.js";
6
+ import { getPermissionCodes as y, packageFormRules as j, controlObjectRenderState as w } from "../../utils/page-init-util.js";
7
+ import { caculateShowCondition as M, getFormPropName as _, getSizeConfig as A } from "../../utils/page-helper-util.js";
8
+ import { isWorkflowPage as T, getPropClassName as $, isNumber as N } from "../../utils/common-util.js";
9
+ import { isShowMobileEvent as O, isShowComponent as P } from "../../utils/events/event-util.js";
10
+ import { usePageContextStore as S } from "../../utils/page-store.js";
11
+ import { isHasFieldAuth as H } from "../../utils/table-utils.js";
12
12
  import { checkPermission as B } from "agilebuilder-ui/src/utils/permission.js";
13
13
  const F = e({ __name: "object-render", props: { pageContext: {}, configure: {} }, setup(e2) {
14
14
  var _a, _b;
@@ -16,16 +16,16 @@ const F = e({ __name: "object-render", props: { pageContext: {}, configure: {} }
16
16
  null == F2.configure.style && (F2.configure.style = {});
17
17
  const R = y(F2.configure, F2.pageContext);
18
18
  F2.configure && F2.configure.props && F2.configure.props.base && (F2.configure.props.base.functionCode = R);
19
- const k = B(R || "true", F2.pageContext.systemCode), A = S(F2.pageContext, F2.configure), E = k && A;
20
- F2.configure && F2.configure.props && F2.configure.props.base && (F2.configure.props.base.isHasFieldAuthPermission = E), w(F2.pageContext, F2.configure, E);
21
- let J = o(null), W = o(true), q = o("");
19
+ const k = B(R || "true", F2.pageContext.systemCode), E = H(F2.pageContext, F2.configure), J = k && E;
20
+ F2.configure && F2.configure.props && F2.configure.props.base && (F2.configure.props.base.isHasFieldAuthPermission = J), j(F2.pageContext, F2.configure, J);
21
+ let L = o(null), W = o(true), q = o("");
22
22
  if (F2.configure && F2.configure.props) {
23
23
  let e3 = [];
24
24
  ((_a = F2.configure.props.base) == null ? void 0 : _a.showConditions) && (e3 = "string" == typeof F2.configure.props.base.showConditions ? JSON.parse(F2.configure.props.base.showConditions) : F2.configure.props.base.showConditions), W = t(() => {
25
25
  var _a2;
26
26
  let o2 = true;
27
- if (E) if (J.value && null !== J.value) o2 = "show" === J.value;
28
- else if (H(F2.pageContext, F2.configure)) if (e3 && e3.length > 0) o2 = T(F2.pageContext, e3);
27
+ if (J) if (L.value && null !== L.value) o2 = "show" === L.value;
28
+ else if (O(F2.pageContext, F2.configure)) if (e3 && e3.length > 0) o2 = M(F2.pageContext, e3);
29
29
  else {
30
30
  const e4 = (_a2 = F2.configure.props.base) == null ? void 0 : _a2.state;
31
31
  e4 && "hidden" === e4 && (o2 = false);
@@ -38,18 +38,18 @@ const F = e({ __name: "object-render", props: { pageContext: {}, configure: {} }
38
38
  const e4 = F2.configure.props.base.editConditions;
39
39
  if (e4.length > 0) {
40
40
  const o2 = F2.configure.runtime ? F2.configure.runtime : {}, n2 = o2.props ? o2.props : {};
41
- if (n2.rawSate = n2.state, _(F2.pageContext) && F2.pageContext.fieldPermissionMap) {
41
+ if (n2.rawSate = n2.state, T(F2.pageContext) && F2.pageContext.fieldPermissionMap) {
42
42
  const e5 = F2.configure.props.base;
43
43
  if (e5 && e5.prop) {
44
44
  let o3 = e5.prop;
45
- o3 = M(o3);
45
+ o3 = _(o3);
46
46
  const t2 = F2.pageContext.fieldPermissionMap.get(o3);
47
47
  t2 && false === t2.canEdit && (q.value = "disabled");
48
48
  }
49
49
  }
50
50
  n2.state = t({ get() {
51
51
  if ("disabled" === q.value) return q.value;
52
- return T(F2.pageContext, e4) ? "" : "disabled";
52
+ return M(F2.pageContext, e4) ? "" : "disabled";
53
53
  }, set() {
54
54
  } });
55
55
  }
@@ -59,7 +59,7 @@ const F = e({ __name: "object-render", props: { pageContext: {}, configure: {} }
59
59
  z.value = n(v(F2.configure.name));
60
60
  const D = o(true);
61
61
  null == z.value && (z.value = C, D.value = false);
62
- const G = o(null), I = o({}), K = o(""), Q = P(F2.configure);
62
+ const G = o(null), I = o({}), K = o(""), Q = $(F2.configure);
63
63
  Q && (K.value = Q);
64
64
  const U = F2.configure.runtime && F2.configure.runtime.common ? F2.configure.runtime.common : {};
65
65
  if (U.class && (K.value += " " + U.class), U.style) {
@@ -69,31 +69,31 @@ const F = e({ __name: "object-render", props: { pageContext: {}, configure: {} }
69
69
  const t2 = U.style[e3 + "_class"];
70
70
  t2 && (K.value += " " + t2);
71
71
  }
72
- const V = O();
72
+ const V = S();
73
73
  function X(e3) {
74
74
  if (G.value = e3, e3 && !e3.show && (e3.show = function() {
75
- J.value = "show";
75
+ L.value = "show";
76
76
  }), e3 && !e3.hide && (e3.hide = function() {
77
- J.value = "hide";
77
+ L.value = "hide";
78
78
  }), e3 && !e3.getConfigure && (e3.getConfigure = function() {
79
79
  return F2.configure;
80
- }), F2.configure.uuid && x(F2.pageContext, F2.configure.uuid, G), F2.configure.code) h(F2.pageContext, F2.configure.code, G);
81
- else if ("table" === F2.configure.name) h(F2.pageContext, F2.configure.uuid, G);
80
+ }), F2.configure.uuid && h(F2.pageContext, F2.configure.uuid, G), F2.configure.code) x(F2.pageContext, F2.configure.code, G);
81
+ else if ("table" === F2.configure.name) x(F2.pageContext, F2.configure.uuid, G);
82
82
  else if (F2.configure.props && F2.configure.props.base) {
83
83
  const e4 = F2.configure.props.base;
84
84
  if (e4.prop) {
85
85
  let o3 = e4.prop;
86
- o3.startsWith("${") && (o3 = o3.substring(2, o3.length - 1)), o3.includes(".") && (o3 = o3.substring(o3.indexOf(".") + 1)), h(F2.pageContext, o3, G);
86
+ o3.startsWith("${") && (o3 = o3.substring(2, o3.length - 1)), o3.includes(".") && (o3 = o3.substring(o3.indexOf(".") + 1)), x(F2.pageContext, o3, G);
87
87
  }
88
88
  }
89
89
  const o2 = F2.configure.props ? F2.configure.props.base : null;
90
90
  if (o2 && o2.prop) {
91
91
  let e4 = o2.prop;
92
- e4 = M(e4), j(F2.pageContext, e4), F2.pageContext.propTitleMap = F2.pageContext.propTitleMap || {}, F2.pageContext.propTitleMap[e4] = o2.title ? o2.title : e4;
92
+ e4 = _(e4), w(F2.pageContext, e4), F2.pageContext.propTitleMap = F2.pageContext.propTitleMap || {}, F2.pageContext.propTitleMap[e4] = o2.title ? o2.title : e4;
93
93
  }
94
94
  !function() {
95
95
  if (!G.value) return;
96
- const e4 = N(F2.pageContext, F2.configure);
96
+ const e4 = A(F2.pageContext, F2.configure);
97
97
  "table" !== F2.configure.name && e4 && e4.isCalcHeight && d(() => {
98
98
  var _a2;
99
99
  if (!(((_a2 = G.value) == null ? void 0 : _a2.$el) || G.value)) return;
@@ -102,36 +102,32 @@ const F = e({ __name: "object-render", props: { pageContext: {}, configure: {} }
102
102
  let t2 = G.value.$el || G.value;
103
103
  if (!t2) return;
104
104
  const n2 = t2.getBoundingClientRect();
105
- null !== ee && Math.abs(n2.y - ee) < 1 ? Z() : o3 < 10 ? (ee = n2.y, oe = setTimeout(() => {
105
+ null !== Z && Math.abs(n2.y - Z) < 1 ? Y() : o3 < 10 ? (Z = n2.y, ee = setTimeout(() => {
106
106
  e5(o3 + 1);
107
- }, 50)) : Z();
107
+ }, 50)) : Y();
108
108
  };
109
- ee = null, e5();
109
+ Z = null, e5();
110
110
  });
111
111
  }();
112
112
  }
113
- let Y;
114
- function Z() {
113
+ function Y() {
115
114
  if (!G.value) return;
116
115
  let e3 = G.value.$el;
117
116
  e3 || (e3 = G.value);
118
117
  const o2 = e3.parentNode;
119
118
  if (!e3 || !o2) return;
120
119
  const t2 = e3.getBoundingClientRect();
121
- let n2 = window.innerHeight - t2.y - 30;
122
- window.innerHeight, t2.y;
123
- let i2 = n2 + "";
124
- $(n2) && (i2 = n2 + "px"), I.value.height = i2, I.value["overflow-y"] = "auto", I.value["overflow-x"] = "hidden", F2.configure.sytle || (F2.configure.sytle = {}), F2.configure.sytle._heightStyle = i2;
120
+ let n2 = window.innerHeight - t2.y - 30, i2 = n2 + "";
121
+ N(n2) && (i2 = n2 + "px"), I.value.height = i2, I.value["overflow-y"] = "auto", I.value["overflow-x"] = "hidden", F2.configure.sytle || (F2.configure.sytle = {}), F2.configure.sytle._heightStyle = i2;
125
122
  }
126
123
  i(() => {
127
- te(), V.countComponentsLoadedNumber(), Y = setTimeout(() => {
128
- V.componentsTotalNmber !== V.componentsLoadedNumber || V.pageComponentsLoaded || V.setPageComponentsLoaded(true);
129
- }, 30);
124
+ var _a2, _b2, _c;
125
+ oe(), V.countComponentsLoadedNumber(), ((_c = (_b2 = (_a2 = F2.configure.props) == null ? void 0 : _a2.base) == null ? void 0 : _b2.autoAnchorConditions) == null ? void 0 : _c.length) > 0 && V.setAutoAnchorComponentConditions(F2.configure.uuid, F2.configure.props.base.autoAnchorConditions);
130
126
  }), s(() => {
131
- Y && clearTimeout(Y), oe && clearTimeout(oe);
127
+ ee && clearTimeout(ee);
132
128
  });
133
- let ee = null, oe = null;
134
- const te = () => {
129
+ let Z = null, ee = null;
130
+ const oe = () => {
135
131
  if (!G.value) return;
136
132
  let e3 = G.value.$el;
137
133
  e3 || (e3 = G.value);
@@ -140,7 +136,7 @@ const F = e({ __name: "object-render", props: { pageContext: {}, configure: {} }
140
136
  const t2 = F2.configure.props ? F2.configure.props : {}, n2 = F2.configure.style ? F2.configure.style : {}, i2 = t2.position;
141
137
  "top" == i2 || "bottom" == i2 || n2.position;
142
138
  };
143
- return (o2, t2) => l(E) && l(L)(e2.configure) ? r((p(), a(c(z.value), { key: 0, ref: X, style: f(I.value), class: g(K.value), configure: e2.configure, pageContext: e2.pageContext }, null, 8, ["style", "class", "configure", "pageContext"])), [[m, l(W)]]) : u("", true);
139
+ return (e3, o2) => l(J) && l(P)(e3.configure) ? r((a(), p(c(z.value), { key: 0, ref: X, style: f(I.value), class: g(K.value), configure: e3.configure, pageContext: e3.pageContext }, null, 8, ["style", "class", "configure", "pageContext"])), [[m, l(W)]]) : u("", true);
144
140
  } });
145
141
  export {
146
142
  F as default
@@ -1,6 +1,6 @@
1
1
  import { defineComponent as o, createBlock as t, openBlock as e } from "vue";
2
2
  import p from "./workflow/component/workflow-opinion-box.vue.js";
3
- const n = o({ __name: "page-bottom", props: { pageContext: {} }, setup: (o2) => (n2, a) => (e(), t(p, { pageContext: o2.pageContext }, null, 8, ["pageContext"])) });
3
+ const n = o({ __name: "page-bottom", props: { pageContext: {} }, setup: (o2) => (o3, n2) => (e(), t(p, { pageContext: o3.pageContext }, null, 8, ["pageContext"])) });
4
4
  export {
5
5
  n as default
6
6
  };
@@ -10,12 +10,12 @@ const m = { style: { "background-color": "#ffffff" } }, x = { class: "opinion-bo
10
10
  var _a;
11
11
  ((_a = C.value) == null ? void 0 : _a.focus) && C.value.focus();
12
12
  })) : y.value = "";
13
- }, { immediate: true }), (e2, n2) => {
13
+ }, { immediate: true }), (o3, e2) => {
14
14
  var _a;
15
- const t2 = i("el-input"), d2 = i("el-affix");
16
- return ((_a = o2.pageContext.workflowOpinion) == null ? void 0 : _a.showOpinionBox) ? (p(), l(d2, { key: 0, target: ".app-container", position: "bottom", offset: 35 }, { default: u(() => {
15
+ const n2 = i("el-input"), t2 = i("el-affix");
16
+ return ((_a = o3.pageContext.workflowOpinion) == null ? void 0 : _a.showOpinionBox) ? (p(), l(t2, { key: 0, target: ".app-container", position: "bottom", offset: 35 }, { default: u(() => {
17
17
  var _a2;
18
- return [s("div", m, [s("div", x, [s("table", k, [s("tbody", null, [s("tr", null, [s("td", v, [((_a2 = o2.pageContext.workflowOpinion) == null ? void 0 : _a2.isRequired) ? (p(), r("span", g, "*")) : a("", true), n2[2] || (n2[2] = f(" 处理意见 ", -1))]), s("td", { class: c(["opinion-input-cell", y.value]) }, [w(t2, { ref_key: "opinionInputRef", ref: C, modelValue: b2.value, "onUpdate:modelValue": n2[0] || (n2[0] = (o3) => b2.value = o3), autosize: { minRows: 2, maxRows: 4 }, type: "textarea", placeholder: "请输入处理意见", onChange: n2[1] || (n2[1] = (o3) => {
18
+ return [s("div", m, [s("div", x, [s("table", k, [s("tbody", null, [s("tr", null, [s("td", v, [((_a2 = o3.pageContext.workflowOpinion) == null ? void 0 : _a2.isRequired) ? (p(), r("span", g, "*")) : a("", true), e2[2] || (e2[2] = f(" 处理意见 "))]), s("td", { class: c(["opinion-input-cell", y.value]) }, [w(n2, { ref_key: "opinionInputRef", ref: C, modelValue: b2.value, "onUpdate:modelValue": e2[0] || (e2[0] = (o4) => b2.value = o4), autosize: { minRows: 2, maxRows: 4 }, type: "textarea", placeholder: "请输入处理意见", onChange: e2[1] || (e2[1] = (o4) => {
19
19
  O.pageContext.workflowOpinion && (O.pageContext.workflowOpinion.opinion = b2.value.trim(), O.pageContext.workflowOpinion.focusOpinionInput = false);
20
20
  }), class: "opinion-input" }, null, 8, ["modelValue"])], 2)])])])])])];
21
21
  }), _: 1 })) : a("", true);
@@ -20,7 +20,7 @@ const g = { class: "dialog-footer" }, _ = e({ __name: "extract-workflow-runtime-
20
20
  return w.props && (true === w.props.requireExtractTransactor && (h.value.loginName = [{ required: true, message: "请选择办理人", trigger: "blur" }]), true === w.props.isMustOpinion && (h.value.opinion = [{ required: true, message: "请输入意见", trigger: "change" }])), o(() => {
21
21
  }), (e3, l2) => {
22
22
  const o2 = a("el-icon"), s2 = a("el-input"), _3 = a("el-form-item"), x2 = a("el-form"), y2 = a("el-button"), w2 = a("el-dialog");
23
- return n(), i(w2, { modelValue: N.value, "onUpdate:modelValue": l2[5] || (l2[5] = (e4) => N.value = e4), title: "选择办理人", width: "500" }, { footer: t(() => [p("div", g, [u(y2, { onClick: l2[4] || (l2[4] = (e4) => N.value = false) }, { default: t(() => [...l2[6] || (l2[6] = [d("取消", -1)])]), _: 1 }), u(y2, { type: "primary", onClick: j }, { default: t(() => [...l2[7] || (l2[7] = [d(" 确定 ", -1)])]), _: 1 })])]), default: t(() => [u(x2, { ref_key: "ruleFormRef", ref: C, style: { "max-width": "600px" }, model: b.value, rules: h.value, "label-width": "auto" }, { default: t(() => [u(_3, { label: "办理人", prop: "loginName" }, { default: t(() => [u(s2, { "model-value": b.value.name, readonly: true, type: "text", placeholder: "选择办理人", onClick: l2[2] || (l2[2] = (e4) => V()) }, { append: t(() => [u(o2, { class: "el-input__icon", onClick: l2[0] || (l2[0] = (e4) => V()) }, { default: t(() => [u(m(f))]), _: 1 }), u(o2, { class: "el-input__icon", onClick: l2[1] || (l2[1] = (e4) => (b.value.loginName = "", void (b.value.name = ""))) }, { default: t(() => [u(m(c))]), _: 1 })]), _: 1 }, 8, ["model-value"])]), _: 1 }), u(_3, { label: "意见", prop: "opinion" }, { default: t(() => [u(s2, { modelValue: b.value.opinion, "onUpdate:modelValue": l2[3] || (l2[3] = (e4) => b.value.opinion = e4), type: "textarea" }, null, 8, ["modelValue"])]), _: 1 }), k.value ? (n(), i(m(v), { key: 0, width: "60%", multiple: false, onClose: q })) : r("", true)]), _: 1 }, 8, ["model", "rules"])]), _: 1 }, 8, ["modelValue"]);
23
+ return n(), i(w2, { modelValue: N.value, "onUpdate:modelValue": l2[5] || (l2[5] = (e4) => N.value = e4), title: "选择办理人", width: "500" }, { footer: t(() => [p("div", g, [u(y2, { onClick: l2[4] || (l2[4] = (e4) => N.value = false) }, { default: t(() => l2[6] || (l2[6] = [d("取消")])), _: 1 }), u(y2, { type: "primary", onClick: j }, { default: t(() => l2[7] || (l2[7] = [d(" 确定 ")])), _: 1 })])]), default: t(() => [u(x2, { ref_key: "ruleFormRef", ref: C, style: { "max-width": "600px" }, model: b.value, rules: h.value, "label-width": "auto" }, { default: t(() => [u(_3, { label: "办理人", prop: "loginName" }, { default: t(() => [u(s2, { "model-value": b.value.name, readonly: true, type: "text", placeholder: "选择办理人", onClick: l2[2] || (l2[2] = (e4) => V()) }, { append: t(() => [u(o2, { class: "el-input__icon", onClick: l2[0] || (l2[0] = (e4) => V()) }, { default: t(() => [u(m(f))]), _: 1 }), u(o2, { class: "el-input__icon", onClick: l2[1] || (l2[1] = (e4) => (b.value.loginName = "", void (b.value.name = ""))) }, { default: t(() => [u(m(c))]), _: 1 })]), _: 1 }, 8, ["model-value"])]), _: 1 }), u(_3, { label: "意见", prop: "opinion" }, { default: t(() => [u(s2, { modelValue: b.value.opinion, "onUpdate:modelValue": l2[3] || (l2[3] = (e4) => b.value.opinion = e4), type: "textarea" }, null, 8, ["modelValue"])]), _: 1 }), k.value ? (n(), i(m(v), { key: 0, width: "60%", multiple: false, onClose: q })) : r("", true)]), _: 1 }, 8, ["model", "rules"])]), _: 1 }, 8, ["modelValue"]);
24
24
  };
25
25
  } });
26
26
  export {
@@ -32,7 +32,7 @@ const N = { class: "page-runtime-header-btn" }, h = { class: "dialog-footer" },
32
32
  T.value && T.value.$el.click();
33
33
  } }), (e3, l2) => {
34
34
  const a2 = n("el-button"), o2 = n("el-icon"), y2 = n("el-input"), C2 = n("el-form-item"), w3 = n("el-form"), V2 = n("el-dialog");
35
- return i(), t("span", N, [u(a2, { ref_key: "componentRef", ref: T, disabled: O(), class: p(s(M)), style: r(s(F)), type: E.value.type, size: E.value.size, round: E.value.round, plain: E.value.plain, loading: O(), onClick: l2[0] || (l2[0] = (e4) => z.value = true) }, { default: c(() => [d(m(s(_)(E.value.title)), 1)]), _: 1 }, 8, ["disabled", "class", "style", "type", "size", "round", "plain", "loading"]), u(V2, { modelValue: z.value, "onUpdate:modelValue": l2[6] || (l2[6] = (e4) => z.value = e4), title: "选择办理人", width: "500" }, { footer: c(() => [g("div", h, [u(a2, { onClick: l2[5] || (l2[5] = (e4) => z.value = false) }, { default: c(() => [...l2[7] || (l2[7] = [d("取消", -1)])]), _: 1 }), u(a2, { type: "primary", onClick: B }, { default: c(() => [...l2[8] || (l2[8] = [d(" 确定 ", -1)])]), _: 1 })])]), default: c(() => [u(w3, { ref_key: "ruleFormRef", ref: U, style: { "max-width": "600px" }, model: R.value, rules: j.value, "label-width": "auto" }, { default: c(() => [u(C2, { label: "办理人", prop: "loginName" }, { default: c(() => [u(y2, { "model-value": R.value.name, readonly: true, type: "text", placeholder: "选择办理人", onClick: l2[3] || (l2[3] = (e4) => $()) }, { append: c(() => [u(o2, { class: "el-input__icon", onClick: l2[1] || (l2[1] = (e4) => $()) }, { default: c(() => [u(s(x))]), _: 1 }), u(o2, { class: "el-input__icon", onClick: l2[2] || (l2[2] = (e4) => (R.value.loginName = "", void (R.value.name = ""))) }, { default: c(() => [u(s(b))]), _: 1 })]), _: 1 }, 8, ["model-value"])]), _: 1 }), u(C2, { label: "意见", prop: "opinion" }, { default: c(() => [u(y2, { modelValue: R.value.opinion, "onUpdate:modelValue": l2[4] || (l2[4] = (e4) => R.value.opinion = e4), type: "textarea" }, null, 8, ["modelValue"])]), _: 1 }), q.value ? (i(), v(s(k), { key: 0, width: "60%", multiple: false, onClose: A })) : f("", true)]), _: 1 }, 8, ["model", "rules"])]), _: 1 }, 8, ["modelValue"])]);
35
+ return i(), t("span", N, [u(a2, { ref_key: "componentRef", ref: T, disabled: O(), class: p(s(M)), style: r(s(F)), type: E.value.type, size: E.value.size, round: E.value.round, plain: E.value.plain, loading: O(), onClick: l2[0] || (l2[0] = (e4) => z.value = true) }, { default: c(() => [d(m(s(_)(E.value.title)), 1)]), _: 1 }, 8, ["disabled", "class", "style", "type", "size", "round", "plain", "loading"]), u(V2, { modelValue: z.value, "onUpdate:modelValue": l2[6] || (l2[6] = (e4) => z.value = e4), title: "选择办理人", width: "500" }, { footer: c(() => [g("div", h, [u(a2, { onClick: l2[5] || (l2[5] = (e4) => z.value = false) }, { default: c(() => l2[7] || (l2[7] = [d("取消")])), _: 1 }), u(a2, { type: "primary", onClick: B }, { default: c(() => l2[8] || (l2[8] = [d(" 确定 ")])), _: 1 })])]), default: c(() => [u(w3, { ref_key: "ruleFormRef", ref: U, style: { "max-width": "600px" }, model: R.value, rules: j.value, "label-width": "auto" }, { default: c(() => [u(C2, { label: "办理人", prop: "loginName" }, { default: c(() => [u(y2, { "model-value": R.value.name, readonly: true, type: "text", placeholder: "选择办理人", onClick: l2[3] || (l2[3] = (e4) => $()) }, { append: c(() => [u(o2, { class: "el-input__icon", onClick: l2[1] || (l2[1] = (e4) => $()) }, { default: c(() => [u(s(x))]), _: 1 }), u(o2, { class: "el-input__icon", onClick: l2[2] || (l2[2] = (e4) => (R.value.loginName = "", void (R.value.name = ""))) }, { default: c(() => [u(s(b))]), _: 1 })]), _: 1 }, 8, ["model-value"])]), _: 1 }), u(C2, { label: "意见", prop: "opinion" }, { default: c(() => [u(y2, { modelValue: R.value.opinion, "onUpdate:modelValue": l2[4] || (l2[4] = (e4) => R.value.opinion = e4), type: "textarea" }, null, 8, ["modelValue"])]), _: 1 }), q.value ? (i(), v(s(k), { key: 0, width: "60%", multiple: false, onClose: A })) : f("", true)]), _: 1 }, 8, ["model", "rules"])]), _: 1 }, 8, ["modelValue"])]);
36
36
  };
37
37
  } });
38
38
  export {
@@ -17,7 +17,7 @@ const p = { class: "page-runtime-header-btn amb-workflowbutton-runtime-view" },
17
17
  }(e4.runtime && e4.runtime.events ? e4.runtime.events : []);
18
18
  return c(l2.pageContext, t2, g, v, e4, x);
19
19
  })(e3) && C.value.push(e3);
20
- }), (t2, m2) => (o(), n("span", p, [(o(true), n(r, null, u(C.value, (t3, u2) => (o(), n(r, null, [t3.check ? (o(), a(s, { key: u2, pageContext: e2.pageContext, configure: t3 }, null, 8, ["pageContext", "configure"])) : i("", true)], 64))), 256))]));
20
+ }), (e3, t2) => (o(), n("span", p, [(o(true), n(r, null, u(C.value, (t3, u2) => (o(), n(r, null, [t3.check ? (o(), a(s, { key: u2, pageContext: e3.pageContext, configure: t3 }, null, 8, ["pageContext", "configure"])) : i("", true)], 64))), 256))]));
21
21
  } });
22
22
  export {
23
23
  l as default
@@ -1,18 +1,27 @@
1
- import { defineComponent as t, ref as e, onMounted as n, createElementBlock as a, createCommentVNode as o, openBlock as p, normalizeClass as i, unref as r, createElementVNode as u, normalizeStyle as s, toDisplayString as l } from "vue";
1
+ import { defineComponent as t, ref as e, onMounted as a, createElementBlock as n, createCommentVNode as o, openBlock as r, normalizeClass as s, unref as i, createElementVNode as p, normalizeStyle as u, toDisplayString as l } from "vue";
2
2
  import { getFormModelFields as g } from "../../../../utils/page-init-util.js";
3
- import { getVariableValue as C, setVariableValue as c } from "../../../../utils/page-helper-util.js";
4
- const x = t({ __name: "workflownode-runtime", props: { pageContext: {}, configure: {} }, setup(t2, { expose: x2 }) {
5
- const y = t2, f = e(false), m = y.pageContext.entity ? y.pageContext.entity : {};
6
- let T = g(y.pageContext, y.configure);
7
- const d = y.configure.runtime ? y.configure.runtime : {}, _ = e(d.props ? d.props : {}), v = d.class, E = d.headerStyle;
8
- let R = e("");
9
- return "form" === y.pageContext.pageType && y.pageContext.entity && y.pageContext.entity.data && ("EXTRACT" === y.pageContext.entity.data.PROCESS_STATE || "EXTRACT" === y.pageContext.entity.data.process_state ? R.value = "抽单办理中" : R.value = y.pageContext.entity.data.CURRENT_ACTIVITY_NAME || y.pageContext.entity.data.current_activity_name, f.value = !!y.pageContext.entity.data.WORKFLOW_ID), n(() => {
10
- }), x2({ getValue: function() {
11
- return C(m, T);
3
+ import { getVariableValue as m, setVariableValue as C } from "../../../../utils/page-helper-util.js";
4
+ import { useI18n as c } from "vue-i18n";
5
+ const f = t({ __name: "workflownode-runtime", props: { pageContext: {}, configure: {} }, setup(t2, { expose: f2 }) {
6
+ const x = t2, y = e(false), d = x.pageContext.entity ? x.pageContext.entity : {}, T = d.task ? d.task : {}, { t: _ } = c();
7
+ let v = g(x.pageContext, x.configure);
8
+ const R = x.configure.runtime ? x.configure.runtime : {}, E = e(R.props ? R.props : {}), A = R.class, N = R.headerStyle;
9
+ let k = e("");
10
+ if ("form" === x.pageContext.pageType && x.pageContext.entity && x.pageContext.entity.data) {
11
+ if ("EXTRACT" === x.pageContext.entity.data.PROCESS_STATE || "EXTRACT" === x.pageContext.entity.data.process_state) k.value = _("superPageRuntimeMessage.doingExtractFormData");
12
+ else {
13
+ let t3 = x.pageContext.entity.data.CURRENT_ACTIVITY_NAME || x.pageContext.entity.data.current_activity_name;
14
+ T && T.trustorName && (t3 = t3 + "(" + _("superPageRuntimeMessage.nodeTrustorName") + T.trustorName + ")"), k.value = t3;
15
+ }
16
+ y.value = !!x.pageContext.entity.data.WORKFLOW_ID;
17
+ }
18
+ return a(() => {
19
+ }), f2({ getValue: function() {
20
+ return m(d, v);
12
21
  }, setValue: function(t3) {
13
- return c(m, T, t3);
14
- } }), (t3, e2) => f.value ? (p(), a("span", { key: 0, class: i(r(v)) }, [u("span", { style: s(r(E)) }, [u("span", null, l(_.value.title), 1), u("span", null, l(r(R)), 1)], 4)], 2)) : o("", true);
22
+ return C(d, v, t3);
23
+ } }), (t3, e2) => y.value ? (r(), n("span", { key: 0, class: s(i(A)) }, [p("span", { style: u(i(N)) }, [p("span", null, l(E.value.title), 1), p("span", null, l(i(k)), 1)], 4)], 2)) : o("", true);
15
24
  } });
16
25
  export {
17
- x as default
26
+ f as default
18
27
  };
@@ -7,12 +7,12 @@ import { initPageEvents as f } from "../utils/events/event-util.js";
7
7
  import { setHomeChartInitConfigValue as v } from "../utils/charts/chart-util.js";
8
8
  import { useI18n as C } from "vue-i18n";
9
9
  const y = { "element-loading-text": "加载中..." }, S = { key: 1 }, b = e({ name: "HomeChart", inheritAttrs: false, __name: "home-chart", props: { chartUuid: { type: String, default: "" }, homeChartSettingUserId: { type: Number, default: 0 } }, setup(e2) {
10
- const { t: b2 } = C(), I = e2, U = t(true), H = t(false), w = t(null);
10
+ const { t: b2 } = C(), I = e2, U = t(true), w = t(false), H = t(null);
11
11
  let x, A = t(null);
12
12
  return I.chartUuid && c.get(window.$vueApp.config.globalProperties.baseAPI + "/component/home-chart-layout/" + I.chartUuid).then((e3) => {
13
13
  var _a, _b;
14
14
  if (e3 && e3.designJson) {
15
- w.value = {};
15
+ H.value = {};
16
16
  const t2 = JSON.parse(e3.designJson);
17
17
  let a2 = window.localStorage.getItem("HOME_MY_CHARTS_ALIAS");
18
18
  if (a2) {
@@ -20,26 +20,26 @@ const y = { "element-loading-text": "加载中..." }, S = { key: 1 }, b = e({ na
20
20
  e4[I.homeChartSettingUserId] && (t2.chartJson.runtime.headerInfo ? t2.chartJson.runtime.headerInfo.title = e4[I.homeChartSettingUserId] : t2.chartJson.runtime.headerInfo = { textAlign: "center", title: e4[I.homeChartSettingUserId] });
21
21
  }
22
22
  const i2 = window.frameElement;
23
- w.value = t2.chartJson, w.value.homeChartSettingUserId = I.homeChartSettingUserId, i2 && (i2.clientHeight, w.value.runtime.common.style.pc_style.height = i2.clientHeight + "px");
23
+ H.value = t2.chartJson, H.value.homeChartSettingUserId = I.homeChartSettingUserId, i2 && (H.value.runtime.common.style.pc_style.height = i2.clientHeight + "px");
24
24
  const n2 = { showHomepageSearch: false, name: e3.pageName, code: e3.pageCode, label: "", dimensions: "", version: 1, isWorkflowEntity: false, variables: t2.variables, systemCode: e3.systemCode, uuid: e3.uuid, allChartUuids: [], backendUrl: e3.backendUrl, rules: {}, pageType: "chart", beanName: t2.beanName, initChartServiceConfigs: [t2.initChartServiceConfigs], entity: { data: {}, task: {}, request: {}, page: {}, context: e3.contextParam, system: e3.systemParam } };
25
- if (((_a = w.value.pushHomepage) == null ? void 0 : _a.searchConditions) && ((_b = w.value.pushHomepage) == null ? void 0 : _b.searchConditions.length) > 0 && (n2.showHomepageSearch = true), t2.variables) {
25
+ if (((_a = H.value.pushHomepage) == null ? void 0 : _a.searchConditions) && ((_b = H.value.pushHomepage) == null ? void 0 : _b.searchConditions.length) > 0 && (n2.showHomepageSearch = true), t2.variables) {
26
26
  const e4 = n2.entity.page;
27
27
  for (const a3 of t2.variables) a3.name && (a3.isArrayElement ? e4[a3.name] = [] : a3.defaultValue ? e4[a3.name] = a3.defaultValue : e4[a3.name] = void 0);
28
28
  }
29
- t2.initOptionConfigs && t2.initOptionConfigs.length > 0 && d(n2, t2.initOptionConfigs, void 0), v(w.value.pushHomepage.initConfig, n2, I.homeChartSettingUserId), f(t2, n2), A.value = n2, x = setTimeout(() => {
29
+ t2.initOptionConfigs && t2.initOptionConfigs.length > 0 && d(n2, t2.initOptionConfigs, void 0), v(H.value.pushHomepage.initConfig, n2, I.homeChartSettingUserId), f(t2, n2), A.value = n2, x = setTimeout(() => {
30
30
  !function(e4, t3) {
31
31
  if (!t3 || 0 == t3.length) return;
32
32
  e4.initChartData = {}, e4.initChartData.data = h(e4.entity.data), e4.initChartData.page = h(e4.entity.page), t3 && t3.length > 0 && p(e4, t3, null, true);
33
33
  }(A.value, [t2.initChartServiceConfigs]);
34
34
  }, 200);
35
- } else H.value = true, U.value = false;
35
+ } else w.value = true, U.value = false;
36
36
  }).finally(() => {
37
37
  U.value = false;
38
38
  }), a(() => {
39
39
  x && clearTimeout(x);
40
40
  }), (e3, t2) => {
41
41
  const a2 = i("loading");
42
- return n((o(), r("div", y, [!U.value && w.value ? (o(), s(g, { key: 0, configure: w.value, pageContext: u(A) }, null, 8, ["configure", "pageContext"])) : U.value || w.value ? l("", true) : (o(), r("div", S, m(u(b2)("superPageRuntimeMessage.noChartSetting")), 1))])), [[a2, U.value]]);
42
+ return n((o(), r("div", y, [!U.value && H.value ? (o(), s(g, { key: 0, configure: H.value, pageContext: u(A) }, null, 8, ["configure", "pageContext"])) : U.value || H.value ? l("", true) : (o(), r("div", S, m(u(b2)("superPageRuntimeMessage.noChartSetting")), 1))])), [[a2, U.value]]);
43
43
  };
44
44
  } });
45
45
  export {
@@ -10,7 +10,6 @@ const s = ["src"], d = { key: 1, class: "amb-super-page-runtime-dialog-iframe",
10
10
  const e4 = JSON.parse(JSON.stringify(p.parentPageEventParams));
11
11
  e4.pageContext && delete e4.pageContext, e4.configureObj && delete e4.configureObj, Object.assign(b.value, e4);
12
12
  } catch (e4) {
13
- console.error(e4);
14
13
  }
15
14
  null !== w.value && void 0 !== w.value || (w.value = p.parentPageEventParams.id);
16
15
  }
@@ -1,7 +1,7 @@
1
1
  import e from "./super-page.vue2.js";
2
2
  /* empty css */
3
3
  import p from "../../../_virtual/_plugin-vue_export-helper.js";
4
- const r = p(e, [["__scopeId", "data-v-1ee98ef8"]]);
4
+ const r = p(e, [["__scopeId", "data-v-c040c0a8"]]);
5
5
  export {
6
6
  r as default
7
7
  };