super-page-runtime 2.2.26 → 2.2.29-tmp1

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 (42) hide show
  1. package/dist/es/components/runtime/utils/api/page-expose-util.js +56 -56
  2. package/dist/es/components/runtime/utils/barcode-util.js +5 -5
  3. package/dist/es/components/runtime/utils/charts/chart-pie-util.js +46 -45
  4. package/dist/es/components/runtime/utils/charts/chart-scatter-util.js +16 -14
  5. package/dist/es/components/runtime/utils/charts/chart-util.js +4 -2
  6. package/dist/es/components/runtime/utils/events/event-util.js +113 -113
  7. package/dist/es/components/runtime/utils/events/print-label.js +38 -37
  8. package/dist/es/components/runtime/utils/events/standard-event.js +443 -431
  9. package/dist/es/components/runtime/utils/events/validator-util.js +30 -30
  10. package/dist/es/components/runtime/utils/form/scan-util.js +4 -3
  11. package/dist/es/components/runtime/utils/page-helper-util.js +215 -214
  12. package/dist/es/components/runtime/utils/page-init-util.js +46 -42
  13. package/dist/es/components/runtime/utils/page-store.js +1 -1
  14. package/dist/es/components/runtime/utils/table-utils.js +23 -23
  15. package/dist/es/components/runtime/views/assemblys/chart/column-line/column-line-runtime.vue2.js +16 -12
  16. package/dist/es/components/runtime/views/assemblys/chart/common/common-chart-header-group.vue.js +10 -6
  17. package/dist/es/components/runtime/views/assemblys/chart/common/common-chart-header.vue.js +11 -9
  18. package/dist/es/components/runtime/views/assemblys/chart/gauge/gauge-runtime.vue2.js +13 -12
  19. package/dist/es/components/runtime/views/assemblys/chart/pie/pie-runtime.vue2.js +14 -13
  20. package/dist/es/components/runtime/views/assemblys/chart/radar/radar-runtime.vue2.js +15 -14
  21. package/dist/es/components/runtime/views/assemblys/chart/scatter/scatter-runtime.vue2.js +17 -16
  22. package/dist/es/components/runtime/views/assemblys/chart/table/chart-table-util.js +12 -7
  23. package/dist/es/components/runtime/views/assemblys/chart/table/table-runtime.vue2.js +16 -15
  24. package/dist/es/components/runtime/views/assemblys/common/export-form-report-dialog.vue.js +26 -22
  25. package/dist/es/components/runtime/views/assemblys/container/tools/tools-runtime.vue2.js +3 -3
  26. package/dist/es/components/runtime/views/assemblys/data/bar-code/barcode-runtime.vue2.js +12 -10
  27. package/dist/es/components/runtime/views/assemblys/data/table/main-table-runtime.vue.js +114 -111
  28. package/dist/es/components/runtime/views/assemblys/data/table/sub-table-runtime.vue.js +139 -136
  29. package/dist/es/components/runtime/views/assemblys/form/checkbox/checkbox-runtime.vue2.js +1 -0
  30. package/dist/es/components/runtime/views/assemblys/form/custom/custom-runtime.vue2.js +29 -29
  31. package/dist/es/components/runtime/views/assemblys/form/date-picker/datepicker-runtime.vue2.js +40 -38
  32. package/dist/es/components/runtime/views/assemblys/form/file-upload/fileupload-runtime.vue2.js +22 -22
  33. package/dist/es/components/runtime/views/assemblys/form/input-text/inputtext-runtime.vue2.js +39 -38
  34. package/dist/es/components/runtime/views/assemblys/form/label/label-runtime.vue2.js +8 -6
  35. package/dist/es/components/runtime/views/assemblys/form/link/link-runtime.vue2.js +10 -9
  36. package/dist/es/components/runtime/views/assemblys/form/radio/radio-runtime.vue2.js +1 -0
  37. package/dist/es/components/runtime/views/assemblys/form/rich-text/richtext-runtime.vue2.js +1 -0
  38. package/dist/es/components/runtime/views/assemblys/form/select/select-runtime.vue2.js +8 -8
  39. package/dist/es/components/runtime/views/home-chart.vue.js +10 -9
  40. package/dist/es/components/runtime/views/super-page-dialog.vue.js +13 -12
  41. package/dist/es/components/runtime/views/super-page.vue.js +134 -132
  42. package/package.json +2 -2
@@ -1,25 +1,27 @@
1
- import { defineComponent as e, ref as a, onMounted as l, nextTick as t, computed as r, resolveComponent as o, createBlock as u, openBlock as n, normalizeStyle as i, normalizeClass as p, unref as s, withCtx as c, createElementBlock as d, createCommentVNode as v, Fragment as f, createTextVNode as g, toDisplayString as m } from "vue";
1
+ import { defineComponent as e, ref as a, onMounted as l, nextTick as t, computed as o, resolveComponent as r, createBlock as u, openBlock as n, normalizeStyle as i, normalizeClass as p, unref as s, withCtx as c, createElementBlock as d, createCommentVNode as v, Fragment as f, createTextVNode as g, toDisplayString as m } from "vue";
2
2
  import { getFormModelFields as h } from "../../../../utils/page-init-util.js";
3
3
  import { getDateShortCuts as y } from "../../../../utils/form/date-shortcuts.js";
4
4
  import { getValueFromVariable as C, setVariableValue as x, getVariableValue as b } from "../../../../utils/page-helper-util.js";
5
- import { handleAfterInitEvent as k, getCustomFunc as F, handleFormEvent as T } from "../../../../utils/events/event-util.js";
5
+ import { handleAfterInitEvent as F, getCustomFunc as k, handleFormEvent as T } from "../../../../utils/events/event-util.js";
6
6
  import V from "../common/title-suffix-element.vue.js";
7
7
  import j from "dayjs";
