super-page-runtime 2.3.44-sit1 → 2.3.44

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 (70) 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 +122 -122
  3. package/dist/es/components/runtime/utils/events/print-label.js +34 -33
  4. package/dist/es/components/runtime/utils/events/standard-event.js +20 -20
  5. package/dist/es/components/runtime/utils/events/validator-util.js +84 -81
  6. package/dist/es/components/runtime/utils/page-init-util.js +43 -41
  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.vue2.js +3 -3
  35. package/dist/es/components/runtime/views/assemblys/data/bar-code/barcode-runtime.vue2.js +11 -9
  36. package/dist/es/components/runtime/views/assemblys/data/table/main-table-runtime.vue.js +1 -1
  37. package/dist/es/components/runtime/views/assemblys/data/table/table-runtime.vue2.js +1 -1
  38. package/dist/es/components/runtime/views/assemblys/data/tree/tree-runtime.vue2.js +16 -16
  39. package/dist/es/components/runtime/views/assemblys/form/checkbox/checkbox-runtime.vue2.js +3 -3
  40. package/dist/es/components/runtime/views/assemblys/form/common/title-suffix-element.vue.js +3 -3
  41. package/dist/es/components/runtime/views/assemblys/form/custom/custom-runtime.vue2.js +6 -6
  42. package/dist/es/components/runtime/views/assemblys/form/date-picker/datepicker-runtime.vue2.js +22 -22
  43. package/dist/es/components/runtime/views/assemblys/form/dept-tree/depttree-runtime.vue2.js +3 -3
  44. package/dist/es/components/runtime/views/assemblys/form/divider/divider-runtime.vue2.js +3 -3
  45. package/dist/es/components/runtime/views/assemblys/form/file-upload/fileupload-runtime.vue2.js +42 -40
  46. package/dist/es/components/runtime/views/assemblys/form/image-upload/imageupload-runtime.vue2.js +6 -5
  47. package/dist/es/components/runtime/views/assemblys/form/input-number/input-number-runtime.vue2.js +3 -3
  48. package/dist/es/components/runtime/views/assemblys/form/input-text/inputtext-runtime.vue2.js +48 -47
  49. package/dist/es/components/runtime/views/assemblys/form/label/label-runtime.vue2.js +6 -4
  50. package/dist/es/components/runtime/views/assemblys/form/link/link-runtime.vue2.js +9 -7
  51. package/dist/es/components/runtime/views/assemblys/form/radio/radio-runtime.vue2.js +3 -3
  52. package/dist/es/components/runtime/views/assemblys/form/rich-text/richtext-runtime.vue2.js +2 -2
  53. package/dist/es/components/runtime/views/assemblys/form/select/select-runtime.vue2.js +9 -8
  54. package/dist/es/components/runtime/views/assemblys/form/separatelabel/separatelabel-runtime.vue2.js +1 -1
  55. package/dist/es/components/runtime/views/assemblys/form/switch/switch-runtime.vue2.js +3 -3
  56. package/dist/es/components/runtime/views/assemblys/form/tag/tag-runtime.vue2.js +11 -11
  57. package/dist/es/components/runtime/views/assemblys/form/textarea/textarea-runtime.vue2.js +3 -3
  58. package/dist/es/components/runtime/views/assemblys/home-chart-render.vue.js +3 -3
  59. package/dist/es/components/runtime/views/assemblys/object-render.vue.js +11 -9
  60. package/dist/es/components/runtime/views/assemblys/page-bottom.vue.js +2 -2
  61. package/dist/es/components/runtime/views/assemblys/workflow/component/workflow-opinion-box.vue2.js +3 -3
  62. package/dist/es/components/runtime/views/assemblys/workflow/extract-workflow/extract-workflow-runtime-dialog.vue2.js +1 -1
  63. package/dist/es/components/runtime/views/assemblys/workflow/extract-workflow/extract-workflow-runtime.vue2.js +1 -1
  64. package/dist/es/components/runtime/views/assemblys/workflow/workflow-button/workflowbutton-runtime.vue2.js +1 -1
  65. package/dist/es/components/runtime/views/home-chart.vue.js +7 -7
  66. package/dist/es/components/runtime/views/super-page-dialog.vue.js +1 -0
  67. package/dist/es/components/runtime/views/super-page.vue.js +1 -1
  68. package/dist/es/components/runtime/views/super-page.vue2.js +37 -36
  69. package/dist/es/style.css +76 -76
  70. package/package.json +2 -2
