super-page-runtime 2.3.12-sit2 → 2.3.13-rc1

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 (36) hide show
  1. package/dist/es/components/runtime/utils/api/page-expose-util.js +50 -50
  2. package/dist/es/components/runtime/utils/events/event-util.js +4 -4
  3. package/dist/es/components/runtime/utils/events/print-label.js +26 -25
  4. package/dist/es/components/runtime/utils/events/standard-event.d.ts +2 -1
  5. package/dist/es/components/runtime/utils/events/standard-event.js +126 -107
  6. package/dist/es/components/runtime/utils/events/validator-util.js +169 -146
  7. package/dist/es/components/runtime/utils/page-init-util.js +25 -24
  8. package/dist/es/components/runtime/utils/page-permission-util.js +14 -14
  9. package/dist/es/components/runtime/utils/page-store.js +10 -10
  10. package/dist/es/components/runtime/utils/table-utils.js +1 -1
  11. package/dist/es/components/runtime/views/assemblys/chart/common/common-chart-header-group.vue.js +10 -6
  12. package/dist/es/components/runtime/views/assemblys/chart/common/common-chart-header.vue.js +8 -6
  13. package/dist/es/components/runtime/views/assemblys/chart/table/chart-table-util.js +98 -93
  14. package/dist/es/components/runtime/views/assemblys/common/export-form-report-dialog.vue.js +11 -9
  15. package/dist/es/components/runtime/views/assemblys/container/fixed/YxAffix.vue2.js +2 -0
  16. package/dist/es/components/runtime/views/assemblys/data/bar-code/barcode-runtime.vue2.js +12 -10
  17. package/dist/es/components/runtime/views/assemblys/data/table/main-table-runtime.vue.js +9 -8
  18. package/dist/es/components/runtime/views/assemblys/data/table/sub-table-runtime.vue.js +60 -59
  19. package/dist/es/components/runtime/views/assemblys/form/custom/custom-runtime.vue2.js +4 -4
  20. package/dist/es/components/runtime/views/assemblys/form/date-picker/datepicker-runtime.vue2.js +32 -32
  21. package/dist/es/components/runtime/views/assemblys/form/dept-tree/depttree-runtime.vue2.js +33 -32
  22. package/dist/es/components/runtime/views/assemblys/form/file-upload/fileupload-runtime.vue2.js +40 -39
  23. package/dist/es/components/runtime/views/assemblys/form/input-text/inputtext-runtime.vue2.js +35 -34
  24. package/dist/es/components/runtime/views/assemblys/form/label/label-runtime.vue2.js +5 -3
  25. package/dist/es/components/runtime/views/assemblys/form/link/link-runtime.vue2.js +1 -0
  26. package/dist/es/components/runtime/views/assemblys/form/rich-text/richtext-runtime.vue2.js +15 -14
  27. package/dist/es/components/runtime/views/assemblys/workflow/workflow-button/workflowbutton-runtime.vue.js +1 -1
  28. package/dist/es/components/runtime/views/assemblys/workflow/workflow-button/workflowbutton-runtime.vue2.js +7 -6
  29. package/dist/es/components/runtime/views/home-chart.vue.js +7 -7
  30. package/dist/es/components/runtime/views/super-page-dialog.vue.js +4 -3
  31. package/dist/es/components/runtime/views/super-page.vue.js +1 -1
  32. package/dist/es/components/runtime/views/super-page.vue2.js +159 -148
  33. package/dist/es/i18n/langs/cn.js +1 -1
  34. package/dist/es/i18n/langs/en.js +1 -1
  35. package/dist/es/style.css +85 -82
  36. package/package.json +2 -2
@@ -1,54 +1,55 @@
1
- import { defineComponent as e, ref as t, onMounted as l, nextTick as o, computed as i, watch as n, resolveComponent as p, createBlock as a, openBlock as u, normalizeStyle as r, normalizeClass as s, unref as d, withCtx as f, createVNode as c, createElementBlock as m, createCommentVNode as g, Fragment as v, createTextVNode as y, toDisplayString as x } from "vue";
1
+ import { defineComponent as e, ref as t, onMounted as l, nextTick as o, computed as n, watch as i, resolveComponent as p, createBlock as a, openBlock as u, normalizeStyle as r, normalizeClass as s, unref as d, withCtx as f, createVNode as c, createElementBlock as m, createCommentVNode as g, Fragment as v, createTextVNode as y, toDisplayString as x } from "vue";
2
2
  import { getFormModelFields as C } from "../../../../utils/page-init-util.js";
3
- import { handleAfterInitEvent as S, handleFormEvent as h } from "../../../../utils/events/event-util.js";
3
+ import { handleAfterInitEvent as h, handleFormEvent as S } from "../../../../utils/events/event-util.js";
4
4
  import F from "../common/title-suffix-element.vue.js";
5
5
  import { $t as b } from "../../../../utils/i18n-util.js";
