super-page-runtime 2.3.37 → 2.3.38-cdn1

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 (25) hide show
  1. package/dist/es/components/runtime/index.d.ts +2 -1
  2. package/dist/es/components/runtime/utils/assemblys-config.js +1 -1
  3. package/dist/es/components/runtime/utils/events/event-util.js +1 -1
  4. package/dist/es/components/runtime/utils/events/standard-event.d.ts +1 -1
  5. package/dist/es/components/runtime/utils/events/standard-event.js +229 -229
  6. package/dist/es/components/runtime/views/assemblys/chart/common/home-chart-condition-render.vue.d.ts +36 -0
  7. package/dist/es/components/runtime/views/assemblys/chart/common/home-chart-condition-render.vue.js +94 -0
  8. package/dist/es/components/runtime/views/assemblys/chart/common/home-chart-condition-render.vue2.js +4 -0
  9. package/dist/es/components/runtime/views/assemblys/container/tabs/tabs-runtime.vue.js +3 -3
  10. package/dist/es/components/runtime/views/assemblys/container/tabs/tabs-runtime.vue2.js +60 -60
  11. package/dist/es/components/runtime/views/assemblys/data/table/main-table-runtime.vue.js +1 -1
  12. package/dist/es/components/runtime/views/assemblys/data/table/sub-table-runtime.vue.js +1 -1
  13. package/dist/es/components/runtime/views/assemblys/form/file-upload/fileupload-runtime.vue2.js +27 -27
  14. package/dist/es/components/runtime/views/assemblys/form/image-upload/imageupload-runtime.vue.js +4 -0
  15. package/dist/es/components/runtime/views/assemblys/form/image-upload/imageupload-runtime.vue2.js +91 -0
  16. package/dist/es/components/runtime/views/assemblys/form/input-text/inputtext-runtime.vue2.js +43 -44
  17. package/dist/es/components/runtime/views/assemblys/workflow/component/workflow-opinion-box.vue.d.ts +6 -1
  18. package/dist/es/components/runtime/views/assemblys/workflow/component/workflow-opinion-box.vue.js +1 -1
  19. package/dist/es/components/runtime/views/assemblys/workflow/component/workflow-opinion-box.vue2.js +37 -29
  20. package/dist/es/components/runtime/views/super-page.vue.js +1 -1
  21. package/dist/es/components/runtime/views/super-page.vue2.js +78 -69
  22. package/dist/es/index.d.ts +2 -2
  23. package/dist/es/index.js +8 -6
  24. package/dist/es/style.css +94 -94
  25. package/package.json +2 -2
@@ -1,82 +1,81 @@
1
- import { defineComponent as e, ref as t, computed as l, onMounted as n, nextTick as o, onUnmounted as a, watch as u, resolveComponent as i, createBlock as r, openBlock as s, normalizeStyle as p, normalizeClass as c, unref as v, createSlots as f, withCtx as m, createVNode as y, createCommentVNode as g, createTextVNode as d, toDisplayString as x, createElementVNode as C, createElementBlock as I, Fragment as T } from "vue";
1
+ import { defineComponent as e, ref as t, computed as l, onMounted as n, nextTick as o, onUnmounted as a, watch as u, resolveComponent as i, createBlock as r, openBlock as s, normalizeStyle as p, normalizeClass as c, unref as v, createSlots as f, withCtx as y, createVNode as m, createCommentVNode as g, createTextVNode as d, toDisplayString as x, createElementVNode as C, createElementBlock as T, Fragment as I } from "vue";
2
2
  import { SuperIcon as k } from "agilebuilder-ui";
3
3
  import { getFormModelFields as w } from "../../../../utils/page-init-util.js";
4
4
  import { getModelFieldFromPageContext as V, isNumberDataType as h, setVariableValue as b, getVariableValue as _ } from "../../../../utils/page-helper-util.js";
5
5
  import { handleFormEvent as S, handleAfterInitEvent as j, doSuffixOrPrefixClickEvent as R } from "../../../../utils/events/event-util.js";
6
6
  import { formatScanRuleSets as O, analysisScanValue as N, setScanAnalysisValue as P } from "../../../../utils/form/scan-util.js";