@@ -26,9 +26,9 @@ const w = e({ __name: "switch-runtime", props: { pageContext: {}, configure: {}
26
26
  });
27
27
  }), w2({ addRequiredClass: function() {
28
28
  _.value = C();
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)) }, s({ default: f(() => [m(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"])]), _: 2 }, [W.value.tittleShow ? { name: "label", fn: f(() => [p("div", { ref_key: "titleRef", ref: F, style: o({ ...c(I), ...c(T) }), class: "amb-form-item-label" }, d(c(b)(W.value.title)), 5)]), key: "0" } : void 0]), 1032, ["required", "class", "label-width", "style"]);
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)) }, s({ default: f(() => [m(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"])]), _: 2 }, [W.value.tittleShow ? { name: "label", fn: f(() => [p("div", { ref_key: "titleRef", ref: F, style: o({ ...c(I), ...c(T) }), class: "amb-form-item-label" }, d(c(b)(W.value.title)), 5)]), key: "0" } : void 0]), 1032, ["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
- }), (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) {
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) {
30
30
  if (I.value.closable) {
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);
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);
37
37
  }
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"]);
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"]);
40
40
  };
41
41
  } });
42
42
  export {
@@ -18,9 +18,9 @@ const q = e({ __name: "textarea-runtime", props: { pageContext: {}, configure: {
18
18
  });
19
19
  }), q2({ addRequiredClass: function() {
20
20
  z.value = _();
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: W, required: !!E.value.required, class: p(m(N) + (z.value ? " " + z.value : "")), "label-width": E.value.labelWidth, style: s(m(F)) }, f({ default: g(() => [i(l2, { ref_key: "componentRef", ref: A, disabled: "disabled" === E.value.state, readonly: "readonly" === E.value.state, size: E.value.size, clearable: E.value.clearable, placeholder: E.value.placeholder, modelValue: B.value, "onUpdate:modelValue": t2[0] || (t2[0] = (e4) => B.value = e4), rows: E.value.rows ? E.value.rows : 2, maxlength: E.value.maxlength, minlength: E.value.minlength, "show-word-limit": E.value.showInputNum, type: "textarea", onInput: t2[1] || (t2[1] = (t3) => m(k)(t3, e3.pageContext, e3.configure, "input")), onChange: t2[2] || (t2[2] = (t3) => m(k)(t3, e3.pageContext, e3.configure, "change")), onBlur: t2[3] || (t2[3] = (t3) => m(k)(t3, e3.pageContext, e3.configure, "blur")), onFocus: t2[4] || (t2[4] = (t3) => m(k)(t3, e3.pageContext, e3.configure, "focus")), onClick: t2[5] || (t2[5] = (t3) => m(k)(t3, e3.pageContext, e3.configure, "click")) }, null, 8, ["disabled", "readonly", "size", "clearable", "placeholder", "modelValue", "rows", "maxlength", "minlength", "show-word-limit"])]), _: 2 }, [E.value.tittleShow ? { name: "label", fn: g(() => [c("div", { ref_key: "titleRef", ref: G, style: s({ ...m(T), ...m(U) }), class: "amb-form-item-label" }, [E.value.prefixType ? (r(), d(R, { key: 0, pageContext: e3.pageContext, property: E.value }, null, 8, ["pageContext", "property"])) : (r(), u(v, { key: 1 }, [x(y(m(j)(E.value.title)), 1)], 64))], 4)]), key: "0" } : void 0]), 1032, ["required", "class", "label-width", "style"])]);
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: W, required: !!E.value.required, class: p(m(N) + (z.value ? " " + z.value : "")), "label-width": E.value.labelWidth, style: s(m(F)) }, f({ default: g(() => [i(a2, { ref_key: "componentRef", ref: A, disabled: "disabled" === E.value.state, readonly: "readonly" === E.value.state, size: E.value.size, clearable: E.value.clearable, placeholder: E.value.placeholder, modelValue: B.value, "onUpdate:modelValue": l2[0] || (l2[0] = (e3) => B.value = e3), rows: E.value.rows ? E.value.rows : 2, maxlength: E.value.maxlength, minlength: E.value.minlength, "show-word-limit": E.value.showInputNum, type: "textarea", onInput: l2[1] || (l2[1] = (t3) => m(k)(t3, e2.pageContext, e2.configure, "input")), onChange: l2[2] || (l2[2] = (t3) => m(k)(t3, e2.pageContext, e2.configure, "change")), onBlur: l2[3] || (l2[3] = (t3) => m(k)(t3, e2.pageContext, e2.configure, "blur")), onFocus: l2[4] || (l2[4] = (t3) => m(k)(t3, e2.pageContext, e2.configure, "focus")), onClick: l2[5] || (l2[5] = (t3) => m(k)(t3, e2.pageContext, e2.configure, "click")) }, null, 8, ["disabled", "readonly", "size", "clearable", "placeholder", "modelValue", "rows", "maxlength", "minlength", "show-word-limit"])]), _: 2 }, [E.value.tittleShow ? { name: "label", fn: g(() => [c("div", { ref_key: "titleRef", ref: G, style: s({ ...m(T), ...m(U) }), class: "amb-form-item-label" }, [E.value.prefixType ? (r(), d(R, { key: 0, pageContext: e2.pageContext, property: E.value }, null, 8, ["pageContext", "property"])) : (r(), u(v, { key: 1 }, [x(y(m(j)(E.value.title)), 1)], 64))], 4)]), key: "0" } : void 0]), 1032, ["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 (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);
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);
79
79
  };
