super-page-runtime 2.3.47-sit1 → 2.3.47

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (79) hide show
  1. package/dist/es/components/runtime/utils/api/page-expose-util.js +136 -136
  2. package/dist/es/components/runtime/utils/events/event-util.js +121 -121
  3. package/dist/es/components/runtime/utils/events/print-label.js +34 -33
  4. package/dist/es/components/runtime/utils/events/standard-event.js +22 -22
  5. package/dist/es/components/runtime/utils/events/validator-util.js +209 -206
  6. package/dist/es/components/runtime/utils/page-init-util.js +47 -45
  7. package/dist/es/components/runtime/utils/table-utils.js +1 -1
  8. package/dist/es/components/runtime/views/assemblys/button/button/button-runtime.vue2.js +3 -3
  9. package/dist/es/components/runtime/views/assemblys/button/button-group/buttongroup-runtime.vue2.js +3 -3
  10. package/dist/es/components/runtime/views/assemblys/button/dropdown/dropdown-runtime.vue2.js +3 -3
  11. package/dist/es/components/runtime/views/assemblys/button/export-pdf/exportpdf-runtime.vue2.js +1 -1
  12. package/dist/es/components/runtime/views/assemblys/button/print-label/printlabel-runtime.vue2.js +3 -3
  13. package/dist/es/components/runtime/views/assemblys/chart/column-line/column-line-runtime.vue2.js +1 -1
  14. package/dist/es/components/runtime/views/assemblys/chart/common/common-chart-header-group.vue.js +10 -6
  15. package/dist/es/components/runtime/views/assemblys/chart/common/common-chart-header.vue.js +8 -6
  16. package/dist/es/components/runtime/views/assemblys/chart/common/common-homepage-search.vue2.js +1 -1
  17. package/dist/es/components/runtime/views/assemblys/chart/common/home-chart-condition-render.vue.js +8 -8
  18. package/dist/es/components/runtime/views/assemblys/chart/gauge/gauge-runtime.vue2.js +1 -1
  19. package/dist/es/components/runtime/views/assemblys/chart/pie/pie-runtime.vue2.js +1 -1
  20. package/dist/es/components/runtime/views/assemblys/chart/radar/radar-runtime.vue2.js +1 -1
  21. package/dist/es/components/runtime/views/assemblys/chart/scatter/scatter-runtime.vue2.js +1 -1
  22. package/dist/es/components/runtime/views/assemblys/chart/table/chart-table-util.js +104 -99
  23. package/dist/es/components/runtime/views/assemblys/chart/table/table-runtime.vue2.js +3 -2
  24. package/dist/es/components/runtime/views/assemblys/common/event-call-component.vue.js +13 -13
  25. package/dist/es/components/runtime/views/assemblys/common/export-form-report-dialog.vue.js +11 -9
  26. package/dist/es/components/runtime/views/assemblys/common/save-chart-condition-dialog.vue.js +1 -1
  27. package/dist/es/components/runtime/views/assemblys/container/card/card-runtime.vue2.js +3 -3
  28. package/dist/es/components/runtime/views/assemblys/container/collapse/collapse-runtime.vue2.js +3 -3
  29. package/dist/es/components/runtime/views/assemblys/container/container/container-runtime.vue2.js +3 -3
  30. package/dist/es/components/runtime/views/assemblys/container/fixed/YxAffix.vue2.js +2 -0
  31. package/dist/es/components/runtime/views/assemblys/container/flex/flex-runtime.vue2.js +3 -3
  32. package/dist/es/components/runtime/views/assemblys/container/form/form-runtime.vue2.js +3 -3
  33. package/dist/es/components/runtime/views/assemblys/container/iframe/iframe-runtime.vue2.js +5 -5
  34. package/dist/es/components/runtime/views/assemblys/container/tabs/tabs-runtime.vue.js +1 -1
  35. package/dist/es/components/runtime/views/assemblys/container/tabs/tabs-runtime.vue2.js +42 -42
  36. package/dist/es/components/runtime/views/assemblys/data/bar-code/barcode-runtime.vue2.js +11 -9
  37. package/dist/es/components/runtime/views/assemblys/data/table/main-table-runtime.vue.js +1 -1
  38. package/dist/es/components/runtime/views/assemblys/data/table/table-runtime.vue2.js +1 -1
  39. package/dist/es/components/runtime/views/assemblys/data/tree/tree-runtime.vue.js +1 -1
  40. package/dist/es/components/runtime/views/assemblys/data/tree/tree-runtime.vue2.js +94 -93
  41. package/dist/es/components/runtime/views/assemblys/form/checkbox/checkbox-runtime.vue2.js +3 -3
  42. package/dist/es/components/runtime/views/assemblys/form/common/title-suffix-element.vue.js +3 -3
  43. package/dist/es/components/runtime/views/assemblys/form/custom/custom-runtime.vue2.js +6 -6
  44. package/dist/es/components/runtime/views/assemblys/form/date-picker/datepicker-runtime.vue2.js +26 -26
  45. package/dist/es/components/runtime/views/assemblys/form/dept-tree/depttree-runtime.vue2.js +3 -3
  46. package/dist/es/components/runtime/views/assemblys/form/divider/divider-runtime.vue2.js +3 -3
  47. package/dist/es/components/runtime/views/assemblys/form/file-upload/fileupload-runtime.vue2.js +8 -6
  48. package/dist/es/components/runtime/views/assemblys/form/image-upload/imageupload-runtime.vue2.js +6 -5
  49. package/dist/es/components/runtime/views/assemblys/form/input-number/input-number-runtime.vue2.js +3 -3
  50. package/dist/es/components/runtime/views/assemblys/form/input-text/inputtext-runtime.vue2.js +43 -42
  51. package/dist/es/components/runtime/views/assemblys/form/label/label-runtime.vue2.js +6 -4
  52. package/dist/es/components/runtime/views/assemblys/form/link/link-runtime.vue2.js +9 -7
  53. package/dist/es/components/runtime/views/assemblys/form/radio/radio-runtime.vue2.js +3 -3
  54. package/dist/es/components/runtime/views/assemblys/form/rich-text/richtext-runtime.vue.js +1 -1
  55. package/dist/es/components/runtime/views/assemblys/form/rich-text/richtext-runtime.vue2.js +124 -124
  56. package/dist/es/components/runtime/views/assemblys/form/select/select-runtime.vue.js +1 -1
  57. package/dist/es/components/runtime/views/assemblys/form/select/select-runtime.vue2.js +9 -8
  58. package/dist/es/components/runtime/views/assemblys/form/separatelabel/separatelabel-runtime.vue2.js +1 -1
  59. package/dist/es/components/runtime/views/assemblys/form/switch/switch-runtime.vue2.js +3 -3
  60. package/dist/es/components/runtime/views/assemblys/form/tag/tag-runtime.vue2.js +11 -11
  61. package/dist/es/components/runtime/views/assemblys/form/textarea/textarea-runtime.vue.js +1 -1
  62. package/dist/es/components/runtime/views/assemblys/form/textarea/textarea-runtime.vue2.js +3 -3
  63. package/dist/es/components/runtime/views/assemblys/home-chart-render.vue.js +3 -3
  64. package/dist/es/components/runtime/views/assemblys/object-render.vue.js +11 -9
  65. package/dist/es/components/runtime/views/assemblys/page-bottom.vue.js +2 -2
  66. package/dist/es/components/runtime/views/assemblys/workflow/component/workflow-opinion-box.vue.js +2 -2
  67. package/dist/es/components/runtime/views/assemblys/workflow/component/workflow-opinion-box.vue2.js +35 -34
  68. package/dist/es/components/runtime/views/assemblys/workflow/extract-workflow/extract-workflow-runtime-dialog.vue.js +1 -1
  69. package/dist/es/components/runtime/views/assemblys/workflow/extract-workflow/extract-workflow-runtime-dialog.vue2.js +19 -18
  70. package/dist/es/components/runtime/views/assemblys/workflow/extract-workflow/extract-workflow-runtime.vue.js +1 -1
  71. package/dist/es/components/runtime/views/assemblys/workflow/extract-workflow/extract-workflow-runtime.vue2.js +27 -27
  72. package/dist/es/components/runtime/views/assemblys/workflow/workflow-button/workflowbutton-runtime.vue2.js +1 -1
  73. package/dist/es/components/runtime/views/home-chart.vue.js +7 -7
  74. package/dist/es/components/runtime/views/super-page-dialog.vue.js +18 -16
  75. package/dist/es/components/runtime/views/super-page.vue2.js +99 -98
  76. package/dist/es/i18n/langs/cn.js +1 -1
  77. package/dist/es/i18n/langs/en.js +1 -1
  78. package/dist/es/style.css +85 -85
  79. package/package.json +2 -2