8
- import { $t as R } from "../../../../utils/i18n-util.js";
9
- const _ = e({ __name: "datepicker-runtime", props: { pageContext: {}, configure: {} }, setup(e2) {
10
- const _2 = e2, z = _2.pageContext.entity ? _2.pageContext.entity : {}, P = _2.configure.runtime ? _2.configure.runtime : {}, w = P.style, A = P.class, D = P.headerStyle, S = P.titleExceedStyle, q = a(P.props ? P.props : {});
11
- let I = h(_2.pageContext, _2.configure, q.value.prop), B = null, U = false;
12
- if (q.value.dateType && q.value.dateType.includes("range")) {
13
- U = true;
14
- let e3 = q.value.prop2;
15
- e3 && e3.startsWith("${") || (e3 = "${page." + _2.configure.uuid + "-2}");
16
- const a2 = C(z, e3, null);
17
- if (e3 = e3.substring(2, e3.length - 1), B = e3.split("."), !(a2 || z.data && (z.data.id || z.data.ID)) && q.value.defaultValue2) {
18
- const e4 = C(z, q.value.defaultValue2);
19
- x(z, B, e4);
8
+ import { $t as P } from "../../../../utils/i18n-util.js";
9
+ const R = e({ __name: "datepicker-runtime", props: { pageContext: {}, configure: {} }, setup(e2) {
10
+ const R2 = e2, _ = R2.pageContext.entity ? R2.pageContext.entity : {}, z = R2.configure.runtime ? R2.configure.runtime : {}, w = z.style, A = z.class, D = z.headerStyle, S = z.titleExceedStyle, $ = a(z.props ? z.props : {});
11
+ let q = h(R2.pageContext, R2.configure, $.value.prop);
12
+ console.log("designProperty", $);
13
+ let I = null, B = false;
14
+ if ($.value.dateType && $.value.dateType.includes("range")) {
15
+ B = true;
16
+ let e3 = $.value.prop2;
17
+ e3 && e3.startsWith("${") || (e3 = "${page." + R2.configure.uuid + "-2}");
18
+ const a2 = C(_, e3, null);
19
+ if (e3 = e3.substring(2, e3.length - 1), I = e3.split("."), !(a2 || _.data && (_.data.id || _.data.ID)) && $.value.defaultValue2) {
20
+ const e4 = C(_, $.value.defaultValue2);
21
+ x(_, I, e4);
20
22
  }
21
23
  }
22
- const W = a(null), $ = a(null), E = a(null);
24
+ const U = a(null), W = a(null), E = a(null);
23
25
  function O(e3, a2) {
24
26
  if (!e3) return e3;
25
27
  if (a2) try {
@@ -27,39 +29,39 @@ const _ = e({ __name: "datepicker-runtime", props: { pageContext: {}, configure:
27
29
  let t2 = null;
28
30
  return t2 = "x" === a2 ? l2.toDate().getTime() : j(e3).format(a2), t2;
29
31
  } catch (a3) {
30
- return e3;
32
+ return console.error("日期值格式化错误", a3), console.error(`value: ${e3} ,valueFormat: ${$.value.valueFormat}`), e3;
31
33
  }
32
34
  return e3;
33
35
  }
34
36
  if (l(() => {
35
37
  t(() => {
36
38
  const e3 = G.value;
37
- k(e3, _2.pageContext, _2.configure, { formItemRef: W.value, componentRef: $.value, titleRef: E.value, value: e3, entity: _2.pageContext.entity.data, pageData: _2.pageContext.entity.page });
39
+ F(e3, R2.pageContext, R2.configure, { formItemRef: U.value, componentRef: W.value, titleRef: E.value, value: e3, entity: R2.pageContext.entity.data, pageData: R2.pageContext.entity.page });
38
40
  });
39
- }), I) {
40
- const e3 = b(z, I), a2 = O(e3, q.value.valueFormat);
41
- e3 !== a2 && x(z, I, a2);
41
+ }), q) {
42
+ const e3 = b(_, q), a2 = O(e3, $.value.valueFormat);
43
+ e3 !== a2 && x(_, q, a2);
42
44
  }
43
- if (B) {
44
- const e3 = b(z, B), a2 = O(e3, q.value.valueFormat);
45
- e3 !== a2 && x(z, B, a2);
45
+ if (I) {
46
+ const e3 = b(_, I), a2 = O(e3, $.value.valueFormat);
47
+ e3 !== a2 && x(_, I, a2);
46
48
  }
47
- const G = r({ get() {
48
- if (U) {
49
+ const G = o({ get() {
50
+ if (B) {
49
51
  const e3 = [];
50
- let a2 = b(z, I);
51
- e3.push(O(a2, q.value.valueFormat));
52
- let l2 = b(z, B);
53
- return e3.push(O(l2, q.value.valueFormat)), e3;
52
+ let a2 = b(_, q);
53
+ e3.push(O(a2, $.value.valueFormat));
54
+ let l2 = b(_, I);
55
+ return e3.push(O(l2, $.value.valueFormat)), e3;
54
56
  }
55
- return O(b(z, I), q.value.valueFormat);
57
+ return O(b(_, q), $.value.valueFormat);
56
58
  }, set(e3) {
57
- U ? Array.isArray(e3) ? (x(z, I, e3[0]), x(z, B, e3[1])) : null === e3 && (x(z, I, null), x(z, B, null)) : x(z, I, e3);
58
- } }), H = a(y(q.value.dateScopeDetails, q.value.sourceType, q.value.dateType));
59
- if (q.value.shortcutsFunc) {
60
- const e3 = F(_2.pageContext, q.value.shortcutsFunc);
59
+ B ? Array.isArray(e3) ? (x(_, q, e3[0]), x(_, I, e3[1])) : null === e3 && (x(_, q, null), x(_, I, null)) : x(_, q, e3);
60
+ } }), H = a(y($.value.dateScopeDetails, $.value.sourceType, $.value.dateType));
61
+ if ($.value.shortcutsFunc) {
62
+ const e3 = k(R2.pageContext, $.value.shortcutsFunc);
61
63
  if (e3) {
62
- let a2 = e3.apply(e3, [{ pageContext: _2.pageContext, configureObj: _2.configure }]);
64
+ let a2 = e3.apply(e3, [{ pageContext: R2.pageContext, configureObj: R2.configure }]);
63
65
  if (a2) {
64
66
  Array.isArray(a2) || (a2 = [a2]), H.value || (H.value = []);
65
67
  for (let e4 of a2) e4.text && e4.value && H.value.push(e4);
@@ -67,10 +69,10 @@ const _ = e({ __name: "datepicker-runtime", props: { pageContext: {}, configure:
67
69
  }
68
70
  }
69
71
  return (e3, a2) => {
70
- const l2 = o("el-time-picker"), t2 = o("el-date-picker"), r2 = o("el-form-item");
71
- return n(), u(r2, { ref_key: "formItemRef", ref: W, required: q.value.required, class: p(s(A)), "label-width": q.value.labelWidth, style: i(s(w)) }, { label: c(() => [q.value.tittleShow ? (n(), d("div", { key: 0, ref_key: "titleRef", ref: E, style: i({ ...s(D), ...s(S) }) }, [q.value.prefixType ? (n(), u(V, { key: 0, pageContext: e3.pageContext, property: q.value }, null, 8, ["pageContext", "property"])) : (n(), d(f, { key: 1 }, [g(m(s(R)(q.value.title)), 1)], 64))], 4)) : v("", true)]), default: c(() => ["time" == q.value.dateType || "timerange" == q.value.dateType ? (n(), u(l2, { key: 0, ref_key: "componentRef", ref: $, "is-range": "timerange" == q.value.dateType, style: { width: "100%" }, "range-separator": "-", clearable: q.value.clearable, disabled: "disabled" === q.value.state, readonly: "readonly" === q.value.state, size: q.value.size, placeholder: q.value.placeholder, "start-placeholder": q.value.placeholder, "end-placeholder": q.value.endPlaceholder ? q.value.endPlaceholder : q.value.placeholder, format: q.value.format, "value-format": q.value.valueFormat, modelValue: G.value, "onUpdate:modelValue": a2[0] || (a2[0] = (e4) => G.value = e4), shortcuts: H.value, type: q.value.dateType, onChange: a2[1] || (a2[1] = (a3) => s(T)(a3, e3.pageContext, e3.configure, "change")), onBlur: a2[2] || (a2[2] = (a3) => s(T)(a3, e3.pageContext, e3.configure, "blur")), onFocus: a2[3] || (a2[3] = (a3) => s(T)(a3, e3.pageContext, e3.configure, "focus")), onVisibleChange: a2[4] || (a2[4] = (a3) => s(T)(a3, e3.pageContext, e3.configure, "visible-change")), onPanelChange: a2[5] || (a2[5] = (a3) => s(T)(a3, e3.pageContext, e3.configure, "panel-change")), onClear: a2[6] || (a2[6] = (a3) => s(T)(a3, e3.pageContext, e3.configure, "clear")) }, null, 8, ["is-range", "clearable", "disabled", "readonly", "size", "placeholder", "start-placeholder", "end-placeholder", "format", "value-format", "modelValue", "shortcuts", "type"])) : (n(), u(t2, { key: 1, ref_key: "componentRef", ref: $, clearable: q.value.clearable, style: { width: "100%" }, disabled: "disabled" === q.value.state, readonly: "readonly" === q.value.state, size: q.value.size, placeholder: q.value.placeholder, "start-placeholder": q.value.placeholder, "end-placeholder": q.value.endPlaceholder ? q.value.endPlaceholder : q.value.placeholder, format: q.value.format, "value-format": q.value.valueFormat, modelValue: G.value, "onUpdate:modelValue": a2[7] || (a2[7] = (e4) => G.value = e4), shortcuts: H.value, type: q.value.dateType, onChange: a2[8] || (a2[8] = (a3) => s(T)(a3, e3.pageContext, e3.configure, "change")), onBlur: a2[9] || (a2[9] = (a3) => s(T)(a3, e3.pageContext, e3.configure, "blur")), onFocus: a2[10] || (a2[10] = (a3) => s(T)(a3, e3.pageContext, e3.configure, "focus")), onVisibleChange: a2[11] || (a2[11] = (a3) => s(T)(a3, e3.pageContext, e3.configure, "visible-change")), onPanelChange: a2[12] || (a2[12] = (a3) => s(T)(a3, e3.pageContext, e3.configure, "panel-change")), onClear: a2[13] || (a2[13] = (a3) => s(T)(a3, e3.pageContext, e3.configure, "clear")) }, null, 8, ["clearable", "disabled", "readonly", "size", "placeholder", "start-placeholder", "end-placeholder", "format", "value-format", "modelValue", "shortcuts", "type"]))]), _: 1 }, 8, ["required", "class", "label-width", "style"]);
72
+ const l2 = r("el-time-picker"), t2 = r("el-date-picker"), o2 = r("el-form-item");
73
+ return n(), u(o2, { ref_key: "formItemRef", ref: U, required: $.value.required, class: p(s(A)), "label-width": $.value.labelWidth, style: i(s(w)) }, { label: c(() => [$.value.tittleShow ? (n(), d("div", { key: 0, ref_key: "titleRef", ref: E, style: i({ ...s(D), ...s(S) }) }, [$.value.prefixType ? (n(), u(V, { key: 0, pageContext: e3.pageContext, property: $.value }, null, 8, ["pageContext", "property"])) : (n(), d(f, { key: 1 }, [g(m(s(P)($.value.title)), 1)], 64))], 4)) : v("", true)]), default: c(() => ["time" == $.value.dateType || "timerange" == $.value.dateType ? (n(), u(l2, { key: 0, ref_key: "componentRef", ref: W, "is-range": "timerange" == $.value.dateType, style: { width: "100%" }, "range-separator": "-", clearable: $.value.clearable, disabled: "disabled" === $.value.state, readonly: "readonly" === $.value.state, size: $.value.size, placeholder: $.value.placeholder, "start-placeholder": $.value.placeholder, "end-placeholder": $.value.endPlaceholder ? $.value.endPlaceholder : $.value.placeholder, format: $.value.format, "value-format": $.value.valueFormat, modelValue: G.value, "onUpdate:modelValue": a2[0] || (a2[0] = (e4) => G.value = e4), shortcuts: H.value, type: $.value.dateType, onChange: a2[1] || (a2[1] = (a3) => s(T)(a3, e3.pageContext, e3.configure, "change")), onBlur: a2[2] || (a2[2] = (a3) => s(T)(a3, e3.pageContext, e3.configure, "blur")), onFocus: a2[3] || (a2[3] = (a3) => s(T)(a3, e3.pageContext, e3.configure, "focus")), onVisibleChange: a2[4] || (a2[4] = (a3) => s(T)(a3, e3.pageContext, e3.configure, "visible-change")), onPanelChange: a2[5] || (a2[5] = (a3) => s(T)(a3, e3.pageContext, e3.configure, "panel-change")), onClear: a2[6] || (a2[6] = (a3) => s(T)(a3, e3.pageContext, e3.configure, "clear")) }, null, 8, ["is-range", "clearable", "disabled", "readonly", "size", "placeholder", "start-placeholder", "end-placeholder", "format", "value-format", "modelValue", "shortcuts", "type"])) : (n(), u(t2, { key: 1, ref_key: "componentRef", ref: W, clearable: $.value.clearable, style: { width: "100%" }, disabled: "disabled" === $.value.state, readonly: "readonly" === $.value.state, size: $.value.size, placeholder: $.value.placeholder, "start-placeholder": $.value.placeholder, "end-placeholder": $.value.endPlaceholder ? $.value.endPlaceholder : $.value.placeholder, format: $.value.format, "value-format": $.value.valueFormat, modelValue: G.value, "onUpdate:modelValue": a2[7] || (a2[7] = (e4) => G.value = e4), shortcuts: H.value, type: $.value.dateType, onChange: a2[8] || (a2[8] = (a3) => s(T)(a3, e3.pageContext, e3.configure, "change")), onBlur: a2[9] || (a2[9] = (a3) => s(T)(a3, e3.pageContext, e3.configure, "blur")), onFocus: a2[10] || (a2[10] = (a3) => s(T)(a3, e3.pageContext, e3.configure, "focus")), onVisibleChange: a2[11] || (a2[11] = (a3) => s(T)(a3, e3.pageContext, e3.configure, "visible-change")), onPanelChange: a2[12] || (a2[12] = (a3) => s(T)(a3, e3.pageContext, e3.configure, "panel-change")), onClear: a2[13] || (a2[13] = (a3) => s(T)(a3, e3.pageContext, e3.configure, "clear")) }, null, 8, ["clearable", "disabled", "readonly", "size", "placeholder", "start-placeholder", "end-placeholder", "format", "value-format", "modelValue", "shortcuts", "type"]))]), _: 1 }, 8, ["required", "class", "label-width", "style"]);
72
74
  };
73
75
  } });
74
76
  export {
75
- _ as default
77
+ R as default
76
78
  };
@@ -1,23 +1,23 @@
1
- import { defineComponent as e, ref as l, onMounted as t, nextTick as i, onUnmounted as o, resolveComponent as a, createBlock as s, createCommentVNode as u, openBlock as n, normalizeStyle as p, normalizeClass as r, unref as m, withCtx as f, createElementBlock as v, toDisplayString as c } from "vue";
1
+ import { defineComponent as e, ref as l, onMounted as t, nextTick as o, onUnmounted as i, resolveComponent as a, createBlock as s, createCommentVNode as u, openBlock as n, normalizeStyle as p, normalizeClass as r, unref as m, withCtx as f, createElementBlock as c, toDisplayString as v } from "vue";
2
2
  import { getVariableValue as d, setVariableValue as h } from "../../../../utils/page-helper-util.js";
3
3
  import { handleAfterInitEvent as y, fileUploadBeforeUpload as g } from "../../../../utils/events/event-util.js";
4
4
  import C from "agilebuilder-ui/src/utils/request";
5
5
  import { FsUploadNew as x } from "agilebuilder-ui";
6
6
  import b from "../../../../utils/eventBus.js";
7
7
  import { $t as k } from "../../../../utils/i18n-util.js";
8
- const _ = e({ __name: "fileupload-runtime", props: { pageContext: {}, configure: {} }, setup(e2) {
9
- const _2 = e2, w = _2.configure.runtime ? _2.configure.runtime : {}, P = l(w.props ? w.props : {}), j = w.style, R = w.class, T = w.headerStyle, z = w.titleExceedStyle, I = _2.pageContext.entity ? _2.pageContext.entity : {}, O = _2.configure.props.base ? _2.configure.props.base : {}, S = E(O.prop), F = E(O.propName), N = _2.pageContext.code, q = l(S ? N + "__" + S.join("__") : null), D = d(I, S), U = l(null), $ = l(false), W = l([]), B = l({});
10
- if (D) {
11
- const e3 = D.split(",");
8
+ const P = e({ __name: "fileupload-runtime", props: { pageContext: {}, configure: {} }, setup(e2) {
9
+ const P2 = e2, _ = P2.configure.runtime ? P2.configure.runtime : {}, w = l(_.props ? _.props : {}), j = _.style, I = _.class, R = _.headerStyle, T = _.titleExceedStyle, z = P2.pageContext.entity ? P2.pageContext.entity : {}, F = P2.configure.props.base ? P2.configure.props.base : {}, O = E(F.prop), S = E(F.propName), D = P2.pageContext.code, N = l(O ? D + "__" + O.join("__") : null), q = d(z, O), U = l(null), $ = l(false), W = l([]), B = l({});
10
+ if (q) {
11
+ const e3 = q.split(",");
12
12
  if (e3.length > 0) {
13
- const l2 = _2.pageContext.backendUrl;
13
+ const l2 = P2.pageContext.backendUrl;
14
14
  C.post(l2 + "/common/fs-upload/search-file-names", e3).then((l3) => {
15
15
  const t2 = [];
16
- for (let i2 = 0; i2 < e3.length; i2++) {
17
- const o2 = e3[i2];
18
- t2.push(l3[o2]), W.value.push({ showName: l3[o2], serverPath: o2 });
16
+ for (let o2 = 0; o2 < e3.length; o2++) {
17
+ const i2 = e3[o2];
18
+ t2.push(l3[i2]), W.value.push({ showName: l3[i2], serverPath: i2 });
19
19
  }
20
- "input" === P.value.displayType && (B.value.showName = t2.join(","), B.value.serverPath = e3.join(","));
20
+ "input" === w.value.displayType && (B.value.showName = t2.join(","), B.value.serverPath = e3.join(","));
21
21
  }).finally(() => {
22
22
  $.value = true;
23
23
  });
@@ -35,27 +35,27 @@ const _ = e({ __name: "fileupload-runtime", props: { pageContext: {}, configure:
35
35
  J();
36
36
  }, J = () => {
37
37
  const e3 = [], l2 = [];
38
- if (P.value.limit && W.value.length > P.value.limit) {
39
- const e4 = W.value.length - P.value.limit;
38
+ if (w.value.limit && W.value.length > w.value.limit) {
39
+ const e4 = W.value.length - w.value.limit;
40
40
  for (let l3 = 0; l3 < e4; l3++) W.value.shift();
41
41
  }
42
42
  for (let t2 = 0; t2 < W.value.length; t2++) e3.push(W.value[t2].showName), l2.push(W.value[t2].serverPath);
43
- h(_2.pageContext.entity, S, l2.join(",")), h(_2.pageContext.entity, F, e3.join(","));
43
+ h(P2.pageContext.entity, O, l2.join(",")), h(P2.pageContext.entity, S, e3.join(","));
44
44
  }, K = l(null), L = l(null);
45
45
  return t(() => {
46
- b.$on(q.value + "-pickFileDone", (e3) => {
47
- U.value.pickFileDone(e3);
48
- }), i(() => {
49
- const e3 = d(I, S), l2 = { showName: d(I, F), serverPath: e3 };
50
- y(l2, _2.pageContext, _2.configure, { formItemRef: K.value, componentRef: U.value, titleRef: L.value, value: l2, entity: _2.pageContext.entity.data, pageData: _2.pageContext.entity.page });
46
+ b.$on(N.value + "-pickFileDone", (e3) => {
47
+ console.log("superPage4444---pickFileDone--componentId.value=", N.value, "data=", e3), U.value.pickFileDone(e3);
48
+ }), o(() => {
49
+ const e3 = d(z, O), l2 = { showName: d(z, S), serverPath: e3 };
50
+ y(l2, P2.pageContext, P2.configure, { formItemRef: K.value, componentRef: U.value, titleRef: L.value, value: l2, entity: P2.pageContext.entity.data, pageData: P2.pageContext.entity.page });
51
51
  });
52
- }), o(() => {
53
- b.$off(q.value + "-pickFileDone");
52
+ }), i(() => {
53
+ b.$off(N.value + "-pickFileDone");
54
54
  }), (e3, l2) => {
55
55
  const t2 = a("el-form-item");
56
- return P.value.tittleShow ? (n(), s(t2, { key: 0, ref_key: "formItemRef", ref: K, required: P.value.required, class: r(m(R)), "label-width": P.value.labelWidth, style: p(m(j)) }, { label: f(() => [P.value.tittleShow ? (n(), v("div", { key: 0, ref_key: "titleRef", ref: L, style: p({ ...m(T), ...m(z) }) }, c(m(k)(P.value.title)), 5)) : u("", true)]), default: f(() => [$.value ? (n(), s(m(x), { key: 0, ref_key: "fileUploadRef", ref: U, style: { width: "100%" }, disabled: "disabled" === P.value.state, displayType: P.value.displayType, accept: P.value.accept, multiple: P.value.multiple, placeholder: P.value.placeholder, limit: P.value.limit, "limit-file-size": P.value.limitFileSize, openCameraOrChoosePhoto: P.value.openCameraOrChoosePhoto, "file-info": B.value, "file-list": W.value, "system-code": e3.pageContext.systemCode, componentId: q.value, "on-success": G, "on-remove": H, "before-upload": A, pageContext: e3.pageContext }, null, 8, ["disabled", "displayType", "accept", "multiple", "placeholder", "limit", "limit-file-size", "openCameraOrChoosePhoto", "file-info", "file-list", "system-code", "componentId", "pageContext"])) : u("", true)]), _: 1 }, 8, ["required", "class", "label-width", "style"])) : $.value ? (n(), s(m(x), { key: 1, ref_key: "fileUploadRef", ref: U, style: { width: "100%" }, disabled: "disabled" === P.value.state, displayType: P.value.displayType, accept: P.value.accept, multiple: P.value.multiple, placeholder: P.value.placeholder, limit: P.value.limit, "limit-file-size": P.value.limitFileSize, openCameraOrChoosePhoto: P.value.openCameraOrChoosePhoto, "file-info": B.value, "file-list": W.value, "system-code": e3.pageContext.systemCode, componentId: q.value, "on-success": G, "on-remove": H, "before-upload": A, pageContext: e3.pageContext }, null, 8, ["disabled", "displayType", "accept", "multiple", "placeholder", "limit", "limit-file-size", "openCameraOrChoosePhoto", "file-info", "file-list", "system-code", "componentId", "pageContext"])) : u("", true);
56
+ return w.value.tittleShow ? (n(), s(t2, { key: 0, ref_key: "formItemRef", ref: K, required: w.value.required, class: r(m(I)), "label-width": w.value.labelWidth, style: p(m(j)) }, { label: f(() => [w.value.tittleShow ? (n(), c("div", { key: 0, ref_key: "titleRef", ref: L, style: p({ ...m(R), ...m(T) }) }, v(m(k)(w.value.title)), 5)) : u("", true)]), default: f(() => [$.value ? (n(), s(m(x), { key: 0, ref_key: "fileUploadRef", ref: U, style: { width: "100%" }, disabled: "disabled" === w.value.state, displayType: w.value.displayType, accept: w.value.accept, multiple: w.value.multiple, placeholder: w.value.placeholder, limit: w.value.limit, "limit-file-size": w.value.limitFileSize, openCameraOrChoosePhoto: w.value.openCameraOrChoosePhoto, "file-info": B.value, "file-list": W.value, "system-code": e3.pageContext.systemCode, componentId: N.value, "on-success": G, "on-remove": H, "before-upload": A, pageContext: e3.pageContext }, null, 8, ["disabled", "displayType", "accept", "multiple", "placeholder", "limit", "limit-file-size", "openCameraOrChoosePhoto", "file-info", "file-list", "system-code", "componentId", "pageContext"])) : u("", true)]), _: 1 }, 8, ["required", "class", "label-width", "style"])) : $.value ? (n(), s(m(x), { key: 1, ref_key: "fileUploadRef", ref: U, style: { width: "100%" }, disabled: "disabled" === w.value.state, displayType: w.value.displayType, accept: w.value.accept, multiple: w.value.multiple, placeholder: w.value.placeholder, limit: w.value.limit, "limit-file-size": w.value.limitFileSize, openCameraOrChoosePhoto: w.value.openCameraOrChoosePhoto, "file-info": B.value, "file-list": W.value, "system-code": e3.pageContext.systemCode, componentId: N.value, "on-success": G, "on-remove": H, "before-upload": A, pageContext: e3.pageContext }, null, 8, ["disabled", "displayType", "accept", "multiple", "placeholder", "limit", "limit-file-size", "openCameraOrChoosePhoto", "file-info", "file-list", "system-code", "componentId", "pageContext"])) : u("", true);
57
57
  };
58
58
  } });
59
59
  export {
60
- _ as default
60
+ P as default
61
61
  };
@@ -1,59 +1,60 @@
1
- import { defineComponent as e, ref as l, computed as n, onMounted as o, nextTick as u, onUnmounted as t, watch as a, resolveComponent as i, createBlock as r, openBlock as c, normalizeStyle as p, normalizeClass as s, unref as v, withCtx as f, createVNode as y, createCommentVNode as m, createSlots as g, createTextVNode as d, toDisplayString as x, createElementBlock as C, Fragment as I } from "vue";
1
+ import { defineComponent as e, ref as l, computed as o, onMounted as n, nextTick as t, onUnmounted as u, watch as a, resolveComponent as i, createBlock as r, openBlock as c, normalizeStyle as p, normalizeClass as s, unref as v, withCtx as f, createVNode as g, createCommentVNode as y, createSlots as m, createTextVNode as d, toDisplayString as x, createElementBlock as C, Fragment as I } from "vue";
2
2
  import { SuperIcon as T } from "agilebuilder-ui";
3
3
  import { getFormModelFields as k } from "../../../../utils/page-init-util.js";
4
4
  import { setVariableValue as V, getVariableValue as h } from "../../../../utils/page-helper-util.js";
5
5
  import { handleAfterInitEvent as b, handleFormEvent as w, doSuffixOrPrefixClickEvent as _ } from "../../../../utils/events/event-util.js";
6
6
  import { formatScanRuleSets as j, analysisScanValue as R, setScanAnalysisValue as S } from "../../../../utils/form/scan-util.js";
7
7
  import P from "../common/title-suffix-element.vue.js";
8
- import { isMobileBrowser as q } from "agilebuilder-ui/src/utils/common-util";
9
- import z from "../../../../utils/eventBus.js";
10
- import { $t as D } from "../../../../utils/i18n-util.js";
8
+ import { isMobileBrowser as D } from "agilebuilder-ui/src/utils/common-util";
9
+ import q from "../../../../utils/eventBus.js";
10
+ import { $t as z } from "../../../../utils/i18n-util.js";
11
11
  const L = e({ __name: "inputtext-runtime", props: { pageContext: {}, configure: {} }, setup(e2, { expose: L2 }) {
12
12
  var _a, _b, _c;
13
- const B = e2, N = B.pageContext.entity ? B.pageContext.entity : {};
14
- let O = k(B.pageContext, B.configure);
15
- const $ = l(q()), A = B.pageContext.code, E = l(O && O.length > 0 ? A + "__" + O.join("__") : null), F = n({ get: () => h(N, O), set(e3) {
16
- e3 = e3.trim(), V(N, O, e3);
17
- } }), J = l(null), M = l(null), U = l(null);
18
- o(() => {
19
- z.$on(E.value + "-scanDone", (e3) => {
20
- oe(e3.result);
21
- }), u(() => {
22
- const e3 = F.value;
23
- b(e3, B.pageContext, B.configure, { formItemRef: J.value, componentRef: M.value, titleRef: U.value, value: e3, entity: B.pageContext.entity.data, pageData: B.pageContext.entity.page });
24
- });
25
- }), t(() => {
26
- z.$off(E.value + "-scanDone");
13
+ const N = e2, O = N.pageContext.entity ? N.pageContext.entity : {};
14
+ let A = k(N.pageContext, N.configure);
15
+ const B = l(D()), J = N.pageContext.code, $ = l(A && A.length > 0 ? J + "__" + A.join("__") : null), E = o({ get: () => h(O, A), set(e3) {
16
+ e3 = e3.trim(), V(O, A, e3);
17
+ } }), F = l(null), M = l(null), U = l(null);
18
+ n(() => {
19
+ q.$on($.value + "-scanDone", (e3) => {
20
+ console.log("superPage4444---scanDone--componentId.value=", $.value, "data=", JSON.stringify(e3)), te(e3.result);
21
+ }), t(() => {
22
+ const e3 = E.value;
23
+ b(e3, N.pageContext, N.configure, { formItemRef: F.value, componentRef: M.value, titleRef: U.value, value: e3, entity: N.pageContext.entity.data, pageData: N.pageContext.entity.page });
24
+ }), console.log("input-text");
25
+ }), u(() => {
26
+ q.$off($.value + "-scanDone");
27
27
  });
28
- const W = B.configure.runtime ? B.configure.runtime : {}, G = l(W.props ? W.props : {}), H = l(!!((_a = G.value.scan) == null ? void 0 : _a.enable));
28
+ const W = N.configure.runtime ? N.configure.runtime : {}, G = l(W.props ? W.props : {}), H = l(!!((_a = G.value.scan) == null ? void 0 : _a.enable));
29
29
  let K;
30
- K = navigator.userAgent.indexOf(" uni-app ") > 0 ? "app" : "browser";
31
- const Q = !(!$.value || !K || "app" !== K), X = l(!!(Q && H.value || $.value && H.value && "https:" === window.location.protocol));
32
- let Y = {};
30
+ const Q = navigator.userAgent;
31
+ K = Q.indexOf(" uni-app ") > 0 ? "app" : "browser";
32
+ const X = !(!B.value || !K || "app" !== K), Y = l(!!(X && H.value || B.value && H.value && "https:" === window.location.protocol));
33
+ let Z = {};
33
34
  ((_b = G.value.scan) == null ? void 0 : _b.enable) && ((_c = G.value.scan.ruleList) == null ? void 0 : _c.length) > 0 && (j(G.value.scan.ruleList).then((e3) => {
34
- Y = e3;
35
- }), a(() => F.value, (e3) => {
36
- const l2 = R(e3, Y);
37
- l2 && S(B.pageContext, l2.scanSet, l2.params);
35
+ Z = e3;
36
+ }), a(() => E.value, (e3) => {
37
+ const l2 = R(e3, Z);
38
+ l2 && S(N.pageContext, l2.scanSet, l2.params);
38
39
  }));
39
- const Z = W.style, ee = W.class, le = W.headerStyle, ne = W.titleExceedStyle;
40
- function oe(e3) {
41
- return V(N, O, e3);
40
+ const ee = W.style, le = W.class, oe = W.headerStyle, ne = W.titleExceedStyle;
41
+ function te(e3) {
42
+ return V(O, A, e3);
42
43
  }
43
44
  const ue = l(false);
44
- function te(e3) {
45
- ue.value = false, oe(e3);
45
+ function ae(e3) {
46
+ ue.value = false, te(e3);
46
47
  }
47
48
  return L2({ getValue: function() {
48
- return h(N, O);
49
- }, setValue: oe }), (e3, l2) => {
50
- const n2 = i("el-input"), o2 = i("scan-code-input-browser"), u2 = i("el-form-item");
51
- return c(), r(u2, { ref_key: "formItemRef", ref: J, required: !!G.value.required, class: s(v(ee)), "label-width": G.value.labelWidth, style: p(v(Z)) }, { label: f(() => [G.value.tittleShow ? (c(), C("div", { key: 0, ref_key: "titleRef", ref: U, style: p({ ...v(le), ...v(ne) }) }, [G.value.prefixType ? (c(), r(P, { key: 0, pageContext: e3.pageContext, property: G.value }, null, 8, ["pageContext", "property"])) : (c(), C(I, { key: 1 }, [d(x(v(D)(G.value.title)), 1)], 64))], 4)) : m("", true)]), default: f(() => [y(n2, { ref_key: "componentRef", ref: M, disabled: "disabled" === G.value.state, readonly: "readonly" === G.value.state, size: G.value.size, clearable: G.value.clearable, placeholder: G.value.placeholder, maxlength: G.value.maxLength, "show-word-limit": G.value.showInputNum, modelValue: F.value, "onUpdate:modelValue": l2[5] || (l2[5] = (e4) => F.value = e4), onInput: l2[6] || (l2[6] = (l3) => v(w)(l3, e3.pageContext, e3.configure, "input")), onChange: l2[7] || (l2[7] = (l3) => v(w)(l3, e3.pageContext, e3.configure, "change")), onBlur: l2[8] || (l2[8] = (l3) => v(w)(l3, e3.pageContext, e3.configure, "blur")), onFocus: l2[9] || (l2[9] = (l3) => v(w)(l3, e3.pageContext, e3.configure, "focus")), onClick: l2[10] || (l2[10] = (l3) => v(w)(l3, e3.pageContext, e3.configure, "click")) }, g({ _: 2 }, ["outer" != G.value.iconPosition && (G.value.preIconType && G.value.preIconValue || G.value.preText) ? { name: "prefix", fn: f(() => [G.value.preIconType && G.value.preIconValue ? (c(), r(v(T), { key: 0, iconType: G.value.preIconType, iconValue: G.value.preIconValue, onClick: l2[0] || (l2[0] = (l3) => v(_)(F.value, e3.pageContext, e3.configure, "prefixClick")) }, null, 8, ["iconType", "iconValue"])) : m("", true), d(" " + x(v(D)(G.value.preText)), 1)]), key: "0" } : void 0, "outer" == G.value.iconPosition && (G.value.preIconType && G.value.preIconValue || G.value.preText) ? { name: "prepend", fn: f(() => [G.value.preIconType && G.value.preIconValue ? (c(), r(v(T), { key: 0, iconType: G.value.preIconType, iconValue: G.value.preIconValue, onClick: l2[1] || (l2[1] = (l3) => v(_)(F.value, e3.pageContext, e3.configure, "prefixClick")) }, null, 8, ["iconType", "iconValue"])) : m("", true), d(" " + x(v(D)(G.value.preText)), 1)]), key: "1" } : void 0, "outer" != G.value.iconPosition && (G.value.sufIconType && G.value.sufIconValue || G.value.sufText) ? { name: "suffix", fn: f(() => [G.value.sufIconType && G.value.sufIconValue ? (c(), r(v(T), { key: 0, iconType: G.value.sufIconType, iconValue: G.value.sufIconValue, onClick: l2[2] || (l2[2] = (l3) => v(_)(F.value, e3.pageContext, e3.configure, "suffixClick")) }, null, 8, ["iconType", "iconValue"])) : m("", true), d(" " + x(v(D)(G.value.sufText)), 1)]), key: "2" } : void 0, X.value || "outer" == G.value.iconPosition && (G.value.sufIconType && G.value.sufIconValue || G.value.sufText) ? { name: "append", fn: f(() => [X.value ? (c(), r(v(T), { key: 0, iconValue: "fa-barcode", onClick: l2[3] || (l2[3] = (e4) => function() {
52
- if (Q) {
53
- const e5 = { type: "scan", componentId: E.value, systemCode: B.pageContext.systemCode };
49
+ return h(O, A);
50
+ }, setValue: te }), (e3, l2) => {
51
+ const o2 = i("el-input"), n2 = i("scan-code-input-browser"), t2 = i("el-form-item");
52
+ return c(), r(t2, { ref_key: "formItemRef", ref: F, required: !!G.value.required, class: s(v(le)), "label-width": G.value.labelWidth, style: p(v(ee)) }, { label: f(() => [G.value.tittleShow ? (c(), C("div", { key: 0, ref_key: "titleRef", ref: U, style: p({ ...v(oe), ...v(ne) }) }, [G.value.prefixType ? (c(), r(P, { key: 0, pageContext: e3.pageContext, property: G.value }, null, 8, ["pageContext", "property"])) : (c(), C(I, { key: 1 }, [d(x(v(z)(G.value.title)), 1)], 64))], 4)) : y("", true)]), default: f(() => [g(o2, { ref_key: "componentRef", ref: M, disabled: "disabled" === G.value.state, readonly: "readonly" === G.value.state, size: G.value.size, clearable: G.value.clearable, placeholder: G.value.placeholder, maxlength: G.value.maxLength, "show-word-limit": G.value.showInputNum, modelValue: E.value, "onUpdate:modelValue": l2[5] || (l2[5] = (e4) => E.value = e4), onInput: l2[6] || (l2[6] = (l3) => v(w)(l3, e3.pageContext, e3.configure, "input")), onChange: l2[7] || (l2[7] = (l3) => v(w)(l3, e3.pageContext, e3.configure, "change")), onBlur: l2[8] || (l2[8] = (l3) => v(w)(l3, e3.pageContext, e3.configure, "blur")), onFocus: l2[9] || (l2[9] = (l3) => v(w)(l3, e3.pageContext, e3.configure, "focus")), onClick: l2[10] || (l2[10] = (l3) => v(w)(l3, e3.pageContext, e3.configure, "click")) }, m({ _: 2 }, ["outer" != G.value.iconPosition && (G.value.preIconType && G.value.preIconValue || G.value.preText) ? { name: "prefix", fn: f(() => [G.value.preIconType && G.value.preIconValue ? (c(), r(v(T), { key: 0, iconType: G.value.preIconType, iconValue: G.value.preIconValue, onClick: l2[0] || (l2[0] = (l3) => v(_)(E.value, e3.pageContext, e3.configure, "prefixClick")) }, null, 8, ["iconType", "iconValue"])) : y("", true), d(" " + x(v(z)(G.value.preText)), 1)]), key: "0" } : void 0, "outer" == G.value.iconPosition && (G.value.preIconType && G.value.preIconValue || G.value.preText) ? { name: "prepend", fn: f(() => [G.value.preIconType && G.value.preIconValue ? (c(), r(v(T), { key: 0, iconType: G.value.preIconType, iconValue: G.value.preIconValue, onClick: l2[1] || (l2[1] = (l3) => v(_)(E.value, e3.pageContext, e3.configure, "prefixClick")) }, null, 8, ["iconType", "iconValue"])) : y("", true), d(" " + x(v(z)(G.value.preText)), 1)]), key: "1" } : void 0, "outer" != G.value.iconPosition && (G.value.sufIconType && G.value.sufIconValue || G.value.sufText) ? { name: "suffix", fn: f(() => [G.value.sufIconType && G.value.sufIconValue ? (c(), r(v(T), { key: 0, iconType: G.value.sufIconType, iconValue: G.value.sufIconValue, onClick: l2[2] || (l2[2] = (l3) => v(_)(E.value, e3.pageContext, e3.configure, "suffixClick")) }, null, 8, ["iconType", "iconValue"])) : y("", true), d(" " + x(v(z)(G.value.sufText)), 1)]), key: "2" } : void 0, Y.value || "outer" == G.value.iconPosition && (G.value.sufIconType && G.value.sufIconValue || G.value.sufText) ? { name: "append", fn: f(() => [Y.value ? (c(), r(v(T), { key: 0, iconValue: "fa-barcode", onClick: l2[3] || (l2[3] = (e4) => function() {
53
+ if (console.log("scanClick----userAgent=", K), X) {
54
+ const e5 = { type: "scan", componentId: $.value, systemCode: N.pageContext.systemCode };
54
55
  window.parent.postMessage(JSON.stringify(e5), "*");
55
56
  } else ue.value = true;
56
- }()) })) : m("", true), G.value.sufIconType && G.value.sufIconValue ? (c(), r(v(T), { key: 1, iconType: G.value.sufIconType, iconValue: G.value.sufIconValue, onClick: l2[4] || (l2[4] = (l3) => v(_)(F.value, e3.pageContext, e3.configure, "suffixClick")) }, null, 8, ["iconType", "iconValue"])) : m("", true), d(" " + x(v(D)(G.value.sufText)), 1)]), key: "3" } : void 0]), 1032, ["disabled", "readonly", "size", "clearable", "placeholder", "maxlength", "show-word-limit", "modelValue"]), ue.value ? (c(), r(o2, { key: 0, onClose: te })) : m("", true)]), _: 1 }, 8, ["required", "class", "label-width", "style"]);
57
+ }()) })) : y("", true), G.value.sufIconType && G.value.sufIconValue ? (c(), r(v(T), { key: 1, iconType: G.value.sufIconType, iconValue: G.value.sufIconValue, onClick: l2[4] || (l2[4] = (l3) => v(_)(E.value, e3.pageContext, e3.configure, "suffixClick")) }, null, 8, ["iconType", "iconValue"])) : y("", true), d(" " + x(v(z)(G.value.sufText)), 1)]), key: "3" } : void 0]), 1032, ["disabled", "readonly", "size", "clearable", "placeholder", "maxlength", "show-word-limit", "modelValue"]), ue.value ? (c(), r(n2, { key: 0, onClose: ae })) : y("", true)]), _: 1 }, 8, ["required", "class", "label-width", "style"]);
57
58
  };
58
59
  } });
59
60
  export {
@@ -1,14 +1,16 @@
1
- import { defineComponent as e, ref as t, computed as l, onMounted as u, nextTick as a, resolveComponent as n, createElementBlock as i, createBlock as o, openBlock as p, normalizeStyle as s, normalizeClass as r, unref as f, createElementVNode as c, toDisplayString as v, withCtx as y, createCommentVNode as g, createTextVNode as x } from "vue";
1
+ import { defineComponent as e, ref as t, computed as l, onMounted as u, nextTick as a, resolveComponent as n, createElementBlock as o, createBlock as i, openBlock as s, normalizeStyle as p, normalizeClass as r, unref as c, createElementVNode as f, toDisplayString as v, withCtx as y, createCommentVNode as g, createTextVNode as x } from "vue";
2
2
  import { getFormModelFields as d } from "../../../../utils/page-init-util.js";
3
3
  import { getVariableValue as m, formatValueByType as h } from "../../../../utils/page-helper-util.js";
4
4
  import { SuperIcon as k } from "agilebuilder-ui";
5
5
  import { getCustomFunc as w, handleAfterInitEvent as T, handleFormEvent as C } from "../../../../utils/events/event-util.js";
6
6
  import { $t as _ } from "../../../../utils/i18n-util.js";
7
7
  const I = { style: { width: "100%", "text-align": "center", "font-weight": "700", "font-size": "24px", "margin-bottom": "20px" } }, b = { style: { overflow: "hidden", "white-space": "nowrap" } }, V = ["title"], j = e({ __name: "label-runtime", props: { pageContext: {}, configure: {} }, setup(e2, { expose: j2 }) {
8
- const R = e2, S = R.pageContext.entity ? R.pageContext.entity : {};
9
- let P = d(R.pageContext, R.configure);
10
- const q = R.configure.runtime ? R.configure.runtime : {}, O = q.style, z = q.class, D = q.headerStyle, E = q.appendClass, F = q.appendStyle, W = q.titleExceedStyle, A = t(q.props ? q.props : {}), B = t(A.value.options ? A.value.options : []), G = A.value.formatType, H = l(() => {
11
- let e3 = m(S, P);
8
+ const R = e2, P = R.pageContext.entity ? R.pageContext.entity : {};
9
+ let S = d(R.pageContext, R.configure);
10
+ const q = R.configure.runtime ? R.configure.runtime : {}, O = q.style, z = q.class, D = q.headerStyle, E = q.appendClass, F = q.appendStyle, W = q.titleExceedStyle, A = t(q.props ? q.props : {}), B = t(A.value.options ? A.value.options : []), G = A.value.formatType;
11
+ console.log("designProperty.value", A.value);
12
+ const H = l(() => {
13
+ let e3 = m(P, S);
12
14
  if (G) if (A.value.hasOptions) {
13
15
  let t2 = null;
14
16
  B.value && (t2 = B.value.filter((t3) => t3.value == e3)), t2 && t2.length > 0 && (e3 = t2[0].label);
@@ -27,7 +29,7 @@ const I = { style: { width: "100%", "text-align": "center", "font-weight": "700"
27
29
  B.value = e3 || [];
28
30
  } }), (e3, t2) => {
29
31
  const l2 = n("el-form-item");
30
- return A.value.whetherTittle ? (p(), i("div", { key: 0, ref_key: "titleRef", ref: L, class: r(f(z)), style: s(f(O)) }, [c("div", I, v(A.value.title), 1)], 6)) : A.value.tittleShow ? (p(), o(l2, { key: 1, ref_key: "formItemRef", ref: J, required: !!A.value.required, class: r(f(z)), "label-width": A.value.labelWidth, style: s(f(O)) }, { label: y(() => [A.value.tittleShow ? (p(), i("div", { key: 0, ref_key: "titleRef", ref: L, style: s({ ...f(D), ...f(W) }) }, v(f(_)(A.value.title)), 5)) : g("", true)]), default: y(() => [c("div", { style: { display: "flex", width: "100%", "justify-content": "space-between" }, ref_key: "componentRef", ref: K, onClick: t2[0] || (t2[0] = (t3) => f(C)(t3, e3.pageContext, e3.configure, "click")) }, [c("span", b, [A.value.preIconValue || A.value.preText ? (p(), i("span", { key: 0, class: r({ "el-input__suffix": "outer" != A.value.iconPosition, "el-input-group__append": "outer" == A.value.iconPosition }), style: s(f(F)) }, [A.value.preIconType && A.value.preIconValue ? (p(), o(f(k), { key: 0, iconType: A.value.preIconType, iconValue: A.value.preIconValue }, null, 8, ["iconType", "iconValue"])) : g("", true), x(" " + v(f(_)(A.value.preText)), 1)], 6)) : g("", true), x("  " + v(H.value), 1)]), A.value.sufIconValue || A.value.sufText ? (p(), i("span", { key: 0, class: r({ "el-input__suffix": "outer" != A.value.iconPosition, "el-input-group__append": "outer" == A.value.iconPosition }) }, [A.value.sufIconType && A.value.sufIconValue ? (p(), o(f(k), { key: 0, style: {}, iconType: A.value.sufIconType, iconValue: A.value.sufIconValue }, null, 8, ["iconType", "iconValue"])) : g("", true), c("span", null, " " + v(f(_)(A.value.sufText)), 1)], 2)) : g("", true)], 512)]), _: 1 }, 8, ["required", "class", "label-width", "style"])) : (p(), i("span", { key: 2, style: { display: "flex", "justify-content": "space-between" }, onClick: t2[1] || (t2[1] = (t3) => f(C)(t3, e3.pageContext, e3.configure, "click")) }, [c("span", { style: { overflow: "hidden", "white-space": "nowrap" }, title: H.value }, v(A.value.prefixIcon) + " " + v(H.value), 9, V), A.value.suffixTxt ? (p(), i("span", { key: 0, class: r(f(E)), style: s(f(F)) }, v(A.value.suffixTxt), 7)) : g("", true)]));
32
+ return A.value.whetherTittle ? (s(), o("div", { key: 0, ref_key: "titleRef", ref: L, class: r(c(z)), style: p(c(O)) }, [f("div", I, v(A.value.title), 1)], 6)) : A.value.tittleShow ? (s(), i(l2, { key: 1, ref_key: "formItemRef", ref: J, required: !!A.value.required, class: r(c(z)), "label-width": A.value.labelWidth, style: p(c(O)) }, { label: y(() => [A.value.tittleShow ? (s(), o("div", { key: 0, ref_key: "titleRef", ref: L, style: p({ ...c(D), ...c(W) }) }, v(c(_)(A.value.title)), 5)) : g("", true)]), default: y(() => [f("div", { style: { display: "flex", width: "100%", "justify-content": "space-between" }, ref_key: "componentRef", ref: K, onClick: t2[0] || (t2[0] = (t3) => c(C)(t3, e3.pageContext, e3.configure, "click")) }, [f("span", b, [A.value.preIconValue || A.value.preText ? (s(), o("span", { key: 0, class: r({ "el-input__suffix": "outer" != A.value.iconPosition, "el-input-group__append": "outer" == A.value.iconPosition }), style: p(c(F)) }, [A.value.preIconType && A.value.preIconValue ? (s(), i(c(k), { key: 0, iconType: A.value.preIconType, iconValue: A.value.preIconValue }, null, 8, ["iconType", "iconValue"])) : g("", true), x(" " + v(c(_)(A.value.preText)), 1)], 6)) : g("", true), x("  " + v(H.value), 1)]), A.value.sufIconValue || A.value.sufText ? (s(), o("span", { key: 0, class: r({ "el-input__suffix": "outer" != A.value.iconPosition, "el-input-group__append": "outer" == A.value.iconPosition }) }, [A.value.sufIconType && A.value.sufIconValue ? (s(), i(c(k), { key: 0, style: {}, iconType: A.value.sufIconType, iconValue: A.value.sufIconValue }, null, 8, ["iconType", "iconValue"])) : g("", true), f("span", null, " " + v(c(_)(A.value.sufText)), 1)], 2)) : g("", true)], 512)]), _: 1 }, 8, ["required", "class", "label-width", "style"])) : (s(), o("span", { key: 2, style: { display: "flex", "justify-content": "space-between" }, onClick: t2[1] || (t2[1] = (t3) => c(C)(t3, e3.pageContext, e3.configure, "click")) }, [f("span", { style: { overflow: "hidden", "white-space": "nowrap" }, title: H.value }, v(A.value.prefixIcon) + " " + v(H.value), 9, V), A.value.suffixTxt ? (s(), o("span", { key: 0, class: r(c(E)), style: p(c(F)) }, v(A.value.suffixTxt), 7)) : g("", true)]));
31
33
  };
32
34
  } });
33
35
  export {
@@ -1,29 +1,30 @@
1
- import { defineComponent as e, ref as t, computed as l, onMounted as n, nextTick as a, resolveComponent as i, createBlock as u, openBlock as o, normalizeStyle as r, normalizeClass as s, unref as p, withCtx as f, createVNode as c, createTextVNode as d, toDisplayString as m, createElementBlock as g, createCommentVNode as v } from "vue";
1
+ import { defineComponent as e, ref as t, computed as l, onMounted as n, nextTick as a, resolveComponent as i, createBlock as u, openBlock as o, normalizeStyle as r, normalizeClass as s, unref as p, withCtx as f, createVNode as c, createTextVNode as d, toDisplayString as g, createElementBlock as m, createCommentVNode as v } from "vue";
2
2
  import { getFormModelFields as y } from "../../../../utils/page-init-util.js";
3
3
  import { getVariableValue as b } from "../../../../utils/page-helper-util.js";
4
4
  import { handleAfterInitEvent as k, handleEvent as x } from "../../../../utils/events/event-util.js";
5
5
  import { $t as C } from "../../../../utils/i18n-util.js";
6
6
  const _ = e({ __name: "link-runtime", props: { pageContext: {}, configure: {} }, setup(e2) {
7
7
  const _2 = e2, h = y(_2.pageContext, _2.configure), R = _2.configure.runtime ? _2.configure.runtime : {}, j = R.style, w = R.class, I = R.headerStyle, S = t(R.props ? R.props : {});
8
+ console.log("designProperty", S.value);
8
9
  let $ = S.value.formatting;
9
- const D = _2.pageContext.entity ? _2.pageContext.entity : {}, V = l(() => {
10
+ const D = _2.pageContext.entity ? _2.pageContext.entity : {}, P = l(() => {
10
11
  let e3 = b(D, h);
11
12
  return e3 = null == e3 || null == e3 ? "" : e3, $ && (e3 = $.replace(/\${value}/g, e3)), e3;
12
13
  });
13
- let W = S.value.tooltip, q = null;
14
- W && (q = l(() => {
14
+ let V = S.value.tooltip, W = null;
15
+ V && (W = l(() => {
15
16
  let e3 = b(D, h);
16
- return e3 = null == e3 || null == e3 ? "" : e3, W.replace(/\${value}/g, e3);
17
+ return e3 = null == e3 || null == e3 ? "" : e3, V.replace(/\${value}/g, e3);
17
18
  }));
18
- const z = t(null), A = t(null), B = t(null);
19
+ const q = t(null), z = t(null), A = t(null);
19
20
  return n(() => {
20
21
  a(() => {
21
- const e3 = V.value;
22
- k(e3, _2.pageContext, _2.configure, { formItemRef: z.value, componentRef: A.value, titleRef: B.value, value: e3, entity: _2.pageContext.entity.data, pageData: _2.pageContext.entity.page });
22
+ const e3 = P.value;
23
+ k(e3, _2.pageContext, _2.configure, { formItemRef: q.value, componentRef: z.value, titleRef: A.value, value: e3, entity: _2.pageContext.entity.data, pageData: _2.pageContext.entity.page });
23
24
  });
24
25
  }), (e3, t2) => {
25
26
  const l2 = i("el-link"), n2 = i("el-tooltip"), a2 = i("el-form-item");
26
- return o(), u(a2, { ref_key: "formItemRef", ref: z, class: s(p(w)), "label-width": S.value.labelWidth, style: r(p(j)) }, { label: f(() => [S.value.tittleShow ? (o(), g("div", { key: 0, ref_key: "titleRef", ref: B, style: r({ ...p(I) }) }, m(p(C)(S.value.title)), 5)) : v("", true)]), default: f(() => [c(n2, { disabled: !p(q), content: p(q) }, { default: f(() => [c(l2, { ref_key: "componentRef", ref: A, disabled: "disabled" === S.value.state, type: S.value.type, underline: S.value.underline, onClick: t2[0] || (t2[0] = (t3) => p(x)(t3, e3.pageContext, e3.configure, "click", { skipValidate: true })) }, { default: f(() => [d(m(V.value), 1)]), _: 1 }, 8, ["disabled", "type", "underline"])]), _: 1 }, 8, ["disabled", "content"])]), _: 1 }, 8, ["class", "label-width", "style"]);
27
+ return o(), u(a2, { ref_key: "formItemRef", ref: q, class: s(p(w)), "label-width": S.value.labelWidth, style: r(p(j)) }, { label: f(() => [S.value.tittleShow ? (o(), m("div", { key: 0, ref_key: "titleRef", ref: A, style: r({ ...p(I) }) }, g(p(C)(S.value.title)), 5)) : v("", true)]), default: f(() => [c(n2, { disabled: !p(W), content: p(W) }, { default: f(() => [c(l2, { ref_key: "componentRef", ref: z, disabled: "disabled" === S.value.state, type: S.value.type, underline: S.value.underline, onClick: t2[0] || (t2[0] = (t3) => p(x)(t3, e3.pageContext, e3.configure, "click", { skipValidate: true })) }, { default: f(() => [d(g(P.value), 1)]), _: 1 }, 8, ["disabled", "type", "underline"])]), _: 1 }, 8, ["disabled", "content"])]), _: 1 }, 8, ["class", "label-width", "style"]);
27
28
  };
28
29
  } });
29
30
  export {
@@ -46,6 +46,7 @@ const q = e({ __name: "radio-runtime", props: { pageContext: {}, configure: {} }
46
46
  Q && clearTimeout(Q), Q = setTimeout(function() {
47
47
  const e3 = L();
48
48
  e3 != N && (N = e3, S(w.pageContext, X, void 0).then((e4) => {
49
+ console.log("查询失败!", e4);
49
50
  }));
50
51
  }, 200);
51
52
  }
@@ -70,6 +70,7 @@ const R = { style: { width: "100%", height: "100%" } }, S = e({ __name: "richtex
70
70
  i2.src === e5 && (i2.src = t5.url + "&jwt=" + L());
71
71
  }
72
72
  }).catch((e6) => {
73
+ console.error(e6, "上传图片失败");
73
74
  });
74
75
  }
75
76
  }
@@ -1,10 +1,10 @@
1
- import { defineComponent as e, ref as t, computed as l, watch as o, onUnmounted as a, onMounted as u, nextTick as n, resolveComponent as i, createBlock as r, openBlock as s, normalizeStyle as p, normalizeClass as f, unref as c, withCtx as v, createVNode as g, createElementBlock as m, Fragment as d, renderList as h, createCommentVNode as y, createElementVNode as x, toDisplayString as b, createTextVNode as C } from "vue";
1
+ import { defineComponent as e, ref as t, computed as l, watch as o, onUnmounted as a, onMounted as u, nextTick as n, resolveComponent as i, createBlock as r, openBlock as s, normalizeStyle as p, normalizeClass as f, unref as c, withCtx as g, createVNode as v, createElementBlock as m, Fragment as d, renderList as h, createCommentVNode as y, createElementVNode as x, toDisplayString as b, createTextVNode as C } from "vue";
2
2
  import { setVariableValue as _, getVariableValue as k, getOptionDatasFromPage as w, queryOptionDatasources as S, autoSetAfterSelect as T } from "../../../../utils/page-helper-util.js";
3
3
  import { getFormModelFields as j } from "../../../../utils/page-init-util.js";
4
4
  import { handleFormEvent as R, handleAfterInitEvent as V } from "../../../../utils/events/event-util.js";
5
- import z from "../common/title-suffix-element.vue.js";
6
- import { $t as I } from "../../../../utils/i18n-util.js";
7
- const M = { style: { float: "left" } }, q = { style: { float: "right", color: "var(--el-text-color-secondary)", "font-size": "13px" } }, O = e({ __name: "select-runtime", props: { pageContext: {}, configure: {} }, setup(e2, { expose: O2 }) {
5
+ import q from "../common/title-suffix-element.vue.js";
6
+ import { $t as z } from "../../../../utils/i18n-util.js";
7
+ const I = { style: { float: "left" } }, M = { style: { float: "right", color: "var(--el-text-color-secondary)", "font-size": "13px" } }, O = e({ __name: "select-runtime", props: { pageContext: {}, configure: {} }, setup(e2, { expose: O2 }) {
8
8
  const P = e2, A = P.pageContext.entity ? P.pageContext.entity : {};
9
9
  let D = j(P.pageContext, P.configure);
10
10
  const W = P.configure.runtime ? P.configure.runtime : {}, E = W.style, F = W.class, U = W.headerStyle, $ = W.titleExceedStyle, B = t(W.props ? W.props : {}), G = l({ get() {
@@ -21,10 +21,10 @@ const M = { style: { float: "left" } }, q = { style: { float: "right", color: "v
21
21
  if ("remote" == L.filterType) {
22
22
  let e3;
23
23
  B.value.filterable = true, B.value.remote = true, B.value.remoteShowSuffix = true, B.value.remoteMethod = function(t2) {
24
- e3 !== t2 && (e3 = t2, K.value = true, S(P.pageContext, X, t2).then((e4) => {
24
+ e3 !== t2 && (e3 = t2, K.value = true, console.log("query", t2), S(P.pageContext, X, t2).then((e4) => {
25
25
  K.value = false;
26
26
  }).then((e4) => {
27
- K.value = false;
27
+ console.log("查询失败!", e4), K.value = false;
28
28
  }));
29
29
  };
30
30
  }
@@ -61,7 +61,7 @@ const M = { style: { float: "left" } }, q = { style: { float: "right", color: "v
61
61
  le && clearTimeout(le), le = setTimeout(function() {
62
62
  const e3 = ee();
63
63
  e3 != te && (te = e3, S(P.pageContext, X, void 0).then((e4) => {
64
- K.value = false;
64
+ console.log("查询失败!", e4), K.value = false;
65
65
  }));
66
66
  }, 200);
67
67
  }
@@ -78,7 +78,7 @@ const M = { style: { float: "left" } }, q = { style: { float: "right", color: "v
78
78
  H.value = e3 || [];
79
79
  } }), (e3, t2) => {
80
80
  const l2 = i("el-option"), o2 = i("el-select"), a2 = i("el-form-item");
81
- return s(), r(a2, { ref_key: "formItemRef", ref: ae, required: !!B.value.required, class: f(c(F)), "label-width": B.value.labelWidth, style: p(c(E)) }, { label: v(() => [B.value.tittleShow ? (s(), m("div", { key: 0, ref_key: "titleRef", ref: ne, style: p({ ...c(U), ...c($) }) }, [B.value.prefixType ? (s(), r(z, { key: 0, pageContext: e3.pageContext, property: B.value }, null, 8, ["pageContext", "property"])) : (s(), m(d, { key: 1 }, [C(b(c(I)(B.value.title)), 1)], 64))], 4)) : y("", true)]), default: v(() => [g(o2, { ref_key: "componentRef", ref: ue, style: { width: "100%" }, disabled: "disabled" === B.value.state, size: B.value.size, clearable: B.value.clearable, multiple: B.value.multiple, "collapse-tags": B.value.collapseTags, "collapse-tags-tooltip": B.value.collapseTagsTooltip, filterable: B.value.filterable, "allow-create": B.value.allowCreate, placeholder: B.value.placeholder, "remote-show-suffix": B.value.remoteShowSuffix, remote: B.value.remote, "remote-method": B.value.remoteMethod, loading: K.value, onChange: B.value.changeMethod, modelValue: G.value, "onUpdate:modelValue": t2[0] || (t2[0] = (e4) => G.value = e4) }, { default: v(() => [(s(true), m(d, null, h(H.value, (t3) => (s(), r(l2, { key: t3.value, label: t3.label, value: t3.value, onClick: (l3) => c(R)(t3.value, e3.pageContext, e3.configure, "click", { values: G.value }) }, { default: v(() => [t3._description_ ? (s(), m(d, { key: 0 }, [x("span", M, b(t3.label), 1), x("span", q, b(t3._description_), 1)], 64)) : y("", true)]), _: 2 }, 1032, ["label", "value", "onClick"]))), 128))]), _: 1 }, 8, ["disabled", "size", "clearable", "multiple", "collapse-tags", "collapse-tags-tooltip", "filterable", "allow-create", "placeholder", "remote-show-suffix", "remote", "remote-method", "loading", "onChange", "modelValue"])]), _: 1 }, 8, ["required", "class", "label-width", "style"]);
81
+ return s(), r(a2, { ref_key: "formItemRef", ref: ae, required: !!B.value.required, class: f(c(F)), "label-width": B.value.labelWidth, style: p(c(E)) }, { label: g(() => [B.value.tittleShow ? (s(), m("div", { key: 0, ref_key: "titleRef", ref: ne, style: p({ ...c(U), ...c($) }) }, [B.value.prefixType ? (s(), r(q, { key: 0, pageContext: e3.pageContext, property: B.value }, null, 8, ["pageContext", "property"])) : (s(), m(d, { key: 1 }, [C(b(c(z)(B.value.title)), 1)], 64))], 4)) : y("", true)]), default: g(() => [v(o2, { ref_key: "componentRef", ref: ue, style: { width: "100%" }, disabled: "disabled" === B.value.state, size: B.value.size, clearable: B.value.clearable, multiple: B.value.multiple, "collapse-tags": B.value.collapseTags, "collapse-tags-tooltip": B.value.collapseTagsTooltip, filterable: B.value.filterable, "allow-create": B.value.allowCreate, placeholder: B.value.placeholder, "remote-show-suffix": B.value.remoteShowSuffix, remote: B.value.remote, "remote-method": B.value.remoteMethod, loading: K.value, onChange: B.value.changeMethod, modelValue: G.value, "onUpdate:modelValue": t2[0] || (t2[0] = (e4) => G.value = e4) }, { default: g(() => [(s(true), m(d, null, h(H.value, (t3) => (s(), r(l2, { key: t3.value, label: t3.label, value: t3.value, onClick: (l3) => c(R)(t3.value, e3.pageContext, e3.configure, "click", { values: G.value }) }, { default: g(() => [t3._description_ ? (s(), m(d, { key: 0 }, [x("span", I, b(t3.label), 1), x("span", M, b(t3._description_), 1)], 64)) : y("", true)]), _: 2 }, 1032, ["label", "value", "onClick"]))), 128))]), _: 1 }, 8, ["disabled", "size", "clearable", "multiple", "collapse-tags", "collapse-tags-tooltip", "filterable", "allow-create", "placeholder", "remote-show-suffix", "remote", "remote-method", "loading", "onChange", "modelValue"])]), _: 1 }, 8, ["required", "class", "label-width", "style"]);
82
82
  };
83
83
  } });
84
84
  export {
@@ -1,4 +1,4 @@
1
- import { defineComponent as e, ref as t, onUnmounted as a, resolveDirective as i, withDirectives as n, createElementBlock as r, openBlock as o, createBlock as s, createCommentVNode as l, unref as m } from "vue";
1
+ import { defineComponent as e, ref as t, onUnmounted as a, resolveDirective as i, withDirectives as n, createElementBlock as o, openBlock as r, createBlock as s, createCommentVNode as l, unref as m } from "vue";
2
2
  import { deepCopy as u } from "../utils/common-util.js";
3
3
  import h from "./assemblys/home-chart-render.vue.js";
4
4
  import g from "agilebuilder-ui/src/utils/request";
@@ -7,8 +7,9 @@ import { initPageEvents as p } from "../utils/events/event-util.js";
7
7
  import { setHomeChartInitConfigValue as f } from "../utils/charts/chart-util.js";
8
8
  const C = { "element-loading-text": "加载中..." }, v = e({ name: "HomeChart", inheritAttrs: false, __name: "home-chart", props: { chartCode: { type: String, default: "" }, homeChartSettingUserId: { type: Number, default: 0 } }, setup(e2) {
9
9
  const v2 = e2, y = t(true), S = t(false), b = t({});
10
- let I, U = t(null);
10
+ let I, H = t(null);
11
11
  return v2.chartCode && g.get(window.$vueApp.config.globalProperties.baseAPI + "/mms/home-chart-layout/" + v2.chartCode).then((e3) => {
12
+ var _a, _b;
12
13
  if (e3 && e3.designJson) {
13
14
  const t2 = JSON.parse(e3.designJson);
14
15
  let a2 = window.localStorage.getItem("HOME_MY_CHARTS_ALIAS");
@@ -17,17 +18,17 @@ const C = { "element-loading-text": "加载中..." }, v = e({ name: "HomeChart",
17
18
  e4[v2.homeChartSettingUserId] && (t2.chartJson.runtime.headerInfo ? t2.chartJson.runtime.headerInfo.title = e4[v2.homeChartSettingUserId] : t2.chartJson.runtime.headerInfo = { textAlign: "center", title: e4[v2.homeChartSettingUserId] });
18
19
  }
19
20
  const i2 = window.frameElement;
20
- b.value = t2.chartJson, b.value.homeChartSettingUserId = v2.homeChartSettingUserId, i2 && (b.value.runtime.common.style.pc_style.height = i2.clientHeight + "px");
21
- const n2 = { showHomepageSearch: true, 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 } };
22
- if (t2.variables) {
21
+ b.value = t2.chartJson, b.value.homeChartSettingUserId = v2.homeChartSettingUserId, i2 && (console.log(i2.clientHeight + "iframeElement.clientHeight"), b.value.runtime.common.style.pc_style.height = i2.clientHeight + "px");
22
+ 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 } };
23
+ if (((_a = b.value.pushHomepage) == null ? void 0 : _a.searchConditions) && ((_b = b.value.pushHomepage) == null ? void 0 : _b.searchConditions.length) > 0 && (n2.showHomepageSearch = true), t2.variables) {
23
24
  const e4 = n2.entity.page;
24
25
  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);
25
26
  }
26
- t2.initOptionConfigs && t2.initOptionConfigs.length > 0 && c(n2, t2.initOptionConfigs, void 0), f(b.value.pushHomepage.initConfig, n2, v2.homeChartSettingUserId), p(t2, n2), U.value = n2, I = setTimeout(() => {
27
+ t2.initOptionConfigs && t2.initOptionConfigs.length > 0 && c(n2, t2.initOptionConfigs, void 0), f(b.value.pushHomepage.initConfig, n2, v2.homeChartSettingUserId), p(t2, n2), H.value = n2, I = setTimeout(() => {
27
28
  !function(e4, t3) {
28
- if (!t3 || 0 == t3.length) return;
29
+ if (!t3 || 0 == t3.length) return void console.log("无需要初始化时统计的统计图数据");
29
30
  e4.initChartData = {}, e4.initChartData.data = u(e4.entity.data), e4.initChartData.page = u(e4.entity.page), t3 && t3.length > 0 && d(e4, t3, null, true);
30
- }(U.value, [t2.initChartServiceConfigs]);
31
+ }(H.value, [t2.initChartServiceConfigs]);
31
32
  }, 200);
32
33
  } else S.value = true;
33
34
  }).finally(() => {
@@ -36,7 +37,7 @@ const C = { "element-loading-text": "加载中..." }, v = e({ name: "HomeChart",
36
37
  I && clearTimeout(I);
37
38
  }), (e3, t2) => {
38
39
  const a2 = i("loading");
39
- return n((o(), r("div", C, [y.value ? l("", true) : (o(), s(h, { key: 0, configure: b.value, pageContext: m(U) }, null, 8, ["configure", "pageContext"]))])), [[a2, y.value]]);
40
+ return n((r(), o("div", C, [y.value ? l("", true) : (r(), s(h, { key: 0, configure: b.value, pageContext: m(H) }, null, 8, ["configure", "pageContext"]))])), [[a2, y.value]]);
40
41
  };
41
42
  } });
42
43
  export {