80
80
  } });
81
81
  export {
@@ -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
@@ -42,10 +42,10 @@ const h = { class: "opinion-box-table-wrapper" }, C = { class: "opinion-table" }
42
42
  }, hide: function() {
43
43
  I.pageContext.workflowOpinion && (W.value = false);
44
44
  } };
45
- return E2(G), (e3, n2) => {
45
+ return E2(G), (n2, o2) => {
46
46
  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) => {
47
+ const l2 = u("el-input");
48
+ return s(), r(p, null, [w("div", { ref_key: "sentinelRef", ref: B, style: { display: "none" } }, null, 512), ((_a = e2.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 = e2.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 = e2.pageContext.workflowOpinion) == null ? void 0 : _c.isRequired) ? (s(), r("span", R, "*")) : f("", true), o2[2] || (o2[2] = g(" 处理意见 ", -1))]), w("td", { class: m(["opinion-input-cell", _.value]) }, [k(l2, { ref_key: "opinionInputRef", ref: L, modelValue: z.value, "onUpdate:modelValue": o2[0] || (o2[0] = (e3) => z.value = e3), autosize: { minRows: 2, maxRows: 4 }, type: "textarea", placeholder: "请输入处理意见", onChange: o2[1] || (o2[1] = (e3) => {
49
49
  I.pageContext.workflowOpinion && (I.pageContext.workflowOpinion.opinion = z.value.trim(), I.pageContext.workflowOpinion.focusOpinionInput = false);
50
50
  }), class: "opinion-input" }, null, 8, ["modelValue"])], 2)])])])])], 4)), [[b, W.value]]) : f("", true)]))], 64);
51
51
  };
@@ -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 }), 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
+ 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"]);
24
24
  };
25
25
  } });
26
26
  export {
@@ -37,7 +37,7 @@ const w = { class: "page-runtime-header-btn" }, V = { class: "dialog-footer" },
37
37
  _(l3).then((e6) => {
38
38
  e6.canExecute && (j.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: 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)])]), _: 1 }), u(o2, { type: "primary", onClick: H }, { default: s(() => [...l2[8] || (l2[8] = [d(" 确定 ", -1)])]), _: 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"])]);
41
41
  };
42
42
  } });