@@ -6,9 +6,9 @@ import { addComponentRef as x, addComponentRefByCode as y } from "../../utils/gl
6
6
  import { getPermissionCodes as w, packageFormRules as j, getModelFields as N, controlObjectRenderState as M } from "../../utils/page-init-util.js";
7
7
  import { caculateShowCondition as V, getFormPropName as _, getSizeConfig as A } from "../../utils/page-helper-util.js";
8
8
  import { isWorkflowPage as S, getPropClassName as T, isNumber as $ } from "../../utils/common-util.js";
9
- import { isShowMobileEvent as O, isShowComponent as P } from "../../utils/events/event-util.js";
10
- import { usePageContextStore as B } from "../../utils/page-store.js";
11
- import { isHasFieldAuth as H } from "../../utils/table-utils.js";
9
+ import { isShowMobileEvent as H, isShowComponent as O } from "../../utils/events/event-util.js";
10
+ import { usePageContextStore as P } from "../../utils/page-store.js";
11
+ import { isHasFieldAuth as B } from "../../utils/table-utils.js";
12
12
  import { checkPermission as R } from "agilebuilder-ui/src/utils/permission.js";
13
13
  import { isMobileBrowser as F } from "agilebuilder-ui/src/utils/common-util";
14
14
  const L = e({ __name: "object-render", props: { pageContext: {}, configure: {} }, setup(e2) {
@@ -17,7 +17,7 @@ const L = e({ __name: "object-render", props: { pageContext: {}, configure: {} }
17
17
  null == L2.configure.style && (L2.configure.style = {});
18
18
  let k = null, D = w(L2.configure, L2.pageContext);
19
19
  L2.configure && L2.configure.props && L2.configure.props.base && (L2.configure.props.base.functionCode = D);
20
- const E = R(D || "true", L2.pageContext.systemCode), J = H(L2.pageContext, L2.configure), W = E && J;
20
+ const E = R(D || "true", L2.pageContext.systemCode), J = B(L2.pageContext, L2.configure), W = E && J;
21
21
  L2.configure && L2.configure.props && L2.configure.props.base && (L2.configure.props.base.isHasFieldAuthPermission = W), j(L2.pageContext, L2.configure, W);
22
22
  let q = o(null), z = o(true), G = o("");
23
23
  if (L2.configure && L2.configure.props) {
@@ -26,7 +26,7 @@ const L = e({ __name: "object-render", props: { pageContext: {}, configure: {} }
26
26
  var _a2;
27
27
  let o2 = true;
28
28
  if (W) if (q.value && null !== q.value) o2 = "show" === q.value;
29
- else if (O(L2.pageContext, L2.configure)) if (e3 && e3.length > 0) o2 = V(L2.pageContext, e3);
29
+ else if (H(L2.pageContext, L2.configure)) if (e3 && e3.length > 0) o2 = V(L2.pageContext, e3);
30
30
  else {
31
31
  const e4 = (_a2 = L2.configure.props.base) == null ? void 0 : _a2.state;
32
32
  e4 && "hidden" === e4 && (o2 = false);
@@ -80,7 +80,7 @@ const L = e({ __name: "object-render", props: { pageContext: {}, configure: {} }
80
80
  const t2 = Z.style[e3 + "_class"];
81
81
  t2 && (X.value += " " + t2);
82
82
  }
83
- const ee = B();
83
+ const ee = P();
84
84
  let oe = false;
85
85
  function te(e3) {
86
86
  var _a2, _b2, _c2;
@@ -131,7 +131,9 @@ const L = e({ __name: "object-render", props: { pageContext: {}, configure: {} }
131
131
  const o2 = e3.parentNode;
132
132
  if (!e3 || !o2) return;
133
133
  const t2 = e3.getBoundingClientRect();
134
- let n2 = window.innerHeight - t2.y - 30, i2 = n2 + "";
134
+ let n2 = window.innerHeight - t2.y - 30;
135
+ window.innerHeight, t2.y;
136
+ let i2 = n2 + "";
135
137
  if ("tabs" === L2.configure.name && L2.pageContext.isDialog && !F()) {
136
138
  const o3 = e3.closest(".runtime-page-container");
137
139
  if (o3) {
@@ -142,7 +144,7 @@ const L = e({ __name: "object-render", props: { pageContext: {}, configure: {} }
142
144
  U.value.height = i2, U.value["overflow-y"] = "auto", U.value["overflow-x"] = "hidden", L2.configure.sytle || (L2.configure.sytle = {}), L2.configure.sytle._heightStyle = i2;
143
145
  }
144
146
  r(() => {
145
- W && P(L2.configure) || ee.countComponentsLoadedNumber();
147
+ W && O(L2.configure) || ee.countComponentsLoadedNumber();
146
148
  }), s(() => {
147
149
  var _a2;
148
150
  re && clearTimeout(re), k && ((_a2 = L2.pageContext.hiddenNotValidatorCodes) == null ? void 0 : _a2.delete(k));
@@ -157,7 +159,7 @@ const L = e({ __name: "object-render", props: { pageContext: {}, configure: {} }
157
159
  const t2 = L2.configure.props ? L2.configure.props : {}, n2 = L2.configure.style ? L2.configure.style : {}, i2 = t2.position;
158
160
  "top" == i2 || "bottom" == i2 || n2.position;
159
161
  };
160
- return (e3, o2) => a(W) && a(P)(e3.configure) ? u((g(), p(c(I.value), { key: 0, ref: te, style: d(U.value), class: f(X.value), configure: e3.configure, pageContext: e3.pageContext }, null, 8, ["style", "class", "configure", "pageContext"])), [[m, a(z)]]) : l("", true);
162
+ return (o2, t2) => a(W) && a(O)(e2.configure) ? u((g(), p(c(I.value), { key: 0, ref: te, style: d(U.value), class: f(X.value), configure: e2.configure, pageContext: e2.pageContext }, null, 8, ["style", "class", "configure", "pageContext"])), [[m, a(z)]]) : l("", true);
161
163
  } });
162
164
  export {
163
165
  L as default
@@ -1,8 +1,8 @@
1
1
  import { defineComponent as o, createBlock as e, createCommentVNode as t, openBlock as n } from "vue";
2
2
  import p from "./workflow/component/workflow-opinion-box.vue.js";
3
- const a = o({ __name: "page-bottom", props: { pageContext: {} }, setup: (o2) => (o3, a2) => {
3
+ const a = o({ __name: "page-bottom", props: { pageContext: {} }, setup: (o2) => (a2, r) => {
4
4
  var _a;
5
- return ((_a = o3.pageContext.workflowOpinion) == null ? void 0 : _a.showOpinionBox) ? (n(), e(p, { key: 0, pageContext: o3.pageContext }, null, 8, ["pageContext"])) : t("", true);
5
+ return ((_a = o2.pageContext.workflowOpinion) == null ? void 0 : _a.showOpinionBox) ? (n(), e(p, { key: 0, pageContext: o2.pageContext }, null, 8, ["pageContext"])) : t("", true);
6
6
  } });
7
7
  export {
8
8
  a as default
@@ -1,7 +1,7 @@
1
1
  import o from "./workflow-opinion-box.vue2.js";
2
2
  /* empty css */
3
3
  import r from "../../../../../../_virtual/_plugin-vue_export-helper.js";
4
- const p = r(o, [["__scopeId", "data-v-76875392"]]);
4
+ const e = r(o, [["__scopeId", "data-v-e0c933bb"]]);
5
5
  export {
6
- p as default
6
+ e as default
7
7
  };
@@ -1,55 +1,56 @@
1
- import { defineComponent as e, ref as n, computed as o, onMounted as l, onUnmounted as t, watch as i, nextTick as a, resolveComponent as u, createElementBlock as r, openBlock as s, Fragment as p, createElementVNode as w, createCommentVNode as f, createBlock as v, normalizeStyle as c, Teleport as d, withDirectives as x, createTextVNode as g, normalizeClass as m, createVNode as k, vShow as b } from "vue";
2
- import { addRequiredClassUtil as O } from "../../../../utils/common-util.js";
3
- const h = { class: "opinion-box-table-wrapper" }, C = { class: "opinion-table" }, y = { class: "opinion-label" }, R = { key: 0, class: "required-star" }, E = e({ __name: "workflow-opinion-box", props: { pageContext: {} }, setup(e2, { expose: E2 }) {
4
- const I = e2, z = n(""), L = n(), _ = n(""), B = n(null), H = n(null), V = n(0), q = n(null), j = n(null);
5
- let S = null, U = null;
6
- const W = n(true), A = o(() => {
7
- const e3 = j.value;
1
+ import { defineComponent as e, ref as n, computed as o, onMounted as l, onUnmounted as i, watch as t, nextTick as a, resolveComponent as u, createElementBlock as s, openBlock as r, Fragment as p, createElementVNode as w, createCommentVNode as f, createBlock as d, normalizeStyle as v, Teleport as c, withDirectives as x, createTextVNode as g, toDisplayString as m, unref as k, normalizeClass as O, createVNode as b, vShow as h } from "vue";
2
+ import { addRequiredClassUtil as C } from "../../../../utils/common-util.js";
3
+ import { $t as y } from "../../../../utils/i18n-util.js";
4
+ const R = { class: "opinion-box-table-wrapper" }, I = { class: "opinion-table" }, E = { class: "opinion-label" }, z = { key: 0, class: "required-star" }, L = e({ __name: "workflow-opinion-box", props: { pageContext: {} }, setup(e2, { expose: L2 }) {
5
+ const _ = e2, B = n(""), H = n(), V = n(""), j = n(null), q = n(null), M = n(0), P = n(null), S = n(null);
6
+ let U = null, W = null;
7
+ const A = n(true), D = o(() => {
8
+ const e3 = S.value;
8
9
  return e3 ? { left: e3.left + "px", right: window.innerWidth - e3.right + "px", bottom: window.innerHeight - e3.bottom + "px" } : { left: "0", right: "0", bottom: "0" };
9
10
  });
10
- function D() {
11
- q.value && (j.value = q.value.getBoundingClientRect());
11
+ function F() {
12
+ P.value && (S.value = P.value.getBoundingClientRect());
12
13
  }
13
- function F(e3) {
14
- q.value = e3, D(), U = new ResizeObserver(D), U.observe(e3), window.addEventListener("scroll", D, true), window.addEventListener("resize", D);
14
+ function G(e3) {
15
+ P.value = e3, F(), W = new ResizeObserver(F), W.observe(e3), window.addEventListener("scroll", F, true), window.addEventListener("resize", F);
15
16
  }
16
17
  l(() => {
17
18
  var _a;
18
- let e3 = ((_a = B.value) == null ? void 0 : _a.parentElement) ?? null;
19
+ let e3 = ((_a = j.value) == null ? void 0 : _a.parentElement) ?? null;
19
20
  for (; e3; ) {
20
- if (e3.classList.contains("el-dialog")) return void F(e3);
21
+ if (e3.classList.contains("el-dialog")) return void G(e3);
21
22
  e3 = e3.parentElement;
22
23
  }
23
- I.pageContext.workflowOpinion && (I.pageContext.workflowOpinion.boxInstance = G);
24
- }), t(() => {
25
- var _a;
26
- S == null ? void 0 : S.disconnect(), S = null, U == null ? void 0 : U.disconnect(), U = null, window.removeEventListener("scroll", D, true), window.removeEventListener("resize", D), q.value = null, j.value = null, ((_a = I.pageContext.workflowOpinion) == null ? void 0 : _a.boxInstance) && (I.pageContext.workflowOpinion.boxInstance = null);
27
- }), i(H, (e3) => {
28
- S == null ? void 0 : S.disconnect(), S = null, e3 ? (V.value = e3.offsetHeight, S = new ResizeObserver(() => {
29
- V.value = e3.offsetHeight;
30
- }), S.observe(e3)) : V.value = 0;
24
+ _.pageContext.workflowOpinion && (_.pageContext.workflowOpinion.boxInstance = J);
31
25
  }), i(() => {
32
26
  var _a;
33
- return (_a = I.pageContext.workflowOpinion) == null ? void 0 : _a.focusOpinionInput;
27
+ U == null ? void 0 : U.disconnect(), U = null, W == null ? void 0 : W.disconnect(), W = null, window.removeEventListener("scroll", F, true), window.removeEventListener("resize", F), P.value = null, S.value = null, ((_a = _.pageContext.workflowOpinion) == null ? void 0 : _a.boxInstance) && (_.pageContext.workflowOpinion.boxInstance = null);
28
+ }), t(q, (e3) => {
29
+ U == null ? void 0 : U.disconnect(), U = null, e3 ? (M.value = e3.offsetHeight, U = new ResizeObserver(() => {
30
+ M.value = e3.offsetHeight;
31
+ }), U.observe(e3)) : M.value = 0;
32
+ }), t(() => {
33
+ var _a;
34
+ return (_a = _.pageContext.workflowOpinion) == null ? void 0 : _a.focusOpinionInput;
34
35
  }, (e3) => {
35
- e3 ? (_.value = O(), a(() => {
36
+ e3 ? (V.value = C(), a(() => {
36
37
  var _a;
37
- ((_a = L.value) == null ? void 0 : _a.focus) && L.value.focus();
38
- })) : _.value = "";
38
+ ((_a = H.value) == null ? void 0 : _a.focus) && H.value.focus();
39
+ })) : V.value = "";
39
40
  }, { immediate: true });
40
- const G = { show: function() {
41
- I.pageContext.workflowOpinion && (W.value = true);
41
+ const J = { show: function() {
42
+ _.pageContext.workflowOpinion && (A.value = true);
42
43
  }, hide: function() {
43
- I.pageContext.workflowOpinion && (W.value = false);
44
+ _.pageContext.workflowOpinion && (A.value = false);
44
45
  } };
45
- return E2(G), (e3, n2) => {
46
+ return L2(J), (n2, o2) => {
46
47
  var _a, _b, _c;
47
- const o2 = u("el-input");
48
- return s(), r(p, null, [w("div", { ref_key: "sentinelRef", ref: B, style: { display: "none" } }, null, 512), ((_a = e3.pageContext.workflowOpinion) == null ? void 0 : _a.showOpinionBox) ? (s(), r("div", { key: 0, style: c({ height: V.value + "px", width: "100%", flexShrink: 0 }) }, null, 4)) : f("", true), (s(), v(d, { to: "body" }, [((_b = e3.pageContext.workflowOpinion) == null ? void 0 : _b.showOpinionBox) ? x((s(), r("div", { key: 0, ref_key: "opinionBarRef", ref: H, class: "opinion-fixed-bar", style: c(A.value) }, [w("div", h, [w("table", C, [w("tbody", null, [w("tr", null, [w("td", y, [((_c = e3.pageContext.workflowOpinion) == null ? void 0 : _c.isRequired) ? (s(), r("span", R, "*")) : f("", true), n2[2] || (n2[2] = g(" 处理意见 "))]), w("td", { class: m(["opinion-input-cell", _.value]) }, [k(o2, { ref_key: "opinionInputRef", ref: L, modelValue: z.value, "onUpdate:modelValue": n2[0] || (n2[0] = (e4) => z.value = e4), autosize: { minRows: 2, maxRows: 4 }, type: "textarea", placeholder: "请输入处理意见", onChange: n2[1] || (n2[1] = (e4) => {
49
- I.pageContext.workflowOpinion && (I.pageContext.workflowOpinion.opinion = z.value.trim(), I.pageContext.workflowOpinion.focusOpinionInput = false);
50
- }), class: "opinion-input" }, null, 8, ["modelValue"])], 2)])])])])], 4)), [[b, W.value]]) : f("", true)]))], 64);
48
+ const l2 = u("el-input");
49
+ return r(), s(p, null, [w("div", { ref_key: "sentinelRef", ref: j, style: { display: "none" } }, null, 512), ((_a = e2.pageContext.workflowOpinion) == null ? void 0 : _a.showOpinionBox) ? (r(), s("div", { key: 0, style: v({ height: M.value + "px", width: "100%", flexShrink: 0 }) }, null, 4)) : f("", true), (r(), d(c, { to: "body" }, [((_b = e2.pageContext.workflowOpinion) == null ? void 0 : _b.showOpinionBox) ? x((r(), s("div", { key: 0, ref_key: "opinionBarRef", ref: q, class: "opinion-fixed-bar", style: v(D.value) }, [w("div", R, [w("table", I, [w("tbody", null, [w("tr", null, [w("td", E, [((_c = e2.pageContext.workflowOpinion) == null ? void 0 : _c.isRequired) ? (r(), s("span", z, "*")) : f("", true), g(" " + m(k(y)("superPageRuntimeMessage.handleOpinion")), 1)]), w("td", { class: O(["opinion-input-cell", V.value]) }, [b(l2, { ref_key: "opinionInputRef", ref: H, modelValue: B.value, "onUpdate:modelValue": o2[0] || (o2[0] = (e3) => B.value = e3), autosize: { minRows: 2, maxRows: 4 }, type: "textarea", placeholder: k(y)("superPageRuntimeMessage.pleaseInputHandleOpinion"), onChange: o2[1] || (o2[1] = (e3) => {
50
+ _.pageContext.workflowOpinion && (_.pageContext.workflowOpinion.opinion = B.value.trim(), _.pageContext.workflowOpinion.focusOpinionInput = false);
51
+ }), class: "opinion-input" }, null, 8, ["modelValue", "placeholder"])], 2)])])])])], 4)), [[h, A.value]]) : f("", true)]))], 64);
51
52
  };
52
53
  } });
53
54
  export {
54
- E as default
55
+ L as default
55
56
  };
@@ -1,7 +1,7 @@
1
1
  import o from "./extract-workflow-runtime-dialog.vue2.js";
2
2
  /* empty css */
3
3
  import r from "../../../../../../_virtual/_plugin-vue_export-helper.js";
4
- const t = r(o, [["__scopeId", "data-v-a6bc44c9"]]);
4
+ const t = r(o, [["__scopeId", "data-v-05f9ea1f"]]);
5
5
  export {
6
6
  t as default
7
7
  };
@@ -1,28 +1,29 @@
1
- import { defineComponent as e, ref as l, onMounted as o, resolveComponent as a, createBlock as i, openBlock as n, withCtx as t, createVNode as u, createCommentVNode as r, unref as m, createElementVNode as p, createTextVNode as d } from "vue";
2
- import { extractWorkflowFunc as s } from "../../../../utils/events/standard-event.js";
3
- import { DepartmentUserTree as v } from "agilebuilder-ui";
4
- import { Search as f, Delete as c } from "@element-plus/icons-vue";
5
- const g = { class: "dialog-footer" }, _ = e({ __name: "extract-workflow-runtime-dialog", props: { pageContext: {}, configure: {} }, emits: ["destroy"], setup(e2, { emit: _2 }) {
6
- const x = _2, y = e2, C = l(), k = l(false), N = l(true), b = l({}), h = l({ loginName: [], opinion: [] }), w = y.configure.runtime ? y.configure.runtime : {};
7
- function V() {
8
- k.value = true;
1
+ import { defineComponent as e, ref as l, onMounted as a, resolveComponent as o, createBlock as t, openBlock as n, unref as i, withCtx as u, createVNode as r, createCommentVNode as s, createElementVNode as p, createTextVNode as m, toDisplayString as g } from "vue";
2
+ import { extractWorkflowFunc as d } from "../../../../utils/events/standard-event.js";
3
+ import { DepartmentUserTree as c } from "agilebuilder-ui";
4
+ import { Search as v, Delete as f } from "@element-plus/icons-vue";
5
+ import { $t as _ } from "../../../../utils/i18n-util.js";
6
+ const x = { class: "dialog-footer" }, y = e({ __name: "extract-workflow-runtime-dialog", props: { pageContext: {}, configure: {} }, emits: ["destroy"], setup(e2, { emit: y2 }) {
7
+ const b = y2, C = e2, M = l(), R = l(false), h = l(true), k = l({}), N = l({ loginName: [], opinion: [] }), P = C.configure.runtime ? C.configure.runtime : {};
8
+ function w() {
9
+ R.value = true;
9
10
  }
10
- function q(e3) {
11
- k.value = false, b.value.loginName = e3 ? e3.loginName : "", b.value.name = e3 ? e3.name : "";
11
+ function V(e3) {
12
+ R.value = false, k.value.loginName = e3 ? e3.loginName : "", k.value.name = e3 ? e3.name : "";
12
13
  }
13
- function j() {
14
- C.value.validate((e3, l2) => {
15
- e3 && s({ pageContext: y.pageContext, configureObj: y.configure, _value: { loginName: b.value.loginName, opinion: b.value.opinion } }).then(() => {
16
- N.value = false, x("destroy");
14
+ function T() {
15
+ M.value.validate((e3, l2) => {
16
+ e3 && d({ pageContext: C.pageContext, configureObj: C.configure, _value: { loginName: k.value.loginName, opinion: k.value.opinion } }).then(() => {
17
+ h.value = false, b("destroy");
17
18
  });
18
19
  });
19
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
+ return P.props && (true === P.props.requireExtractTransactor && (N.value.loginName = [{ required: true, message: _("superPageRuntimeMessage.pleaseSelectTransactor"), trigger: "blur" }]), true === P.props.isMustOpinion && (N.value.opinion = [{ required: true, message: _("superPageRuntimeMessage.pleaseInputOpinion"), trigger: "change" }])), a(() => {
21
22
  }), (e3, l2) => {
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 }), 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"]);
23
+ const a2 = o("el-icon"), d2 = o("el-input"), y3 = o("el-form-item"), b2 = o("el-form"), C2 = o("el-button"), P2 = o("el-dialog");
24
+ return n(), t(P2, { modelValue: h.value, "onUpdate:modelValue": l2[5] || (l2[5] = (e4) => h.value = e4), title: i(_)("superPageRuntimeMessage.selectTransactor"), width: "500" }, { footer: u(() => [p("div", x, [r(C2, { onClick: l2[4] || (l2[4] = (e4) => h.value = false) }, { default: u(() => [m(g(i(_)("superPageRuntimeMessage.cancel")), 1)]), _: 1 }), r(C2, { type: "primary", onClick: T }, { default: u(() => [m(g(i(_)("superPageRuntimeMessage.sure")), 1)]), _: 1 })])]), default: u(() => [r(b2, { ref_key: "ruleFormRef", ref: M, style: { "max-width": "600px" }, model: k.value, rules: N.value, "label-width": "auto" }, { default: u(() => [r(y3, { label: i(_)("superPageRuntimeMessage.transactorUser"), prop: "loginName" }, { default: u(() => [r(d2, { "model-value": k.value.name, readonly: true, type: "text", placeholder: i(_)("superPageRuntimeMessage.pleaseSelectTransactor"), onClick: l2[2] || (l2[2] = (e4) => w()) }, { append: u(() => [r(a2, { class: "el-input__icon", onClick: l2[0] || (l2[0] = (e4) => w()) }, { default: u(() => [r(i(v))]), _: 1 }), r(a2, { class: "el-input__icon", onClick: l2[1] || (l2[1] = (e4) => (k.value.loginName = "", void (k.value.name = ""))) }, { default: u(() => [r(i(f))]), _: 1 })]), _: 1 }, 8, ["model-value", "placeholder"])]), _: 1 }, 8, ["label"]), r(y3, { label: i(_)("superPageRuntimeMessage.opinion"), prop: "opinion" }, { default: u(() => [r(d2, { modelValue: k.value.opinion, "onUpdate:modelValue": l2[3] || (l2[3] = (e4) => k.value.opinion = e4), type: "textarea" }, null, 8, ["modelValue"])]), _: 1 }, 8, ["label"]), R.value ? (n(), t(i(c), { key: 0, width: "60%", multiple: false, onClose: V })) : s("", true)]), _: 1 }, 8, ["model", "rules"])]), _: 1 }, 8, ["modelValue", "title"]);
24
25
  };
25
26
  } });
26
27
  export {
27
- _ as default
28
+ y as default
28
29
  };
@@ -1,7 +1,7 @@
1
1
  import r from "./extract-workflow-runtime.vue2.js";
2
2
  /* empty css */
3
3
  import t from "../../../../../../_virtual/_plugin-vue_export-helper.js";
4
- const e = t(r, [["__scopeId", "data-v-86931fd4"]]);
4
+ const e = t(r, [["__scopeId", "data-v-1a7971b9"]]);
5
5
  export {
6
6
  e as default
7
7
  };
@@ -1,45 +1,45 @@
1
- import { defineComponent as e, ref as l, onMounted as o, nextTick as a, resolveComponent as n, createElementBlock as t, openBlock as i, createVNode as u, normalizeStyle as r, normalizeClass as p, unref as c, withCtx as s, createTextVNode as d, toDisplayString as m, createBlock as f, createCommentVNode as g, createElementVNode as v } from "vue";
1
+ import { defineComponent as e, ref as l, onMounted as a, nextTick as n, resolveComponent as t, createElementBlock as o, openBlock as i, createVNode as u, normalizeStyle as r, normalizeClass as s, unref as p, withCtx as c, createTextVNode as m, toDisplayString as g, createBlock as d, createCommentVNode as f, createElementVNode as v } from "vue";
2
2
  import { handleAfterInitEvent as x, handleEvent as C, getDefaultEventParams as y, canExecuteButton as _ } from "../../../../utils/events/event-util.js";
3
3
  import { $t as k } from "../../../../utils/i18n-util.js";
4
4
  import { DepartmentUserTree as b } from "agilebuilder-ui";
5
- import { Search as h, Delete as N } from "@element-plus/icons-vue";
6
- const w = { class: "page-runtime-header-btn" }, V = { class: "dialog-footer" }, U = e({ __name: "extract-workflow-runtime", props: { pageContext: {}, configure: {} }, setup(e2, { expose: U2 }) {
7
- const q = e2, z = l(), R = l(false), j = l(false), E = l({}), D = l({ loginName: [], opinion: [] }), F = q.configure.runtime ? q.configure.runtime : {}, M = l(F.props ? F.props : {}), O = F.style, T = F.class;
8
- function $() {
9
- return void 0 !== q.pageContext.canClick && void 0 !== q.pageContext.clickUuid && (!q.pageContext.canClick && q.pageContext.clickUuid === q.configure.uuid);
5
+ import { Search as R, Delete as h } from "@element-plus/icons-vue";
6
+ const M = { class: "page-runtime-header-btn" }, N = { class: "dialog-footer" }, P = e({ __name: "extract-workflow-runtime", props: { pageContext: {}, configure: {} }, setup(e2, { expose: P2 }) {
7
+ const w = e2, V = l(), U = l(false), T = l(false), q = l({}), z = l({ loginName: [], opinion: [] }), j = w.configure.runtime ? w.configure.runtime : {}, E = l(j.props ? j.props : {}), O = j.style, S = j.class;
8
+ function D() {
9
+ return void 0 !== w.pageContext.canClick && void 0 !== w.pageContext.clickUuid && (!w.pageContext.canClick && w.pageContext.clickUuid === w.configure.uuid);
10
10
  }
11
- F.props && (true === F.props.requireExtractTransactor && (D.value.loginName = [{ required: true, message: "请选择办理人", trigger: "blur" }]), true === F.props.isMustOpinion && (D.value.opinion = [{ required: true, message: "请输入意见", trigger: "change" }]));
12
- const A = l(null);
13
- function B() {
14
- R.value = true;
11
+ j.props && (true === j.props.requireExtractTransactor && (z.value.loginName = [{ required: true, message: k("superPageRuntimeMessage.pleaseSelectTransactor"), trigger: "blur" }]), true === j.props.isMustOpinion && (z.value.opinion = [{ required: true, message: k("superPageRuntimeMessage.pleaseInputOpinion"), trigger: "change" }]));
12
+ const F = l(null);
13
+ function I() {
14
+ U.value = true;
15
15
  }
16
- function G(e3) {
17
- R.value = false, E.value.loginName = e3 ? e3.loginName : "", E.value.name = e3 ? e3.name : "";
16
+ function $(e3) {
17
+ U.value = false, q.value.loginName = e3 ? e3.loginName : "", q.value.name = e3 ? e3.name : "";
18
18
  }
19
- function H() {
20
- z.value.validate((e3, l2) => {
19
+ function A() {
20
+ V.value.validate((e3, l2) => {
21
21
  if (e3) {
22
- const e4 = { loginName: E.value.loginName, opinion: E.value.opinion };
23
- C(e4, q.pageContext, q.configure, "click");
22
+ const e4 = { loginName: q.value.loginName, opinion: q.value.opinion };
23
+ C(e4, w.pageContext, w.configure, "click");
24
24
  }
25
25
  });
26
26
  }
27
- return o(() => {
28
- a(() => {
29
- x(null, q.pageContext, q.configure, { componentRef: A.value, entity: q.pageContext.entity.data, pageData: q.pageContext.entity.page });
27
+ return a(() => {
28
+ n(() => {
29
+ x(null, w.pageContext, w.configure, { componentRef: F.value, entity: w.pageContext.entity.data, pageData: w.pageContext.entity.page });
30
30
  });
31
- }), U2({ click: function() {
32
- A.value && A.value.$el.click();
31
+ }), P2({ click: function() {
32
+ F.value && F.value.$el.click();
33
33
  } }), (e3, l2) => {
34
- const o2 = n("el-button"), a2 = n("el-icon"), x2 = n("el-input"), C2 = n("el-form-item"), U3 = n("el-form"), F2 = n("el-dialog");
35
- return i(), t("span", w, [u(o2, { ref_key: "componentRef", ref: A, disabled: $(), class: p(c(T)), style: r(c(O)), type: M.value.type, size: M.value.size, round: M.value.round, plain: M.value.plain, loading: $(), onClick: l2[0] || (l2[0] = (e4) => function(e5) {
36
- const l3 = y(e5, q.pageContext, q.configure, {});
34
+ const a2 = t("el-button"), n2 = t("el-icon"), x2 = t("el-input"), C2 = t("el-form-item"), P3 = t("el-form"), j2 = t("el-dialog");
35
+ return i(), o("span", M, [u(a2, { ref_key: "componentRef", ref: F, disabled: D(), class: s(p(S)), style: r(p(O)), type: E.value.type, size: E.value.size, round: E.value.round, plain: E.value.plain, loading: D(), onClick: l2[0] || (l2[0] = (e4) => function(e5) {
36
+ const l3 = y(e5, w.pageContext, w.configure, {});
37
37
  _(l3).then((e6) => {
38
- e6.canExecute && (j.value = true);
38
+ e6.canExecute && (T.value = true);
39
39
  });
40
- }()) }, { default: s(() => [d(m(c(k)(M.value.title)), 1)]), _: 1 }, 8, ["disabled", "class", "style", "type", "size", "round", "plain", "loading"]), u(F2, { modelValue: j.value, "onUpdate:modelValue": l2[6] || (l2[6] = (e4) => j.value = e4), title: "选择办理人", width: "500" }, { footer: s(() => [v("div", V, [u(o2, { onClick: l2[5] || (l2[5] = (e4) => j.value = false) }, { default: s(() => l2[7] || (l2[7] = [d("取消")])), _: 1 }), u(o2, { type: "primary", onClick: H }, { default: s(() => l2[8] || (l2[8] = [d(" 确定 ")])), _: 1 })])]), default: s(() => [u(U3, { ref_key: "ruleFormRef", ref: z, style: { "max-width": "600px" }, model: E.value, rules: D.value, "label-width": "auto" }, { default: s(() => [u(C2, { label: "办理人", prop: "loginName" }, { default: s(() => [u(x2, { "model-value": E.value.name, readonly: true, type: "text", placeholder: "选择办理人", onClick: l2[3] || (l2[3] = (e4) => B()) }, { append: s(() => [u(a2, { class: "el-input__icon", onClick: l2[1] || (l2[1] = (e4) => B()) }, { default: s(() => [u(c(h))]), _: 1 }), u(a2, { class: "el-input__icon", onClick: l2[2] || (l2[2] = (e4) => (E.value.loginName = "", void (E.value.name = ""))) }, { default: s(() => [u(c(N))]), _: 1 })]), _: 1 }, 8, ["model-value"])]), _: 1 }), u(C2, { label: "意见", prop: "opinion" }, { default: s(() => [u(x2, { modelValue: E.value.opinion, "onUpdate:modelValue": l2[4] || (l2[4] = (e4) => E.value.opinion = e4), type: "textarea" }, null, 8, ["modelValue"])]), _: 1 }), R.value ? (i(), f(c(b), { key: 0, width: "60%", multiple: false, onClose: G })) : g("", true)]), _: 1 }, 8, ["model", "rules"])]), _: 1 }, 8, ["modelValue"])]);
40
+ }()) }, { default: c(() => [m(g(p(k)(E.value.title)), 1)]), _: 1 }, 8, ["disabled", "class", "style", "type", "size", "round", "plain", "loading"]), u(j2, { modelValue: T.value, "onUpdate:modelValue": l2[6] || (l2[6] = (e4) => T.value = e4), title: p(k)("superPageRuntimeMessage.selectTransactor"), width: "500" }, { footer: c(() => [v("div", N, [u(a2, { onClick: l2[5] || (l2[5] = (e4) => T.value = false) }, { default: c(() => [m(g(p(k)("superPageRuntimeMessage.cancel")), 1)]), _: 1 }), u(a2, { type: "primary", onClick: A }, { default: c(() => [m(g(p(k)("superPageRuntimeMessage.sure")), 1)]), _: 1 })])]), default: c(() => [u(P3, { ref_key: "ruleFormRef", ref: V, style: { "max-width": "600px" }, model: q.value, rules: z.value, "label-width": "auto" }, { default: c(() => [u(C2, { label: p(k)("superPageRuntimeMessage.transactorUser"), prop: "loginName" }, { default: c(() => [u(x2, { "model-value": q.value.name, readonly: true, type: "text", placeholder: p(k)("superPageRuntimeMessage.pleaseSelectTransactor"), onClick: l2[3] || (l2[3] = (e4) => I()) }, { append: c(() => [u(n2, { class: "el-input__icon", onClick: l2[1] || (l2[1] = (e4) => I()) }, { default: c(() => [u(p(R))]), _: 1 }), u(n2, { class: "el-input__icon", onClick: l2[2] || (l2[2] = (e4) => (q.value.loginName = "", void (q.value.name = ""))) }, { default: c(() => [u(p(h))]), _: 1 })]), _: 1 }, 8, ["model-value", "placeholder"])]), _: 1 }, 8, ["label"]), u(C2, { label: p(k)("superPageRuntimeMessage.opinion"), prop: "opinion" }, { default: c(() => [u(x2, { modelValue: q.value.opinion, "onUpdate:modelValue": l2[4] || (l2[4] = (e4) => q.value.opinion = e4), type: "textarea" }, null, 8, ["modelValue"])]), _: 1 }, 8, ["label"]), U.value ? (i(), d(p(b), { key: 0, width: "60%", multiple: false, onClose: $ })) : f("", true)]), _: 1 }, 8, ["model", "rules"])]), _: 1 }, 8, ["modelValue", "title"])]);
41
41
  };
42
42
  } });
43
43
  export {
44
- U as default
44
+ P as default
45
45
  };
@@ -25,7 +25,7 @@ const c = { class: "page-runtime-header-btn amb-workflowbutton-runtime-view" },
25
25
  if (!o2 || o2.startsWith("initVal")) return;
26
26
  ((_b2 = (_a2 = t4 == null ? void 0 : t4.runtime) == null ? void 0 : _a2.props) == null ? void 0 : _b2.title) && (t4.runtime.props.title = o2);
27
27
  }(t3), k.value.push(t3));
28
- }), (t3, e2) => (o(), n("span", c, [(o(true), n(r, null, u(k.value, (e3, u2) => (o(), n(r, null, [e3.check ? (o(), i(s, { key: u2, pageContext: t3.pageContext, configure: e3 }, null, 8, ["pageContext", "configure"])) : a("", true)], 64))), 256))]));
28
+ }), (e2, p2) => (o(), n("span", c, [(o(true), n(r, null, u(k.value, (e3, u2) => (o(), n(r, null, [e3.check ? (o(), i(s, { key: u2, pageContext: t2.pageContext, configure: e3 }, null, 8, ["pageContext", "configure"])) : a("", true)], 64))), 256))]));
29
29
  } });
30
30
  export {
31
31
  l as default
@@ -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), w = t(false), H = t(null);
10
+ const { t: b2 } = C(), I = e2, U = t(true), H = t(false), w = 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
- H.value = {};
15
+ w.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
- H.value = t2.chartJson, H.value.homeChartSettingUserId = I.homeChartSettingUserId, i2 && (H.value.runtime.common.style.pc_style.height = i2.clientHeight + "px");
23
+ w.value = t2.chartJson, w.value.homeChartSettingUserId = I.homeChartSettingUserId, i2 && (i2.clientHeight, w.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 = H.value.pushHomepage) == null ? void 0 : _a.searchConditions) && ((_b = H.value.pushHomepage) == null ? void 0 : _b.searchConditions.length) > 0 && (n2.showHomepageSearch = true), t2.variables) {
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) {
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(H.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(w.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 w.value = true, U.value = false;
35
+ } else H.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 && 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]]);
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]]);
43
43
  };
44
44
  } });
45
45
  export {
@@ -1,28 +1,30 @@
1
- import { defineComponent as e, ref as a, onUnmounted as l, resolveComponent as u, createBlock as t, openBlock as o, withCtx as n, createElementBlock as r, createCommentVNode as i } from "vue";
2
- import d from "./super-page.vue.js";
3
- const s = ["src"], g = ["src"], v = e({ __name: "super-page-dialog", props: { parentPageContext: {}, parentPageEventParams: {}, jumpPageSetting: {}, isTest: { type: Boolean }, customParams: {} }, emits: ["open", "opened", "close", "closed"], setup(e2, { emit: v2 }) {
4
- const p = e2, m = v2, c = a(true), P = p.jumpPageSetting ? p.jumpPageSetting : null, f = a(null), h = a(null), w = a(null), b = a(null), C = a(null), j = a(null), y = a({}), I = a(false), k = a(false), O = a("rtl"), S = a(null), _ = a(false), x = a(null), V = a(true), M = a(false), T = a(true), q = a(false);
5
- if (P) {
6
- V.value = (P == null ? void 0 : P.alignCenter) ?? true, M.value = (P == null ? void 0 : P.fullscreen) ?? false, _.value = !(!P || void 0 === P._isIframe) && P._isIframe, x.value = P && P._path ? P._path : null, j.value = P && P.dialogType ? P.dialogType : "dialog", I.value = !(!P || !P.draggable) && P.draggable, k.value = !(!P || !P.overflow) && P.overflow, O.value = P && P.showPosition ? P.showPosition : "rtl", h.value = P && P.jumpPageTitle ? P.jumpPageTitle : null, f.value = P && P.jumpPageWidth ? P.jumpPageWidth : "dialog" === j.value ? "calc(100% - 30px)" : "100%", T.value = P == null ? void 0 : P.showDialogModal, false === T.value ? q.value = P == null ? void 0 : P.dialogModalPenetrable : null !== T.value && void 0 !== T.value || true === (P == null ? void 0 : P.dialogModalPenetrable) && (q.value = true, T.value = false), S.value = P && P.jumpPageHeight ? P.jumpPageHeight : null, w.value = P && P.pageCode, b.value = P && P.dataId ? P.dataId : null, C.value = P && P.taskId ? P.taskId : null;
7
- const e3 = !!P.isNeedId;
8
- if (p.parentPageEventParams) {
1
+ import { defineComponent as e, ref as a, onUnmounted as l, resolveComponent as u, createBlock as o, openBlock as t, withCtx as n, createElementBlock as r, createCommentVNode as i } from "vue";
2
+ import s from "./super-page.vue.js";
3
+ import { $t as d } from "../utils/i18n-util.js";
4
+ const g = ["src"], v = ["src"], p = e({ __name: "super-page-dialog", props: { parentPageContext: {}, parentPageEventParams: {}, jumpPageSetting: {}, isTest: { type: Boolean }, customParams: {} }, emits: ["open", "opened", "close", "closed"], setup(e2, { emit: p2 }) {
5
+ const m = e2, c = p2, P = a(true), f = m.jumpPageSetting ? m.jumpPageSetting : null, h = a(null), w = a(null), b = a(null), C = a(null), j = a(null), y = a(null), I = a({}), k = a(false), O = a(false), S = a("rtl"), _ = a(null), x = a(false), V = a(null), M = a(true), T = a(false), q = a(true), E = a(false);
6
+ if (f) {
7
+ M.value = (f == null ? void 0 : f.alignCenter) ?? true, T.value = (f == null ? void 0 : f.fullscreen) ?? false, x.value = !(!f || void 0 === f._isIframe) && f._isIframe, V.value = f && f._path ? f._path : null, y.value = f && f.dialogType ? f.dialogType : "dialog", k.value = !(!f || !f.draggable) && f.draggable, O.value = !(!f || !f.overflow) && f.overflow, S.value = f && f.showPosition ? f.showPosition : "rtl", w.value = f && f.jumpPageTitle ? d(f.jumpPageTitle) : null, h.value = f && f.jumpPageWidth ? f.jumpPageWidth : "dialog" === y.value ? "calc(100% - 30px)" : "100%", q.value = f == null ? void 0 : f.showDialogModal, false === q.value ? E.value = f == null ? void 0 : f.dialogModalPenetrable : null !== q.value && void 0 !== q.value || true === (f == null ? void 0 : f.dialogModalPenetrable) && (E.value = true, q.value = false), _.value = f && f.jumpPageHeight ? f.jumpPageHeight : null, b.value = f && f.pageCode, C.value = f && f.dataId ? f.dataId : null, j.value = f && f.taskId ? f.taskId : null;
8
+ const e3 = !!f.isNeedId;
9
+ if (m.parentPageEventParams) {
9
10
  try {
10
- const e4 = JSON.parse(JSON.stringify(p.parentPageEventParams));
11
- e4.pageContext && delete e4.pageContext, e4.configureObj && delete e4.configureObj, Object.assign(y.value, e4);
11
+ const e4 = JSON.parse(JSON.stringify(m.parentPageEventParams));
12
+ e4.pageContext && delete e4.pageContext, e4.configureObj && delete e4.configureObj, Object.assign(I.value, e4);
12
13
  } catch (e4) {
14
+ console.error(e4);
13
15
  }
14
- null !== b.value && void 0 !== b.value || (b.value = p.parentPageEventParams.id);
16
+ null !== C.value && void 0 !== C.value || (C.value = m.parentPageEventParams.id);
15
17
  }
16
- y.value.parentPageCode = P && P.parentPageCode ? P.parentPageCode : null, y.value.parentPageVersion = P && P.parentPageVersion ? P.parentPageVersion : null, y.value.jumpMode = P ? P.jumpMode : null, y.value.id = b.value, y.value.isNeedId = e3, y.value.taskId = C.value, p.customParams && Object.assign(y.value, p.customParams);
18
+ I.value.parentPageCode = f && f.parentPageCode ? f.parentPageCode : null, I.value.parentPageVersion = f && f.parentPageVersion ? f.parentPageVersion : null, I.value.jumpMode = f ? f.jumpMode : null, I.value.id = C.value, I.value.isNeedId = e3, I.value.taskId = j.value, m.customParams && Object.assign(I.value, m.customParams);
17
19
  }
18
20
  return l(() => {
19
21
  var _a;
20
- ((_a = y.value) == null ? void 0 : _a.dialogParamStoreId) && sessionStorage.removeItem(y.value.dialogParamStoreId);
22
+ ((_a = I.value) == null ? void 0 : _a.dialogParamStoreId) && sessionStorage.removeItem(I.value.dialogParamStoreId);
21
23
  }), (e3, a2) => {
22
- const l2 = u("el-drawer"), v3 = u("el-dialog");
23
- return j.value && "drawer" === j.value ? (o(), t(l2, { key: 0, modelValue: c.value, "onUpdate:modelValue": a2[0] || (a2[0] = (e4) => c.value = e4), title: h.value, direction: O.value, size: f.value, class: "content-drawer amb-super-page-runtime-drawer-view", onOpen: a2[1] || (a2[1] = (e4) => m("open")), onOpened: a2[2] || (a2[2] = (e4) => m("opened")), onClose: a2[3] || (a2[3] = (e4) => m("close")), onClosed: a2[4] || (a2[4] = (e4) => m("closed")) }, { default: n(() => [!_.value && w.value ? (o(), t(d, { key: 0, pageCode: w.value, pageRequest: y.value, isDialog: true }, null, 8, ["pageCode", "pageRequest"])) : _.value ? (o(), r("iframe", { key: 1, src: x.value, class: "amb-super-page-runtime-drawer-iframe", frameborder: "0", marginwidth: "0", marginheight: "0", width: "100%", allowtransparency: "no" }, null, 8, s)) : i("", true)]), _: 1 }, 8, ["modelValue", "title", "direction", "size"])) : (o(), t(v3, { key: 1, "model-value": "", title: h.value, "close-on-click-modal": false, "append-to-body": "", width: f.value, modal: T.value, "modal-penetrable": q.value, fullscreen: M.value, alignCenter: V.value, draggable: I.value, overflow: k.value, class: "amb-super-page-runtime-dialog-view", onOpen: a2[5] || (a2[5] = (a3) => e3.$emit("open")), onOpend: a2[6] || (a2[6] = (a3) => e3.$emit("opend")), onClose: a2[7] || (a2[7] = (e4) => m("close")), onClosed: a2[8] || (a2[8] = (a3) => e3.$emit("closed")) }, { default: n(() => [!_.value && w.value ? (o(), t(d, { key: 0, style: { "min-height": "100px" }, pageCode: w.value, pageRequest: y.value, contentHeight: S.value, isDialog: true }, null, 8, ["pageCode", "pageRequest", "contentHeight"])) : _.value ? (o(), r("iframe", { key: 1, src: x.value, class: "amb-super-page-runtime-dialog-iframe", frameborder: "0", marginwidth: "0", marginheight: "0", width: "100%", allowtransparency: "no" }, null, 8, g)) : i("", true)]), _: 1 }, 8, ["title", "width", "modal", "modal-penetrable", "fullscreen", "alignCenter", "draggable", "overflow"]));
24
+ const l2 = u("el-drawer"), d2 = u("el-dialog");
25
+ return y.value && "drawer" === y.value ? (t(), o(l2, { key: 0, modelValue: P.value, "onUpdate:modelValue": a2[0] || (a2[0] = (e4) => P.value = e4), title: w.value, direction: S.value, size: h.value, class: "content-drawer amb-super-page-runtime-drawer-view", onOpen: a2[1] || (a2[1] = (e4) => c("open")), onOpened: a2[2] || (a2[2] = (e4) => c("opened")), onClose: a2[3] || (a2[3] = (e4) => c("close")), onClosed: a2[4] || (a2[4] = (e4) => c("closed")) }, { default: n(() => [!x.value && b.value ? (t(), o(s, { key: 0, pageCode: b.value, pageRequest: I.value, isDialog: true }, null, 8, ["pageCode", "pageRequest"])) : x.value ? (t(), r("iframe", { key: 1, src: V.value, class: "amb-super-page-runtime-drawer-iframe", frameborder: "0", marginwidth: "0", marginheight: "0", width: "100%", allowtransparency: "no" }, null, 8, g)) : i("", true)]), _: 1 }, 8, ["modelValue", "title", "direction", "size"])) : (t(), o(d2, { key: 1, "model-value": "", title: w.value, "close-on-click-modal": false, "append-to-body": "", width: h.value, modal: q.value, "modal-penetrable": E.value, fullscreen: T.value, alignCenter: M.value, draggable: k.value, overflow: O.value, class: "amb-super-page-runtime-dialog-view", onOpen: a2[5] || (a2[5] = (a3) => e3.$emit("open")), onOpend: a2[6] || (a2[6] = (a3) => e3.$emit("opend")), onClose: a2[7] || (a2[7] = (e4) => c("close")), onClosed: a2[8] || (a2[8] = (a3) => e3.$emit("closed")) }, { default: n(() => [!x.value && b.value ? (t(), o(s, { key: 0, style: { "min-height": "100px" }, pageCode: b.value, pageRequest: I.value, contentHeight: _.value, isDialog: true }, null, 8, ["pageCode", "pageRequest", "contentHeight"])) : x.value ? (t(), r("iframe", { key: 1, src: V.value, class: "amb-super-page-runtime-dialog-iframe", frameborder: "0", marginwidth: "0", marginheight: "0", width: "100%", allowtransparency: "no" }, null, 8, v)) : i("", true)]), _: 1 }, 8, ["title", "width", "modal", "modal-penetrable", "fullscreen", "alignCenter", "draggable", "overflow"]));
24
26
  };
25
27
  } });
26
28
  export {
27
- v as default
29
+ p as default
28
30
  };