super-page-runtime 2.3.3 → 2.3.4-sit1

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 (35) hide show
  1. package/dist/es/components/runtime/utils/api/page-expose-util.js +53 -53
  2. package/dist/es/components/runtime/utils/events/event-util.js +3 -3
  3. package/dist/es/components/runtime/utils/events/print-label.js +25 -26
  4. package/dist/es/components/runtime/utils/events/standard-event.js +18 -18
  5. package/dist/es/components/runtime/utils/events/validator-util.js +1 -1
  6. package/dist/es/components/runtime/utils/page-init-util.js +1 -2
  7. package/dist/es/components/runtime/utils/page-store.js +10 -10
  8. package/dist/es/components/runtime/utils/table-utils.js +1 -1
  9. package/dist/es/components/runtime/views/assemblys/chart/common/common-chart-header-group.vue.js +6 -10
  10. package/dist/es/components/runtime/views/assemblys/chart/common/common-chart-header.vue.js +6 -8
  11. package/dist/es/components/runtime/views/assemblys/chart/table/chart-table-util.js +7 -12
  12. package/dist/es/components/runtime/views/assemblys/common/export-form-report-dialog.vue.js +17 -19
  13. package/dist/es/components/runtime/views/assemblys/container/fixed/YxAffix.vue2.js +0 -2
  14. package/dist/es/components/runtime/views/assemblys/container/tabs/tabs-runtime.vue.js +3 -3
  15. package/dist/es/components/runtime/views/assemblys/container/tabs/tabs-runtime.vue2.js +34 -34
  16. package/dist/es/components/runtime/views/assemblys/data/bar-code/barcode-runtime.vue2.js +10 -12
  17. package/dist/es/components/runtime/views/assemblys/data/table/main-table-runtime.vue.js +9 -10
  18. package/dist/es/components/runtime/views/assemblys/form/custom/custom-runtime.vue2.js +1 -1
  19. package/dist/es/components/runtime/views/assemblys/form/date-picker/datepicker-runtime.vue2.js +32 -32
  20. package/dist/es/components/runtime/views/assemblys/form/file-upload/fileupload-runtime.vue2.js +27 -27
  21. package/dist/es/components/runtime/views/assemblys/form/input-text/inputtext-runtime.vue2.js +49 -47
  22. package/dist/es/components/runtime/views/assemblys/form/label/label-runtime.vue2.js +3 -5
  23. package/dist/es/components/runtime/views/assemblys/form/link/link-runtime.vue2.js +0 -1
  24. package/dist/es/components/runtime/views/assemblys/form/rich-text/richtext-runtime.vue2.js +0 -1
  25. package/dist/es/components/runtime/views/assemblys/home-chart-render.vue.js +2 -2
  26. package/dist/es/components/runtime/views/assemblys/object-render.vue.js +15 -15
  27. package/dist/es/components/runtime/views/home-chart.vue.d.ts +3 -3
  28. package/dist/es/components/runtime/views/home-chart.vue.js +24 -22
  29. package/dist/es/components/runtime/views/super-page-dialog.vue.js +0 -1
  30. package/dist/es/components/runtime/views/super-page.vue.js +1 -1
  31. package/dist/es/components/runtime/views/super-page.vue2.js +50 -52
  32. package/dist/es/i18n/langs/cn.js +1 -1
  33. package/dist/es/i18n/langs/en.js +1 -1
  34. package/dist/es/style.css +87 -87
  35. package/package.json +2 -2
@@ -1,27 +1,27 @@
1
- import { defineComponent as e, ref as l, watch as t, onMounted as i, nextTick as o, onUnmounted as a, resolveComponent as s, createBlock as u, createCommentVNode as n, openBlock as p, normalizeStyle as r, normalizeClass as m, unref as f, withCtx as v, createElementBlock as c, toDisplayString as d } from "vue";
1
+ import { defineComponent as e, ref as l, watch as t, onMounted as o, nextTick as a, onUnmounted as i, resolveComponent as n, createBlock as s, createCommentVNode as u, openBlock as p, normalizeStyle as r, normalizeClass as d, unref as v, withCtx as m, createElementBlock as f, toDisplayString as c } from "vue";
2
2
  import { getVariableValue as h, setVariableValue as y } from "../../../../utils/page-helper-util.js";
3
3
  import { handleAfterInitEvent as g, fileUploadBeforeUpload as C } from "../../../../utils/events/event-util.js";