43
43
  export {
@@ -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 {
@@ -10,6 +10,7 @@ const d = ["src"], s = ["src"], g = e({ __name: "super-page-dialog", props: { pa
10
10
  const e4 = JSON.parse(JSON.stringify(v.parentPageEventParams));
11
11
  e4.pageContext && delete e4.pageContext, e4.configureObj && delete e4.configureObj, Object.assign(j.value, e4);
12
12
  } catch (e4) {
13
+ console.error(e4);
13
14
  }
14
15
  null !== w.value && void 0 !== w.value || (w.value = v.parentPageEventParams.id);
15
16
  }
@@ -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-45a38e12"]]);
4
+ const r = p(e, [["__scopeId", "data-v-ea09fd8f"]]);
5
5
  export {
6
6
  r as default
7
7
  };
@@ -1,9 +1,9 @@
1
- import { defineComponent as e, ref as a, getCurrentInstance as l, onMounted as t, onUpdated as o, nextTick as u, onUnmounted as n, resolveDirective as i, withDirectives as s, createElementBlock as r, openBlock as v, unref as p, normalizeStyle as m, normalizeClass as c, createCommentVNode as g, createVNode as f, createBlock as d, createElementVNode as y, Fragment as h, renderList as C, watch as P } from "vue";
1
+ import { defineComponent as e, ref as a, getCurrentInstance as l, onMounted as t, onUpdated as o, nextTick as u, onUnmounted as n, resolveDirective as i, withDirectives as s, createElementBlock as r, openBlock as v, unref as p, normalizeStyle as m, normalizeClass as c, createCommentVNode as g, createVNode as f, createBlock as d, createElementVNode as y, Fragment as C, renderList as h, watch as P } from "vue";
2
2
  import b from "./assemblys/object-render.vue.js";
3
3
  import { updateOptionDatasources as k, updateChartDatasources as j } from "../utils/page-helper-util.js";
4
- import { queryPageDesignWhenPreview as x, queryPageDesignByCode as $, convertToPageContext as T, packageAdditionalMapWithLocationSearch as S, packageAdditionalMapWithRoute as N, packageAdditionalMapWithPageRequest as w } from "../utils/page-init-util.js";
4
+ import { queryPageDesignWhenPreview as x, queryPageDesignByCode as $, convertToPageContext as S, packageAdditionalMapWithLocationSearch as T, packageAdditionalMapWithRoute as N, packageAdditionalMapWithPageRequest as w } from "../utils/page-init-util.js";
5
5
  import { addComponentRef as D, removePageAllRef as q, initComponentRefState as _ } from "../utils/global-refs.js";
6
- import { removeCustomFuncFromWindow as R, handleEvent as F, initPageEvents as I, getCustomFunc as M } from "../utils/events/event-util.js";
6
+ import { removeCustomFuncFromWindow as R, handleEvent as F, initPageEvents as M, getCustomFunc as I } from "../utils/events/event-util.js";
7
7
  import O from "./assemblys/common/export-form-report-dialog.vue.js";
8
8
  import E from "./assemblys/common/task-informition-dialog.vue.js";
9
9
  import A from "./assemblys/common/remove-signer-dialog.vue.js";
@@ -21,23 +21,23 @@ import { useRoute as pe, useRouter as me } from "vue-router";
21
21
  import { jumpToPage as ce } from "agilebuilder-ui/src/utils/jump-page-utils";
22
22
  import { setSessionCache as ge, getUsername as fe } from "agilebuilder-ui/src/utils/auth";
23
23
  import { deepCopy as de, refreshMobileDialogType as ye } from "../utils/common-util.js";
24
- import { isMobileBrowser as he } from "agilebuilder-ui/src/utils/common-util";
25
- import { usePageContextStore as Ce } from "../utils/page-store.js";
24
+ import { isMobileBrowser as Ce } from "agilebuilder-ui/src/utils/common-util";
25
+ import { usePageContextStore as he } from "../utils/page-store.js";
26
26
  import Pe from "agilebuilder-ui/src/store";
27
27
  import be from "./assemblys/common/save-chart-condition-dialog.vue.js";
28
28
  import ke from "../utils/ai-chat-util.js";
29
29
  import je from "./assemblys/page-bottom.vue.js";
30
30
  import xe from "./assemblys/common/event-call-component.vue.js";
31
31
  import { scrollIntoViewWithContainer as $e } from "../utils/anchor-util.js";
32
- const Te = ["element-loading-text"], Se = e({ __name: "super-page", props: { pageCode: { type: String, required: false }, pageVersion: { type: Number, required: false }, pageId: { type: Number, required: false }, dataId: { type: Number, required: false }, pageDesign: { type: Object, required: false }, isTest: { type: Boolean, required: false }, dimensions: { type: String, required: false }, publishVersion: { type: Number, required: false }, taskId: { type: Number, required: false }, pageRequest: { type: Object, required: false }, contentHeight: { type: [String, Number], default: null }, isDialog: { type: Boolean, required: false }, isPreview: { type: Boolean, required: false } }, emits: ["open", "opened", "close", "closed"], setup(e2, { expose: Se2, emit: Ne }) {
33
- const we = Ce(), { t: De } = ie(), qe = e2, _e = a(false), Re = a(""), Fe = { list: "list-page-container", form: "form-page-container" }, Ie = a(null), Me = a([]), Oe = a(""), Ee = a({}), Ae = a(null), Ve = a(null), We = a(false), Be = a(false), Le = a(false), Ue = a(false), Je = a(false), He = a(false), ze = a(null), Qe = a(false), Ge = a([]), Ke = a([]), Xe = a([]), Ye = a(false), Ze = a(false), ea = a(null), aa = a(false), la = a(false), ta = a(null), oa = a(null), ua = a(null), na = a(null);
32
+ const Se = ["element-loading-text"], Te = e({ __name: "super-page", props: { pageCode: { type: String, required: false }, pageVersion: { type: Number, required: false }, pageId: { type: Number, required: false }, dataId: { type: Number, required: false }, pageDesign: { type: Object, required: false }, isTest: { type: Boolean, required: false }, dimensions: { type: String, required: false }, publishVersion: { type: Number, required: false }, taskId: { type: Number, required: false }, pageRequest: { type: Object, required: false }, contentHeight: { type: [String, Number], default: null }, isDialog: { type: Boolean, required: false }, isPreview: { type: Boolean, required: false } }, emits: ["open", "opened", "close", "closed"], setup(e2, { expose: Te2, emit: Ne }) {
33
+ const we = he(), { t: De } = ie(), qe = e2, _e = a(false), Re = a(""), Fe = { list: "list-page-container", form: "form-page-container" }, Me = a(null), Ie = a([]), Oe = a(""), Ee = a({}), Ae = a(null), Ve = a(null), We = a(false), Be = a(false), Le = a(false), Ue = a(false), Je = a(false), He = a(false), ze = a(null), Qe = a(false), Ge = a([]), Ke = a([]), Xe = a([]), Ye = a(false), Ze = a(false), ea = a(null), aa = a(false), la = a(false), ta = a(null), oa = a(null), ua = a(null), na = a(null);
34
34
  let ia = a(null);
35
- const sa = a(null), ra = a(null), va = pe(), pa = a(null), ma = a(0), ca = he();
35
+ const sa = a(null), ra = a(null), va = pe(), pa = a(null), ma = a(0), ca = Ce();
36
36
  let ga, fa;
37
- const da = a(false), ya = a(null), ha = a(false), Ca = a(null);
37
+ const da = a(false), ya = a(null), Ca = a(false), ha = a(null);
38
38
  function Pa(e3) {
39
- const a2 = T(e3);
40
- return a2.isTest = qe.isTest, a2.isTest && qe.dimensions && (a2.dimensions = qe.dimensions), qe.isDialog || (S(a2.entity.request), N(va, a2.entity.request)), w(qe.pageRequest, a2.entity.request), a2;
39
+ const a2 = S(e3);
40
+ return a2.isTest = qe.isTest, a2.isTest && qe.dimensions && (a2.dimensions = qe.dimensions), qe.isDialog || (T(a2.entity.request), N(va, a2.entity.request)), w(qe.pageRequest, a2.entity.request), a2;
41
41
  }
42
42
  function ba(e3) {
43
43
  var _a2;
@@ -50,23 +50,23 @@ const Te = ["element-loading-text"], Se = e({ __name: "super-page", props: { pag
50
50
  l3 && l3.length > 0 && k(e4, l3, void 0);
51
51
  }(ia.value, e3.initOptionConfigs);
52
52
  }, 0), fa = setTimeout(() => {
53
- !function(e4, a3) {
53
+ e3.initChartServiceConfigs, function(e4, a3) {
54
54
  if (!a3 || 0 == a3.length) return;
55
55
  if (e4.initChartData = {}, e4.initChartData.data = de(e4.entity.data), e4.initChartData.page = de(e4.entity.page), a3 && a3.length > 0) {
56
56
  const l3 = a3.filter((e5) => false !== e5.initializationQuery);
57
57
  j(e4, l3, null, true);
58
58
  }
59
59
  }(ia.value, e3.initChartServiceConfigs);
60
- }, 200), ia.value.initDataSources = [], _(ia.value), Me.value = ia.value.items ? ia.value.items : [];
60
+ }, 200), ia.value.initDataSources = [], _(ia.value), Ie.value = ia.value.items ? ia.value.items : [];
61
61
  const l2 = ia.value.runtime ? ia.value.runtime : {};
62
- Oe.value = l2.class, Ee.value = l2.style, I(e3, ia.value), re(ia.value.rules), F(null, ia.value, e3, "beforeload");
62
+ Oe.value = l2.class, Ee.value = l2.style, M(e3, ia.value), re(ia.value.rules), F(null, ia.value, e3, "beforeload");
63
63
  const t2 = ia.value.code;
64
64
  return we.setPageContext(ia.value), ze.value = t2 + "_", W.$on(ze.value + "export-form-report", (e4) => {
65
- Ve.value = e4, sa.value = e4.configureObj, ra.value = e4.pageContext, ha.value = false, We.value = true;
65
+ Ve.value = e4, sa.value = e4.configureObj, ra.value = e4.pageContext, Ca.value = false, We.value = true;
66
66
  }), W.$on(ze.value + "export-pdf-report", (e4) => {
67
- Ve.value = e4, sa.value = e4.configureObj, ra.value = e4.pageContext, ha.value = true, We.value = true;
67
+ Ve.value = e4, sa.value = e4.configureObj, ra.value = e4.pageContext, Ca.value = true, We.value = true;
68
68
  }), W.$on(ze.value + "import-file", (e4) => {
69
- Ve.value = e4, Sa.value.click();
69
+ Ve.value = e4, Ta.value.click();
70
70
  }), W.$on(ze.value + "assign-task", (e4) => {
71
71
  Ve.value = e4, Je.value = true, He.value = false;
72
72
  }), W.$on(ze.value + "copy-task", (e4) => {
@@ -105,6 +105,7 @@ const Te = ["element-loading-text"], Se = e({ __name: "super-page", props: { pag
105
105
  if (l5 && l5.jumpPageUrl) {
106
106
  false !== l5.isNewPage && true !== l5.isNewPage && (l5.isNewPage = true);
107
107
  const e6 = ue(ia), o3 = !!((_a3 = ua.value.props.linkPage) == null ? void 0 : _a3.isNeedId);
108
+ ua.value;
108
109
  let u2 = o3 && a4 ? a4.id : null, n2 = o3 && a4 ? a4.ids : null, i2 = a4 ? a4.selections : [], s2 = a4 ? a4.row : null;
109
110
  if (!s2) if (s2 = {}, i2 && i2.length > 0) s2 = i2.length > 1 ? i2 : i2[0];
110
111
  else {
@@ -137,7 +138,7 @@ const Te = ["element-loading-text"], Se = e({ __name: "super-page", props: { pag
137
138
  }).catch(() => {
138
139
  t5(true);
139
140
  });
140
- } else ne({ showClose: true, type: "error", message: De("superPageRuntimeMessage.popMsg") }), t5(false);
141
+ } else ne({ showClose: true, type: "error", message: De("superPageRuntimeMessage.popMsg") }), console.error("弹框参数缺少customSystem参数,parentPageContext.value.systemCode={}", oa.value.systemCode), t5(false);
141
142
  else t5(true);
142
143
  });
143
144
  })(u2, o2).then((a4) => {
@@ -152,7 +153,7 @@ const Te = ["element-loading-text"], Se = e({ __name: "super-page", props: { pag
152
153
  }(e7);
153
154
  });
154
155
  }
155
- }
156
+ } else console.error("页面配置信息不存在");
156
157
  });
157
158
  }), W.$on(ze.value + "save-chart-condition", (e4) => {
158
159
  da.value = true;
@@ -161,7 +162,7 @@ const Te = ["element-loading-text"], Se = e({ __name: "super-page", props: { pag
161
162
  ia.value.canClick = true, _e.value = false, F(null, ia.value, e4, "load"), $e(we.getAutoAnchorComponentConditions(), ia.value);
162
163
  }), W.$on(ze.value + "event-call-component", (e4) => {
163
164
  var _a3;
164
- (_a3 = Ca.value) == null ? void 0 : _a3.renderComponent(e4.componentName, e4.componentProps);
165
+ (_a3 = ha.value) == null ? void 0 : _a3.renderComponent(e4.componentName, e4.componentProps);
165
166
  }), P(() => ia.value.isRefresh, (e4) => {
166
167
  e4 && (_e.value = true, ia.value.canClick = false, ia.value.clickUuid = null, setTimeout(() => {
167
168
  _e.value = false, ia.value.canClick = true;
@@ -172,7 +173,7 @@ const Te = ["element-loading-text"], Se = e({ __name: "super-page", props: { pag
172
173
  function ja() {
173
174
  u(() => {
174
175
  var _a2, _b;
175
- const e3 = Ie.value.parentNode ? Ie.value.parentNode : Ie.value;
176
+ const e3 = Me.value.parentNode ? Me.value.parentNode : Me.value;
176
177
  if (ia.value && (ia.value.pageRuntimeStyle || (ia.value.pageRuntimeStyle = {}), !ca)) {
177
178
  let a2 = qe.contentHeight;
178
179
  Number(a2) && (a2 += "px");
@@ -188,8 +189,8 @@ const Te = ["element-loading-text"], Se = e({ __name: "super-page", props: { pag
188
189
  function $a() {
189
190
  We.value = false, Ve.value = null;
190
191
  }
191
- function Ta(e3, a2) {
192
- z(Ve.value.pageContext, Ve.value.configureObj, a2, ha.value);
192
+ function Sa(e3, a2) {
193
+ z(Ve.value.pageContext, Ve.value.configureObj, a2, Ca.value);
193
194
  }
194
195
  t(() => {
195
196
  var _a2;
@@ -220,12 +221,12 @@ const Te = ["element-loading-text"], Se = e({ __name: "super-page", props: { pag
220
221
  }();
221
222
  }), o(() => {
222
223
  u(() => {
223
- ia.value && Ie.value && D(ia.value, "-1", Ie);
224
+ ia.value && Me.value && D(ia.value, "-1", Me);
224
225
  });
225
226
  }), n(() => {
226
- q(ia.value), Ae.value && R(Ae.value), W.$off(ze.value + "export-form-report"), W.$off(ze.value + "export-pdf-report"), W.$off(ze.value + "import-file"), W.$off(ze.value + "assign-task"), W.$off(ze.value + "copy-task"), W.$off(ze.value + "add-signer"), W.$off(ze.value + "choose-return-node"), W.$off(ze.value + "remove-signer"), W.$off(ze.value + "prohibit-edit"), W.$off(ze.value + "open-dialog"), W.$off(ze.value + "save-chart-condition"), W.$off("pageLoaded"), ia.value && F(null, ia.value, ia.value, "onUnmounted"), ga && clearTimeout(ga), fa && clearTimeout(fa), pa.value && sessionStorage.removeItem(pa.value);
227
+ q(ia.value), Ae.value && R(Ae.value), W.$off(ze.value + "export-form-report"), W.$off(ze.value + "export-pdf-report"), W.$off(ze.value + "import-file"), W.$off(ze.value + "assign-task"), W.$off(ze.value + "copy-task"), W.$off(ze.value + "add-signer"), W.$off(ze.value + "choose-return-node"), W.$off(ze.value + "remove-signer"), W.$off(ze.value + "prohibit-edit"), W.$off(ze.value + "open-dialog"), W.$off(ze.value + "save-chart-condition"), W.$off("pageLoaded"), ia.value && F(null, ia.value, ia.value, "onUnmounted"), ga && clearTimeout(ga), fa && clearTimeout(fa), pa.value;
227
228
  });
228
- const Sa = a(null);
229
+ const Ta = a(null);
229
230
  function Na(e3) {
230
231
  true === Be.value && (Be.value = false, G(Ve.value, e3)), true === Ue.value && (Ue.value = false, K(Ve.value, e3)), true === Je.value && (Je.value = false, X(Ve.value, e3)), true === Le.value && (Le.value = false, Y(Ve.value, e3));
231
232
  }
@@ -262,7 +263,7 @@ const Te = ["element-loading-text"], Se = e({ __name: "super-page", props: { pag
262
263
  a2.apply(a2, l3);
263
264
  } else !function(e4, a3, l3) {
264
265
  if (e4) {
265
- const t3 = M(oa.value, e4);
266
+ const t3 = I(oa.value, e4);
266
267
  t3 && t3.apply(t3, [{ pageContext: ia.value, parentPageContext: oa.value, parentConfigureObj: l3, jumpPageSetting: ta.value, columnProp: a3 }]);
267
268
  }
268
269
  }(a2, i2, n2);
@@ -273,12 +274,12 @@ const Te = ["element-loading-text"], Se = e({ __name: "super-page", props: { pag
273
274
  ne({ showClose: true, type: "success", message: De("superPageRuntimeMessage.successfulSave") }), ya.value.refreshConditionList();
274
275
  });
275
276
  }
276
- function Ia(e3) {
277
+ function Ma(e3) {
277
278
  const a2 = e3.queryCondition;
278
279
  let l2 = {};
279
280
  a2 && (l2 = JSON.parse(a2)), l2 && l2.data && Object.assign(ia.value.entity.data, l2.data), l2 && l2.page && Object.assign(ia.value.entity.page, l2.page), da.value = false;
280
281
  }
281
- return Se2({ pickFileDone: function(e3) {
282
+ return Te2({ pickFileDone: function(e3) {
282
283
  let a2 = e3.componentId, l2 = e3.listCode;
283
284
  (a2 || l2) && (l2 ? W.$emit(l2 + "-pickFileDone", e3) : W.$emit(a2 + "-pickFileDone", e3));
284
285
  }, uploadFileDone: function(e3) {
@@ -295,16 +296,16 @@ const Te = ["element-loading-text"], Se = e({ __name: "super-page", props: { pag
295
296
  } }), (e3, a2) => {
296
297
  var _a2, _b, _c, _d;
297
298
  const l2 = i("loading");
298
- return s((v(), r("div", { class: c(["app-container runtime-page-container", [Re.value]]), style: m((_a2 = p(ia)) == null ? void 0 : _a2.pageRuntimeStyle), "element-loading-text": ((_b = p(ia)) == null ? void 0 : _b.loadingText) ? (_c = p(ia)) == null ? void 0 : _c.loadingText : p(De)("superPageRuntimeMessage.pageDefaultLoadingText") }, [aa.value ? (v(), r("div", { ref_key: "thisRef", ref: Ie, key: ma.value, class: c(["runtime-page-container-view", Oe.value]), style: m(Ee.value) }, [(v(true), r(h, null, C(Me.value, (e4, a3) => (v(), d(b, { key: e4.uuid, configure: e4, pageContext: p(ia) }, null, 8, ["configure", "pageContext"]))), 128)), f(je, { pageContext: p(ia) }, null, 8, ["pageContext"]), We.value ? (v(), d(O, { key: 0, configure: sa.value, pageContext: ra.value, onClose: $a, onExport: Ta }, null, 8, ["configure", "pageContext"])) : g("", true), y("input", { ref_key: "_selectFile_", ref: Sa, type: "file", name: "_selectFile_", style: { display: "none" }, onChange: a2[0] || (a2[0] = (e4) => function() {
299
+ return s((v(), r("div", { class: c(["app-container runtime-page-container", [Re.value]]), style: m((_a2 = p(ia)) == null ? void 0 : _a2.pageRuntimeStyle), "element-loading-text": ((_b = p(ia)) == null ? void 0 : _b.loadingText) ? (_c = p(ia)) == null ? void 0 : _c.loadingText : p(De)("superPageRuntimeMessage.pageDefaultLoadingText") }, [aa.value ? (v(), r("div", { ref_key: "thisRef", ref: Me, key: ma.value, class: c(["runtime-page-container-view", Oe.value]), style: m(Ee.value) }, [(v(true), r(C, null, h(Ie.value, (e4, a3) => (v(), d(b, { key: e4.uuid, configure: e4, pageContext: p(ia) }, null, 8, ["configure", "pageContext"]))), 128)), f(je, { pageContext: p(ia) }, null, 8, ["pageContext"]), We.value ? (v(), d(O, { key: 0, configure: sa.value, pageContext: ra.value, onClose: $a, onExport: Sa }, null, 8, ["configure", "pageContext"])) : g("", true), y("input", { ref_key: "_selectFile_", ref: Ta, type: "file", name: "_selectFile_", style: { display: "none" }, onChange: a2[0] || (a2[0] = (e4) => function() {
299
300
  if (Ve.value) {
300
- if (!Sa.value) return;
301
- if ("" === Sa.value.value || null === Sa.value.value) return;
302
- const e5 = Sa.value.files[0];
303
- e5 ? (Sa.value.value = null, Q(Ve.value, e5)) : ne({ showClose: true, type: "warning", message: De("superPageRuntimeMessage.noFileSelected") });
301
+ if (!Ta.value) return;
302
+ if ("" === Ta.value.value || null === Ta.value.value) return;
303
+ const e5 = Ta.value.files[0];
304
+ e5 ? (Ta.value.value = null, Q(Ve.value, e5)) : ne({ showClose: true, type: "warning", message: De("superPageRuntimeMessage.noFileSelected") });
304
305
  }
305
- }()) }, null, 544), Be.value || Ue.value || Je.value || Le.value ? (v(), d(p(se), { key: 1, width: "60%", multiple: He.value, onClose: Na }, null, 8, ["multiple"])) : g("", true), Qe.value ? (v(), d(E, { key: 2, "task-informitions": Ge.value, onClose: a2[1] || (a2[1] = (e4) => Qe.value = false), onResult: wa }, null, 8, ["task-informitions"])) : g("", true), Ye.value ? (v(), d(A, { key: 3, "task-id": ea.value, "active-tasks": Ke.value, onClose: a2[2] || (a2[2] = (e4) => Ye.value = false), onResult: Da }, null, 8, ["task-id", "active-tasks"])) : g("", true), Ze.value ? (v(), d(V, { key: 4, "task-id": ea.value, "transactor-info": Xe.value, onClose: a2[3] || (a2[3] = (e4) => Ze.value = false), onResult: qa }, null, 8, ["task-id", "transactor-info"])) : g("", true), la.value ? (v(), d(ve, { key: 5, parentPageContext: oa.value, parentPageEventParams: na.value, jumpPageSetting: ta.value, onClose: a2[4] || (a2[4] = (e4) => Ra()) }, null, 8, ["parentPageContext", "parentPageEventParams", "jumpPageSetting"])) : g("", true), da.value ? (v(), d(be, { key: 6, ref_key: "chartCondtionRef", ref: ya, pageContext: p(ia), onClose: a2[5] || (a2[5] = (e4) => da.value = false), onSave: Fa, onConfirm: Ia }, null, 8, ["pageContext"])) : g("", true), f(xe, { ref_key: "eventCallComponentRef", ref: Ca }, null, 512)], 6)) : g("", true)], 14, Te)), [[l2, _e.value || ((_d = p(ia)) == null ? void 0 : _d.isLoading)]]);
306
+ }()) }, null, 544), Be.value || Ue.value || Je.value || Le.value ? (v(), d(p(se), { key: 1, width: "60%", multiple: He.value, onClose: Na }, null, 8, ["multiple"])) : g("", true), Qe.value ? (v(), d(E, { key: 2, "task-informitions": Ge.value, onClose: a2[1] || (a2[1] = (e4) => Qe.value = false), onResult: wa }, null, 8, ["task-informitions"])) : g("", true), Ye.value ? (v(), d(A, { key: 3, "task-id": ea.value, "active-tasks": Ke.value, onClose: a2[2] || (a2[2] = (e4) => Ye.value = false), onResult: Da }, null, 8, ["task-id", "active-tasks"])) : g("", true), Ze.value ? (v(), d(V, { key: 4, "task-id": ea.value, "transactor-info": Xe.value, onClose: a2[3] || (a2[3] = (e4) => Ze.value = false), onResult: qa }, null, 8, ["task-id", "transactor-info"])) : g("", true), la.value ? (v(), d(ve, { key: 5, parentPageContext: oa.value, parentPageEventParams: na.value, jumpPageSetting: ta.value, onClose: a2[4] || (a2[4] = (e4) => Ra()) }, null, 8, ["parentPageContext", "parentPageEventParams", "jumpPageSetting"])) : g("", true), da.value ? (v(), d(be, { key: 6, ref_key: "chartCondtionRef", ref: ya, pageContext: p(ia), onClose: a2[5] || (a2[5] = (e4) => da.value = false), onSave: Fa, onConfirm: Ma }, null, 8, ["pageContext"])) : g("", true), f(xe, { ref_key: "eventCallComponentRef", ref: ha }, null, 512)], 6)) : g("", true)], 14, Se)), [[l2, _e.value || ((_d = p(ia)) == null ? void 0 : _d.isLoading)]]);
306
307
  };
307
308
  } });
308
309
  export {
309
- Se as default
310
+ Te as default
310
311
  };