7
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 z } from "../../../../utils/common-util.js";
12
- const L = e({ __name: "inputtext-runtime", props: { pageContext: {}, configure: {} }, setup(e2, { expose: L2 }) {
8
+ import { isMobileBrowser as D, isDingTalkEnv as J } from "agilebuilder-ui/src/utils/common-util";
9
+ import M from "../../../../utils/eventBus.js";
10
+ import { $t as z } from "../../../../utils/i18n-util.js";
11
+ import { addRequiredClassUtil as L } from "../../../../utils/common-util.js";
12
+ const B = e({ __name: "inputtext-runtime", props: { pageContext: {}, configure: {} }, setup(e2, { expose: B2 }) {
13
13
  var _a, _b, _c;
14
- const B = e2, F = B.pageContext.entity ? B.pageContext.entity : {}, $ = t("text");
15
- let A = w(B.pageContext, B.configure);
16
- if (B.pageContext.modelFieldsMap) {
17
- const e3 = V(A, B.pageContext);
18
- e3 && ($.value = h(e3.dataType) ? "number" : "text");
14
+ const F = e2, $ = F.pageContext.entity ? F.pageContext.entity : {}, A = t("text");
15
+ let E = w(F.pageContext, F.configure);
16
+ if (F.pageContext.modelFieldsMap) {
17
+ const e3 = V(E, F.pageContext);
18
+ e3 && (A.value = h(e3.dataType) ? "number" : "text");
19
19
  }
20
- const E = t(D()), H = B.pageContext.code, U = t(A && A.length > 0 ? H + "__" + A.join("__") : null), W = t(null), G = l({ get: () => _(F, A), set(e3) {
21
- b(F, A, e3), null != e3 && "" !== e3 && (W.value = "");
22
- } }), K = t(null), Q = t(null), X = t(null), Y = B.configure.runtime ? B.configure.runtime : {}, Z = t(Y.props ? Y.props : {}), ee = t(!!((_a = Z.value.scan) == null ? void 0 : _a.enable));
23
- let te = false;
24
- const le = window.localStorage.getItem("auth_source");
25
- le && "dingtalk" === le && (te = true);
20
+ const H = t(D()), U = F.pageContext.code, W = t(E && E.length > 0 ? U + "__" + E.join("__") : null), G = t(null), K = l({ get: () => _($, E), set(e3) {
21
+ b($, E, e3), null != e3 && "" !== e3 && (G.value = "");
22
+ } }), Q = t(null), X = t(null), Y = t(null), Z = F.configure.runtime ? F.configure.runtime : {}, ee = t(Z.props ? Z.props : {}), te = t(!!((_a = ee.value.scan) == null ? void 0 : _a.enable));
23
+ let le = false;
24
+ J() && (le = true);
26
25
  let ne = "";
27
26
  const oe = navigator.userAgent;
28
27
  ne = oe.indexOf("Html5Plus") > 0 ? "app" : "browser";
29
- const ae = !(!E.value || !ne || "app" !== ne), ue = t(!!((ae || te) && ee.value || E.value && ee.value && "https:" === window.location.protocol));
28
+ const ae = !(!H.value || !ne || "app" !== ne), ue = t(!!((ae || le) && te.value || H.value && te.value && "https:" === window.location.protocol));
30
29
  let ie = {};
31
- ((_b = Z.value.scan) == null ? void 0 : _b.enable) && ((_c = Z.value.scan.ruleList) == null ? void 0 : _c.length) > 0 && (O(Z.value.scan.ruleList).then((e3) => {
30
+ ((_b = ee.value.scan) == null ? void 0 : _b.enable) && ((_c = ee.value.scan.ruleList) == null ? void 0 : _c.length) > 0 && (O(ee.value.scan.ruleList).then((e3) => {
32
31
  ie = e3;
33
- }), u(() => G.value, (e3) => {
32
+ }), u(() => K.value, (e3) => {
34
33
  e3 = e3.trim();
35
34
  const t2 = N(e3, ie);
36
- t2 && P(B.pageContext, t2.scanSet, t2.params);
35
+ t2 && P(F.pageContext, t2.scanSet, t2.params);
37
36
  }));
38
- const re = Y.style, se = Y.class, pe = Y.headerStyle, ce = Y.titleExceedStyle;
37
+ const re = Z.style, se = Z.class, pe = Z.headerStyle, ce = Z.titleExceedStyle;
39
38
  function ve(e3) {
40
- return b(F, A, e3);
39
+ return b($, E, e3);
41
40
  }
42
41
  n(() => {
43
- J.$on(U.value + "-scanDone", (e3) => {
44
- U.value, JSON.stringify(e3), ve(e3.result), S(e3.result, B.pageContext, B.configure, "afterScanDone");
42
+ M.$on(W.value + "-scanDone", (e3) => {
43
+ W.value, JSON.stringify(e3), ve(e3.result), S(e3.result, F.pageContext, F.configure, "afterScanDone");
45
44
  }), o(() => {
46
45
  var _a2;
47
- const e3 = G.value;
48
- j(e3, B.pageContext, B.configure, { formItemRef: K.value, componentRef: Q.value, titleRef: X.value, value: e3, entity: B.pageContext.entity.data, pageData: B.pageContext.entity.page }), ue.value && ((_a2 = Z.value.scan) == null ? void 0 : _a2.autoOpen) && me();
46
+ const e3 = K.value;
47
+ j(e3, F.pageContext, F.configure, { formItemRef: Q.value, componentRef: X.value, titleRef: Y.value, value: e3, entity: F.pageContext.entity.data, pageData: F.pageContext.entity.page }), ue.value && ((_a2 = ee.value.scan) == null ? void 0 : _a2.autoOpen) && ye();
49
48
  });
50
49
  }), a(() => {
51
- J.$off(U.value + "-scanDone");
50
+ M.$off(W.value + "-scanDone");
52
51
  });
53
52
  const fe = t(false);
54
- function me() {
55
- if (ae || te) {
56
- const e3 = { type: "scan", componentId: U.value, systemCode: B.pageContext.systemCode };
57
- te && (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 (E.value) if ("https:" === window.location.protocol) fe.value = true;
53
+ function ye() {
54
+ if (ae || le) {
55
+ const e3 = { type: "scan", componentId: W.value, systemCode: F.pageContext.systemCode };
56
+ le && (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 (H.value) if ("https:" === window.location.protocol) fe.value = true;
59
58
  else {
60
- const e3 = { type: "scan", componentId: U.value, systemCode: B.pageContext.systemCode };
59
+ const e3 = { type: "scan", componentId: W.value, systemCode: F.pageContext.systemCode };
61
60
  window.parent.postMessage(JSON.stringify(e3), "*");
62
61
  }
63
62
  else fe.value = true;
64
63
  }
65
- function ye(e3) {
64
+ function me(e3) {
66
65
  fe.value = false, ve(e3);
67
66
  }
68
- return L2({ getValue: function() {
69
- return _(F, A);
70
- }, setValue: ve, scanClick: me, addRequiredClass: function() {
71
- W.value = z();
67
+ return B2({ getValue: function() {
68
+ return _($, E);
69
+ }, setValue: ve, scanClick: ye, addRequiredClass: function() {
70
+ G.value = L();
72
71
  } }), (t2, l2) => {
73
72
  const n2 = i("el-input"), o2 = i("scan-code-input-browser"), a2 = i("el-form-item");
74
- return s(), r(a2, { ref_key: "formItemRef", ref: K, required: !!Z.value.required, class: c(v(se) + (W.value ? " " + W.value : "")), "label-width": Z.value.labelWidth, style: p(v(re)) }, f({ default: m(() => [y(n2, { ref_key: "componentRef", ref: Q, disabled: "disabled" === Z.value.state, readonly: "readonly" === Z.value.state, size: Z.value.size, clearable: Z.value.clearable, placeholder: Z.value.placeholder, maxlength: Z.value.maxLength, "show-word-limit": Z.value.showInputNum, type: $.value, modelValue: G.value, "onUpdate:modelValue": l2[5] || (l2[5] = (e3) => G.value = e3), onInput: l2[6] || (l2[6] = (t3) => v(S)(t3, e2.pageContext, e2.configure, "input")), onChange: l2[7] || (l2[7] = (t3) => v(S)(t3, e2.pageContext, e2.configure, "change")), onBlur: l2[8] || (l2[8] = (e3) => function(e4) {
75
- let t3 = _(F, A);
76
- null != t3 && (t3 = t3.trim()), b(F, A, t3), S(e4, B.pageContext, B.configure, "blur");
77
- }(e3)), onFocus: l2[9] || (l2[9] = (t3) => v(S)(t3, e2.pageContext, e2.configure, "focus")), onClick: l2[10] || (l2[10] = (t3) => v(S)(t3, e2.pageContext, e2.configure, "click")), onClear: l2[11] || (l2[11] = (t3) => v(S)(t3, e2.pageContext, e2.configure, "clear")) }, f({ _: 2 }, ["outer" != Z.value.iconPosition && (Z.value.preIconType && Z.value.preIconValue || Z.value.preText) ? { name: "prefix", fn: m(() => [Z.value.preIconType && Z.value.preIconValue ? (s(), r(v(k), { key: 0, style: { cursor: "pointer" }, iconType: Z.value.preIconType, iconValue: Z.value.preIconValue, onClick: l2[0] || (l2[0] = (t3) => v(R)(G.value, e2.pageContext, e2.configure, "prefixClick")) }, null, 8, ["iconType", "iconValue"])) : g("", true), d(" " + x(v(M)(Z.value.preText)), 1)]), key: "0" } : void 0, "outer" == Z.value.iconPosition && (Z.value.preIconType && Z.value.preIconValue || Z.value.preText) ? { name: "prepend", fn: m(() => [Z.value.preIconType && Z.value.preIconValue ? (s(), r(v(k), { key: 0, style: { cursor: "pointer" }, iconType: Z.value.preIconType, iconValue: Z.value.preIconValue, onClick: l2[1] || (l2[1] = (t3) => v(R)(G.value, e2.pageContext, e2.configure, "prefixClick")) }, null, 8, ["iconType", "iconValue"])) : g("", true), d(" " + x(v(M)(Z.value.preText)), 1)]), key: "1" } : void 0, "outer" != Z.value.iconPosition && (Z.value.sufIconType && Z.value.sufIconValue || Z.value.sufText) ? { name: "suffix", fn: m(() => [Z.value.sufIconType && Z.value.sufIconValue ? (s(), r(v(k), { key: 0, style: { cursor: "pointer" }, iconType: Z.value.sufIconType, iconValue: Z.value.sufIconValue, onClick: l2[2] || (l2[2] = (t3) => v(R)(G.value, e2.pageContext, e2.configure, "suffixClick")) }, null, 8, ["iconType", "iconValue"])) : g("", true), d(" " + x(v(M)(Z.value.sufText)), 1)]), key: "2" } : void 0, ue.value || "outer" == Z.value.iconPosition && (Z.value.sufIconType && Z.value.sufIconValue || Z.value.sufText) ? { name: "append", fn: m(() => [ue.value ? (s(), r(v(k), { key: 0, style: { cursor: "pointer" }, iconValue: "fa-barcode", onClick: l2[3] || (l2[3] = (e3) => me()) })) : g("", true), Z.value.sufIconType && Z.value.sufIconValue ? (s(), r(v(k), { key: 1, style: { cursor: "pointer" }, iconType: Z.value.sufIconType, iconValue: Z.value.sufIconValue, onClick: l2[4] || (l2[4] = (t3) => v(R)(G.value, e2.pageContext, e2.configure, "suffixClick")) }, null, 8, ["iconType", "iconValue"])) : g("", true), d(" " + x(v(M)(Z.value.sufText)), 1)]), key: "3" } : void 0]), 1032, ["disabled", "readonly", "size", "clearable", "placeholder", "maxlength", "show-word-limit", "type", "modelValue"]), fe.value ? (s(), r(o2, { key: 0, onClose: ye })) : g("", true)]), _: 2 }, [Z.value.tittleShow ? { name: "label", fn: m(() => [C("div", { ref_key: "titleRef", ref: X, class: "amb-form-item-label", style: p({ ...v(pe), ...v(ce) }) }, [Z.value.prefixType ? (s(), r(q, { key: 0, pageContext: e2.pageContext, property: Z.value }, null, 8, ["pageContext", "property"])) : (s(), I(T, { key: 1 }, [d(x(v(M)(Z.value.title)), 1)], 64))], 4)]), key: "0" } : void 0]), 1032, ["required", "class", "label-width", "style"]);
73
+ return s(), r(a2, { ref_key: "formItemRef", ref: Q, required: !!ee.value.required, class: c(v(se) + (G.value ? " " + G.value : "")), "label-width": ee.value.labelWidth, style: p(v(re)) }, f({ default: y(() => [m(n2, { ref_key: "componentRef", ref: X, disabled: "disabled" === ee.value.state, readonly: "readonly" === ee.value.state, size: ee.value.size, clearable: ee.value.clearable, placeholder: ee.value.placeholder, maxlength: ee.value.maxLength, "show-word-limit": ee.value.showInputNum, type: A.value, modelValue: K.value, "onUpdate:modelValue": l2[5] || (l2[5] = (e3) => K.value = e3), onInput: l2[6] || (l2[6] = (t3) => v(S)(t3, e2.pageContext, e2.configure, "input")), onChange: l2[7] || (l2[7] = (t3) => v(S)(t3, e2.pageContext, e2.configure, "change")), onBlur: l2[8] || (l2[8] = (e3) => function(e4) {
74
+ let t3 = _($, E);
75
+ null != t3 && (t3 = t3.trim()), b($, E, t3), S(e4, F.pageContext, F.configure, "blur");
76
+ }(e3)), onFocus: l2[9] || (l2[9] = (t3) => v(S)(t3, e2.pageContext, e2.configure, "focus")), onClick: l2[10] || (l2[10] = (t3) => v(S)(t3, e2.pageContext, e2.configure, "click")), onClear: l2[11] || (l2[11] = (t3) => v(S)(t3, e2.pageContext, e2.configure, "clear")) }, f({ _: 2 }, ["outer" != ee.value.iconPosition && (ee.value.preIconType && ee.value.preIconValue || ee.value.preText) ? { name: "prefix", fn: y(() => [ee.value.preIconType && ee.value.preIconValue ? (s(), r(v(k), { key: 0, style: { cursor: "pointer" }, iconType: ee.value.preIconType, iconValue: ee.value.preIconValue, onClick: l2[0] || (l2[0] = (t3) => v(R)(K.value, e2.pageContext, e2.configure, "prefixClick")) }, null, 8, ["iconType", "iconValue"])) : g("", true), d(" " + x(v(z)(ee.value.preText)), 1)]), key: "0" } : void 0, "outer" == ee.value.iconPosition && (ee.value.preIconType && ee.value.preIconValue || ee.value.preText) ? { name: "prepend", fn: y(() => [ee.value.preIconType && ee.value.preIconValue ? (s(), r(v(k), { key: 0, style: { cursor: "pointer" }, iconType: ee.value.preIconType, iconValue: ee.value.preIconValue, onClick: l2[1] || (l2[1] = (t3) => v(R)(K.value, e2.pageContext, e2.configure, "prefixClick")) }, null, 8, ["iconType", "iconValue"])) : g("", true), d(" " + x(v(z)(ee.value.preText)), 1)]), key: "1" } : void 0, "outer" != ee.value.iconPosition && (ee.value.sufIconType && ee.value.sufIconValue || ee.value.sufText) ? { name: "suffix", fn: y(() => [ee.value.sufIconType && ee.value.sufIconValue ? (s(), r(v(k), { key: 0, style: { cursor: "pointer" }, iconType: ee.value.sufIconType, iconValue: ee.value.sufIconValue, onClick: l2[2] || (l2[2] = (t3) => v(R)(K.value, e2.pageContext, e2.configure, "suffixClick")) }, null, 8, ["iconType", "iconValue"])) : g("", true), d(" " + x(v(z)(ee.value.sufText)), 1)]), key: "2" } : void 0, ue.value || "outer" == ee.value.iconPosition && (ee.value.sufIconType && ee.value.sufIconValue || ee.value.sufText) ? { name: "append", fn: y(() => [ue.value ? (s(), r(v(k), { key: 0, style: { cursor: "pointer" }, iconValue: "fa-barcode", onClick: l2[3] || (l2[3] = (e3) => ye()) })) : g("", true), ee.value.sufIconType && ee.value.sufIconValue ? (s(), r(v(k), { key: 1, style: { cursor: "pointer" }, iconType: ee.value.sufIconType, iconValue: ee.value.sufIconValue, onClick: l2[4] || (l2[4] = (t3) => v(R)(K.value, e2.pageContext, e2.configure, "suffixClick")) }, null, 8, ["iconType", "iconValue"])) : g("", true), d(" " + x(v(z)(ee.value.sufText)), 1)]), key: "3" } : void 0]), 1032, ["disabled", "readonly", "size", "clearable", "placeholder", "maxlength", "show-word-limit", "type", "modelValue"]), fe.value ? (s(), r(o2, { key: 0, onClose: me })) : g("", true)]), _: 2 }, [ee.value.tittleShow ? { name: "label", fn: y(() => [C("div", { ref_key: "titleRef", ref: Y, class: "amb-form-item-label", style: p({ ...v(pe), ...v(ce) }) }, [ee.value.prefixType ? (s(), r(q, { key: 0, pageContext: e2.pageContext, property: ee.value }, null, 8, ["pageContext", "property"])) : (s(), T(I, { key: 1 }, [d(x(v(z)(ee.value.title)), 1)], 64))], 4)]), key: "0" } : void 0]), 1032, ["required", "class", "label-width", "style"]);
78
77
  };
79
78
  } });
80
79
  export {
81
- L as default
80
+ B as default
82
81
  };
@@ -1,7 +1,12 @@
1
1
  interface MyProps {
2
2
  pageContext: any;
3
3
  }
4
- declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<__VLS_TypePropsToRuntimeProps<MyProps>>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_TypePropsToRuntimeProps<MyProps>>> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
4
+ declare function show(): void;
5
+ declare function hide(): void;
6
+ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<__VLS_TypePropsToRuntimeProps<MyProps>>, {
7
+ show: typeof show;
8
+ hide: typeof hide;
9
+ }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_TypePropsToRuntimeProps<MyProps>>> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
5
10
  export default _default;
6
11
  type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
7
12
  type __VLS_TypePropsToRuntimeProps<T> = {
@@ -1,7 +1,7 @@
1
1
  import o from "./workflow-opinion-box.vue2.js";
2
2
  /* empty css */
3
3
  import r from "../../../../../../_virtual/_plugin-vue_export-helper.js";
4
- const p = r(o, [["__scopeId", "data-v-8f093cc2"]]);
4
+ const p = r(o, [["__scopeId", "data-v-995b99cd"]]);
5
5
  export {
6
6
  p as default
7
7
  };
@@ -1,47 +1,55 @@
1
- import { defineComponent as e, ref as n, computed as o, onMounted as l, onUnmounted as i, watch as t, nextTick as a, resolveComponent as u, createElementBlock as r, openBlock as s, Fragment as p, createElementVNode as d, createCommentVNode as f, createBlock as v, normalizeStyle as w, Teleport as c, createTextVNode as m, normalizeClass as x, createVNode as g } from "vue";
2
- import { addRequiredClassUtil as b } from "../../../../utils/common-util.js";
3
- const h = { class: "opinion-box-table-wrapper" }, k = { class: "opinion-table" }, y = { class: "opinion-label" }, O = { key: 0, class: "required-star" }, C = e({ __name: "workflow-opinion-box", props: { pageContext: {} }, setup(e2) {
4
- const C2 = e2, R = n(""), E = n(), z = n(""), L = n(null), _ = n(null), B = n(0), H = n(null), I = n(null);
5
- let V = null, q = null;
6
- const j = o(() => {
7
- const e3 = I.value;
1
+ import { defineComponent as e, ref as n, computed as o, onMounted as l, onUnmounted as t, watch as i, nextTick as a, resolveComponent as u, createElementBlock as r, openBlock as s, Fragment as p, createElementVNode as w, createCommentVNode as f, createBlock as v, normalizeStyle as c, Teleport as d, withDirectives as x, createTextVNode as g, normalizeClass as m, createVNode as k, vShow as b } from "vue";
2
+ import { addRequiredClassUtil as O } from "../../../../utils/common-util.js";
3
+ const h = { class: "opinion-box-table-wrapper" }, C = { class: "opinion-table" }, y = { class: "opinion-label" }, R = { key: 0, class: "required-star" }, E = e({ __name: "workflow-opinion-box", props: { pageContext: {} }, setup(e2, { expose: E2 }) {
4
+ const I = e2, z = n(""), L = n(), _ = n(""), B = n(null), H = n(null), V = n(0), q = n(null), j = n(null);
5
+ let S = null, U = null;
6
+ const W = n(true), A = o(() => {
7
+ const e3 = j.value;
8
8
  return e3 ? { left: e3.left + "px", right: window.innerWidth - e3.right + "px", bottom: window.innerHeight - e3.bottom + "px" } : { left: "0", right: "0", bottom: "0" };
9
9
  });
10
- function S() {
11
- H.value && (I.value = H.value.getBoundingClientRect());
10
+ function D() {
11
+ q.value && (j.value = q.value.getBoundingClientRect());
12
12
  }
13
- function U(e3) {
14
- H.value = e3, S(), q = new ResizeObserver(S), q.observe(e3), window.addEventListener("scroll", S, true), window.addEventListener("resize", S);
13
+ function F(e3) {
14
+ q.value = e3, D(), U = new ResizeObserver(D), U.observe(e3), window.addEventListener("scroll", D, true), window.addEventListener("resize", D);
15
15
  }
16
- return l(() => {
16
+ l(() => {
17
17
  var _a;
18
- let e3 = ((_a = L.value) == null ? void 0 : _a.parentElement) ?? null;
18
+ let e3 = ((_a = B.value) == null ? void 0 : _a.parentElement) ?? null;
19
19
  for (; e3; ) {
20
- if (e3.classList.contains("el-dialog")) return void U(e3);
20
+ if (e3.classList.contains("el-dialog")) return void F(e3);
21
21
  e3 = e3.parentElement;
22
22
  }
23
- }), i(() => {
24
- V == null ? void 0 : V.disconnect(), V = null, q == null ? void 0 : q.disconnect(), q = null, window.removeEventListener("scroll", S, true), window.removeEventListener("resize", S), H.value = null, I.value = null;
25
- }), t(_, (e3) => {
26
- V == null ? void 0 : V.disconnect(), V = null, e3 ? (B.value = e3.offsetHeight, V = new ResizeObserver(() => {
27
- B.value = e3.offsetHeight;
28
- }), V.observe(e3)) : B.value = 0;
23
+ I.pageContext.workflowOpinion && (I.pageContext.workflowOpinion.boxInstance = G);
29
24
  }), t(() => {
30
25
  var _a;
31
- return (_a = C2.pageContext.workflowOpinion) == null ? void 0 : _a.focusOpinionInput;
26
+ S == null ? void 0 : S.disconnect(), S = null, U == null ? void 0 : U.disconnect(), U = null, window.removeEventListener("scroll", D, true), window.removeEventListener("resize", D), q.value = null, j.value = null, ((_a = I.pageContext.workflowOpinion) == null ? void 0 : _a.boxInstance) && (I.pageContext.workflowOpinion.boxInstance = null);
27
+ }), i(H, (e3) => {
28
+ S == null ? void 0 : S.disconnect(), S = null, e3 ? (V.value = e3.offsetHeight, S = new ResizeObserver(() => {
29
+ V.value = e3.offsetHeight;
30
+ }), S.observe(e3)) : V.value = 0;
31
+ }), i(() => {
32
+ var _a;
33
+ return (_a = I.pageContext.workflowOpinion) == null ? void 0 : _a.focusOpinionInput;
32
34
  }, (e3) => {
33
- e3 ? (z.value = b(), a(() => {
35
+ e3 ? (_.value = O(), a(() => {
34
36
  var _a;
35
- ((_a = E.value) == null ? void 0 : _a.focus) && E.value.focus();
36
- })) : z.value = "";
37
- }, { immediate: true }), (n2, o2) => {
37
+ ((_a = L.value) == null ? void 0 : _a.focus) && L.value.focus();
38
+ })) : _.value = "";
39
+ }, { immediate: true });
40
+ const G = { show: function() {
41
+ I.pageContext.workflowOpinion && (W.value = true);
42
+ }, hide: function() {
43
+ I.pageContext.workflowOpinion && (W.value = false);
44
+ } };
45
+ return E2(G), (n2, o2) => {
38
46
  var _a, _b, _c;
39
47
  const l2 = u("el-input");
40
- return s(), r(p, null, [d("div", { ref_key: "sentinelRef", ref: L, style: { display: "none" } }, null, 512), ((_a = e2.pageContext.workflowOpinion) == null ? void 0 : _a.showOpinionBox) ? (s(), r("div", { key: 0, style: w({ height: B.value + "px", width: "100%", flexShrink: 0 }) }, null, 4)) : f("", true), (s(), v(c, { to: "body" }, [((_b = e2.pageContext.workflowOpinion) == null ? void 0 : _b.showOpinionBox) ? (s(), r("div", { key: 0, ref_key: "opinionBarRef", ref: _, class: "opinion-fixed-bar", style: w(j.value) }, [d("div", h, [d("table", k, [d("tbody", null, [d("tr", null, [d("td", y, [((_c = e2.pageContext.workflowOpinion) == null ? void 0 : _c.isRequired) ? (s(), r("span", O, "*")) : f("", true), o2[2] || (o2[2] = m(" 处理意见 ", -1))]), d("td", { class: x(["opinion-input-cell", z.value]) }, [g(l2, { ref_key: "opinionInputRef", ref: E, modelValue: R.value, "onUpdate:modelValue": o2[0] || (o2[0] = (e3) => R.value = e3), autosize: { minRows: 2, maxRows: 4 }, type: "textarea", placeholder: "请输入处理意见", onChange: o2[1] || (o2[1] = (e3) => {
41
- C2.pageContext.workflowOpinion && (C2.pageContext.workflowOpinion.opinion = R.value.trim(), C2.pageContext.workflowOpinion.focusOpinionInput = false);
42
- }), class: "opinion-input" }, null, 8, ["modelValue"])], 2)])])])])], 4)) : f("", true)]))], 64);
48
+ return s(), r(p, null, [w("div", { ref_key: "sentinelRef", ref: B, style: { display: "none" } }, null, 512), ((_a = e2.pageContext.workflowOpinion) == null ? void 0 : _a.showOpinionBox) ? (s(), r("div", { key: 0, style: c({ height: V.value + "px", width: "100%", flexShrink: 0 }) }, null, 4)) : f("", true), (s(), v(d, { to: "body" }, [((_b = e2.pageContext.workflowOpinion) == null ? void 0 : _b.showOpinionBox) ? x((s(), r("div", { key: 0, ref_key: "opinionBarRef", ref: H, class: "opinion-fixed-bar", style: c(A.value) }, [w("div", h, [w("table", C, [w("tbody", null, [w("tr", null, [w("td", y, [((_c = e2.pageContext.workflowOpinion) == null ? void 0 : _c.isRequired) ? (s(), r("span", R, "*")) : f("", true), o2[2] || (o2[2] = g(" 处理意见 ", -1))]), w("td", { class: m(["opinion-input-cell", _.value]) }, [k(l2, { ref_key: "opinionInputRef", ref: L, modelValue: z.value, "onUpdate:modelValue": o2[0] || (o2[0] = (e3) => z.value = e3), autosize: { minRows: 2, maxRows: 4 }, type: "textarea", placeholder: "请输入处理意见", onChange: o2[1] || (o2[1] = (e3) => {
49
+ I.pageContext.workflowOpinion && (I.pageContext.workflowOpinion.opinion = z.value.trim(), I.pageContext.workflowOpinion.focusOpinionInput = false);
50
+ }), class: "opinion-input" }, null, 8, ["modelValue"])], 2)])])])])], 4)), [[b, W.value]]) : f("", true)]))], 64);
43
51
  };
44
52
  } });
45
53
  export {
46
- C as default
54
+ E as default
47
55
  };
@@ -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-f6d885b6"]]);
4
+ const r = p(e, [["__scopeId", "data-v-07f0e7b6"]]);
5
5
  export {
6
6
  r as default
7
7
  };
@@ -1,7 +1,7 @@
1
1
  import { defineComponent as e, ref as a, getCurrentInstance as t, onMounted as l, onUpdated as o, nextTick as u, onUnmounted as n, resolveDirective as i, withDirectives as s, createElementBlock as r, openBlock as v, normalizeStyle as p, normalizeClass as m, unref as c, createCommentVNode as g, createVNode as f, createBlock as d, createElementVNode as y, Fragment as h, renderList as C, watch as P } from "vue";
2
2
  import b from "./assemblys/object-render.vue.js";
3
3
  import { updateOptionDatasources as j, updateChartDatasources as k } from "../utils/page-helper-util.js";
4
- import { queryPageDesignWhenPreview as x, queryPageDesignByCode as $, convertToPageContext as S, packageAdditionalMapWithLocationSearch as D, packageAdditionalMapWithRoute as N, packageAdditionalMapWithPageRequest as w } from "../utils/page-init-util.js";
4
+ import { queryPageDesignWhenPreview as x, queryPageDesignByCode as $, convertToPageContext as S, packageAdditionalMapWithLocationSearch as w, packageAdditionalMapWithRoute as D, packageAdditionalMapWithPageRequest as N } from "../utils/page-init-util.js";
5
5
  import { addComponentRef as q, removePageAllRef as T, initComponentRefState as R } from "../utils/global-refs.js";
6
6
  import { removeCustomFuncFromWindow as _, handleEvent as O, initPageEvents as F, getCustomFunc as I } from "../utils/events/event-util.js";
7
7
  import M from "./assemblys/common/export-form-report-dialog.vue.js";
@@ -9,7 +9,7 @@ import A from "./assemblys/common/task-informition-dialog.vue.js";
9
9
  import E from "./assemblys/common/remove-signer-dialog.vue.js";
10
10
  import V from "./assemblys/common/remove-transactor-dialog.vue.js";
11
11
  import W from "../utils/eventBus.js";
12
- import { doFileTaskFunc as B, getTaskInformitions as J, getRemoveSigner as U, getRemoveTransactor as L, getFormData as H, exportFormReport as z, doImportFinally as Q, doAddSigner as G, doCreateCopyTask as K, doAssign as X, doAddTransactor as Y, doReturnTaskTo as Z, doRemoveSigners as ee, doRemoveTransactors as ae, updateValuesWhenCloseDialog as te, refreshFormOrListPage as le, saveChartConditionBase as oe, getAdditionalParamMap as ue } from "../utils/events/standard-event.js";
12
+ import { doFileTaskFunc as B, getTaskInformitions as J, getRemoveSigner as U, getRemoveTransactor as H, getFormData as L, exportFormReport as z, doImportFinally as Q, doAddSigner as G, doCreateCopyTask as K, doAssign as X, doAddTransactor as Y, doReturnTaskTo as Z, doRemoveSigners as ee, doRemoveTransactors as ae, updateValuesWhenCloseDialog as te, refreshFormOrListPage as le, saveChartConditionBase as oe, getAdditionalParamMap as ue } from "../utils/events/standard-event.js";
13
13
  import "../utils/api/api-util.js";
14
14
  import { ElMessage as ne } from "element-plus";
15
15
  import { useI18n as ie } from "vue-i18n";
@@ -29,19 +29,22 @@ import je from "../utils/ai-chat-util.js";
29
29
  import ke from "./assemblys/page-bottom.vue.js";
30
30
  import xe from "./assemblys/common/event-call-component.vue.js";
31
31
  import { scrollIntoViewWithContainer as $e } from "../utils/anchor-util.js";
32
- const Se = e({ __name: "super-page", props: { pageCode: { type: String, required: false }, pageVersion: { type: Number, required: false }, pageId: { type: Number, required: false }, dataId: { type: Number, required: false }, pageDesign: { type: Object, required: false }, isTest: { type: Boolean, required: false }, dimensions: { type: String, required: false }, publishVersion: { type: Number, required: false }, taskId: { type: Number, required: false }, pageRequest: { type: Object, required: false }, contentHeight: { type: [String, Number], default: null }, isDialog: { type: Boolean, required: false }, isPreview: { type: Boolean, required: false } }, emits: ["open", "opened", "close", "closed"], setup(e2, { expose: Se2, emit: De }) {
33
- const Ne = Ce(), { t: we } = ie(), qe = e2, Te = a(false), Re = a(""), _e = { list: "list-page-container", form: "form-page-container" }, Oe = a(null), Fe = a([]), Ie = a(""), Me = a({}), Ae = a(null), Ee = a(null), Ve = a(false), We = a(false), Be = a(false), Je = a(false), Ue = a(false), Le = a(false), He = a(null), ze = a(false), Qe = a([]), Ge = a([]), Ke = a([]), Xe = a(false), Ye = a(false), Ze = a(null), ea = a(false), aa = a(false), ta = a(null), la = a(null), oa = a(null), ua = a(null);
32
+ const Se = e({ __name: "super-page", props: { pageCode: { type: String, required: false }, pageVersion: { type: Number, required: false }, pageId: { type: Number, required: false }, dataId: { type: Number, required: false }, pageDesign: { type: Object, required: false }, isTest: { type: Boolean, required: false }, dimensions: { type: String, required: false }, publishVersion: { type: Number, required: false }, taskId: { type: Number, required: false }, pageRequest: { type: Object, required: false }, contentHeight: { type: [String, Number], default: null }, isDialog: { type: Boolean, required: false }, isPreview: { type: Boolean, required: false } }, emits: ["open", "opened", "close", "closed"], setup(e2, { expose: Se2, emit: we }) {
33
+ const De = Ce(), { t: Ne } = ie(), qe = e2, Te = a(false), Re = a(""), _e = { list: "list-page-container", form: "form-page-container" }, Oe = a(null), Fe = a([]), Ie = a(""), Me = a({}), Ae = a(null), Ee = a(null), Ve = a(false), We = a(false), Be = a(false), Je = a(false), Ue = a(false), He = a(false), Le = a(null), ze = a(false), Qe = a([]), Ge = a([]), Ke = a([]), Xe = a(false), Ye = a(false), Ze = a(null), ea = a(false), aa = a(false), ta = a(null), la = a(null), oa = a(null), ua = a(null);
34
34
  let na = a(null);
35
35
  const ia = a(null), sa = a(null), ra = pe(), va = a(0), pa = he();
36
36
  let ma, ca;
37
37
  const ga = a(false), fa = a(null), da = a(false), ya = a(null);
38
- function ha(e3) {
38
+ let ha = "";
39
+ ha = navigator.userAgent.indexOf("Html5Plus") > 0 ? "app" : "browser";
40
+ const Ca = !(!pa || !ha || "app" !== ha), Pa = a(false);
41
+ function ba(e3) {
39
42
  const a2 = S(e3);
40
- return a2.isTest = qe.isTest, a2.isTest && qe.dimensions && (a2.dimensions = qe.dimensions), qe.isDialog || (D(a2.entity.request), N(ra, a2.entity.request)), w(qe.pageRequest, a2.entity.request), a2;
43
+ return a2.isTest = qe.isTest, a2.isTest && qe.dimensions && (a2.dimensions = qe.dimensions), qe.isDialog || (w(a2.entity.request), D(ra, a2.entity.request)), N(qe.pageRequest, a2.entity.request), a2;
41
44
  }
42
- function Ca(e3) {
45
+ function ja(e3) {
43
46
  var _a2;
44
- const a2 = ha(e3);
47
+ const a2 = ba(e3);
45
48
  if (na.value = a2, null == na.value) return;
46
49
  na.value.isDialog = true === qe.isDialog, Re.value = _e[na.value.pageType] ?? "", ma = setTimeout(() => {
47
50
  !function(e4, a3) {
@@ -61,40 +64,40 @@ const Se = e({ __name: "super-page", props: { pageCode: { type: String, required
61
64
  const t2 = na.value.runtime ? na.value.runtime : {};
62
65
  Ie.value = t2.class, Me.value = t2.style, F(e3, na.value), re(na.value.rules), O(null, na.value, e3, "beforeload");
63
66
  const l2 = na.value.code;
64
- return Ne.setPageContext(na.value), He.value = l2 + "_", W.$on(He.value + "export-form-report", (e4) => {
67
+ return De.setPageContext(na.value), Le.value = l2 + "_", W.$on(Le.value + "export-form-report", (e4) => {
65
68
  Ee.value = e4, ia.value = e4.configureObj, sa.value = e4.pageContext, da.value = false, Ve.value = true;
66
- }), W.$on(He.value + "export-pdf-report", (e4) => {
69
+ }), W.$on(Le.value + "export-pdf-report", (e4) => {
67
70
  Ee.value = e4, ia.value = e4.configureObj, sa.value = e4.pageContext, da.value = true, Ve.value = true;
68
- }), W.$on(He.value + "import-file", (e4) => {
69
- Ee.value = e4, $a.value.click();
70
- }), W.$on(He.value + "assign-task", (e4) => {
71
- Ee.value = e4, Ue.value = true, Le.value = false;
72
- }), W.$on(He.value + "copy-task", (e4) => {
73
- Ee.value = e4, Je.value = true, Le.value = true;
74
- }), W.$on(He.value + "add-signer", (e4) => {
75
- Ee.value = e4, We.value = true, Le.value = true;
76
- }), W.$on(He.value + "choose-return-node", (e4) => {
71
+ }), W.$on(Le.value + "import-file", (e4) => {
72
+ Ee.value = e4, Da.value.click();
73
+ }), W.$on(Le.value + "assign-task", (e4) => {
74
+ Ee.value = e4, Ue.value = true, He.value = false;
75
+ }), W.$on(Le.value + "copy-task", (e4) => {
76
+ Ee.value = e4, Je.value = true, He.value = true;
77
+ }), W.$on(Le.value + "add-signer", (e4) => {
78
+ Ee.value = e4, We.value = true, He.value = true;
79
+ }), W.$on(Le.value + "choose-return-node", (e4) => {
77
80
  Ee.value = e4, J(e4).then((e5) => {
78
81
  Qe.value = e5, ze.value = true;
79
82
  }).catch((e5) => {
80
83
  ze.value = false;
81
84
  });
82
- }), W.$on(He.value + "remove-signer", (e4) => {
85
+ }), W.$on(Le.value + "remove-signer", (e4) => {
83
86
  Ee.value = e4, U(e4).then((a3) => {
84
87
  Ze.value = e4.pageContext.completeTaskParam.taskId, Ge.value = a3, Xe.value = true;
85
88
  }).catch((e5) => {
86
89
  Xe.value = false;
87
90
  });
88
- }), W.$on(He.value + "add-transactor", (e4) => {
89
- Ee.value = e4, Be.value = true, Le.value = true;
90
- }), W.$on(He.value + "remove-transactor", (e4) => {
91
- Ee.value = e4, L(e4).then((a3) => {
91
+ }), W.$on(Le.value + "add-transactor", (e4) => {
92
+ Ee.value = e4, Be.value = true, He.value = true;
93
+ }), W.$on(Le.value + "remove-transactor", (e4) => {
94
+ Ee.value = e4, H(e4).then((a3) => {
92
95
  Ze.value = e4.pageContext.completeTaskParam.taskId, Ke.value = a3, Ye.value = true;
93
96
  }).catch((e5) => {
94
97
  Ye.value = false;
95
98
  });
96
- }), W.$on(He.value + "prohibit-edit", (e4) => {
97
- }), W.$on(He.value + "open-dialog", (e4) => {
99
+ }), W.$on(Le.value + "prohibit-edit", (e4) => {
100
+ }), W.$on(Le.value + "open-dialog", (e4) => {
98
101
  var a3, t3, l3;
99
102
  la.value = e4.pageContext, oa.value = e4.configureObj, ua.value = e4.eventParams, a3 = oa.value, t3 = ua.value, l3 = e4.jumpPageSetting, function(e5, a4, t4) {
100
103
  return new Promise((l4, o2) => {
@@ -138,34 +141,39 @@ const Se = e({ __name: "super-page", props: { pageCode: { type: String, required
138
141
  }).catch(() => {
139
142
  l5(true);
140
143
  });
141
- } else ne({ showClose: true, type: "error", message: we("superPageRuntimeMessage.popMsg") }), console.error("弹框参数缺少customSystem参数,parentPageContext.value.systemCode={}", la.value.systemCode), l5(false);
144
+ } else ne({ showClose: true, type: "error", message: Ne("superPageRuntimeMessage.popMsg") }), console.error("弹框参数缺少customSystem参数,parentPageContext.value.systemCode={}", la.value.systemCode), l5(false);
142
145
  else l5(true);
143
146
  });
144
147
  })(u2, o2).then((a4) => {
145
- a4 && (pa && (la.value.systemCode !== u2.customSystem || e6 && "url" === e6) ? (u2._isIframe = true, "refresh" === o2 && (u2.dialogType = "drawer", u2.jumpPageWidth = "100%"), ta.value = u2, aa.value = true) : (u2._isIframe = false, "popup" === o2 ? (ta.value = u2, aa.value = true) : "refresh" === o2 && qa.push({ path: "/dsc/page", query: u2 })));
146
- }), W.$on(He.value + "close-dialog", (e7) => {
148
+ if (a4) if (pa && (la.value.systemCode !== u2.customSystem || e6 && "url" === e6)) if (Ca) {
149
+ Pa.value = true;
150
+ const e7 = u2._path;
151
+ location.href = e7;
152
+ } else u2._isIframe = true, "refresh" === o2 && (u2.dialogType = "drawer", u2.jumpPageWidth = "100%"), ta.value = u2, aa.value = true;
153
+ else u2._isIframe = false, "popup" === o2 ? (ta.value = u2, aa.value = true) : "refresh" === o2 && _a.push({ path: "/dsc/page", query: u2 });
154
+ }), W.$on(Le.value + "close-dialog", (e7) => {
147
155
  !function(e8) {
148
156
  const a4 = e8.jumpMode;
149
- a4 && "popup" === a4 ? Ta(e8) : (pa && W.$off(He.value + "close-dialog"), qa.go(-1));
157
+ a4 && "popup" === a4 ? Oa(e8) : (pa && W.$off(Le.value + "close-dialog"), _a.go(-1));
150
158
  }(e7);
151
159
  });
152
160
  }
153
161
  } else console.error("页面配置信息不存在");
154
162
  });
155
- }), W.$on(He.value + "save-chart-condition", (e4) => {
163
+ }), W.$on(Le.value + "save-chart-condition", (e4) => {
156
164
  ga.value = true;
157
165
  }), W.$on("pageLoaded", () => {
158
166
  const e4 = { runtime: { events: na.value.events }, systemCode: "", systemVersion: 0, code: "", version: 0, workflowCode: "", workflowVersion: 0, name: "", uuid: "", label: "" };
159
- O(null, na.value, e4, "load"), $e(Ne.getAutoAnchorComponentConditions(), na.value);
160
- }), W.$on(He.value + "event-call-component", (e4) => {
167
+ O(null, na.value, e4, "load"), $e(De.getAutoAnchorComponentConditions(), na.value);
168
+ }), W.$on(Le.value + "event-call-component", (e4) => {
161
169
  var _a3;
162
170
  (_a3 = ya.value) == null ? void 0 : _a3.renderComponent(e4.componentName, e4.componentProps);
163
171
  }), P(() => na.value.isRefresh, (e4) => {
164
172
  e4 && (va.value++, na.value.isRefresh = false);
165
- }), H(na.value, null, (_a2 = qe.pageRequest) == null ? void 0 : _a2.isNeedId);
173
+ }), L(na.value, null, (_a2 = qe.pageRequest) == null ? void 0 : _a2.isNeedId);
166
174
  }
167
- const Pa = t();
168
- function ba() {
175
+ const ka = t();
176
+ function xa() {
169
177
  u(() => {
170
178
  var _a2, _b;
171
179
  const e3 = Oe.value.parentNode ? Oe.value.parentNode : Oe.value;
@@ -177,25 +185,25 @@ const Se = e({ __name: "super-page", props: { pageCode: { type: String, required
177
185
  }
178
186
  });
179
187
  }
180
- function ja() {
188
+ function $a() {
181
189
  const e3 = na.value.entity.data, a2 = null == e3.ID ? e3.id : e3.ID;
182
190
  ra && ra.query && ra.query._t_ && a2 && ge(ra.query._t_ + "_id", a2);
183
191
  }
184
- function ka() {
192
+ function Sa() {
185
193
  Ve.value = false, Ee.value = null;
186
194
  }
187
- function xa(e3, a2) {
195
+ function wa(e3, a2) {
188
196
  z(Ee.value.pageContext, Ee.value.configureObj, a2, da.value);
189
197
  }
190
198
  l(() => {
191
199
  !function() {
192
- if (Ne.resetComponentCounters(), Ne.resetAutoAnchorComponentConditions(), qe.isPreview && qe.pageDesign) {
200
+ if (De.resetComponentCounters(), De.resetAutoAnchorComponentConditions(), qe.isPreview && qe.pageDesign) {
193
201
  Te.value = true;
194
202
  let e3 = qe.pageDesign;
195
- const a2 = ha(e3);
203
+ const a2 = ba(e3);
196
204
  x(e3, a2).then((a3) => {
197
- e3.contextParam = a3.contextParam, e3.branchFieldAuth = a3.branchFieldAuth, e3.systemParam = a3.systemParam, e3.isWorkflowEntity = a3.isWorkflowEntity, e3.dataTypeMaps = a3.dataTypeMaps, Ae.value = e3, Ca(e3).then(() => {
198
- ja(), ea.value = true, pa || B(na.value), ba();
205
+ e3.contextParam = a3.contextParam, e3.branchFieldAuth = a3.branchFieldAuth, e3.systemParam = a3.systemParam, e3.isWorkflowEntity = a3.isWorkflowEntity, e3.dataTypeMaps = a3.dataTypeMaps, Ae.value = e3, ja(e3).then(() => {
206
+ $a(), ea.value = true, pa || B(na.value), xa();
199
207
  });
200
208
  }).finally(() => {
201
209
  Te.value = false;
@@ -203,14 +211,14 @@ const Se = e({ __name: "super-page", props: { pageCode: { type: String, required
203
211
  } else qe.pageCode && (Te.value = true, $(qe.pageCode).then((e3) => {
204
212
  if (e3 && e3.designJson) {
205
213
  const a2 = e3.designJson, t2 = JSON.parse(a2);
206
- t2.contextParam = e3.contextParam, t2.branchFieldAuth = e3.branchFieldAuth, t2.systemParam = e3.systemParam, t2.isWorkflowEntity = e3.isWorkflowEntity, t2.dataTypeMaps = e3.dataTypeMaps, Ae.value = t2, Ca(t2).then(() => {
207
- ja(), ea.value = true, pa || B(na.value), ba();
214
+ t2.contextParam = e3.contextParam, t2.branchFieldAuth = e3.branchFieldAuth, t2.systemParam = e3.systemParam, t2.isWorkflowEntity = e3.isWorkflowEntity, t2.dataTypeMaps = e3.dataTypeMaps, Ae.value = t2, ja(t2).then(() => {
215
+ $a(), ea.value = true, pa || B(na.value), xa();
208
216
  });
209
217
  }
210
218
  }).catch((e3) => {
211
219
  Te.value = false;
212
220
  }).finally(() => {
213
- Te.value = false, "form" === na.value.pageType && je.setPageToChatStore(Pa, na.value);
221
+ Te.value = false, "form" === na.value.pageType && je.setPageToChatStore(ka, na.value);
214
222
  }));
215
223
  }();
216
224
  }), o(() => {
@@ -218,33 +226,34 @@ const Se = e({ __name: "super-page", props: { pageCode: { type: String, required
218
226
  na.value && Oe.value && q(na.value, "-1", Oe);
219
227
  });
220
228
  }), n(() => {
221
- T(na.value), Ae.value && _(Ae.value), W.$off(He.value + "export-form-report"), W.$off(He.value + "export-pdf-report"), W.$off(He.value + "import-file"), W.$off(He.value + "assign-task"), W.$off(He.value + "copy-task"), W.$off(He.value + "add-signer"), W.$off(He.value + "choose-return-node"), W.$off(He.value + "remove-signer"), W.$off(He.value + "prohibit-edit"), W.$off(He.value + "open-dialog"), W.$off(He.value + "save-chart-condition"), W.$off("pageLoaded"), na.value && O(null, na.value, na.value, "onUnmounted"), ma && clearTimeout(ma), ca && clearTimeout(ca);
229
+ T(na.value), Ae.value && _(Ae.value), W.$off(Le.value + "export-form-report"), W.$off(Le.value + "export-pdf-report"), W.$off(Le.value + "import-file"), W.$off(Le.value + "assign-task"), W.$off(Le.value + "copy-task"), W.$off(Le.value + "add-signer"), W.$off(Le.value + "choose-return-node"), W.$off(Le.value + "remove-signer"), W.$off(Le.value + "prohibit-edit"), W.$off(Le.value + "open-dialog"), W.$off(Le.value + "save-chart-condition"), W.$off("pageLoaded"), na.value && O(null, na.value, na.value, "onUnmounted"), ma && clearTimeout(ma), ca && clearTimeout(ca);
222
230
  });
223
- const $a = a(null);
224
- function Sa(e3) {
231
+ const Da = a(null);
232
+ function Na(e3) {
225
233
  true === We.value && (We.value = false, G(Ee.value, e3)), true === Je.value && (Je.value = false, K(Ee.value, e3)), true === Ue.value && (Ue.value = false, X(Ee.value, e3)), true === Be.value && (Be.value = false, Y(Ee.value, e3));
226
234
  }
227
- function Da(e3) {
235
+ function qa(e3) {
228
236
  Qe.value = [], ze.value = false, Z(Ee.value, e3);
229
237
  }
230
- function Na(e3) {
238
+ function Ta(e3) {
231
239
  Ge.value = [], Xe.value = false, ee(Ee.value, e3);
232
240
  }
233
- function wa(e3) {
241
+ function Ra(e3) {
234
242
  Ke.value = [], Ye.value = false, ae(Ee.value, e3);
235
243
  }
236
- const qa = me();
237
- function Ta(e3) {
238
- var _a2, _b;
239
- const a2 = ta.value.closeEvent, t2 = ta.value.isRefreshWhenClosePopup;
244
+ const _a = me();
245
+ function Oa(e3) {
246
+ var _a2, _b, _c, _d;
247
+ if (Pa.value) return Pa.value = false, void window.history.go(-1);
248
+ const a2 = (_a2 = ta.value) == null ? void 0 : _a2.closeEvent, t2 = (_b = ta.value) == null ? void 0 : _b.isRefreshWhenClosePopup;
240
249
  let l2, o2;
241
250
  const u2 = la.value.tableName;
242
251
  let n2;
243
252
  const i2 = ua.value.columnProp ? ua.value.columnProp : null;
244
253
  if (i2) {
245
- const e4 = (_b = (_a2 = oa.value) == null ? void 0 : _a2.items) == null ? void 0 : _b.filter((e5) => {
246
- var _a3, _b2, _c, _d;
247
- return ((_b2 = (_a3 = e5.props) == null ? void 0 : _a3.base) == null ? void 0 : _b2.prop) && ((_d = (_c = e5.props) == null ? void 0 : _c.base) == null ? void 0 : _d.prop) === i2;
254
+ const e4 = (_d = (_c = oa.value) == null ? void 0 : _c.items) == null ? void 0 : _d.filter((e5) => {
255
+ var _a3, _b2, _c2, _d2;
256
+ return ((_b2 = (_a3 = e5.props) == null ? void 0 : _a3.base) == null ? void 0 : _b2.prop) && ((_d2 = (_c2 = e5.props) == null ? void 0 : _c2.base) == null ? void 0 : _d2.prop) === i2;
248
257
  });
249
258
  n2 = e4 && e4.length > 0 ? e4[0] : null;
250
259
  } else n2 = oa.value;
@@ -261,14 +270,14 @@ const Se = e({ __name: "super-page", props: { pageCode: { type: String, required
261
270
  l3 && l3.apply(l3, [{ pageContext: na.value, parentPageContext: la.value, parentConfigureObj: t3, jumpPageSetting: ta.value, columnProp: a3 }]);
262
271
  }
263
272
  }(a2, i2, n2);
264
- le(la.value, oa.value, t2, void 0 !== t2 && false === t2 ? "noOperation" : null), la.value = null, oa.value = null, ua.value = null, W.$off(He.value + "close-dialog"), aa.value = false;
273
+ le(la.value, oa.value, t2, void 0 !== t2 && false === t2 ? "noOperation" : null), la.value = null, oa.value = null, ua.value = null, W.$off(Le.value + "close-dialog"), aa.value = false;
265
274
  }
266
- function Ra(e3) {
275
+ function Fa(e3) {
267
276
  oe(na.value, e3).then((e4) => {
268
- ne({ showClose: true, type: "success", message: we("superPageRuntimeMessage.successfulSave") }), fa.value.refreshConditionList();
277
+ ne({ showClose: true, type: "success", message: Ne("superPageRuntimeMessage.successfulSave") }), fa.value.refreshConditionList();
269
278
  });
270
279
  }
271
- function _a(e3) {
280
+ function Ia(e3) {
272
281
  const a2 = e3.queryCondition;
273
282
  let t2 = {};
274
283
  a2 && (t2 = JSON.parse(a2)), t2 && t2.data && Object.assign(na.value.entity.data, t2.data), t2 && t2.page && Object.assign(na.value.entity.page, t2.page), ga.value = false;
@@ -287,14 +296,14 @@ const Se = e({ __name: "super-page", props: { pageCode: { type: String, required
287
296
  } }), (e3, a2) => {
288
297
  var _a2;
289
298
  const t2 = i("loading");
290
- return s((v(), r("div", { class: m(["app-container runtime-page-container", [Re.value]]), style: p((_a2 = c(na)) == null ? void 0 : _a2.pageRuntimeStyle), "element-loading-text": "拼命加载中" }, [ea.value ? (v(), r("div", { ref_key: "thisRef", ref: Oe, key: va.value, class: m(["runtime-page-container-view", Ie.value]), style: p(Me.value) }, [(v(true), r(h, null, C(Fe.value, (e4, a3) => (v(), d(b, { key: e4.uuid, configure: e4, pageContext: c(na) }, null, 8, ["configure", "pageContext"]))), 128)), f(ke, { pageContext: c(na) }, null, 8, ["pageContext"]), Ve.value ? (v(), d(M, { key: 0, configure: ia.value, pageContext: sa.value, onClose: ka, onExport: xa }, null, 8, ["configure", "pageContext"])) : g("", true), y("input", { ref_key: "_selectFile_", ref: $a, type: "file", name: "_selectFile_", style: { display: "none" }, onChange: a2[0] || (a2[0] = (e4) => function() {
299
+ return s((v(), r("div", { class: m(["app-container runtime-page-container", [Re.value]]), style: p((_a2 = c(na)) == null ? void 0 : _a2.pageRuntimeStyle), "element-loading-text": "拼命加载中" }, [ea.value ? (v(), r("div", { ref_key: "thisRef", ref: Oe, key: va.value, class: m(["runtime-page-container-view", Ie.value]), style: p(Me.value) }, [(v(true), r(h, null, C(Fe.value, (e4, a3) => (v(), d(b, { key: e4.uuid, configure: e4, pageContext: c(na) }, null, 8, ["configure", "pageContext"]))), 128)), f(ke, { pageContext: c(na) }, null, 8, ["pageContext"]), Ve.value ? (v(), d(M, { key: 0, configure: ia.value, pageContext: sa.value, onClose: Sa, onExport: wa }, null, 8, ["configure", "pageContext"])) : g("", true), y("input", { ref_key: "_selectFile_", ref: Da, type: "file", name: "_selectFile_", style: { display: "none" }, onChange: a2[0] || (a2[0] = (e4) => function() {
291
300
  if (Ee.value) {
292
- if (!$a.value) return;
293
- if ("" === $a.value.value || null === $a.value.value) return;
294
- const e5 = $a.value.files[0];
295
- e5 ? ($a.value.value = null, Q(Ee.value, e5)) : ne({ showClose: true, type: "warning", message: we("superPageRuntimeMessage.noFileSelected") });
301
+ if (!Da.value) return;
302
+ if ("" === Da.value.value || null === Da.value.value) return;
303
+ const e5 = Da.value.files[0];
304
+ e5 ? (Da.value.value = null, Q(Ee.value, e5)) : ne({ showClose: true, type: "warning", message: Ne("superPageRuntimeMessage.noFileSelected") });
296
305
  }
297
- }()) }, null, 544), We.value || Je.value || Ue.value || Be.value ? (v(), d(c(se), { key: 1, width: "60%", multiple: Le.value, onClose: Sa }, null, 8, ["multiple"])) : g("", true), ze.value ? (v(), d(A, { key: 2, "task-informitions": Qe.value, onClose: a2[1] || (a2[1] = (e4) => ze.value = false), onResult: Da }, null, 8, ["task-informitions"])) : g("", true), Xe.value ? (v(), d(E, { key: 3, "task-id": Ze.value, "active-tasks": Ge.value, onClose: a2[2] || (a2[2] = (e4) => Xe.value = false), onResult: Na }, null, 8, ["task-id", "active-tasks"])) : g("", true), Ye.value ? (v(), d(V, { key: 4, "task-id": Ze.value, "transactor-info": Ke.value, onClose: a2[3] || (a2[3] = (e4) => Ye.value = false), onResult: wa }, null, 8, ["task-id", "transactor-info"])) : g("", true), aa.value ? (v(), d(ve, { key: 5, parentPageContext: la.value, parentPageEventParams: ua.value, jumpPageSetting: ta.value, onClose: a2[4] || (a2[4] = (e4) => Ta()) }, null, 8, ["parentPageContext", "parentPageEventParams", "jumpPageSetting"])) : g("", true), ga.value ? (v(), d(be, { key: 6, ref_key: "chartCondtionRef", ref: fa, pageContext: c(na), onClose: a2[5] || (a2[5] = (e4) => ga.value = false), onSave: Ra, onConfirm: _a }, null, 8, ["pageContext"])) : g("", true), f(xe, { ref_key: "eventCallComponentRef", ref: ya }, null, 512)], 6)) : g("", true)], 6)), [[t2, Te.value]]);
306
+ }()) }, null, 544), We.value || Je.value || Ue.value || Be.value ? (v(), d(c(se), { key: 1, width: "60%", multiple: He.value, onClose: Na }, null, 8, ["multiple"])) : g("", true), ze.value ? (v(), d(A, { key: 2, "task-informitions": Qe.value, onClose: a2[1] || (a2[1] = (e4) => ze.value = false), onResult: qa }, null, 8, ["task-informitions"])) : g("", true), Xe.value ? (v(), d(E, { key: 3, "task-id": Ze.value, "active-tasks": Ge.value, onClose: a2[2] || (a2[2] = (e4) => Xe.value = false), onResult: Ta }, null, 8, ["task-id", "active-tasks"])) : g("", true), Ye.value ? (v(), d(V, { key: 4, "task-id": Ze.value, "transactor-info": Ke.value, onClose: a2[3] || (a2[3] = (e4) => Ye.value = false), onResult: Ra }, null, 8, ["task-id", "transactor-info"])) : g("", true), aa.value ? (v(), d(ve, { key: 5, parentPageContext: la.value, parentPageEventParams: ua.value, jumpPageSetting: ta.value, onClose: a2[4] || (a2[4] = (e4) => Oa()) }, null, 8, ["parentPageContext", "parentPageEventParams", "jumpPageSetting"])) : g("", true), ga.value ? (v(), d(be, { key: 6, ref_key: "chartCondtionRef", ref: fa, pageContext: c(na), onClose: a2[5] || (a2[5] = (e4) => ga.value = false), onSave: Fa, onConfirm: Ia }, null, 8, ["pageContext"])) : g("", true), f(xe, { ref_key: "eventCallComponentRef", ref: ya }, null, 512)], 6)) : g("", true)], 6)), [[t2, Te.value]]);
298
307
  };
299
308
  } });
300
309
  export {