4
- import x from "agilebuilder-ui/src/utils/request";
5
- import { FsUploadNew as b } from "agilebuilder-ui";
6
- import k from "../../../../utils/eventBus.js";
7
- import { $t as _ } from "../../../../utils/i18n-util.js";
8
- const w = e({ __name: "fileupload-runtime", props: { pageContext: {}, configure: {} }, setup(e2) {
9
- const w2 = e2, P = w2.configure.runtime ? w2.configure.runtime : {}, j = l(P.props ? P.props : {}), R = P.style, T = P.class, z = P.headerStyle, I = P.titleExceedStyle, O = w2.pageContext.entity ? w2.pageContext.entity : {}, S = w2.configure.props.base ? w2.configure.props.base : {}, F = G(S.prop), N = G(S.propName);
10
- F && F.length > 1 && t(() => w2.pageContext.entity[F[0]][F[1]], (e3) => {
11
- A(h(O, F));
4
+ import b from "agilebuilder-ui/src/utils/request";
5
+ import { FsUploadNew as w } from "agilebuilder-ui";
6
+ import x from "../../../../utils/eventBus.js";
7
+ import { $t as k } from "../../../../utils/i18n-util.js";
8
+ const P = e({ __name: "fileupload-runtime", props: { pageContext: {}, configure: {} }, setup(e2) {
9
+ const P2 = e2, _ = P2.configure.runtime ? P2.configure.runtime : {}, j = l(_.props ? _.props : {}), N = _.style, R = _.class, T = _.headerStyle, z = _.titleExceedStyle, D = P2.pageContext.entity ? P2.pageContext.entity : {}, I = P2.configure.props.base ? P2.configure.props.base : {}, O = G(I.prop), S = G(I.propName);
10
+ O && O.length > 1 && t(() => P2.pageContext.entity[O[0]][O[1]], (e3) => {
11
+ A(h(D, O));
12
12
  });
13
- const q = w2.pageContext.code, D = l(F ? q + "__" + F.join("__") : null), U = h(O, F), $ = l(null), W = l(false), B = l([]), E = l({});
13
+ const F = P2.pageContext.code, q = l(O ? F + "__" + O.join("__") : null), U = h(D, O), $ = l(null), W = l(false), B = l([]), E = l({});
14
14
  function A(e3) {
15
15
  if (e3) {
16
16
  const l2 = e3.split(",");
17
17
  if (l2.length > 0) {
18
- const e4 = w2.pageContext.backendUrl;
19
- x.post(e4 + "/common/fs-upload/search-file-names", l2).then((e5) => {
18
+ const e4 = P2.pageContext.backendUrl;
19
+ b.post(e4 + "/common/fs-upload/search-file-names", l2).then((e5) => {
20
20
  B.value = [];
21
21
  const t2 = [];
22
- for (let i2 = 0; i2 < l2.length; i2++) {
23
- const o2 = l2[i2];
24
- t2.push(e5[o2]), B.value.push({ showName: e5[o2], serverPath: o2 });
22
+ for (let o2 = 0; o2 < l2.length; o2++) {
23
+ const a2 = l2[o2];
24
+ t2.push(e5[a2]), B.value.push({ showName: e5[a2], serverPath: a2 });
25
25
  }
26
26
  "input" === j.value.displayType && (E.value.showName = t2.join(","), E.value.serverPath = l2.join(","));
27
27
  }).finally(() => {
@@ -48,22 +48,22 @@ const w = e({ __name: "fileupload-runtime", props: { pageContext: {}, configure:
48
48
  for (let l3 = 0; l3 < e4; l3++) B.value.shift();
49
49
  }
50
50
  for (let t2 = 0; t2 < B.value.length; t2++) e3.push(B.value[t2].showName), l2.push(B.value[t2].serverPath);
51
- y(w2.pageContext.entity, F, l2.join(",")), y(w2.pageContext.entity, N, e3.join(","));
51
+ y(P2.pageContext.entity, O, l2.join(",")), y(P2.pageContext.entity, S, e3.join(","));
52
52
  }, M = l(null), Q = l(null);
53
- return i(() => {
54
- k.$on(D.value + "-pickFileDone", (e3) => {
55
- D.value, $.value.pickFileDone(e3);
56
- }), o(() => {
57
- const e3 = h(O, F), l2 = { showName: h(O, N), serverPath: e3 };
58
- g(l2, w2.pageContext, w2.configure, { formItemRef: M.value, componentRef: $.value, titleRef: Q.value, value: l2, entity: w2.pageContext.entity.data, pageData: w2.pageContext.entity.page });
53
+ return o(() => {
54
+ x.$on(q.value + "-pickFileDone", (e3) => {
55
+ $.value.pickFileDone(e3);
56
+ }), a(() => {
57
+ const e3 = h(D, O), l2 = { showName: h(D, S), serverPath: e3 };
58
+ g(l2, P2.pageContext, P2.configure, { formItemRef: M.value, componentRef: $.value, titleRef: Q.value, value: l2, entity: P2.pageContext.entity.data, pageData: P2.pageContext.entity.page });
59
59
  });
60
- }), a(() => {
61
- k.$off(D.value + "-pickFileDone");
60
+ }), i(() => {
61
+ x.$off(q.value + "-pickFileDone");
62
62
  }), (e3, l2) => {
63
- const t2 = s("el-form-item");
64
- return j.value.tittleShow ? (p(), u(t2, { key: 0, ref_key: "formItemRef", ref: M, required: j.value.required, class: m(f(T)), "label-width": j.value.labelWidth, style: r(f(R)) }, { label: v(() => [j.value.tittleShow ? (p(), c("div", { key: 0, ref_key: "titleRef", ref: Q, style: r({ ...f(z), ...f(I) }) }, d(f(_)(j.value.title)), 5)) : n("", true)]), default: v(() => [W.value ? (p(), u(f(b), { key: 0, ref_key: "fileUploadRef", ref: $, style: { width: "100%" }, disabled: "disabled" === j.value.state, displayType: j.value.displayType, accept: j.value.accept, multiple: j.value.multiple, placeholder: j.value.placeholder, limit: j.value.limit, "limit-file-size": j.value.limitFileSize, openCameraOrChoosePhoto: j.value.openCameraOrChoosePhoto, "file-info": E.value, "file-list": B.value, "system-code": e3.pageContext.systemCode, componentId: D.value, "on-success": J, "on-remove": K, "before-upload": H, pageContext: e3.pageContext }, null, 8, ["disabled", "displayType", "accept", "multiple", "placeholder", "limit", "limit-file-size", "openCameraOrChoosePhoto", "file-info", "file-list", "system-code", "componentId", "pageContext"])) : n("", true)]), _: 1 }, 8, ["required", "class", "label-width", "style"])) : W.value ? (p(), u(f(b), { key: 1, ref_key: "fileUploadRef", ref: $, style: { width: "100%" }, disabled: "disabled" === j.value.state, displayType: j.value.displayType, accept: j.value.accept, multiple: j.value.multiple, placeholder: j.value.placeholder, limit: j.value.limit, "limit-file-size": j.value.limitFileSize, openCameraOrChoosePhoto: j.value.openCameraOrChoosePhoto, "file-info": E.value, "file-list": B.value, "system-code": e3.pageContext.systemCode, componentId: D.value, "on-success": J, "on-remove": K, "before-upload": H, pageContext: e3.pageContext }, null, 8, ["disabled", "displayType", "accept", "multiple", "placeholder", "limit", "limit-file-size", "openCameraOrChoosePhoto", "file-info", "file-list", "system-code", "componentId", "pageContext"])) : n("", true);
63
+ const t2 = n("el-form-item");
64
+ return j.value.tittleShow ? (p(), s(t2, { key: 0, ref_key: "formItemRef", ref: M, required: j.value.required, class: d(v(R)), "label-width": j.value.labelWidth, style: r(v(N)) }, { label: m(() => [j.value.tittleShow ? (p(), f("div", { key: 0, ref_key: "titleRef", ref: Q, style: r({ ...v(T), ...v(z) }) }, c(v(k)(j.value.title)), 5)) : u("", true)]), default: m(() => [W.value ? (p(), s(v(w), { key: 0, ref_key: "fileUploadRef", ref: $, style: { width: "100%" }, disabled: "disabled" === j.value.state, displayType: j.value.displayType, accept: j.value.accept, multiple: j.value.multiple, placeholder: j.value.placeholder, limit: j.value.limit, "limit-file-size": j.value.limitFileSize, "disabled-no-preview": j.value.disabledNoPreview, "disabled-no-download": j.value.disabledNoDownload, openCameraOrChoosePhoto: j.value.openCameraOrChoosePhoto, "file-info": E.value, "file-list": B.value, "system-code": e3.pageContext.systemCode, componentId: q.value, "on-success": J, "on-remove": K, "before-upload": H, pageContext: e3.pageContext }, null, 8, ["disabled", "displayType", "accept", "multiple", "placeholder", "limit", "limit-file-size", "disabled-no-preview", "disabled-no-download", "openCameraOrChoosePhoto", "file-info", "file-list", "system-code", "componentId", "pageContext"])) : u("", true)]), _: 1 }, 8, ["required", "class", "label-width", "style"])) : W.value ? (p(), s(v(w), { key: 1, ref_key: "fileUploadRef", ref: $, style: { width: "100%" }, disabled: "disabled" === j.value.state, displayType: j.value.displayType, accept: j.value.accept, multiple: j.value.multiple, placeholder: j.value.placeholder, limit: j.value.limit, "limit-file-size": j.value.limitFileSize, "disabled-no-preview": j.value.disabledNoPreview, "disabled-no-download": j.value.disabledNoDownload, openCameraOrChoosePhoto: j.value.openCameraOrChoosePhoto, "file-info": E.value, "file-list": B.value, "system-code": e3.pageContext.systemCode, componentId: q.value, "on-success": J, "on-remove": K, "before-upload": H, pageContext: e3.pageContext }, null, 8, ["disabled", "displayType", "accept", "multiple", "placeholder", "limit", "limit-file-size", "disabled-no-preview", "disabled-no-download", "openCameraOrChoosePhoto", "file-info", "file-list", "system-code", "componentId", "pageContext"])) : u("", true);
65
65
  };
66
66
  } });
67
67
  export {
68
- w as default
68
+ P as default
69
69
  };
@@ -1,76 +1,78 @@
1
- import { defineComponent as e, ref as t, computed as n, onMounted as o, nextTick as l, onUnmounted as a, watch as u, resolveComponent as i, createBlock as r, openBlock as p, normalizeStyle as s, normalizeClass as c, unref as v, withCtx as f, createVNode as y, createCommentVNode as g, createSlots as d, createTextVNode as m, toDisplayString as x, createElementBlock as C, Fragment as I } from "vue";
1
+ import { defineComponent as e, ref as t, computed as o, onMounted as n, nextTick as l, onUnmounted as a, watch as u, resolveComponent as i, createBlock as r, openBlock as p, normalizeStyle as s, normalizeClass as c, unref as f, withCtx as v, 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
- import { getModelFieldFromPageContext as w, isNumberDataType as V, setVariableValue as h, getVariableValue as b } from "../../../../utils/page-helper-util.js";
4
+ import { getModelFieldFromPageContext as w, isNumberDataType as V, setVariableValue as b, getVariableValue as h } from "../../../../utils/page-helper-util.js";
5
5
  import { handleFormEvent as _, handleAfterInitEvent as S, doSuffixOrPrefixClickEvent as j } from "../../../../utils/events/event-util.js";
6
- import { formatScanRuleSets as O, analysisScanValue as R, setScanAnalysisValue as N } from "../../../../utils/form/scan-util.js";
7
- import D from "../common/title-suffix-element.vue.js";
8
- import { isMobileBrowser as J } from "agilebuilder-ui/src/utils/common-util";
9
- import M from "../../../../utils/eventBus.js";
10
- import { $t as P } from "../../../../utils/i18n-util.js";
11
- const q = e({ __name: "inputtext-runtime", props: { pageContext: {}, configure: {} }, setup(e2, { expose: q2 }) {
6
+ import { formatScanRuleSets as R, analysisScanValue as O, setScanAnalysisValue as D } from "../../../../utils/form/scan-util.js";
7
+ import M from "../common/title-suffix-element.vue.js";
8
+ import { isMobileBrowser as N } from "agilebuilder-ui/src/utils/common-util";
9
+ import P from "../../../../utils/eventBus.js";
10
+ import { $t as q } from "../../../../utils/i18n-util.js";
11
+ const z = e({ __name: "inputtext-runtime", props: { pageContext: {}, configure: {} }, setup(e2, { expose: z2 }) {
12
12
  var _a, _b, _c;
13
- const z = e2, L = z.pageContext.entity ? z.pageContext.entity : {}, B = t("text");
14
- let F = k(z.pageContext, z.configure);
15
- if (z.pageContext.modelFieldsMap) {
16
- const e3 = w(F, z.pageContext);
13
+ const J = e2, L = J.pageContext.entity ? J.pageContext.entity : {}, B = t("text");
14
+ let F = k(J.pageContext, J.configure);
15
+ if (J.pageContext.modelFieldsMap) {
16
+ const e3 = w(F, J.pageContext);
17
17
  e3 && (B.value = V(e3.dataType) ? "number" : "text");
18
18
  }
19
- const $ = t(J()), A = z.pageContext.code, E = t(F && F.length > 0 ? A + "__" + F.join("__") : null), U = n({ get: () => b(L, F), set(e3) {
20
- e3 = e3.trim(), h(L, F, e3);
21
- } }), W = t(null), G = t(null), H = t(null), K = z.configure.runtime ? z.configure.runtime : {}, Q = t(K.props ? K.props : {}), X = t(!!((_a = Q.value.scan) == null ? void 0 : _a.enable));
19
+ const $ = t(N()), A = J.pageContext.code, E = t(F && F.length > 0 ? A + "__" + F.join("__") : null), U = o({ get: () => h(L, F), set(e3) {
20
+ b(L, F, e3);
21
+ } }), W = t(null), G = t(null), H = t(null), K = J.configure.runtime ? J.configure.runtime : {}, Q = t(K.props ? K.props : {}), X = t(!!((_a = Q.value.scan) == null ? void 0 : _a.enable));
22
22
  let Y = false;
23
23
  const Z = window.localStorage.getItem("auth_source");
24
24
  Z && "dingtalk" === Z && (Y = true);
25
25
  let ee = "";
26
- const te = navigator.userAgent;
27
- ee = te.indexOf(" uni-app ") > 0 ? "app" : "browser";
28
- const ne = !(!$.value || !ee || "app" !== ee), oe = t(!!((ne || Y) && X.value || $.value && X.value && "https:" === window.location.protocol));
29
- let le = {};
30
- ((_b = Q.value.scan) == null ? void 0 : _b.enable) && ((_c = Q.value.scan.ruleList) == null ? void 0 : _c.length) > 0 && (O(Q.value.scan.ruleList).then((e3) => {
31
- le = e3;
26
+ ee = navigator.userAgent.indexOf(" uni-app ") > 0 ? "app" : "browser";
27
+ const te = !(!$.value || !ee || "app" !== ee), oe = t(!!((te || Y) && X.value || $.value && X.value && "https:" === window.location.protocol));
28
+ let ne = {};
29
+ ((_b = Q.value.scan) == null ? void 0 : _b.enable) && ((_c = Q.value.scan.ruleList) == null ? void 0 : _c.length) > 0 && (R(Q.value.scan.ruleList).then((e3) => {
30
+ ne = e3;
32
31
  }), u(() => U.value, (e3) => {
33
32
  e3 = e3.trim();
34
- const t2 = R(e3, le);
35
- t2 && N(z.pageContext, t2.scanSet, t2.params);
33
+ const t2 = O(e3, ne);
34
+ t2 && D(J.pageContext, t2.scanSet, t2.params);
36
35
  }));
37
- const ae = K.style, ue = K.class, ie = K.headerStyle, re = K.titleExceedStyle;
38
- function pe(e3) {
39
- return h(L, F, e3);
36
+ const le = K.style, ae = K.class, ue = K.headerStyle, ie = K.titleExceedStyle;
37
+ function re(e3) {
38
+ return b(L, F, e3);
40
39
  }
41
- o(() => {
42
- M.$on(E.value + "-scanDone", (e3) => {
43
- E.value, JSON.stringify(e3), pe(e3.result), _(e3.result, z.pageContext, z.configure, "afterScanDone");
40
+ n(() => {
41
+ P.$on(E.value + "-scanDone", (e3) => {
42
+ re(e3.result), _(e3.result, J.pageContext, J.configure, "afterScanDone");
44
43
  }), l(() => {
45
44
  var _a2;
46
45
  const e3 = U.value;
47
- S(e3, z.pageContext, z.configure, { formItemRef: W.value, componentRef: G.value, titleRef: H.value, value: e3, entity: z.pageContext.entity.data, pageData: z.pageContext.entity.page }), oe.value && ((_a2 = Q.value.scan) == null ? void 0 : _a2.autoOpen) && ce();
46
+ S(e3, J.pageContext, J.configure, { formItemRef: W.value, componentRef: G.value, titleRef: H.value, value: e3, entity: J.pageContext.entity.data, pageData: J.pageContext.entity.page }), oe.value && ((_a2 = Q.value.scan) == null ? void 0 : _a2.autoOpen) && se();
48
47
  });
49
48
  }), a(() => {
50
- M.$off(E.value + "-scanDone");
49
+ P.$off(E.value + "-scanDone");
51
50
  });
52
- const se = t(false);
53
- function ce() {
54
- if (ne || Y) {
55
- const e3 = { type: "scan", componentId: E.value, systemCode: z.pageContext.systemCode };
56
- Y && (e3.type = "dingTalkScan"), window.parent.parent ? (window.parent.parent, window.parent.parent.postMessage(JSON.stringify(e3), "*")) : window.parent && (window.parent, window.parent.postMessage(JSON.stringify(e3), "*"));
57
- } else if ($.value) if ("https:" === window.location.protocol) se.value = true;
51
+ const pe = t(false);
52
+ function se() {
53
+ if (te || Y) {
54
+ const e3 = { type: "scan", componentId: E.value, systemCode: J.pageContext.systemCode };
55
+ Y && (e3.type = "dingTalkScan"), window.parent.parent ? window.parent.parent.postMessage(JSON.stringify(e3), "*") : window.parent && window.parent.postMessage(JSON.stringify(e3), "*");
56
+ } else if ($.value) if ("https:" === window.location.protocol) pe.value = true;
58
57
  else {
59
- const e3 = { type: "scan", componentId: E.value, systemCode: z.pageContext.systemCode };
58
+ const e3 = { type: "scan", componentId: E.value, systemCode: J.pageContext.systemCode };
60
59
  window.parent.postMessage(JSON.stringify(e3), "*");
61
60
  }
62
- else se.value = true;
61
+ else pe.value = true;
63
62
  }
64
- function ve(e3) {
65
- se.value = false, pe(e3);
63
+ function ce(e3) {
64
+ pe.value = false, re(e3);
66
65
  }
67
- return q2({ getValue: function() {
68
- return b(L, F);
69
- }, setValue: pe, scanClick: ce }), (e3, t2) => {
70
- const n2 = i("el-input"), o2 = i("scan-code-input-browser"), l2 = i("el-form-item");
71
- return p(), r(l2, { ref_key: "formItemRef", ref: W, required: !!Q.value.required, class: c(v(ue)), "label-width": Q.value.labelWidth, style: s(v(ae)) }, { label: f(() => [Q.value.tittleShow ? (p(), C("div", { key: 0, ref_key: "titleRef", ref: H, style: s({ ...v(ie), ...v(re) }) }, [Q.value.prefixType ? (p(), r(D, { key: 0, pageContext: e3.pageContext, property: Q.value }, null, 8, ["pageContext", "property"])) : (p(), C(I, { key: 1 }, [m(x(v(P)(Q.value.title)), 1)], 64))], 4)) : g("", true)]), default: f(() => [y(n2, { ref_key: "componentRef", ref: G, disabled: "disabled" === Q.value.state, readonly: "readonly" === Q.value.state, size: Q.value.size, clearable: Q.value.clearable, placeholder: Q.value.placeholder, maxlength: Q.value.maxLength, "show-word-limit": Q.value.showInputNum, type: B.value, modelValue: U.value, "onUpdate:modelValue": t2[5] || (t2[5] = (e4) => U.value = e4), onInput: t2[6] || (t2[6] = (t3) => v(_)(t3, e3.pageContext, e3.configure, "input")), onChange: t2[7] || (t2[7] = (t3) => v(_)(t3, e3.pageContext, e3.configure, "change")), onBlur: t2[8] || (t2[8] = (t3) => v(_)(t3, e3.pageContext, e3.configure, "blur")), onFocus: t2[9] || (t2[9] = (t3) => v(_)(t3, e3.pageContext, e3.configure, "focus")), onClick: t2[10] || (t2[10] = (t3) => v(_)(t3, e3.pageContext, e3.configure, "click")), onClear: t2[11] || (t2[11] = (t3) => v(_)(t3, e3.pageContext, e3.configure, "clear")) }, d({ _: 2 }, ["outer" != Q.value.iconPosition && (Q.value.preIconType && Q.value.preIconValue || Q.value.preText) ? { name: "prefix", fn: f(() => [Q.value.preIconType && Q.value.preIconValue ? (p(), r(v(T), { key: 0, style: { cursor: "pointer" }, iconType: Q.value.preIconType, iconValue: Q.value.preIconValue, onClick: t2[0] || (t2[0] = (t3) => v(j)(U.value, e3.pageContext, e3.configure, "prefixClick")) }, null, 8, ["iconType", "iconValue"])) : g("", true), m(" " + x(v(P)(Q.value.preText)), 1)]), key: "0" } : void 0, "outer" == Q.value.iconPosition && (Q.value.preIconType && Q.value.preIconValue || Q.value.preText) ? { name: "prepend", fn: f(() => [Q.value.preIconType && Q.value.preIconValue ? (p(), r(v(T), { key: 0, style: { cursor: "pointer" }, iconType: Q.value.preIconType, iconValue: Q.value.preIconValue, onClick: t2[1] || (t2[1] = (t3) => v(j)(U.value, e3.pageContext, e3.configure, "prefixClick")) }, null, 8, ["iconType", "iconValue"])) : g("", true), m(" " + x(v(P)(Q.value.preText)), 1)]), key: "1" } : void 0, "outer" != Q.value.iconPosition && (Q.value.sufIconType && Q.value.sufIconValue || Q.value.sufText) ? { name: "suffix", fn: f(() => [Q.value.sufIconType && Q.value.sufIconValue ? (p(), r(v(T), { key: 0, style: { cursor: "pointer" }, iconType: Q.value.sufIconType, iconValue: Q.value.sufIconValue, onClick: t2[2] || (t2[2] = (t3) => v(j)(U.value, e3.pageContext, e3.configure, "suffixClick")) }, null, 8, ["iconType", "iconValue"])) : g("", true), m(" " + x(v(P)(Q.value.sufText)), 1)]), key: "2" } : void 0, oe.value || "outer" == Q.value.iconPosition && (Q.value.sufIconType && Q.value.sufIconValue || Q.value.sufText) ? { name: "append", fn: f(() => [oe.value ? (p(), r(v(T), { key: 0, style: { cursor: "pointer" }, iconValue: "fa-barcode", onClick: t2[3] || (t2[3] = (e4) => ce()) })) : g("", true), Q.value.sufIconType && Q.value.sufIconValue ? (p(), r(v(T), { key: 1, style: { cursor: "pointer" }, iconType: Q.value.sufIconType, iconValue: Q.value.sufIconValue, onClick: t2[4] || (t2[4] = (t3) => v(j)(U.value, e3.pageContext, e3.configure, "suffixClick")) }, null, 8, ["iconType", "iconValue"])) : g("", true), m(" " + x(v(P)(Q.value.sufText)), 1)]), key: "3" } : void 0]), 1032, ["disabled", "readonly", "size", "clearable", "placeholder", "maxlength", "show-word-limit", "type", "modelValue"]), se.value ? (p(), r(o2, { key: 0, onClose: ve })) : g("", true)]), _: 1 }, 8, ["required", "class", "label-width", "style"]);
66
+ return z2({ getValue: function() {
67
+ return h(L, F);
68
+ }, setValue: re, scanClick: se }), (e3, t2) => {
69
+ const o2 = i("el-input"), n2 = i("scan-code-input-browser"), l2 = i("el-form-item");
70
+ return p(), r(l2, { ref_key: "formItemRef", ref: W, required: !!Q.value.required, class: c(f(ae)), "label-width": Q.value.labelWidth, style: s(f(le)) }, { label: v(() => [Q.value.tittleShow ? (p(), C("div", { key: 0, ref_key: "titleRef", ref: H, style: s({ ...f(ue), ...f(ie) }) }, [Q.value.prefixType ? (p(), r(M, { key: 0, pageContext: e3.pageContext, property: Q.value }, null, 8, ["pageContext", "property"])) : (p(), C(I, { key: 1 }, [d(x(f(q)(Q.value.title)), 1)], 64))], 4)) : y("", true)]), default: v(() => [g(o2, { ref_key: "componentRef", ref: G, disabled: "disabled" === Q.value.state, readonly: "readonly" === Q.value.state, size: Q.value.size, clearable: Q.value.clearable, placeholder: Q.value.placeholder, maxlength: Q.value.maxLength, "show-word-limit": Q.value.showInputNum, type: B.value, modelValue: U.value, "onUpdate:modelValue": t2[5] || (t2[5] = (e4) => U.value = e4), onInput: t2[6] || (t2[6] = (t3) => f(_)(t3, e3.pageContext, e3.configure, "input")), onChange: t2[7] || (t2[7] = (t3) => f(_)(t3, e3.pageContext, e3.configure, "change")), onBlur: t2[8] || (t2[8] = (e4) => function(e5) {
71
+ let t3 = h(L, F);
72
+ (void 0 === J.configure.props.base.trimable || J.configure.props.base.trimable) && (t3 = t3.trim()), b(L, F, t3), _(e5, J.pageContext, J.configure, "blur");
73
+ }(e4)), onFocus: t2[9] || (t2[9] = (t3) => f(_)(t3, e3.pageContext, e3.configure, "focus")), onClick: t2[10] || (t2[10] = (t3) => f(_)(t3, e3.pageContext, e3.configure, "click")), onClear: t2[11] || (t2[11] = (t3) => f(_)(t3, e3.pageContext, e3.configure, "clear")) }, m({ _: 2 }, ["outer" != Q.value.iconPosition && (Q.value.preIconType && Q.value.preIconValue || Q.value.preText) ? { name: "prefix", fn: v(() => [Q.value.preIconType && Q.value.preIconValue ? (p(), r(f(T), { key: 0, style: { cursor: "pointer" }, iconType: Q.value.preIconType, iconValue: Q.value.preIconValue, onClick: t2[0] || (t2[0] = (t3) => f(j)(U.value, e3.pageContext, e3.configure, "prefixClick")) }, null, 8, ["iconType", "iconValue"])) : y("", true), d(" " + x(f(q)(Q.value.preText)), 1)]), key: "0" } : void 0, "outer" == Q.value.iconPosition && (Q.value.preIconType && Q.value.preIconValue || Q.value.preText) ? { name: "prepend", fn: v(() => [Q.value.preIconType && Q.value.preIconValue ? (p(), r(f(T), { key: 0, style: { cursor: "pointer" }, iconType: Q.value.preIconType, iconValue: Q.value.preIconValue, onClick: t2[1] || (t2[1] = (t3) => f(j)(U.value, e3.pageContext, e3.configure, "prefixClick")) }, null, 8, ["iconType", "iconValue"])) : y("", true), d(" " + x(f(q)(Q.value.preText)), 1)]), key: "1" } : void 0, "outer" != Q.value.iconPosition && (Q.value.sufIconType && Q.value.sufIconValue || Q.value.sufText) ? { name: "suffix", fn: v(() => [Q.value.sufIconType && Q.value.sufIconValue ? (p(), r(f(T), { key: 0, style: { cursor: "pointer" }, iconType: Q.value.sufIconType, iconValue: Q.value.sufIconValue, onClick: t2[2] || (t2[2] = (t3) => f(j)(U.value, e3.pageContext, e3.configure, "suffixClick")) }, null, 8, ["iconType", "iconValue"])) : y("", true), d(" " + x(f(q)(Q.value.sufText)), 1)]), key: "2" } : void 0, oe.value || "outer" == Q.value.iconPosition && (Q.value.sufIconType && Q.value.sufIconValue || Q.value.sufText) ? { name: "append", fn: v(() => [oe.value ? (p(), r(f(T), { key: 0, style: { cursor: "pointer" }, iconValue: "fa-barcode", onClick: t2[3] || (t2[3] = (e4) => se()) })) : y("", true), Q.value.sufIconType && Q.value.sufIconValue ? (p(), r(f(T), { key: 1, style: { cursor: "pointer" }, iconType: Q.value.sufIconType, iconValue: Q.value.sufIconValue, onClick: t2[4] || (t2[4] = (t3) => f(j)(U.value, e3.pageContext, e3.configure, "suffixClick")) }, null, 8, ["iconType", "iconValue"])) : y("", true), d(" " + x(f(q)(Q.value.sufText)), 1)]), key: "3" } : void 0]), 1032, ["disabled", "readonly", "size", "clearable", "placeholder", "maxlength", "show-word-limit", "type", "modelValue"]), pe.value ? (p(), r(n2, { key: 0, onClose: ce })) : y("", true)]), _: 1 }, 8, ["required", "class", "label-width", "style"]);
72
74
  };
73
75
  } });
74
76
  export {
75
- q as default
77
+ z as default
76
78
  };
@@ -1,4 +1,4 @@
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 s, normalizeStyle as p, 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 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";
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";
@@ -7,9 +7,7 @@ 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
8
  const R = e2, S = R.pageContext.entity ? R.pageContext.entity : {};
9
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;
11
- A.value;
12
- const H = l(() => {
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(() => {
13
11
  let e3 = m(S, P);
14
12
  if (G) if (A.value.hasOptions) {
15
13
  let t2 = null;
@@ -29,7 +27,7 @@ const I = { style: { width: "100%", "text-align": "center", "font-weight": "700"
29
27
  B.value = e3 || [];
30
28
  } }), (e3, t2) => {
31
29
  const l2 = n("el-form-item");
32
- return A.value.whetherTittle ? (s(), i("div", { key: 0, ref_key: "titleRef", ref: L, class: r(f(z)), style: p(f(O)) }, [c("div", I, v(A.value.title), 1)], 6)) : A.value.tittleShow ? (s(), o(l2, { key: 1, ref_key: "formItemRef", ref: J, required: !!A.value.required, class: r(f(z)), "label-width": A.value.labelWidth, style: p(f(O)) }, { label: y(() => [A.value.tittleShow ? (s(), i("div", { key: 0, ref_key: "titleRef", ref: L, style: p({ ...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 ? (s(), i("span", { key: 0, class: r({ "el-input__suffix": "outer" != A.value.iconPosition, "el-input-group__append": "outer" == A.value.iconPosition }), style: p(f(F)) }, [A.value.preIconType && A.value.preIconValue ? (s(), 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 ? (s(), 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 ? (s(), 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"])) : (s(), 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 ? (s(), i("span", { key: 0, class: r(f(E)), style: p(f(F)) }, v(A.value.suffixTxt), 7)) : g("", true)]));
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)]));
33
31
  };
34
32
  } });
35
33
  export {
@@ -5,7 +5,6 @@ import { handleAfterInitEvent as k, handleEvent as x } from "../../../../utils/e
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
- S.value;
9
8
  let $ = S.value.formatting;
10
9
  const D = _2.pageContext.entity ? _2.pageContext.entity : {}, V = l(() => {
11
10
  let e3 = b(D, h);
@@ -70,7 +70,6 @@ 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, "上传图片失败");
74
73
  });
75
74
  }
76
75
  }
@@ -1,4 +1,4 @@
1
- import { defineComponent as e, ref as o, markRaw as t, onMounted as n, resolveDirective as i, withDirectives as r, createCommentVNode as u, unref as s, createBlock as l, openBlock as c, resolveDynamicComponent as f, normalizeClass as g, normalizeStyle as a, vShow as p, nextTick as m } from "vue";
1
+ import { defineComponent as e, ref as o, markRaw as t, onMounted as n, resolveDirective as i, withDirectives as r, createCommentVNode as s, unref as u, createBlock as l, openBlock as c, resolveDynamicComponent as g, normalizeClass as f, normalizeStyle as a, vShow as p, nextTick as m } from "vue";
2
2
  import v from "./error-render.vue.js";
3
3
  import { getRuntimeComponentByName as d } from "../../utils/assemblys-config.js";
4
4
  import { PageDimensions as y } from "../../utils/interfaces/page-design-types.js";
@@ -75,7 +75,7 @@ const H = e({ __name: "home-chart-render", props: { pageContext: {}, configure:
75
75
  };
76
76
  return (e3, o2) => {
77
77
  const t2 = i("permission");
78
- return s($)(e3.configure) ? r((c(), l(f(P.value), { key: 0, ref: D, style: a(W.value), class: g(q.value), configure: e3.configure, pageContext: e3.pageContext }, null, 8, ["style", "class", "configure", "pageContext"])), [[p, s(B)], [t2, s(N) ? s(N) : "true"]]) : u("", true);
78
+ return u($)(e3.configure) ? r((c(), l(g(P.value), { key: 0, ref: D, style: a(W.value), class: f(q.value), configure: e3.configure, pageContext: e3.pageContext }, null, 8, ["style", "class", "configure", "pageContext"])), [[p, u(B)], [t2, { codes: u(N) ? u(N) : "true", systemCode: e3.pageContext.systemCode }]]) : s("", true);
79
79
  };
80
80
  } });
81
81
  export {
@@ -1,8 +1,8 @@
1
- import { defineComponent as e, ref as o, computed as t, markRaw as n, onMounted as i, onUnmounted as s, resolveDirective as r, withDirectives as u, createCommentVNode as l, unref as a, createBlock as p, openBlock as c, resolveDynamicComponent as g, normalizeClass as f, normalizeStyle as m, vShow as d, nextTick as v } from "vue";
2
- import C from "./error-render.vue.js";
1
+ import { defineComponent as e, ref as o, computed as t, markRaw as n, onMounted as s, onUnmounted as i, resolveDirective as r, withDirectives as u, createCommentVNode as l, unref as a, createBlock as p, openBlock as c, resolveDynamicComponent as g, normalizeClass as f, normalizeStyle as m, vShow as d, nextTick as C } from "vue";
2
+ import v from "./error-render.vue.js";
3
3
  import { getRuntimeComponentByName as b } from "../../utils/assemblys-config.js";
4
- import { PageDimensions as h } from "../../utils/interfaces/page-design-types.js";
5
- import { addComponentRef as x, addComponentRefByCode as y } from "../../utils/global-refs.js";
4
+ import { PageDimensions as x } from "../../utils/interfaces/page-design-types.js";
5
+ import { addComponentRef as h, addComponentRefByCode as y } from "../../utils/global-refs.js";
6
6
  import { getPermissionCodes as w, packageFormRules as j, controlObjectRenderState as N } from "../../utils/page-init-util.js";
7
7
  import { caculateShowCondition as _, getFormPropName as L, getSizeConfig as O } from "../../utils/page-helper-util.js";
8
8
  import { isWorkflowPage as P, getPropClassName as S, isNumber as T } from "../../utils/common-util.js";
@@ -53,13 +53,13 @@ const k = e({ __name: "object-render", props: { pageContext: {}, configure: {} }
53
53
  const R = o({});
54
54
  R.value = n(b(k2.configure.name));
55
55
  const W = o(true);
56
- null == R.value && (R.value = C, W.value = false);
56
+ null == R.value && (R.value = v, W.value = false);
57
57
  const q = o(null), z = o({}), A = o(""), D = S(k2.configure);
58
58
  D && (A.value = D);
59
59
  const G = k2.configure.runtime && k2.configure.runtime.common ? k2.configure.runtime.common : {};
60
60
  if (G.class && (A.value += " " + G.class), G.style) {
61
61
  Object.assign(z.value, G.style);
62
- const e3 = k2.pageContext && k2.pageContext.dimensions ? k2.pageContext.dimensions : h.PC, o2 = G.style[e3 + "_style"];
62
+ const e3 = k2.pageContext && k2.pageContext.dimensions ? k2.pageContext.dimensions : x.PC, o2 = G.style[e3 + "_style"];
63
63
  o2 && Object.assign(z.value, o2);
64
64
  const t2 = G.style[e3 + "_class"];
65
65
  t2 && (A.value += " " + t2);
@@ -72,7 +72,7 @@ const k = e({ __name: "object-render", props: { pageContext: {}, configure: {} }
72
72
  E.value = "hide";
73
73
  }), e3 && !e3.getConfigure && (e3.getConfigure = function() {
74
74
  return k2.configure;
75
- }), k2.configure.uuid && x(k2.pageContext, k2.configure.uuid, q), k2.configure.code) y(k2.pageContext, k2.configure.code, q);
75
+ }), k2.configure.uuid && h(k2.pageContext, k2.configure.uuid, q), k2.configure.code) y(k2.pageContext, k2.configure.code, q);
76
76
  else if ("table" === k2.configure.name) y(k2.pageContext, k2.configure.uuid, q);
77
77
  else if (k2.configure.props && k2.configure.props.base) {
78
78
  const e4 = k2.configure.props.base;
@@ -89,23 +89,23 @@ const k = e({ __name: "object-render", props: { pageContext: {}, configure: {} }
89
89
  !function() {
90
90
  if (!q.value) return;
91
91
  const e4 = O(k2.pageContext, k2.configure);
92
- "table" !== k2.configure.name && e4 && e4.isCalcHeight && v(() => {
92
+ "table" !== k2.configure.name && e4 && e4.isCalcHeight && C(() => {
93
93
  let e5 = q.value.$el;
94
94
  e5 || (e5 = q.value);
95
95
  const o3 = e5.parentNode;
96
96
  if (!e5 || !o3) return;
97
97
  const t2 = e5.getBoundingClientRect();
98
- let n2 = window.innerHeight - t2.y - 80, i2 = n2 + "";
99
- T(n2) && (i2 = n2 + "px"), z.value.height = i2, z.value["overflow-y"] = "auto", z.value["overflow-x"] = "hidden", k2.configure.sytle || (k2.configure.sytle = {}), k2.configure.sytle._heightStyle = i2;
98
+ let n2 = window.innerHeight - t2.y - 80, s2 = n2 + "";
99
+ T(n2) && (s2 = n2 + "px"), z.value.height = s2, z.value["overflow-y"] = "auto", z.value["overflow-x"] = "hidden", k2.configure.sytle || (k2.configure.sytle = {}), k2.configure.sytle._heightStyle = s2;
100
100
  });
101
101
  }();
102
102
  }
103
103
  let Q;
104
- i(() => {
104
+ s(() => {
105
105
  U(), I.countComponentsLoadedNumber(), Q = setTimeout(() => {
106
106
  I.componentsTotalNmber !== I.componentsLoadedNumber || I.pageComponentsLoaded || I.setPageComponentsLoaded(true);
107
107
  }, 30);
108
- }), s(() => {
108
+ }), i(() => {
109
109
  Q && clearTimeout(Q);
110
110
  });
111
111
  const U = () => {
@@ -114,12 +114,12 @@ const k = e({ __name: "object-render", props: { pageContext: {}, configure: {} }
114
114
  e3 || (e3 = q.value);
115
115
  const o2 = e3.parentNode;
116
116
  if (!e3 || !o2) return;
117
- const t2 = k2.configure.props ? k2.configure.props : {}, n2 = k2.configure.style ? k2.configure.style : {}, i2 = t2.position;
118
- "top" == i2 || "bottom" == i2 || n2.position;
117
+ const t2 = k2.configure.props ? k2.configure.props : {}, n2 = k2.configure.style ? k2.configure.style : {}, s2 = t2.position;
118
+ "top" == s2 || "bottom" == s2 || n2.position;
119
119
  };
120
120
  return (e3, o2) => {
121
121
  const t2 = r("permission");
122
- return a(H)(e3.configure) ? u((c(), p(g(R.value), { key: 0, ref: K, style: m(z.value), class: f(A.value), configure: e3.configure, pageContext: e3.pageContext }, null, 8, ["style", "class", "configure", "pageContext"])), [[d, a(F)], [t2, a(B) ? a(B) : "true"]]) : l("", true);
122
+ return a(H)(e3.configure) ? u((c(), p(g(R.value), { key: 0, ref: K, style: m(z.value), class: f(A.value), configure: e3.configure, pageContext: e3.pageContext }, null, 8, ["style", "class", "configure", "pageContext"])), [[d, a(F)], [t2, { codes: a(B) ? a(B) : "true", systemCode: e3.pageContext.systemCode }]]) : l("", true);
123
123
  };
124
124
  } });
125
125
  export {
@@ -1,5 +1,5 @@
1
1
  declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
2
- chartCode: {
2
+ chartUuid: {
3
3
  type: StringConstructor;
4
4
  default: string;
5
5
  };
@@ -8,7 +8,7 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
8
8
  default: number;
9
9
  };
10
10
  }>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
11
- chartCode: {
11
+ chartUuid: {
12
12
  type: StringConstructor;
13
13
  default: string;
14
14
  };
@@ -17,7 +17,7 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
17
17
  default: number;
18
18
  };
19
19
  }>> & Readonly<{}>, {
20
- chartCode: string;
20
+ chartUuid: string;
21
21
  homeChartSettingUserId: number;
22
22
  }, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
23
23
  export default _default;
@@ -1,45 +1,47 @@
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";
2
- import { deepCopy as u } from "../utils/common-util.js";
3
- import h from "./assemblys/home-chart-render.vue.js";
4
- import g from "agilebuilder-ui/src/utils/request";
5
- import { updateOptionDatasources as c, updateChartDatasources as d } from "../utils/page-helper-util.js";
6
- import { initPageEvents as p } from "../utils/events/event-util.js";
7
- import { setHomeChartInitConfigValue as f } from "../utils/charts/chart-util.js";
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
- const v2 = e2, y = t(true), S = t(false), b = t({});
10
- let I, H = t(null);
11
- return v2.chartCode && g.get(window.$vueApp.config.globalProperties.baseAPI + "/mms/home-chart-layout/" + v2.chartCode).then((e3) => {
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 u, toDisplayString as m } from "vue";
2
+ import { deepCopy as h } from "../utils/common-util.js";
3
+ import g from "./assemblys/home-chart-render.vue.js";
4
+ import c from "agilebuilder-ui/src/utils/request";
5
+ import { updateOptionDatasources as d, updateChartDatasources as p } from "../utils/page-helper-util.js";
6
+ import { initPageEvents as f } from "../utils/events/event-util.js";
7
+ import { setHomeChartInitConfigValue as v } from "../utils/charts/chart-util.js";
8
+ import { useI18n as C } from "vue-i18n";
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);
11
+ let x, A = t(null);
12
+ return I.chartUuid && c.get(window.$vueApp.config.globalProperties.baseAPI + "/component/home-chart-layout/" + I.chartUuid).then((e3) => {
12
13
  var _a, _b;
13
14
  if (e3 && e3.designJson) {
15
+ H.value = {};
14
16
  const t2 = JSON.parse(e3.designJson);
15
17
  let a2 = window.localStorage.getItem("HOME_MY_CHARTS_ALIAS");
16
18
  if (a2) {
17
19
  const e4 = JSON.parse(a2);
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] });
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] });
19
21
  }
20
22
  const i2 = window.frameElement;
21
- b.value = t2.chartJson, b.value.homeChartSettingUserId = v2.homeChartSettingUserId, i2 && (i2.clientHeight, b.value.runtime.common.style.pc_style.height = i2.clientHeight + "px");
23
+ H.value = t2.chartJson, H.value.homeChartSettingUserId = I.homeChartSettingUserId, i2 && (H.value.runtime.common.style.pc_style.height = i2.clientHeight + "px");
22
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 } };
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) {
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) {
24
26
  const e4 = n2.entity.page;
25
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);
26
28
  }
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(() => {
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(() => {
28
30
  !function(e4, t3) {
29
31
  if (!t3 || 0 == t3.length) return;
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);
31
- }(H.value, [t2.initChartServiceConfigs]);
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
+ }(A.value, [t2.initChartServiceConfigs]);
32
34
  }, 200);
33
- } else S.value = true;
35
+ } else w.value = true, U.value = false;
34
36
  }).finally(() => {
35
- y.value = false;
37
+ U.value = false;
36
38
  }), a(() => {
37
- I && clearTimeout(I);
39
+ x && clearTimeout(x);
38
40
  }), (e3, t2) => {
39
41
  const a2 = i("loading");
40
- return n((o(), r("div", C, [y.value ? l("", true) : (o(), s(h, { key: 0, configure: b.value, pageContext: m(H) }, null, 8, ["configure", "pageContext"]))])), [[a2, y.value]]);
42
+ return n((o(), r("div", y, [!U.value && H.value ? (o(), s(g, { key: 0, configure: H.value, pageContext: u(A) }, null, 8, ["configure", "pageContext"])) : U.value || H.value ? l("", true) : (o(), r("div", S, m(u(b2)("superPageRuntimeMessage.noChartSetting")), 1))])), [[a2, U.value]]);
41
43
  };
42
44
  } });
43
45
  export {
44
- v as default
46
+ b as default
45
47
  };
@@ -10,7 +10,6 @@ const s = ["src"], d = { key: 1, class: "amb-super-page-runtime-dialog-iframe",
10
10
  const e4 = JSON.parse(JSON.stringify(p.parentPageEventParams));
11
11
  e4.pageContext && delete e4.pageContext, e4.configureObj && delete e4.configureObj, Object.assign(b.value, e4);
12
12
  } catch (e4) {
13
- console.error(e4);
14
13
  }
15
14
  null !== w.value && void 0 !== w.value || (w.value = p.parentPageEventParams.id);
16
15
  }
@@ -1,7 +1,7 @@
1
1
  import e from "./super-page.vue2.js";
2
2
  /* empty css */
3
3
  import p from "../../../_virtual/_plugin-vue_export-helper.js";
4
- const r = p(e, [["__scopeId", "data-v-a0c6e941"]]);
4
+ const r = p(e, [["__scopeId", "data-v-1cd9ea13"]]);
5
5
  export {
6
6
  r as default
7
7
  };