6
- import { setVariableValue as k, getVariableValue as R, getValueFromVariable as j } from "../../../../utils/page-helper-util.js";
7
- import { addRequiredClassUtil as _ } from "../../../../utils/common-util.js";
8
- const I = e({ __name: "depttree-runtime", props: { pageContext: {}, configure: {} }, setup(e2, { expose: I2 }) {
9
- const T = e2, q = t(null), w = t([]), z = T.pageContext.entity ? T.pageContext.entity : {};
10
- z.data || (z.data = {});
11
- const M = z.data, O = z.page;
12
- let $ = C(T.pageContext, T.configure);
13
- const D = $.length > 0 ? $[$.length - 1] : T.configure.uuid, E = T.configure.runtime ? T.configure.runtime : {}, V = t(E.props ? E.props : {}), W = E.style, A = E.class, B = E.headerStyle, G = E.titleExceedStyle;
14
- E.props.deptScope && ("field" == E.props.deptScope && E.props.deptScopeField ? (U(), function(e3, t2) {
6
+ import { setVariableValue as k, getVariableValue as R, getFormPropName as j, getValueFromVariable as _ } from "../../../../utils/page-helper-util.js";
7
+ import { addRequiredClassUtil as I } from "../../../../utils/common-util.js";
8
+ const T = e({ __name: "depttree-runtime", props: { pageContext: {}, configure: {} }, setup(e2, { expose: T2 }) {
9
+ const q = e2, w = t(null), z = t([]), M = q.pageContext.entity ? q.pageContext.entity : {};
10
+ M.data || (M.data = {});
11
+ const O = M.data, $ = M.page;
12
+ let D = C(q.pageContext, q.configure);
13
+ const E = D.length > 0 ? D[D.length - 1] : q.configure.uuid, V = q.configure.runtime ? q.configure.runtime : {}, W = t(V.props ? V.props : {}), A = V.style, B = V.class, G = V.headerStyle, H = V.titleExceedStyle;
14
+ V.props.deptScope && ("field" == V.props.deptScope && V.props.deptScopeField ? (Y(), function(e3, t2) {
15
15
  if (0 === e3.indexOf("${fixed.")) return;
16
16
  const l2 = e3.match(/\${(.*?)}/);
17
17
  if (!l2) return;
18
18
  const o2 = l2 ? l2[1].split(".") : [];
19
- o2 && o2.length > 0 && n(() => o2.reduce((e4, t3) => e4[t3], T.pageContext.entity), (e4, l3) => {
19
+ o2 && o2.length > 0 && i(() => o2.reduce((e4, t3) => e4[t3], q.pageContext.entity), (e4, l3) => {
20
20
  t2(e4, l3);
21
21
  });
22
- }(E.props.deptScopeField, (e3, t2) => {
23
- U();
24
- })) : "depts" == E.props.deptScope && E.props.deptScopeCodes && (w.value = E.props.deptScopeCodes.split(",")));
25
- const H = t(null), J = t(null), K = t(null);
22
+ }(V.props.deptScopeField, (e3, t2) => {
23
+ Y();
24
+ })) : "depts" == V.props.deptScope && V.props.deptScopeCodes && (z.value = V.props.deptScopeCodes.split(",")));
25
+ const J = t(null), K = t(null), L = t(null);
26
26
  l(() => {
27
27
  o(() => {
28
- const e3 = M ? M[D] : null;
29
- S(e3, T.pageContext, T.configure, { formItemRef: H.value, componentRef: J.value, titleRef: K.value, value: e3, entity: T.pageContext.entity.data, pageData: T.pageContext.entity.page });
28
+ const e3 = O ? O[E] : null;
29
+ h(e3, q.pageContext, q.configure, { formItemRef: J.value, componentRef: K.value, titleRef: L.value, value: e3, entity: q.pageContext.entity.data, pageData: q.pageContext.entity.page });
30
30
  });
31
31
  });
32
- const L = i({ get: () => R(z, $), set(e3) {
33
- k(z, $, e3), null != e3 && (q.value = "");
34
- } }), N = V.value.autoSetFields ? V.value.autoSetFields : [];
35
- function P(e3, t2) {
36
- e3 === D && h(t2, T.pageContext, T.configure, "change");
32
+ const N = n({ get: () => R(M, D), set(e3) {
33
+ k(M, D, e3), null != e3 && (w.value = "");
34
+ } }), P = W.value.autoSetFields ? W.value.autoSetFields : [];
35
+ let Q = null;
36
+ function U(e3, t2) {
37
+ Q ? Q === e3 && (D.length > 0 ? S(R(M, D), q.pageContext, q.configure, "change") : S(t2, q.pageContext, q.configure, "change")) : e3 === E && S(t2, q.pageContext, q.configure, "change");
37
38
  }
38
- function Q() {
39
- h(null, T.pageContext, T.configure, "click");
39
+ function X() {
40
+ S(null, q.pageContext, q.configure, "click");
40
41
  }
41
- function U() {
42
- const e3 = j(T.pageContext.entity, E.props.deptScopeField);
43
- w.value = e3 ? e3.split(",") : [];
42
+ function Y() {
43
+ const e3 = _(q.pageContext.entity, V.props.deptScopeField);
44
+ z.value = e3 ? e3.split(",") : [];
44
45
  }
45
- return I2({ addRequiredClass: function() {
46
- q.value = _();
46
+ return P.length - 1 > 0 && P[P.length - 1] && P[P.length - 1].model && (Q = j(P[P.length - 1].model)), T2({ addRequiredClass: function() {
47
+ w.value = I();
47
48
  } }), (e3, t2) => {
48
49
  const l2 = p("OrganizationInput"), o2 = p("el-form-item");
49
- return u(), a(o2, { ref_key: "formItemRef", ref: H, required: V.value.required, class: s(d(A) + (q.value ? " " + q.value : "")), "label-width": V.value.labelWidth, style: r(d(W)) }, { label: f(() => [V.value.tittleShow ? (u(), m("div", { key: 0, ref_key: "titleRef", ref: K, style: r({ ...d(B), ...d(G) }) }, [V.value.prefixType ? (u(), a(F, { key: 0, pageContext: e3.pageContext, property: V.value }, null, 8, ["pageContext", "property"])) : (u(), m(v, { key: 1 }, [y(x(d(b)(V.value.title)), 1)], 64))], 4)) : g("", true)]), default: f(() => [c(l2, { ref_key: "componentRef", ref: J, disabled: "disabled" == V.value.state, multiple: V.value.multiple, treeType: V.value.treeType, value: L.value, models: d(M), departmentInfo: w.value, limitFilterColumn: V.value.limitFilterColumn, pageModels: d(O), fields: d(N), size: V.value.size, separator: V.value.separator, onSetValue: P, onShowTree: Q }, null, 8, ["disabled", "multiple", "treeType", "value", "models", "departmentInfo", "limitFilterColumn", "pageModels", "fields", "size", "separator"])]), _: 1 }, 8, ["required", "class", "label-width", "style"]);
50
+ return u(), a(o2, { ref_key: "formItemRef", ref: J, required: W.value.required, class: s(d(B) + (w.value ? " " + w.value : "")), "label-width": W.value.labelWidth, style: r(d(A)) }, { label: f(() => [W.value.tittleShow ? (u(), m("div", { key: 0, ref_key: "titleRef", ref: L, style: r({ ...d(G), ...d(H) }) }, [W.value.prefixType ? (u(), a(F, { key: 0, pageContext: e3.pageContext, property: W.value }, null, 8, ["pageContext", "property"])) : (u(), m(v, { key: 1 }, [y(x(d(b)(W.value.title)), 1)], 64))], 4)) : g("", true)]), default: f(() => [c(l2, { ref_key: "componentRef", ref: K, disabled: "disabled" == W.value.state, multiple: W.value.multiple, treeType: W.value.treeType, value: N.value, models: d(O), departmentInfo: z.value, limitFilterColumn: W.value.limitFilterColumn, pageModels: d($), fields: d(P), size: W.value.size, separator: W.value.separator, onSetValue: U, onShowTree: X }, null, 8, ["disabled", "multiple", "treeType", "value", "models", "departmentInfo", "limitFilterColumn", "pageModels", "fields", "size", "separator"])]), _: 1 }, 8, ["required", "class", "label-width", "style"]);
50
51
  };
51
52
  } });
52
53
  export {
53
- I as default
54
+ T as default
54
55
  };
@@ -6,69 +6,70 @@ import { FsUploadNew as b } from "agilebuilder-ui";
6
6
  import k from "../../../../utils/eventBus.js";
7
7
  import { $t as x } from "../../../../utils/i18n-util.js";
8
8
  import { addRequiredClassUtil as P } from "../../../../utils/common-util.js";
9
- const _ = e({ __name: "fileupload-runtime", props: { pageContext: {}, configure: {} }, setup(e2, { expose: _2 }) {
9
+ import { getRelativeBaseUrl as _ } from "agilebuilder-ui/src/utils/common-util";
10
+ const j = e({ __name: "fileupload-runtime", props: { pageContext: {}, configure: {} }, setup(e2, { expose: j2 }) {
10
11
  var _a, _b, _c, _d, _e, _f, _g;
11
- const j = e2, N = l(null), S = j.configure.runtime ? j.configure.runtime : {}, R = l(S.props ? S.props : {}), T = S.style, z = S.class, D = S.headerStyle, I = S.titleExceedStyle, O = j.pageContext.entity ? j.pageContext.entity : {}, q = j.configure.props.base ? j.configure.props.base : {}, F = L(q.prop), W = L(q.propName);
12
- let U = l({});
13
- U.value.isShowWatermark = void 0 === ((_b = (_a = j.configure.props) == null ? void 0 : _a.watermark) == null ? void 0 : _b.isShowWatermark) ? "true" : ((_c = j.configure.props) == null ? void 0 : _c.watermark.isShowWatermark) + "", U.value.content = ((_e = (_d = j.configure.props) == null ? void 0 : _d.watermark) == null ? void 0 : _e.content) ? (_g = (_f = j.configure.props) == null ? void 0 : _f.watermark) == null ? void 0 : _g.content : "", F && F.length > 1 && t(() => j.pageContext.entity[F[0]][F[1]], (e3) => {
14
- K(h(O, F));
12
+ const N = e2, S = l(null), R = N.configure.runtime ? N.configure.runtime : {}, T = l(R.props ? R.props : {}), z = R.style, D = R.class, I = R.headerStyle, O = R.titleExceedStyle, q = N.pageContext.entity ? N.pageContext.entity : {}, F = N.configure.props.base ? N.configure.props.base : {}, W = M(F.prop), U = M(F.propName);
13
+ let $ = l({});
14
+ $.value.isShowWatermark = void 0 === ((_b = (_a = N.configure.props) == null ? void 0 : _a.watermark) == null ? void 0 : _b.isShowWatermark) ? "true" : ((_c = N.configure.props) == null ? void 0 : _c.watermark.isShowWatermark) + "", $.value.content = ((_e = (_d = N.configure.props) == null ? void 0 : _d.watermark) == null ? void 0 : _e.content) ? (_g = (_f = N.configure.props) == null ? void 0 : _f.watermark) == null ? void 0 : _g.content : "", W && W.length > 1 && t(() => N.pageContext.entity[W[0]][W[1]], (e3) => {
15
+ L(h(q, W));
15
16
  });
16
- const $ = j.pageContext.code, B = l(F ? $ + "__" + F.join("__") : null), E = h(O, F), A = l(null), G = l(false), H = l([]), J = l({});
17
- function K(e3) {
17
+ const B = N.pageContext.code, E = l(W ? B + "__" + W.join("__") : null), A = h(q, W), G = l(null), H = l(false), J = l([]), K = l({});
18
+ function L(e3) {
18
19
  if (e3) {
19
20
  const l2 = e3.split(",");
20
21
  if (l2.length > 0) {
21
- const e4 = j.pageContext.backendUrl;
22
- w.post(e4 + "/common/fs-upload/search-file-names", l2).then((e5) => {
23
- H.value = [];
24
- const t2 = [];
22
+ const e4 = N.pageContext.backendUrl, t2 = _(e4 + "/common/fs-upload/search-file-names");
23
+ w.post(t2, l2).then((e5) => {
24
+ J.value = [];
25
+ const t3 = [];
25
26
  for (let a2 = 0; a2 < l2.length; a2++) {
26
27
  const o2 = l2[a2];
27
- t2.push(e5[o2]), H.value.push({ showName: e5[o2], serverPath: o2 });
28
+ t3.push(e5[o2]), J.value.push({ showName: e5[o2], serverPath: o2 });
28
29
  }
29
- "input" === R.value.displayType && (J.value.showName = t2.join(","), J.value.serverPath = l2.join(","));
30
+ "input" === T.value.displayType && (K.value.showName = t3.join(","), K.value.serverPath = l2.join(","));
30
31
  }).finally(() => {
31
- G.value = true;
32
+ H.value = true;
32
33
  });
33
- } else G.value = true;
34
- } else H.value = [], J.value = {}, G.value = true;
34
+ } else H.value = true;
35
+ } else J.value = [], K.value = {}, H.value = true;
35
36
  }
36
- function L(e3) {
37
+ function M(e3) {
37
38
  return e3 ? (e3.startsWith("${") && (e3 = e3.substring(2, e3.length - 1)), e3.split(".")) : [];
38
39
  }
39
- function M(e3) {
40
+ function Q(e3) {
40
41
  return C(e3);
41
42
  }
42
- K(E);
43
- const Q = (e3, l2, t2) => {
44
- X();
45
- }, V = (e3) => {
46
- X();
47
- }, X = () => {
43
+ L(A);
44
+ const V = (e3, l2, t2) => {
45
+ Y();
46
+ }, X = (e3) => {
47
+ Y();
48
+ }, Y = () => {
48
49
  const e3 = [], l2 = [];
49
- if (R.value.limit && H.value.length > R.value.limit) {
50
- const e4 = H.value.length - R.value.limit;
51
- for (let l3 = 0; l3 < e4; l3++) H.value.shift();
50
+ if (T.value.limit && J.value.length > T.value.limit) {
51
+ const e4 = J.value.length - T.value.limit;
52
+ for (let l3 = 0; l3 < e4; l3++) J.value.shift();
52
53
  }
53
- for (let t2 = 0; t2 < H.value.length; t2++) e3.push(H.value[t2].showName), l2.push(H.value[t2].serverPath);
54
- y(j.pageContext.entity, F, l2.join(",")), y(j.pageContext.entity, W, e3.join(",")), l2.length > 0 && (N.value = "");
55
- }, Y = l(null), Z = l(null);
54
+ for (let t2 = 0; t2 < J.value.length; t2++) e3.push(J.value[t2].showName), l2.push(J.value[t2].serverPath);
55
+ y(N.pageContext.entity, W, l2.join(",")), y(N.pageContext.entity, U, e3.join(",")), l2.length > 0 && (S.value = "");
56
+ }, Z = l(null), ee = l(null);
56
57
  return a(() => {
57
- k.$on(B.value + "-pickFileDone", (e3) => {
58
- A.value.pickFileDone(e3);
58
+ k.$on(E.value + "-pickFileDone", (e3) => {
59
+ E.value, G.value.pickFileDone(e3);
59
60
  }), o(() => {
60
- const e3 = h(O, F), l2 = { showName: h(O, W), serverPath: e3 };
61
- g(l2, j.pageContext, j.configure, { formItemRef: Y.value, componentRef: A.value, titleRef: Z.value, value: l2, entity: j.pageContext.entity.data, pageData: j.pageContext.entity.page });
61
+ const e3 = h(q, W), l2 = { showName: h(q, U), serverPath: e3 };
62
+ g(l2, N.pageContext, N.configure, { formItemRef: Z.value, componentRef: G.value, titleRef: ee.value, value: l2, entity: N.pageContext.entity.data, pageData: N.pageContext.entity.page });
62
63
  });
63
64
  }), i(() => {
64
- k.$off(B.value + "-pickFileDone");
65
- }), _2({ addRequiredClass: function() {
66
- N.value = P();
65
+ k.$off(E.value + "-pickFileDone");
66
+ }), j2({ addRequiredClass: function() {
67
+ S.value = P();
67
68
  } }), (e3, l2) => {
68
69
  const t2 = n("el-form-item");
69
- return R.value.tittleShow ? (u(), s(t2, { key: 0, ref_key: "formItemRef", ref: Y, required: R.value.required, class: d(m(z) + (N.value ? " " + N.value : "")), "label-width": R.value.labelWidth, style: p(m(T)) }, { label: v(() => [R.value.tittleShow ? (u(), f("div", { key: 0, ref_key: "titleRef", ref: Z, style: p({ ...m(D), ...m(I) }) }, c(m(x)(R.value.title)), 5)) : r("", true)]), default: v(() => [G.value ? (u(), s(m(b), { key: 0, ref_key: "fileUploadRef", ref: A, style: { width: "100%" }, disabled: "disabled" === R.value.state, displayType: R.value.displayType, accept: R.value.accept, multiple: R.value.multiple, placeholder: R.value.placeholder, limit: R.value.limit, "limit-file-size": R.value.limitFileSize, "disabled-no-preview": R.value.disabledNoPreview, "disabled-no-download": R.value.disabledNoDownload, openCameraOrChoosePhoto: R.value.openCameraOrChoosePhoto, "file-info": J.value, "file-list": H.value, "system-code": e3.pageContext.systemCode, componentId: B.value, watermark: m(U), "on-success": Q, "on-remove": V, "before-upload": M, 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", "watermark", "pageContext"])) : r("", true)]), _: 1 }, 8, ["required", "class", "label-width", "style"])) : G.value ? (u(), s(m(b), { key: 1, ref_key: "fileUploadRef", ref: A, style: { width: "100%" }, disabled: "disabled" === R.value.state, displayType: R.value.displayType, accept: R.value.accept, multiple: R.value.multiple, placeholder: R.value.placeholder, limit: R.value.limit, "limit-file-size": R.value.limitFileSize, "disabled-no-preview": R.value.disabledNoPreview, "disabled-no-download": R.value.disabledNoDownload, openCameraOrChoosePhoto: R.value.openCameraOrChoosePhoto, "file-info": J.value, "file-list": H.value, "system-code": e3.pageContext.systemCode, componentId: B.value, watermark: m(U), "on-success": Q, "on-remove": V, "before-upload": M, 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", "watermark", "pageContext"])) : r("", true);
70
+ return T.value.tittleShow ? (u(), s(t2, { key: 0, ref_key: "formItemRef", ref: Z, required: T.value.required, class: d(m(D) + (S.value ? " " + S.value : "")), "label-width": T.value.labelWidth, style: p(m(z)) }, { label: v(() => [T.value.tittleShow ? (u(), f("div", { key: 0, ref_key: "titleRef", ref: ee, style: p({ ...m(I), ...m(O) }) }, c(m(x)(T.value.title)), 5)) : r("", true)]), default: v(() => [H.value ? (u(), s(m(b), { key: 0, ref_key: "fileUploadRef", ref: G, style: { width: "100%" }, disabled: "disabled" === T.value.state, displayType: T.value.displayType, accept: T.value.accept, multiple: T.value.multiple, placeholder: T.value.placeholder, limit: T.value.limit, "limit-file-size": T.value.limitFileSize, "disabled-no-preview": T.value.disabledNoPreview, "disabled-no-download": T.value.disabledNoDownload, openCameraOrChoosePhoto: T.value.openCameraOrChoosePhoto, "file-info": K.value, "file-list": J.value, "system-code": e3.pageContext.systemCode, componentId: E.value, watermark: m($), "on-success": V, "on-remove": X, "before-upload": Q, 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", "watermark", "pageContext"])) : r("", true)]), _: 1 }, 8, ["required", "class", "label-width", "style"])) : H.value ? (u(), s(m(b), { key: 1, ref_key: "fileUploadRef", ref: G, style: { width: "100%" }, disabled: "disabled" === T.value.state, displayType: T.value.displayType, accept: T.value.accept, multiple: T.value.multiple, placeholder: T.value.placeholder, limit: T.value.limit, "limit-file-size": T.value.limitFileSize, "disabled-no-preview": T.value.disabledNoPreview, "disabled-no-download": T.value.disabledNoDownload, openCameraOrChoosePhoto: T.value.openCameraOrChoosePhoto, "file-info": K.value, "file-list": J.value, "system-code": e3.pageContext.systemCode, componentId: E.value, watermark: m($), "on-success": V, "on-remove": X, "before-upload": Q, 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", "watermark", "pageContext"])) : r("", true);
70
71
  };
71
72
  } });
72
73
  export {
73
- _ as default
74
+ j as default
74
75
  };
@@ -3,13 +3,13 @@ import { SuperIcon as T } from "agilebuilder-ui";
3
3
  import { getFormModelFields as k } from "../../../../utils/page-init-util.js";
4
4
  import { getModelFieldFromPageContext as w, isNumberDataType as V, setVariableValue as h, getVariableValue as b } 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 R, analysisScanValue as O, setScanAnalysisValue as q } from "../../../../utils/form/scan-util.js";
7
- import D from "../common/title-suffix-element.vue.js";
8
- import { isMobileBrowser as M } from "agilebuilder-ui/src/utils/common-util";
9
- import N from "../../../../utils/eventBus.js";
10
- import { $t as P } from "../../../../utils/i18n-util.js";
11
- import { addRequiredClassUtil as z } from "../../../../utils/common-util.js";
12
- const J = e({ __name: "inputtext-runtime", props: { pageContext: {}, configure: {} }, setup(e2, { expose: J2 }) {
6
+ import { formatScanRuleSets as R, analysisScanValue as O, setScanAnalysisValue as N } from "../../../../utils/form/scan-util.js";
7
+ import q from "../common/title-suffix-element.vue.js";
8
+ import { isMobileBrowser as D } from "agilebuilder-ui/src/utils/common-util";
9
+ import J from "../../../../utils/eventBus.js";
10
+ import { $t as M } from "../../../../utils/i18n-util.js";
11
+ import { addRequiredClassUtil as P } from "../../../../utils/common-util.js";
12
+ const z = e({ __name: "inputtext-runtime", props: { pageContext: {}, configure: {} }, setup(e2, { expose: z2 }) {
13
13
  var _a, _b, _c;
14
14
  const L = e2, B = L.pageContext.entity ? L.pageContext.entity : {}, F = t("text");
15
15
  let $ = k(L.pageContext, L.configure);
@@ -17,65 +17,66 @@ const J = e({ __name: "inputtext-runtime", props: { pageContext: {}, configure:
17
17
  const e3 = w($, L.pageContext);
18
18
  e3 && (F.value = V(e3.dataType) ? "number" : "text");
19
19
  }
20
- const A = t(M()), E = L.pageContext.code, U = t($ && $.length > 0 ? E + "__" + $.join("__") : null), W = t(null), G = l({ get: () => b(B, $), set(e3) {
20
+ const A = t(D()), E = L.pageContext.code, U = t($ && $.length > 0 ? E + "__" + $.join("__") : null), W = t(null), G = l({ get: () => b(B, $), set(e3) {
21
21
  h(B, $, e3), null != e3 && "" !== e3 && (W.value = "");
22
22
  } }), H = t(null), K = t(null), Q = t(null), X = L.configure.runtime ? L.configure.runtime : {}, Y = t(X.props ? X.props : {}), Z = t(!!((_a = Y.value.scan) == null ? void 0 : _a.enable));
23
23
  let ee = false;
24
24
  const te = window.localStorage.getItem("auth_source");
25
25
  te && "dingtalk" === te && (ee = true);
26
26
  let le = "";
27
- le = navigator.userAgent.indexOf(" uni-app ") > 0 ? "app" : "browser";
28
- const ne = !(!A.value || !le || "app" !== le), oe = t(!!((ne || ee) && Z.value || A.value && Z.value && "https:" === window.location.protocol));
29
- let ae = {};
27
+ const ne = navigator.userAgent;
28
+ le = ne.indexOf(" uni-app ") > 0 ? "app" : "browser";
29
+ const oe = !(!A.value || !le || "app" !== le), ae = t(!!((oe || ee) && Z.value || A.value && Z.value && "https:" === window.location.protocol));
30
+ let ue = {};
30
31
  ((_b = Y.value.scan) == null ? void 0 : _b.enable) && ((_c = Y.value.scan.ruleList) == null ? void 0 : _c.length) > 0 && (R(Y.value.scan.ruleList).then((e3) => {
31
- ae = e3;
32
+ ue = e3;
32
33
  }), u(() => G.value, (e3) => {
33
34
  e3 = e3.trim();
34
- const t2 = O(e3, ae);
35
- t2 && q(L.pageContext, t2.scanSet, t2.params);
35
+ const t2 = O(e3, ue);
36
+ t2 && N(L.pageContext, t2.scanSet, t2.params);
36
37
  }));
37
- const ue = X.style, ie = X.class, re = X.headerStyle, pe = X.titleExceedStyle;
38
- function se(e3) {
38
+ const ie = X.style, re = X.class, pe = X.headerStyle, se = X.titleExceedStyle;
39
+ function ce(e3) {
39
40
  return h(B, $, e3);
40
41
  }
41
42
  n(() => {
42
- N.$on(U.value + "-scanDone", (e3) => {
43
- se(e3.result), _(e3.result, L.pageContext, L.configure, "afterScanDone");
43
+ J.$on(U.value + "-scanDone", (e3) => {
44
+ U.value, JSON.stringify(e3), ce(e3.result), _(e3.result, L.pageContext, L.configure, "afterScanDone");
44
45
  }), o(() => {
45
46
  var _a2;
46
47
  const e3 = G.value;
47
- S(e3, L.pageContext, L.configure, { formItemRef: H.value, componentRef: K.value, titleRef: Q.value, value: e3, entity: L.pageContext.entity.data, pageData: L.pageContext.entity.page }), oe.value && ((_a2 = Y.value.scan) == null ? void 0 : _a2.autoOpen) && ve();
48
+ S(e3, L.pageContext, L.configure, { formItemRef: H.value, componentRef: K.value, titleRef: Q.value, value: e3, entity: L.pageContext.entity.data, pageData: L.pageContext.entity.page }), ae.value && ((_a2 = Y.value.scan) == null ? void 0 : _a2.autoOpen) && fe();
48
49
  });
49
50
  }), a(() => {
50
- N.$off(U.value + "-scanDone");
51
+ J.$off(U.value + "-scanDone");
51
52
  });
52
- const ce = t(false);
53
- function ve() {
54
- if (ne || ee) {
53
+ const ve = t(false);
54
+ function fe() {
55
+ if (oe || ee) {
55
56
  const e3 = { type: "scan", componentId: U.value, systemCode: L.pageContext.systemCode };
56
- ee && (e3.type = "dingTalkScan"), window.parent.parent ? window.parent.parent.postMessage(JSON.stringify(e3), "*") : window.parent && window.parent.postMessage(JSON.stringify(e3), "*");
57
- } else if (A.value) if ("https:" === window.location.protocol) ce.value = true;
57
+ ee && (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), "*"));
58
+ } else if (A.value) if ("https:" === window.location.protocol) ve.value = true;
58
59
  else {
59
60
  const e3 = { type: "scan", componentId: U.value, systemCode: L.pageContext.systemCode };
60
61
  window.parent.postMessage(JSON.stringify(e3), "*");
61
62
  }
62
- else ce.value = true;
63
+ else ve.value = true;
63
64
  }
64
- function fe(e3) {
65
- ce.value = false, se(e3);
65
+ function ye(e3) {
66
+ ve.value = false, ce(e3);
66
67
  }
67
- return J2({ getValue: function() {
68
+ return z2({ getValue: function() {
68
69
  return b(B, $);
69
- }, setValue: se, scanClick: ve, addRequiredClass: function() {
70
- W.value = z();
70
+ }, setValue: ce, scanClick: fe, addRequiredClass: function() {
71
+ W.value = P();
71
72
  } }), (e3, t2) => {
72
73
  const l2 = i("el-input"), n2 = i("scan-code-input-browser"), o2 = i("el-form-item");
73
- return p(), r(o2, { ref_key: "formItemRef", ref: H, required: !!Y.value.required, class: c(v(ie) + (W.value ? " " + W.value : "")), "label-width": Y.value.labelWidth, style: s(v(ue)) }, { label: f(() => [Y.value.tittleShow ? (p(), C("div", { key: 0, ref_key: "titleRef", ref: Q, style: s({ ...v(re), ...v(pe) }) }, [Y.value.prefixType ? (p(), r(D, { key: 0, pageContext: e3.pageContext, property: Y.value }, null, 8, ["pageContext", "property"])) : (p(), C(I, { key: 1 }, [d(x(v(P)(Y.value.title)), 1)], 64))], 4)) : g("", true)]), default: f(() => [y(l2, { ref_key: "componentRef", ref: K, disabled: "disabled" === Y.value.state, readonly: "readonly" === Y.value.state, size: Y.value.size, clearable: Y.value.clearable, placeholder: Y.value.placeholder, maxlength: Y.value.maxLength, "show-word-limit": Y.value.showInputNum, type: F.value, modelValue: G.value, "onUpdate:modelValue": t2[5] || (t2[5] = (e4) => G.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] = (e4) => function(e5) {
74
+ return p(), r(o2, { ref_key: "formItemRef", ref: H, required: !!Y.value.required, class: c(v(re) + (W.value ? " " + W.value : "")), "label-width": Y.value.labelWidth, style: s(v(ie)) }, { label: f(() => [Y.value.tittleShow ? (p(), C("div", { key: 0, ref_key: "titleRef", ref: Q, style: s({ ...v(pe), ...v(se) }) }, [Y.value.prefixType ? (p(), r(q, { key: 0, pageContext: e3.pageContext, property: Y.value }, null, 8, ["pageContext", "property"])) : (p(), C(I, { key: 1 }, [d(x(v(M)(Y.value.title)), 1)], 64))], 4)) : g("", true)]), default: f(() => [y(l2, { ref_key: "componentRef", ref: K, disabled: "disabled" === Y.value.state, readonly: "readonly" === Y.value.state, size: Y.value.size, clearable: Y.value.clearable, placeholder: Y.value.placeholder, maxlength: Y.value.maxLength, "show-word-limit": Y.value.showInputNum, type: F.value, modelValue: G.value, "onUpdate:modelValue": t2[5] || (t2[5] = (e4) => G.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] = (e4) => function(e5) {
74
75
  let t3 = b(B, $);
75
76
  null != t3 && (t3 = t3.trim()), h(B, $, t3), _(e5, L.pageContext, L.configure, "blur");
76
- }(e4)), 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")) }, m({ _: 2 }, ["outer" != Y.value.iconPosition && (Y.value.preIconType && Y.value.preIconValue || Y.value.preText) ? { name: "prefix", fn: f(() => [Y.value.preIconType && Y.value.preIconValue ? (p(), r(v(T), { key: 0, style: { cursor: "pointer" }, iconType: Y.value.preIconType, iconValue: Y.value.preIconValue, onClick: t2[0] || (t2[0] = (t3) => v(j)(G.value, e3.pageContext, e3.configure, "prefixClick")) }, null, 8, ["iconType", "iconValue"])) : g("", true), d(" " + x(v(P)(Y.value.preText)), 1)]), key: "0" } : void 0, "outer" == Y.value.iconPosition && (Y.value.preIconType && Y.value.preIconValue || Y.value.preText) ? { name: "prepend", fn: f(() => [Y.value.preIconType && Y.value.preIconValue ? (p(), r(v(T), { key: 0, style: { cursor: "pointer" }, iconType: Y.value.preIconType, iconValue: Y.value.preIconValue, onClick: t2[1] || (t2[1] = (t3) => v(j)(G.value, e3.pageContext, e3.configure, "prefixClick")) }, null, 8, ["iconType", "iconValue"])) : g("", true), d(" " + x(v(P)(Y.value.preText)), 1)]), key: "1" } : void 0, "outer" != Y.value.iconPosition && (Y.value.sufIconType && Y.value.sufIconValue || Y.value.sufText) ? { name: "suffix", fn: f(() => [Y.value.sufIconType && Y.value.sufIconValue ? (p(), r(v(T), { key: 0, style: { cursor: "pointer" }, iconType: Y.value.sufIconType, iconValue: Y.value.sufIconValue, onClick: t2[2] || (t2[2] = (t3) => v(j)(G.value, e3.pageContext, e3.configure, "suffixClick")) }, null, 8, ["iconType", "iconValue"])) : g("", true), d(" " + x(v(P)(Y.value.sufText)), 1)]), key: "2" } : void 0, oe.value || "outer" == Y.value.iconPosition && (Y.value.sufIconType && Y.value.sufIconValue || Y.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) => ve()) })) : g("", true), Y.value.sufIconType && Y.value.sufIconValue ? (p(), r(v(T), { key: 1, style: { cursor: "pointer" }, iconType: Y.value.sufIconType, iconValue: Y.value.sufIconValue, onClick: t2[4] || (t2[4] = (t3) => v(j)(G.value, e3.pageContext, e3.configure, "suffixClick")) }, null, 8, ["iconType", "iconValue"])) : g("", true), d(" " + x(v(P)(Y.value.sufText)), 1)]), key: "3" } : void 0]), 1032, ["disabled", "readonly", "size", "clearable", "placeholder", "maxlength", "show-word-limit", "type", "modelValue"]), ce.value ? (p(), r(n2, { key: 0, onClose: fe })) : g("", true)]), _: 1 }, 8, ["required", "class", "label-width", "style"]);
77
+ }(e4)), 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")) }, m({ _: 2 }, ["outer" != Y.value.iconPosition && (Y.value.preIconType && Y.value.preIconValue || Y.value.preText) ? { name: "prefix", fn: f(() => [Y.value.preIconType && Y.value.preIconValue ? (p(), r(v(T), { key: 0, style: { cursor: "pointer" }, iconType: Y.value.preIconType, iconValue: Y.value.preIconValue, onClick: t2[0] || (t2[0] = (t3) => v(j)(G.value, e3.pageContext, e3.configure, "prefixClick")) }, null, 8, ["iconType", "iconValue"])) : g("", true), d(" " + x(v(M)(Y.value.preText)), 1)]), key: "0" } : void 0, "outer" == Y.value.iconPosition && (Y.value.preIconType && Y.value.preIconValue || Y.value.preText) ? { name: "prepend", fn: f(() => [Y.value.preIconType && Y.value.preIconValue ? (p(), r(v(T), { key: 0, style: { cursor: "pointer" }, iconType: Y.value.preIconType, iconValue: Y.value.preIconValue, onClick: t2[1] || (t2[1] = (t3) => v(j)(G.value, e3.pageContext, e3.configure, "prefixClick")) }, null, 8, ["iconType", "iconValue"])) : g("", true), d(" " + x(v(M)(Y.value.preText)), 1)]), key: "1" } : void 0, "outer" != Y.value.iconPosition && (Y.value.sufIconType && Y.value.sufIconValue || Y.value.sufText) ? { name: "suffix", fn: f(() => [Y.value.sufIconType && Y.value.sufIconValue ? (p(), r(v(T), { key: 0, style: { cursor: "pointer" }, iconType: Y.value.sufIconType, iconValue: Y.value.sufIconValue, onClick: t2[2] || (t2[2] = (t3) => v(j)(G.value, e3.pageContext, e3.configure, "suffixClick")) }, null, 8, ["iconType", "iconValue"])) : g("", true), d(" " + x(v(M)(Y.value.sufText)), 1)]), key: "2" } : void 0, ae.value || "outer" == Y.value.iconPosition && (Y.value.sufIconType && Y.value.sufIconValue || Y.value.sufText) ? { name: "append", fn: f(() => [ae.value ? (p(), r(v(T), { key: 0, style: { cursor: "pointer" }, iconValue: "fa-barcode", onClick: t2[3] || (t2[3] = (e4) => fe()) })) : g("", true), Y.value.sufIconType && Y.value.sufIconValue ? (p(), r(v(T), { key: 1, style: { cursor: "pointer" }, iconType: Y.value.sufIconType, iconValue: Y.value.sufIconValue, onClick: t2[4] || (t2[4] = (t3) => v(j)(G.value, e3.pageContext, e3.configure, "suffixClick")) }, null, 8, ["iconType", "iconValue"])) : g("", true), d(" " + x(v(M)(Y.value.sufText)), 1)]), key: "3" } : void 0]), 1032, ["disabled", "readonly", "size", "clearable", "placeholder", "maxlength", "show-word-limit", "type", "modelValue"]), ve.value ? (p(), r(n2, { key: 0, onClose: ye })) : g("", true)]), _: 1 }, 8, ["required", "class", "label-width", "style"]);
77
78
  };
78
79
  } });
79
80
  export {
80
- J as default
81
+ z as default
81
82
  };
@@ -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 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 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";
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,7 +7,9 @@ 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, 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;
11
+ A.value;
12
+ const H = l(() => {
11
13
  let e3 = m(S, P);
12
14
  if (G) if (A.value.hasOptions) {
13
15
  let t2 = null;
@@ -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(), 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)]));
31
33
  };
32
34
  } });
33
35
  export {
@@ -5,6 +5,7 @@ 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;
8
9
  let $ = S.value.formatting;
9
10
  const D = _2.pageContext.entity ? _2.pageContext.entity : {}, V = l(() => {
10
11
  let e3 = b(D, h);
@@ -1,4 +1,4 @@
1
- import { defineComponent as e, ref as t, watch as l, onMounted as n, nextTick as i, onBeforeUnmount as o, resolveComponent as a, createElementBlock as r, openBlock as u, Fragment as s, createBlock as c, createCommentVNode as p, normalizeStyle as d, normalizeClass as g, unref as m, withCtx as f, createElementVNode as v, toDisplayString as h } from "vue";
1
+ import { defineComponent as e, ref as t, watch as l, onMounted as n, nextTick as o, onBeforeUnmount as i, resolveComponent as r, createElementBlock as a, openBlock as u, Fragment as s, createBlock as c, createCommentVNode as p, normalizeStyle as d, normalizeClass as g, unref as m, withCtx as f, createElementVNode as v, toDisplayString as h } from "vue";
2
2
  import { getFormModelFields as x } from "../../../../utils/page-init-util.js";
3
3
  import { formatVariableValue as y, setVariableValue as b, getVariableValue as C } from "../../../../utils/page-helper-util.js";
4
4
  import w from "quill";
@@ -40,16 +40,16 @@ const S = { style: { width: "100%", height: "100%" } }, _ = e({ __name: "richtex
40
40
  X.value.push(t2), Y.value = true;
41
41
  }
42
42
  }
43
- function ie(e3) {
43
+ function oe(e3) {
44
44
  const t2 = new FormData();
45
45
  t2.append("file", e3);
46
46
  const l2 = B.pageContext.backendUrl, n2 = R(l2, B.pageContext.isTest);
47
47
  return T.post(n2 + "/common/fs-upload/rich-editor-image", t2, { headers: { "Content-Type": "multipart/form-data" } });
48
48
  }
49
- function oe(e3, t2) {
50
- let l2 = e3.split(","), n2 = l2[0].match(/:(.*?);/)[1], i2 = atob(l2[1]), o2 = i2.length, a2 = new Uint8Array(o2);
51
- for (; o2--; ) a2[o2] = i2.charCodeAt(o2);
52
- return new File([a2], t2, { type: n2 });
49
+ function ie(e3, t2) {
50
+ let l2 = e3.split(","), n2 = l2[0].match(/:(.*?);/)[1], o2 = atob(l2[1]), i2 = o2.length, r2 = new Uint8Array(i2);
51
+ for (; i2--; ) r2[i2] = o2.charCodeAt(i2);
52
+ return new File([r2], t2, { type: n2 });
53
53
  }
54
54
  return n(() => {
55
55
  var _a;
@@ -61,15 +61,16 @@ const S = { style: { width: "100%", height: "100%" } }, _ = e({ __name: "richtex
61
61
  if (l3.insert && l3.insert.image) {
62
62
  const e5 = l3.insert.image;
63
63
  if (!e5.startsWith("data:image")) return;
64
- const t4 = oe(e5, "image.png");
65
- await ie(t4).then((t5) => {
64
+ const t4 = ie(e5, "image.png");
65
+ await oe(t4).then((t5) => {
66
66
  if (!J) return;
67
67
  const l4 = J.root.getElementsByTagName("img");
68
68
  if (l4 && l4.length > 0) for (let n3 = 0; n3 < l4.length; n3++) {
69
- const i2 = l4[n3];
70
- i2.src === e5 && (i2.src = t5.url + "&jwt=" + L());
69
+ const o2 = l4[n3];
70
+ o2.src === e5 && (o2.src = t5.url + "&jwt=" + L());
71
71
  }
72
72
  }).catch((e6) => {
73
+ console.error(e6, "上传图片失败");
73
74
  });
74
75
  }
75
76
  }
@@ -81,17 +82,17 @@ const S = { style: { width: "100%", height: "100%" } }, _ = e({ __name: "richtex
81
82
  let l2 = e4.height - (t2.top - e4.top);
82
83
  l2 < 100 && (l2 = 100), J.container.style.height = l2 + "px";
83
84
  }
84
- }(), i(() => {
85
+ }(), o(() => {
85
86
  const e4 = C(M, N);
86
87
  k(e4, B.pageContext, B.configure, { formItemRef: Z.value, componentRef: $.value, titleRef: ee.value, value: e4, entity: B.pageContext.entity.data, pageData: B.pageContext.entity.page });
87
88
  });
88
- }), o(() => {
89
+ }), i(() => {
89
90
  G.value && G.value.removeEventListener("focusout", le), te && te.removeEventListener("click", ne);
90
91
  }), _2({ addRequiredClass: function() {
91
92
  H.value = j();
92
93
  } }), (e3, t2) => {
93
- const l2 = a("el-form-item"), n2 = a("el-image-viewer");
94
- return u(), r(s, null, [z.value.tittleShow ? (u(), c(l2, { key: 0, required: z.value.required, class: g(m(F) + (H.value ? " " + H.value : "")), "label-width": z.value.labelWidth, style: d(m(D)) }, { label: f(() => [z.value.tittleShow ? (u(), r("div", { key: 0, style: d({ ...m(U), ...m(W) }) }, h(m(E)(z.value.title)), 5)) : p("", true)]), default: f(() => [v("div", S, [v("div", { ref_key: "quillEditorRef", ref: G, style: { width: "100%" } }, null, 512)])]), _: 1 }, 8, ["required", "class", "label-width", "style"])) : p("", true), Y.value ? (u(), c(n2, { key: 1, "hide-on-click-modal": "", onClose: t2[0] || (t2[0] = () => {
94
+ const l2 = r("el-form-item"), n2 = r("el-image-viewer");
95
+ return u(), a(s, null, [z.value.tittleShow ? (u(), c(l2, { key: 0, required: z.value.required, class: g(m(F) + (H.value ? " " + H.value : "")), "label-width": z.value.labelWidth, style: d(m(D)) }, { label: f(() => [z.value.tittleShow ? (u(), a("div", { key: 0, style: d({ ...m(U), ...m(W) }) }, h(m(E)(z.value.title)), 5)) : p("", true)]), default: f(() => [v("div", S, [v("div", { ref_key: "quillEditorRef", ref: G, style: { width: "100%" } }, null, 512)])]), _: 1 }, 8, ["required", "class", "label-width", "style"])) : p("", true), Y.value ? (u(), c(n2, { key: 1, "hide-on-click-modal": "", onClose: t2[0] || (t2[0] = () => {
95
96
  Y.value = false;
96
97
  }), "url-list": X.value }, null, 8, ["url-list"])) : p("", true)], 64);
97
98
  };
@@ -1,7 +1,7 @@
1
1
  import o from "./workflowbutton-runtime.vue2.js";
2
2
  /* empty css */
3
3
  import t from "../../../../../../_virtual/_plugin-vue_export-helper.js";
4
- const r = t(o, [["__scopeId", "data-v-8a8cf88f"]]);
4
+ const r = t(o, [["__scopeId", "data-v-2de5813c"]]);
5
5
  export {
6
6
  r as default
7
7
  };
@@ -1,11 +1,12 @@
1
- import { defineComponent as e, ref as t, createElementBlock as n, openBlock as o, Fragment as r, renderList as u, createBlock as i, createCommentVNode as s } from "vue";
2
- import a from "../../object-render.vue.js";
1
+ import { defineComponent as e, ref as t, createElementBlock as n, openBlock as o, Fragment as r, renderList as u, createBlock as a, createCommentVNode as i } from "vue";
2
+ import s from "../../object-render.vue.js";
3
3
  import { getClickEventFuncByType as m } from "../../../../utils/events/event-util.js";
4
4
  import { isVisibleWorkflowButton as c } from "../../../../utils/events/standard-event.js";
5
5
  const l = { class: "page-runtime-header-btn amb-workflowbutton-runtime-view" }, p = e({ __name: "workflowbutton-runtime", props: { pageContext: {}, configure: {} }, setup(e2) {
6
+ var _a;
6
7
  const p2 = e2, f = p2.configure.runtime ? p2.configure.runtime : {};
7
8
  t(f.style ? f.style : {}), f.class;
8
- const g = p2.pageContext.workflowButtonComponent, v = p2.pageContext.completeTaskParam, x = t([]);
9
+ const g = p2.pageContext.workflowButtonComponent, v = p2.pageContext.completeTaskParam, x = (_a = p2.pageContext.entity) == null ? void 0 : _a.data, C = t([]);
9
10
  return p2.configure.items.forEach((e3) => {
10
11
  (function(e4) {
11
12
  const t2 = function(e5) {
@@ -14,9 +15,9 @@ const l = { class: "page-runtime-header-btn amb-workflowbutton-runtime-view" },
14
15
  if (t3.isStandard) return t3.event.eventName;
15
16
  }
16
17
  }(e4.runtime && e4.runtime.events ? e4.runtime.events : []);
17
- return c(t2, g, v);
18
- })(e3) && x.value.push(e3);
19
- }), (e3, t2) => (o(), n("span", l, [(o(true), n(r, null, u(x.value, (t3, u2) => (o(), n(r, null, [t3.check ? (o(), i(a, { key: u2, pageContext: e3.pageContext, configure: t3 }, null, 8, ["pageContext", "configure"])) : s("", true)], 64))), 256))]));
18
+ return c(t2, g, v, e4, x);
19
+ })(e3) && C.value.push(e3);
20
+ }), (e3, t2) => (o(), n("span", l, [(o(true), n(r, null, u(C.value, (t3, u2) => (o(), n(r, null, [t3.check ? (o(), a(s, { key: u2, pageContext: e3.pageContext, configure: t3 }, null, 8, ["pageContext", "configure"])) : i("", true)], 64))), 256))]));
20
21
  } });
21
22
  export {
22
23
  p as default
@@ -7,12 +7,12 @@ import { initPageEvents as f } from "../utils/events/event-util.js";
7
7
  import { setHomeChartInitConfigValue as v } from "../utils/charts/chart-util.js";
8
8
  import { useI18n as C } from "vue-i18n";
9
9
  const y = { "element-loading-text": "加载中..." }, S = { key: 1 }, b = e({ name: "HomeChart", inheritAttrs: false, __name: "home-chart", props: { chartUuid: { type: String, default: "" }, homeChartSettingUserId: { type: Number, default: 0 } }, setup(e2) {
10
- const { t: b2 } = C(), I = e2, U = t(true), w = t(false), H = t(null);
10
+ const { t: b2 } = C(), I = e2, U = t(true), H = t(false), w = t(null);
11
11
  let x, A = t(null);
12
12
  return I.chartUuid && c.get(window.$vueApp.config.globalProperties.baseAPI + "/component/home-chart-layout/" + I.chartUuid).then((e3) => {
13
13
  var _a, _b;
14
14
  if (e3 && e3.designJson) {
15
- H.value = {};
15
+ w.value = {};
16
16
  const t2 = JSON.parse(e3.designJson);
17
17
  let a2 = window.localStorage.getItem("HOME_MY_CHARTS_ALIAS");
18
18
  if (a2) {
@@ -20,26 +20,26 @@ const y = { "element-loading-text": "加载中..." }, S = { key: 1 }, b = e({ na
20
20
  e4[I.homeChartSettingUserId] && (t2.chartJson.runtime.headerInfo ? t2.chartJson.runtime.headerInfo.title = e4[I.homeChartSettingUserId] : t2.chartJson.runtime.headerInfo = { textAlign: "center", title: e4[I.homeChartSettingUserId] });
21
21
  }
22
22
  const i2 = window.frameElement;
23
- H.value = t2.chartJson, H.value.homeChartSettingUserId = I.homeChartSettingUserId, i2 && (H.value.runtime.common.style.pc_style.height = i2.clientHeight + "px");
23
+ w.value = t2.chartJson, w.value.homeChartSettingUserId = I.homeChartSettingUserId, i2 && (i2.clientHeight, w.value.runtime.common.style.pc_style.height = i2.clientHeight + "px");
24
24
  const n2 = { showHomepageSearch: false, name: e3.pageName, code: e3.pageCode, label: "", dimensions: "", version: 1, isWorkflowEntity: false, variables: t2.variables, systemCode: e3.systemCode, uuid: e3.uuid, allChartUuids: [], backendUrl: e3.backendUrl, rules: {}, pageType: "chart", beanName: t2.beanName, initChartServiceConfigs: [t2.initChartServiceConfigs], entity: { data: {}, task: {}, request: {}, page: {}, context: e3.contextParam, system: e3.systemParam } };
25
- if (((_a = H.value.pushHomepage) == null ? void 0 : _a.searchConditions) && ((_b = H.value.pushHomepage) == null ? void 0 : _b.searchConditions.length) > 0 && (n2.showHomepageSearch = true), t2.variables) {
25
+ if (((_a = w.value.pushHomepage) == null ? void 0 : _a.searchConditions) && ((_b = w.value.pushHomepage) == null ? void 0 : _b.searchConditions.length) > 0 && (n2.showHomepageSearch = true), t2.variables) {
26
26
  const e4 = n2.entity.page;
27
27
  for (const a3 of t2.variables) a3.name && (a3.isArrayElement ? e4[a3.name] = [] : a3.defaultValue ? e4[a3.name] = a3.defaultValue : e4[a3.name] = void 0);
28
28
  }
29
- t2.initOptionConfigs && t2.initOptionConfigs.length > 0 && d(n2, t2.initOptionConfigs, void 0), v(H.value.pushHomepage.initConfig, n2, I.homeChartSettingUserId), f(t2, n2), A.value = n2, x = setTimeout(() => {
29
+ t2.initOptionConfigs && t2.initOptionConfigs.length > 0 && d(n2, t2.initOptionConfigs, void 0), v(w.value.pushHomepage.initConfig, n2, I.homeChartSettingUserId), f(t2, n2), A.value = n2, x = setTimeout(() => {
30
30
  !function(e4, t3) {
31
31
  if (!t3 || 0 == t3.length) return;
32
32
  e4.initChartData = {}, e4.initChartData.data = h(e4.entity.data), e4.initChartData.page = h(e4.entity.page), t3 && t3.length > 0 && p(e4, t3, null, true);
33
33
  }(A.value, [t2.initChartServiceConfigs]);
34
34
  }, 200);
35
- } else w.value = true, U.value = false;
35
+ } else H.value = true, U.value = false;
36
36
  }).finally(() => {
37
37
  U.value = false;
38
38
  }), a(() => {
39
39
  x && clearTimeout(x);
40
40
  }), (e3, t2) => {
41
41
  const a2 = i("loading");
42
- return n((o(), r("div", y, [!U.value && H.value ? (o(), s(g, { key: 0, configure: H.value, pageContext: u(A) }, null, 8, ["configure", "pageContext"])) : U.value || H.value ? l("", true) : (o(), r("div", S, m(u(b2)("superPageRuntimeMessage.noChartSetting")), 1))])), [[a2, U.value]]);
42
+ return n((o(), r("div", y, [!U.value && w.value ? (o(), s(g, { key: 0, configure: w.value, pageContext: u(A) }, null, 8, ["configure", "pageContext"])) : U.value || w.value ? l("", true) : (o(), r("div", S, m(u(b2)("superPageRuntimeMessage.noChartSetting")), 1))])), [[a2, U.value]]);
43
43
  };
44
44
  } });
45
45
  export {