super-page-runtime 2.3.12 → 2.3.13-sit2
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.
- package/dist/es/components/runtime/utils/api/page-expose-util.js +50 -50
- package/dist/es/components/runtime/utils/events/event-util.js +4 -4
- package/dist/es/components/runtime/utils/events/print-label.js +25 -26
- package/dist/es/components/runtime/utils/events/standard-event.d.ts +1 -1
- package/dist/es/components/runtime/utils/events/standard-event.js +35 -35
- package/dist/es/components/runtime/utils/events/validator-util.js +169 -146
- package/dist/es/components/runtime/utils/page-init-util.js +24 -25
- package/dist/es/components/runtime/utils/page-store.js +10 -10
- package/dist/es/components/runtime/utils/table-utils.js +1 -1
- package/dist/es/components/runtime/views/assemblys/chart/common/common-chart-header-group.vue.js +6 -10
- package/dist/es/components/runtime/views/assemblys/chart/common/common-chart-header.vue.js +6 -8
- package/dist/es/components/runtime/views/assemblys/chart/table/chart-table-util.js +93 -98
- package/dist/es/components/runtime/views/assemblys/common/export-form-report-dialog.vue.js +9 -11
- package/dist/es/components/runtime/views/assemblys/container/fixed/YxAffix.vue2.js +0 -2
- package/dist/es/components/runtime/views/assemblys/data/bar-code/barcode-runtime.vue2.js +10 -12
- package/dist/es/components/runtime/views/assemblys/data/table/main-table-runtime.vue.js +8 -9
- package/dist/es/components/runtime/views/assemblys/form/custom/custom-runtime.vue2.js +4 -4
- package/dist/es/components/runtime/views/assemblys/form/date-picker/datepicker-runtime.vue2.js +32 -32
- package/dist/es/components/runtime/views/assemblys/form/dept-tree/depttree-runtime.vue2.js +33 -32
- package/dist/es/components/runtime/views/assemblys/form/file-upload/fileupload-runtime.vue2.js +40 -39
- package/dist/es/components/runtime/views/assemblys/form/input-text/inputtext-runtime.vue2.js +34 -35
- package/dist/es/components/runtime/views/assemblys/form/label/label-runtime.vue2.js +3 -5
- package/dist/es/components/runtime/views/assemblys/form/link/link-runtime.vue2.js +0 -1
- package/dist/es/components/runtime/views/assemblys/form/rich-text/richtext-runtime.vue2.js +14 -15
- package/dist/es/components/runtime/views/assemblys/workflow/workflow-button/workflowbutton-runtime.vue.js +1 -1
- package/dist/es/components/runtime/views/assemblys/workflow/workflow-button/workflowbutton-runtime.vue2.js +1 -1
- package/dist/es/components/runtime/views/home-chart.vue.js +7 -7
- package/dist/es/components/runtime/views/super-page-dialog.vue.js +0 -1
- package/dist/es/components/runtime/views/super-page.vue.js +1 -1
- package/dist/es/components/runtime/views/super-page.vue2.js +38 -36
- package/dist/es/i18n/langs/cn.js +1 -1
- package/dist/es/i18n/langs/en.js +1 -1
- package/dist/es/style.css +79 -79
- package/package.json +2 -2
package/dist/es/components/runtime/views/assemblys/form/input-text/inputtext-runtime.vue2.js
CHANGED
|
@@ -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
|
|
7
|
-
import
|
|
8
|
-
import { isMobileBrowser as
|
|
9
|
-
import
|
|
10
|
-
import { $t as
|
|
11
|
-
import { addRequiredClassUtil as
|
|
12
|
-
const
|
|
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 }) {
|
|
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,66 +17,65 @@ const z = 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(
|
|
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) {
|
|
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
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
let ue = {};
|
|
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 = {};
|
|
31
30
|
((_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) => {
|
|
32
|
-
|
|
31
|
+
ae = e3;
|
|
33
32
|
}), u(() => G.value, (e3) => {
|
|
34
33
|
e3 = e3.trim();
|
|
35
|
-
const t2 = O(e3,
|
|
36
|
-
t2 &&
|
|
34
|
+
const t2 = O(e3, ae);
|
|
35
|
+
t2 && q(L.pageContext, t2.scanSet, t2.params);
|
|
37
36
|
}));
|
|
38
|
-
const
|
|
39
|
-
function
|
|
37
|
+
const ue = X.style, ie = X.class, re = X.headerStyle, pe = X.titleExceedStyle;
|
|
38
|
+
function se(e3) {
|
|
40
39
|
return h(B, $, e3);
|
|
41
40
|
}
|
|
42
41
|
n(() => {
|
|
43
|
-
|
|
44
|
-
|
|
42
|
+
N.$on(U.value + "-scanDone", (e3) => {
|
|
43
|
+
se(e3.result), _(e3.result, L.pageContext, L.configure, "afterScanDone");
|
|
45
44
|
}), o(() => {
|
|
46
45
|
var _a2;
|
|
47
46
|
const e3 = G.value;
|
|
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 }),
|
|
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();
|
|
49
48
|
});
|
|
50
49
|
}), a(() => {
|
|
51
|
-
|
|
50
|
+
N.$off(U.value + "-scanDone");
|
|
52
51
|
});
|
|
53
|
-
const
|
|
54
|
-
function
|
|
55
|
-
if (
|
|
52
|
+
const ce = t(false);
|
|
53
|
+
function ve() {
|
|
54
|
+
if (ne || ee) {
|
|
56
55
|
const e3 = { type: "scan", componentId: U.value, systemCode: L.pageContext.systemCode };
|
|
57
|
-
ee && (e3.type = "dingTalkScan"), window.parent.parent ?
|
|
58
|
-
} else if (A.value) if ("https:" === window.location.protocol)
|
|
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;
|
|
59
58
|
else {
|
|
60
59
|
const e3 = { type: "scan", componentId: U.value, systemCode: L.pageContext.systemCode };
|
|
61
60
|
window.parent.postMessage(JSON.stringify(e3), "*");
|
|
62
61
|
}
|
|
63
|
-
else
|
|
62
|
+
else ce.value = true;
|
|
64
63
|
}
|
|
65
|
-
function
|
|
66
|
-
|
|
64
|
+
function fe(e3) {
|
|
65
|
+
ce.value = false, se(e3);
|
|
67
66
|
}
|
|
68
|
-
return
|
|
67
|
+
return J2({ getValue: function() {
|
|
69
68
|
return b(B, $);
|
|
70
|
-
}, setValue:
|
|
71
|
-
W.value =
|
|
69
|
+
}, setValue: se, scanClick: ve, addRequiredClass: function() {
|
|
70
|
+
W.value = z();
|
|
72
71
|
} }), (e3, t2) => {
|
|
73
72
|
const l2 = i("el-input"), n2 = i("scan-code-input-browser"), o2 = i("el-form-item");
|
|
74
|
-
return p(), r(o2, { ref_key: "formItemRef", ref: H, required: !!Y.value.required, class: c(v(
|
|
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) {
|
|
75
74
|
let t3 = b(B, $);
|
|
76
75
|
null != t3 && (t3 = t3.trim()), h(B, $, t3), _(e5, L.pageContext, L.configure, "blur");
|
|
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(
|
|
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"]);
|
|
78
77
|
};
|
|
79
78
|
} });
|
|
80
79
|
export {
|
|
81
|
-
|
|
80
|
+
J as default
|
|
82
81
|
};
|
|
@@ -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
|
|
1
|
+
import { defineComponent as e, ref as t, computed as l, onMounted as u, nextTick as a, resolveComponent as n, createElementBlock as i, createBlock as o, openBlock as p, normalizeStyle as s, normalizeClass as r, unref as f, createElementVNode as c, toDisplayString as v, withCtx as y, createCommentVNode as g, createTextVNode as x } from "vue";
|
|
2
2
|
import { getFormModelFields as d } from "../../../../utils/page-init-util.js";
|
|
3
3
|
import { getVariableValue as m, formatValueByType as h } from "../../../../utils/page-helper-util.js";
|
|
4
4
|
import { SuperIcon as k } from "agilebuilder-ui";
|
|
@@ -7,9 +7,7 @@ import { $t as _ } from "../../../../utils/i18n-util.js";
|
|
|
7
7
|
const I = { style: { width: "100%", "text-align": "center", "font-weight": "700", "font-size": "24px", "margin-bottom": "20px" } }, b = { style: { overflow: "hidden", "white-space": "nowrap" } }, V = ["title"], j = e({ __name: "label-runtime", props: { pageContext: {}, configure: {} }, setup(e2, { expose: j2 }) {
|
|
8
8
|
const R = e2, S = R.pageContext.entity ? R.pageContext.entity : {};
|
|
9
9
|
let P = d(R.pageContext, R.configure);
|
|
10
|
-
const q = R.configure.runtime ? R.configure.runtime : {}, O = q.style, z = q.class, D = q.headerStyle, E = q.appendClass, F = q.appendStyle, W = q.titleExceedStyle, A = t(q.props ? q.props : {}), B = t(A.value.options ? A.value.options : []), G = A.value.formatType
|
|
11
|
-
A.value;
|
|
12
|
-
const H = l(() => {
|
|
10
|
+
const q = R.configure.runtime ? R.configure.runtime : {}, O = q.style, z = q.class, D = q.headerStyle, E = q.appendClass, F = q.appendStyle, W = q.titleExceedStyle, A = t(q.props ? q.props : {}), B = t(A.value.options ? A.value.options : []), G = A.value.formatType, H = l(() => {
|
|
13
11
|
let e3 = m(S, P);
|
|
14
12
|
if (G) if (A.value.hasOptions) {
|
|
15
13
|
let t2 = null;
|
|
@@ -29,7 +27,7 @@ const I = { style: { width: "100%", "text-align": "center", "font-weight": "700"
|
|
|
29
27
|
B.value = e3 || [];
|
|
30
28
|
} }), (e3, t2) => {
|
|
31
29
|
const l2 = n("el-form-item");
|
|
32
|
-
return A.value.whetherTittle ? (
|
|
30
|
+
return A.value.whetherTittle ? (p(), i("div", { key: 0, ref_key: "titleRef", ref: L, class: r(f(z)), style: s(f(O)) }, [c("div", I, v(A.value.title), 1)], 6)) : A.value.tittleShow ? (p(), o(l2, { key: 1, ref_key: "formItemRef", ref: J, required: !!A.value.required, class: r(f(z)), "label-width": A.value.labelWidth, style: s(f(O)) }, { label: y(() => [A.value.tittleShow ? (p(), i("div", { key: 0, ref_key: "titleRef", ref: L, style: s({ ...f(D), ...f(W) }) }, v(f(_)(A.value.title)), 5)) : g("", true)]), default: y(() => [c("div", { style: { display: "flex", width: "100%", "justify-content": "space-between" }, ref_key: "componentRef", ref: K, onClick: t2[0] || (t2[0] = (t3) => f(C)(t3, e3.pageContext, e3.configure, "click")) }, [c("span", b, [A.value.preIconValue || A.value.preText ? (p(), i("span", { key: 0, class: r({ "el-input__suffix": "outer" != A.value.iconPosition, "el-input-group__append": "outer" == A.value.iconPosition }), style: s(f(F)) }, [A.value.preIconType && A.value.preIconValue ? (p(), o(f(k), { key: 0, iconType: A.value.preIconType, iconValue: A.value.preIconValue }, null, 8, ["iconType", "iconValue"])) : g("", true), x(" " + v(f(_)(A.value.preText)), 1)], 6)) : g("", true), x(" " + v(H.value), 1)]), A.value.sufIconValue || A.value.sufText ? (p(), i("span", { key: 0, class: r({ "el-input__suffix": "outer" != A.value.iconPosition, "el-input-group__append": "outer" == A.value.iconPosition }) }, [A.value.sufIconType && A.value.sufIconValue ? (p(), o(f(k), { key: 0, style: {}, iconType: A.value.sufIconType, iconValue: A.value.sufIconValue }, null, 8, ["iconType", "iconValue"])) : g("", true), c("span", null, " " + v(f(_)(A.value.sufText)), 1)], 2)) : g("", true)], 512)]), _: 1 }, 8, ["required", "class", "label-width", "style"])) : (p(), i("span", { key: 2, style: { display: "flex", "justify-content": "space-between" }, onClick: t2[1] || (t2[1] = (t3) => f(C)(t3, e3.pageContext, e3.configure, "click")) }, [c("span", { style: { overflow: "hidden", "white-space": "nowrap" }, title: H.value }, v(A.value.prefixIcon) + " " + v(H.value), 9, V), A.value.suffixTxt ? (p(), i("span", { key: 0, class: r(f(E)), style: s(f(F)) }, v(A.value.suffixTxt), 7)) : g("", true)]));
|
|
33
31
|
};
|
|
34
32
|
} });
|
|
35
33
|
export {
|
|
@@ -5,7 +5,6 @@ import { handleAfterInitEvent as k, handleEvent as x } from "../../../../utils/e
|
|
|
5
5
|
import { $t as C } from "../../../../utils/i18n-util.js";
|
|
6
6
|
const _ = e({ __name: "link-runtime", props: { pageContext: {}, configure: {} }, setup(e2) {
|
|
7
7
|
const _2 = e2, h = y(_2.pageContext, _2.configure), R = _2.configure.runtime ? _2.configure.runtime : {}, j = R.style, w = R.class, I = R.headerStyle, S = t(R.props ? R.props : {});
|
|
8
|
-
S.value;
|
|
9
8
|
let $ = S.value.formatting;
|
|
10
9
|
const D = _2.pageContext.entity ? _2.pageContext.entity : {}, V = l(() => {
|
|
11
10
|
let e3 = b(D, h);
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as e, ref as t, watch as l, onMounted as n, nextTick as
|
|
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";
|
|
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
|
|
43
|
+
function ie(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
|
|
50
|
-
let l2 = e3.split(","), n2 = l2[0].match(/:(.*?);/)[1],
|
|
51
|
-
for (;
|
|
52
|
-
return new File([
|
|
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 });
|
|
53
53
|
}
|
|
54
54
|
return n(() => {
|
|
55
55
|
var _a;
|
|
@@ -61,16 +61,15 @@ 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 =
|
|
65
|
-
await
|
|
64
|
+
const t4 = oe(e5, "image.png");
|
|
65
|
+
await ie(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
|
|
70
|
-
|
|
69
|
+
const i2 = l4[n3];
|
|
70
|
+
i2.src === e5 && (i2.src = t5.url + "&jwt=" + L());
|
|
71
71
|
}
|
|
72
72
|
}).catch((e6) => {
|
|
73
|
-
console.error(e6, "上传图片失败");
|
|
74
73
|
});
|
|
75
74
|
}
|
|
76
75
|
}
|
|
@@ -82,17 +81,17 @@ const S = { style: { width: "100%", height: "100%" } }, _ = e({ __name: "richtex
|
|
|
82
81
|
let l2 = e4.height - (t2.top - e4.top);
|
|
83
82
|
l2 < 100 && (l2 = 100), J.container.style.height = l2 + "px";
|
|
84
83
|
}
|
|
85
|
-
}(),
|
|
84
|
+
}(), i(() => {
|
|
86
85
|
const e4 = C(M, N);
|
|
87
86
|
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 });
|
|
88
87
|
});
|
|
89
|
-
}),
|
|
88
|
+
}), o(() => {
|
|
90
89
|
G.value && G.value.removeEventListener("focusout", le), te && te.removeEventListener("click", ne);
|
|
91
90
|
}), _2({ addRequiredClass: function() {
|
|
92
91
|
H.value = j();
|
|
93
92
|
} }), (e3, t2) => {
|
|
94
|
-
const l2 =
|
|
95
|
-
return u(),
|
|
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] = () => {
|
|
96
95
|
Y.value = false;
|
|
97
96
|
}), "url-list": X.value }, null, 8, ["url-list"])) : p("", true)], 64);
|
|
98
97
|
};
|
|
@@ -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-
|
|
4
|
+
const r = t(o, [["__scopeId", "data-v-4306a446"]]);
|
|
5
5
|
export {
|
|
6
6
|
r as default
|
|
7
7
|
};
|
|
@@ -14,7 +14,7 @@ const l = { class: "page-runtime-header-btn amb-workflowbutton-runtime-view" },
|
|
|
14
14
|
if (t3.isStandard) return t3.event.eventName;
|
|
15
15
|
}
|
|
16
16
|
}(e4.runtime && e4.runtime.events ? e4.runtime.events : []);
|
|
17
|
-
return c(t2, g, v);
|
|
17
|
+
return c(t2, g, v, e4);
|
|
18
18
|
})(e3) && x.value.push(e3);
|
|
19
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))]));
|
|
20
20
|
} });
|
|
@@ -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),
|
|
10
|
+
const { t: b2 } = C(), I = e2, U = t(true), w = t(false), H = 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
|
-
|
|
15
|
+
H.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
|
-
|
|
23
|
+
H.value = t2.chartJson, H.value.homeChartSettingUserId = I.homeChartSettingUserId, i2 && (H.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 =
|
|
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) {
|
|
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(
|
|
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(() => {
|
|
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
|
|
35
|
+
} else w.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 &&
|
|
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]]);
|
|
43
43
|
};
|
|
44
44
|
} });
|
|
45
45
|
export {
|
|
@@ -10,7 +10,6 @@ const s = ["src"], d = { key: 1, class: "amb-super-page-runtime-dialog-iframe",
|
|
|
10
10
|
const e4 = JSON.parse(JSON.stringify(p.parentPageEventParams));
|
|
11
11
|
e4.pageContext && delete e4.pageContext, e4.configureObj && delete e4.configureObj, Object.assign(b.value, e4);
|
|
12
12
|
} catch (e4) {
|
|
13
|
-
console.error(e4);
|
|
14
13
|
}
|
|
15
14
|
null !== w.value && void 0 !== w.value || (w.value = p.parentPageEventParams.id);
|
|
16
15
|
}
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import { defineComponent as e, ref as l, onMounted as a, onUpdated as t, nextTick as u, onUnmounted as n, resolveDirective as o, withDirectives as i, createElementBlock as s, openBlock as r, createCommentVNode as v, normalizeStyle as p, normalizeClass as m, createBlock as g, createElementVNode as c, Fragment as f, renderList as d, unref as y, watch as h } from "vue";
|
|
2
2
|
import C from "./assemblys/object-render.vue.js";
|
|
3
3
|
import { updateOptionDatasources as b, updateChartDatasources as j } from "../utils/page-helper-util.js";
|
|
4
|
-
import { queryPageSuperGrids as P, queryPageDesignByCode as k, convertToPageContext as $, packageAdditionalMapWithLocationSearch as x, packageAdditionalMapWithRoute as
|
|
4
|
+
import { queryPageSuperGrids as P, queryPageDesignByCode as k, convertToPageContext as $, packageAdditionalMapWithLocationSearch as x, packageAdditionalMapWithRoute as D, packageAdditionalMapWithPageRequest as S } from "../utils/page-init-util.js";
|
|
5
5
|
import { addComponentRef as N, removePageAllRef as q, initComponentRefState as w } from "../utils/global-refs.js";
|
|
6
6
|
import { removeCustomFuncFromWindow as O, handleEvent as R, initPageEvents as T, getCustomFunc as _ } from "../utils/events/event-util.js";
|
|
7
7
|
import I from "./assemblys/common/export-form-report-dialog.vue.js";
|
|
8
8
|
import M from "./assemblys/common/task-informition-dialog.vue.js";
|
|
9
9
|
import F from "./assemblys/common/remove-signer-dialog.vue.js";
|
|
10
10
|
import V from "../utils/eventBus.js";
|
|
11
|
-
import { getTaskInformitions as E, getRemoveSigner as B, getFormData as J, exportFormReport as W, doImportFinally as L, doAddSigner as U, doCreateCopyTask as G, doAssign as H, doReturnTaskTo as z, doRemoveSigners as
|
|
11
|
+
import { getTaskInformitions as E, getRemoveSigner as B, getFormData as J, exportFormReport as W, doImportFinally as L, doAddSigner as U, doCreateCopyTask as G, doAssign as H, doReturnTaskTo as z, doRemoveSigners as Q, updateValuesWhenCloseDialog as A, refreshFormOrListPage as K, saveChartConditionBase as X, getAdditionalParamMap as Y } from "../utils/events/standard-event.js";
|
|
12
12
|
import "../utils/api/api-util.js";
|
|
13
13
|
import { ElMessage as Z } from "element-plus";
|
|
14
14
|
import { useI18n as ee } from "vue-i18n";
|
|
@@ -25,15 +25,15 @@ import { usePageContextStore as me } from "../utils/page-store.js";
|
|
|
25
25
|
import ge from "agilebuilder-ui/src/store";
|
|
26
26
|
import ce from "./assemblys/common/save-chart-condition-dialog.vue.js";
|
|
27
27
|
const fe = { class: "app-container runtime-page-container", "element-loading-text": "拼命加载中" }, de = 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 } }, emits: ["open", "opened", "close", "closed"], setup(e2, { expose: de2, emit: ye }) {
|
|
28
|
-
const he = me(), { t: Ce } = ee(), be = e2, je = l(false), Pe = l(null), ke = l([]), $e = l(""), xe = l({}),
|
|
28
|
+
const he = me(), { t: Ce } = ee(), be = e2, je = l(false), Pe = l(null), ke = l([]), $e = l(""), xe = l({}), De = l(null), Se = l(null), Ne = l(false), qe = l(false), we = l(false), Oe = l(false), Re = l(false), Te = l(null), _e = l(false), Ie = l([]), Me = l([]), Fe = l(false), Ve = l(null), Ee = l(false), Be = l(false), Je = l(null), We = l(null), Le = l(null), Ue = l(null);
|
|
29
29
|
let Ge = l(null);
|
|
30
|
-
const He = l(null), ze = l(null),
|
|
30
|
+
const He = l(null), ze = l(null), Qe = ue(), Ae = l(0), Ke = pe();
|
|
31
31
|
let Xe, Ye, Ze;
|
|
32
32
|
const el = l(false), ll = l(null), al = l(false);
|
|
33
33
|
function tl(e3) {
|
|
34
34
|
var _a;
|
|
35
35
|
const l2 = $(e3);
|
|
36
|
-
if (l2.isTest = be.isTest, l2.isTest && be.dimensions && (l2.dimensions = be.dimensions), be.isDialog || (x(l2.entity.request),
|
|
36
|
+
if (l2.isTest = be.isTest, l2.isTest && be.dimensions && (l2.dimensions = be.dimensions), be.isDialog || (x(l2.entity.request), D(Qe, l2.entity.request)), S(be.pageRequest, l2.entity.request), Ge.value = l2, null == Ge.value) return;
|
|
37
37
|
Xe = setTimeout(() => {
|
|
38
38
|
!function(e4, l3) {
|
|
39
39
|
if (!l3 || 0 == l3.length) return;
|
|
@@ -41,34 +41,37 @@ const fe = { class: "app-container runtime-page-container", "element-loading-tex
|
|
|
41
41
|
a3 && a3.length > 0 && b(e4, a3, void 0);
|
|
42
42
|
}(Ge.value, e3.initOptionConfigs);
|
|
43
43
|
}, 0), Ye = setTimeout(() => {
|
|
44
|
-
|
|
44
|
+
!function(e4, l3) {
|
|
45
45
|
if (!l3 || 0 == l3.length) return;
|
|
46
|
-
e4.initChartData = {}, e4.initChartData.data = re(e4.entity.data), e4.initChartData.page = re(e4.entity.page), l3 && l3.length > 0
|
|
46
|
+
if (e4.initChartData = {}, e4.initChartData.data = re(e4.entity.data), e4.initChartData.page = re(e4.entity.page), l3 && l3.length > 0) {
|
|
47
|
+
const a3 = l3.filter((e5) => false !== e5.initializationQuery);
|
|
48
|
+
j(e4, a3, null, true);
|
|
49
|
+
}
|
|
47
50
|
}(Ge.value, e3.initChartServiceConfigs);
|
|
48
51
|
}, 200), Ge.value.initDataSources = [], w(Ge.value), ke.value = Ge.value.items ? Ge.value.items : [];
|
|
49
52
|
const a2 = Ge.value.runtime ? Ge.value.runtime : {};
|
|
50
53
|
$e.value = a2.class, xe.value = a2.style, T(e3, Ge.value), ae(Ge.value.rules), R(null, Ge.value, e3, "beforeload");
|
|
51
54
|
const t2 = Ge.value.code;
|
|
52
55
|
return he.setPageContext(Ge.value), Te.value = t2 + "_", V.$on(Te.value + "export-form-report", (e4) => {
|
|
53
|
-
|
|
56
|
+
Se.value = e4, He.value = e4.configureObj, ze.value = e4.pageContext, al.value = false, Ne.value = true;
|
|
54
57
|
}), V.$on(Te.value + "export-pdf-report", (e4) => {
|
|
55
|
-
|
|
58
|
+
Se.value = e4, He.value = e4.configureObj, ze.value = e4.pageContext, al.value = true, Ne.value = true;
|
|
56
59
|
}), V.$on(Te.value + "import-file", (e4) => {
|
|
57
|
-
|
|
60
|
+
Se.value = e4, sl.value.click();
|
|
58
61
|
}), V.$on(Te.value + "assign-task", (e4) => {
|
|
59
|
-
|
|
62
|
+
Se.value = e4, Oe.value = true, Re.value = false;
|
|
60
63
|
}), V.$on(Te.value + "copy-task", (e4) => {
|
|
61
|
-
|
|
64
|
+
Se.value = e4, we.value = true, Re.value = true;
|
|
62
65
|
}), V.$on(Te.value + "add-signer", (e4) => {
|
|
63
|
-
|
|
66
|
+
Se.value = e4, qe.value = true, Re.value = true;
|
|
64
67
|
}), V.$on(Te.value + "choose-return-node", (e4) => {
|
|
65
|
-
|
|
68
|
+
Se.value = e4, E(e4).then((e5) => {
|
|
66
69
|
Ie.value = e5, _e.value = true;
|
|
67
70
|
}).catch((e5) => {
|
|
68
71
|
_e.value = false;
|
|
69
72
|
});
|
|
70
73
|
}), V.$on(Te.value + "remove-signer", (e4) => {
|
|
71
|
-
|
|
74
|
+
Se.value = e4, B(e4).then((l3) => {
|
|
72
75
|
Ve.value = e4.pageContext.completeTaskParam.taskId, Me.value = l3, Fe.value = true;
|
|
73
76
|
}).catch((e5) => {
|
|
74
77
|
Fe.value = false;
|
|
@@ -85,7 +88,6 @@ const fe = { class: "app-container runtime-page-container", "element-loading-tex
|
|
|
85
88
|
if (a5 && a5.jumpPageUrl) {
|
|
86
89
|
false !== a5.isNewPage && true !== a5.isNewPage && (a5.isNewPage = true);
|
|
87
90
|
const e6 = Y(Ge), u3 = !!((_a2 = Le.value.props.linkPage) == null ? void 0 : _a2.isNeedId);
|
|
88
|
-
Le.value;
|
|
89
91
|
let n2 = u3 && l4 ? l4.id : null, o2 = u3 && l4 ? l4.ids : null, i2 = l4 ? l4.selections : [], s2 = l4 ? l4.row : null;
|
|
90
92
|
if (!s2) if (s2 = {}, i2 && i2.length > 0) s2 = i2[0];
|
|
91
93
|
else {
|
|
@@ -103,14 +105,14 @@ const fe = { class: "app-container runtime-page-container", "element-loading-tex
|
|
|
103
105
|
if (e5) {
|
|
104
106
|
let a4 = {};
|
|
105
107
|
const t4 = l3 && l3.props && l3.props.linkPage ? l3.props.linkPage : null;
|
|
106
|
-
t4 && Object.assign(a4, re(t4)), Object.assign(a4, e5), ve(a4,
|
|
108
|
+
t4 && Object.assign(a4, re(t4)), Object.assign(a4, e5), ve(a4, Ke);
|
|
107
109
|
const u2 = a4.jumpMode, n2 = a4;
|
|
108
110
|
if (Ue.value || (Ue.value = {}), Ue.value.paramStoreId = a4.paramStoreId, n2.parentPageCode = We.value.code, n2.parentPageVersion = We.value.version, n2.isNewPage = true, "popup" === u2 || "refresh" === u2) {
|
|
109
111
|
const e6 = n2.linkType;
|
|
110
112
|
(function(e7, l4) {
|
|
111
113
|
const a5 = se();
|
|
112
114
|
return new Promise((t5, u3) => {
|
|
113
|
-
if (a5) if ("popup" !== l4 && !
|
|
115
|
+
if (a5) if ("popup" !== l4 && !Ke || We.value.systemCode === e7.customSystem) t5(true);
|
|
114
116
|
else if (e7.customSystem) {
|
|
115
117
|
const l5 = e7.customSystem;
|
|
116
118
|
ge.dispatch("getCurrentUserPermissions", { loginName: a5, systemCode: l5 }).then(() => {
|
|
@@ -118,11 +120,11 @@ const fe = { class: "app-container runtime-page-container", "element-loading-tex
|
|
|
118
120
|
}).catch(() => {
|
|
119
121
|
t5(true);
|
|
120
122
|
});
|
|
121
|
-
} else Z({ showClose: true, type: "error", message: Ce("superPageRuntimeMessage.popMsg") }),
|
|
123
|
+
} else Z({ showClose: true, type: "error", message: Ce("superPageRuntimeMessage.popMsg") }), t5(false);
|
|
122
124
|
else t5(true);
|
|
123
125
|
});
|
|
124
126
|
})(n2, u2).then((l4) => {
|
|
125
|
-
l4 && (
|
|
127
|
+
l4 && (Ke && (We.value.systemCode !== n2.customSystem || e6 && "url" === e6) ? (n2._isIframe = true, "refresh" === u2 && (n2.dialogType = "drawer", n2.jumpPageWidth = "100%"), Je.value = n2, Be.value = true) : (n2._isIframe = false, "popup" === u2 ? (Je.value = n2, Be.value = true) : "refresh" === u2 && ml.push({ path: "/dsc/page", query: n2 })));
|
|
126
128
|
}), V.$on(Te.value + "close-dialog", (e7) => {
|
|
127
129
|
!function(e8) {
|
|
128
130
|
const l4 = e8.jumpMode;
|
|
@@ -130,7 +132,7 @@ const fe = { class: "app-container runtime-page-container", "element-loading-tex
|
|
|
130
132
|
}(e7);
|
|
131
133
|
});
|
|
132
134
|
}
|
|
133
|
-
}
|
|
135
|
+
}
|
|
134
136
|
});
|
|
135
137
|
}), V.$on(Te.value + "save-chart-condition", (e4) => {
|
|
136
138
|
el.value = true;
|
|
@@ -138,7 +140,7 @@ const fe = { class: "app-container runtime-page-container", "element-loading-tex
|
|
|
138
140
|
const e4 = { runtime: { events: Ge.value.events }, systemCode: "", systemVersion: 0, code: "", version: 0, workflowCode: "", workflowVersion: 0, name: "", uuid: "", label: "" };
|
|
139
141
|
R(null, Ge.value, e4, "load");
|
|
140
142
|
}), h(() => Ge.value.isRefresh, (e4) => {
|
|
141
|
-
e4 && (
|
|
143
|
+
e4 && (Ae.value++, Ge.value.isRefresh = false);
|
|
142
144
|
}), J(Ge.value, null, (_a = be.pageRequest) == null ? void 0 : _a.isNeedId);
|
|
143
145
|
}
|
|
144
146
|
function ul() {
|
|
@@ -150,16 +152,16 @@ const fe = { class: "app-container runtime-page-container", "element-loading-tex
|
|
|
150
152
|
}
|
|
151
153
|
function nl() {
|
|
152
154
|
const e3 = Ge.value.entity.data, l2 = null == e3.ID ? e3.id : e3.ID;
|
|
153
|
-
|
|
155
|
+
Qe.query && Qe.query._t_ && l2 && ie(Qe.query._t_ + "_id", l2);
|
|
154
156
|
}
|
|
155
157
|
function ol() {
|
|
156
|
-
Ne.value = false,
|
|
158
|
+
Ne.value = false, Se.value = null;
|
|
157
159
|
}
|
|
158
160
|
function il(e3, l2) {
|
|
159
|
-
W(
|
|
161
|
+
W(Se.value.pageContext, Se.value.configureObj, l2, al.value);
|
|
160
162
|
}
|
|
161
163
|
a(() => {
|
|
162
|
-
null != be.pageDesign ? (
|
|
164
|
+
null != be.pageDesign ? (De.value = be.pageDesign, Ze = setTimeout(() => {
|
|
163
165
|
tl(be.pageDesign).then(() => {
|
|
164
166
|
be.pageDesign.tableRuntimes && Object.keys(be.pageDesign.tableRuntimes).length > 0 ? P(be.pageDesign, Ge.value, be.publishVersion).then((e3) => {
|
|
165
167
|
Ge.value.isWorkflowEntity = e3.isWorkflowEntity, Ge.value.dataTypeMaps = e3.dataTypeMaps, Ge.value.superGridItems = e3.superGrids;
|
|
@@ -171,7 +173,7 @@ const fe = { class: "app-container runtime-page-container", "element-loading-tex
|
|
|
171
173
|
}, 0)) : be.pageCode && (je.value = true, k(be.pageCode).then((e3) => {
|
|
172
174
|
if (e3 && e3.designJson) {
|
|
173
175
|
const l2 = e3.designJson, a2 = JSON.parse(l2);
|
|
174
|
-
|
|
176
|
+
De.value = a2, tl(a2).then(() => {
|
|
175
177
|
nl(), Ee.value = true, ul();
|
|
176
178
|
});
|
|
177
179
|
}
|
|
@@ -185,17 +187,17 @@ const fe = { class: "app-container runtime-page-container", "element-loading-tex
|
|
|
185
187
|
Ge.value && Pe.value && N(Ge.value, "-1", Pe);
|
|
186
188
|
});
|
|
187
189
|
}), n(() => {
|
|
188
|
-
q(Ge.value),
|
|
190
|
+
q(Ge.value), De.value && O(De.value), V.$off(Te.value + "export-form-report"), V.$off(Te.value + "export-pdf-report"), V.$off(Te.value + "import-file"), V.$off(Te.value + "assign-task"), V.$off(Te.value + "copy-task"), V.$off(Te.value + "add-signer"), V.$off(Te.value + "choose-return-node"), V.$off(Te.value + "remove-signer"), V.$off(Te.value + "prohibit-edit"), V.$off(Te.value + "open-dialog"), V.$off(Te.value + "save-chart-condition"), V.$off("pageLoaded"), Ge.value && R(null, Ge.value, Ge.value, "onUnmounted"), Xe && clearTimeout(Xe), Ye && clearTimeout(Ye), Ze && clearTimeout(Ze);
|
|
189
191
|
});
|
|
190
192
|
const sl = l(null);
|
|
191
193
|
function rl(e3) {
|
|
192
|
-
true === qe.value && (qe.value = false, U(
|
|
194
|
+
true === qe.value && (qe.value = false, U(Se.value, e3)), true === we.value && (we.value = false, G(Se.value, e3)), true === Oe.value && (Oe.value = false, H(Se.value, e3));
|
|
193
195
|
}
|
|
194
196
|
function vl(e3) {
|
|
195
|
-
Ie.value = [], _e.value = false, z(
|
|
197
|
+
Ie.value = [], _e.value = false, z(Se.value, e3);
|
|
196
198
|
}
|
|
197
199
|
function pl(e3) {
|
|
198
|
-
Me.value = [], Fe.value = false,
|
|
200
|
+
Me.value = [], Fe.value = false, Q(Se.value, e3);
|
|
199
201
|
}
|
|
200
202
|
const ml = ne();
|
|
201
203
|
function gl(e3) {
|
|
@@ -214,14 +216,14 @@ const fe = { class: "app-container runtime-page-container", "element-loading-tex
|
|
|
214
216
|
} else o2 = Le.value;
|
|
215
217
|
if (e3) {
|
|
216
218
|
const l3 = e3.isNeedValueMapping;
|
|
217
|
-
t2 = e3.dataModel, u2 = e3.sourceTableName, l3 &&
|
|
219
|
+
t2 = e3.dataModel, u2 = e3.sourceTableName, l3 && A(We.value, o2, t2, u2, Je.value ? Je.value.valueMappings : null);
|
|
218
220
|
}
|
|
219
221
|
R(null, We.value, o2, "closePopup", { sourceModel: t2, sourceTableName: u2, jumpPageSetting: Je.value, entity: We.value.entity.data, targetTableName: n2, pageContext: Ge.value, parentPageContext: We.value, parentConfigureObj: o2, columnProp: i2 }), function(e4, l3, a3) {
|
|
220
222
|
if (e4) {
|
|
221
223
|
const t3 = _(We.value, e4);
|
|
222
224
|
t3 && t3.apply(t3, [{ pageContext: Ge.value, parentPageContext: We.value, parentConfigureObj: a3, jumpPageSetting: Je.value, columnProp: l3 }]);
|
|
223
225
|
}
|
|
224
|
-
}(l2, i2, o2),
|
|
226
|
+
}(l2, i2, o2), K(We.value, Le.value, a2, void 0 !== a2 && false === a2 ? "noOperation" : null), We.value = null, Le.value = null, Ue.value = null, V.$off(Te.value + "close-dialog"), Be.value = false;
|
|
225
227
|
}
|
|
226
228
|
function cl(e3) {
|
|
227
229
|
X(Ge.value, e3).then((e4) => {
|
|
@@ -244,12 +246,12 @@ const fe = { class: "app-container runtime-page-container", "element-loading-tex
|
|
|
244
246
|
(l2 || a2) && (a2 ? V.$emit(a2 + "-scanDone", e3) : V.$emit(l2 + "-scanDone", e3));
|
|
245
247
|
} }), (e3, l2) => {
|
|
246
248
|
const a2 = o("loading");
|
|
247
|
-
return i((r(), s("div", fe, [Ee.value ? (r(), s("div", { ref_key: "thisRef", ref: Pe, key:
|
|
248
|
-
if (
|
|
249
|
+
return i((r(), s("div", fe, [Ee.value ? (r(), s("div", { ref_key: "thisRef", ref: Pe, key: Ae.value, class: m(["runtime-page-container-view", $e.value]), style: p(xe.value) }, [(r(true), s(f, null, d(ke.value, (e4, l3) => (r(), g(C, { key: e4.uuid, configure: e4, pageContext: y(Ge) }, null, 8, ["configure", "pageContext"]))), 128)), Ne.value ? (r(), g(I, { key: 0, configure: He.value, pageContext: ze.value, onClose: ol, onExport: il }, null, 8, ["configure", "pageContext"])) : v("", true), c("input", { ref_key: "_selectFile_", ref: sl, type: "file", name: "_selectFile_", style: { display: "none" }, onChange: l2[0] || (l2[0] = (e4) => function() {
|
|
250
|
+
if (Se.value) {
|
|
249
251
|
if (!sl.value) return;
|
|
250
252
|
if ("" === sl.value.value || null === sl.value.value) return;
|
|
251
253
|
const e5 = sl.value.files[0];
|
|
252
|
-
e5 ? (sl.value.value = null, L(
|
|
254
|
+
e5 ? (sl.value.value = null, L(Se.value, e5)) : Z({ showClose: true, type: "warning", message: Ce("superPageRuntimeMessage.noFileSelected") });
|
|
253
255
|
}
|
|
254
256
|
}()) }, null, 544), qe.value || we.value || Oe.value ? (r(), g(y(le), { key: 1, width: "60%", multiple: Re.value, onClose: rl }, null, 8, ["multiple"])) : v("", true), _e.value ? (r(), g(M, { key: 2, "task-informitions": Ie.value, onClose: l2[1] || (l2[1] = (e4) => _e.value = false), onResult: vl }, null, 8, ["task-informitions"])) : v("", true), Fe.value ? (r(), g(F, { key: 3, "task-id": Ve.value, "active-tasks": Me.value, onClose: l2[2] || (l2[2] = (e4) => Fe.value = false), onResult: pl }, null, 8, ["task-id", "active-tasks"])) : v("", true), Be.value ? (r(), g(te, { key: 4, parentPageContext: We.value, parentPageEventParams: Ue.value, jumpPageSetting: Je.value, onClose: l2[3] || (l2[3] = (e4) => gl()) }, null, 8, ["parentPageContext", "parentPageEventParams", "jumpPageSetting"])) : v("", true), el.value ? (r(), g(ce, { key: 5, ref_key: "chartCondtionRef", ref: ll, pageContext: y(Ge), onClose: l2[4] || (l2[4] = (e4) => el.value = false), onSave: cl, onConfirm: fl }, null, 8, ["pageContext"])) : v("", true)], 6)) : v("", true)])), [[a2, je.value]]);
|
|
255
257
|
};
|
package/dist/es/i18n/langs/cn.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
const e = { superPageRuntimeMessage: { successfulSave: "保存成功", recordLine: "第 {row} 行记录", tableListSubTableDataVerificationFailed: "表单子表数据校验失败", formDataVerificationFailed: "表单数据校验失败", successfulOperation: "操作成功", selectTemplate: "选择模板", temlpate: "模板", operating: "操作", export: "导出", tips: "提示", sure: "确定", cancel: "取消", whetherToConfirmSubmit: "确定{name}吗?", whetherToConfirmAgree: "确定{name}吗?", whetherToConfirmDisagree: "确定{name}吗?", pleaseSelectRecord: "请选择记录", whetherToConfirmDeletion: "确定删除吗?", successfulDelete: "删除成功", noFileSelected: "请选择一个文件", asyncImport: "正在异步导入,请等待消息通知!", successfulImport: "导入成功", thePreconditionOfTheButtonTo: "该按钮前置条件为[{message}]", onlyOneRecordCanBeselected: "只能选择一条记录", selectAtLeastOneRecord: "请至少选择一条记录", requestPathEmpty: "后台请求路径为空", successfulSubmit: "提交成功", successfulCompleteTask: "任务办理成功", successfulAssign: "指派任务成功", successfulRetrieve: "取回任务成功", successfulDrawTask: "领取任务成功", successfulAbandonReceive: "放弃任务成功", successfulReturnToPreviousTask: "退回上一环节成功", successfulEndInstance: "强制结束流程成功", selectNode: "选择环节", nodeName: "环节名称", nodeId: "环节编码", pleaseSelectNode: "请选择环节", successfulReturnTaskTo: "退回成功", selectRemoveUsers: "选择减签任务", transactorName: "办理人姓名", transactor: "办理人登录名", trustorName: "委托人姓名", pleaseSelectRemoverUsers: "请选择减签用户", required: "{label}必填", formatMismatch: "{label}格式不匹配", overMaxLength: "{label}最多只能输入{value}字符", limitMinLength: "{label}至少输入{value}字符", flowNotStart: "流程未提交", pleaseInputOpinion: "请输入意见", opinion: "意见", pleaseInputRemark: "请输入备注", remark: "备注", pleaseSelectCondition: "请选择条件", pleaseInputConditionName: "请输入条件名称", conditionName: "名称", save: "保存", saveCondition: "保存条件", popMsg: "弹框参数缺少customSystem参数", noChartSetting: "未查询到图表定义" } };
|
|
1
|
+
const e = { superPageRuntimeMessage: { successfulSave: "保存成功", recordLine: "第 {row} 行记录", tableListSubTableDataVerificationFailed: "表单子表数据校验失败", formDataVerificationFailed: "表单数据校验失败", successfulOperation: "操作成功", selectTemplate: "选择模板", temlpate: "模板", operating: "操作", export: "导出", tips: "提示", sure: "确定", cancel: "取消", whetherToConfirmSubmit: "确定{name}吗?", whetherToConfirmAgree: "确定{name}吗?", whetherToConfirmDisagree: "确定{name}吗?", pleaseSelectRecord: "请选择记录", whetherToConfirmDeletion: "确定删除吗?", successfulDelete: "删除成功", noFileSelected: "请选择一个文件", asyncImport: "正在异步导入,请等待消息通知!", successfulImport: "导入成功", thePreconditionOfTheButtonTo: "该按钮前置条件为[{message}]", onlyOneRecordCanBeselected: "只能选择一条记录", selectAtLeastOneRecord: "请至少选择一条记录", requestPathEmpty: "后台请求路径为空", successfulSubmit: "提交成功", successfulCompleteTask: "任务办理成功", successfulAssign: "指派任务成功", successfulRetrieve: "取回任务成功", successfulDrawTask: "领取任务成功", successfulAbandonReceive: "放弃任务成功", successfulReturnToPreviousTask: "退回上一环节成功", successfulEndInstance: "强制结束流程成功", selectNode: "选择环节", nodeName: "环节名称", nodeId: "环节编码", pleaseSelectNode: "请选择环节", successfulReturnTaskTo: "退回成功", selectRemoveUsers: "选择减签任务", transactorName: "办理人姓名", transactor: "办理人登录名", trustorName: "委托人姓名", pleaseSelectRemoverUsers: "请选择减签用户", required: "{label}必填", formatMismatch: "{label}格式不匹配", overMaxLength: "{label}最多只能输入{value}字符", limitMinLength: "{label}至少输入{value}字符", flowNotStart: "流程未提交", pleaseInputOpinion: "请输入意见", opinion: "意见", pleaseInputRemark: "请输入备注", remark: "备注", pleaseSelectCondition: "请选择条件", pleaseInputConditionName: "请输入条件名称", conditionName: "名称", save: "保存", saveCondition: "保存条件", popMsg: "弹框参数缺少customSystem参数", noChartSetting: "未查询到图表定义", xxxNotEmpty: "{label}不能为空" } };
|
|
2
2
|
export {
|
|
3
3
|
e as default
|
|
4
4
|
};
|