super-page-runtime 2.3.15-sit3 → 2.3.16-sit1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/es/components/runtime/utils/events/standard-event.js +9 -8
- package/dist/es/components/runtime/utils/page-init-util.js +86 -67
- package/dist/es/components/runtime/views/assemblys/common/export-form-report-dialog.vue.js +20 -20
- package/dist/es/components/runtime/views/assemblys/common/task-informition-dialog.vue.js +9 -9
- package/dist/es/components/runtime/views/assemblys/data/table/main-table-runtime.vue.js +1 -1
- package/dist/es/components/runtime/views/assemblys/form/rich-text/richtext-runtime.vue.js +4 -1
- package/dist/es/components/runtime/views/assemblys/form/rich-text/richtext-runtime.vue2.js +81 -59
- package/dist/es/components/runtime/views/super-page.vue.js +1 -1
- package/dist/es/components/runtime/views/super-page.vue2.js +90 -90
- package/dist/es/style.css +78 -76
- package/package.json +2 -2
|
@@ -1,101 +1,123 @@
|
|
|
1
|
-
import { defineComponent as e, ref as t, watch as l, onMounted as n, nextTick as
|
|
2
|
-
import { getFormModelFields as
|
|
3
|
-
import { getSizeConfig 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, createVNode as c, createBlock as d, createCommentVNode as g, normalizeStyle as p, normalizeClass as m, unref as f, withCtx as h, createElementVNode as v, toDisplayString as y } from "vue";
|
|
2
|
+
import { getFormModelFields as b } from "../../../../utils/page-init-util.js";
|
|
3
|
+
import { getSizeConfig as x, formatVariableValue as C, setVariableValue as w, getVariableValue as k } from "../../../../utils/page-helper-util.js";
|
|
4
4
|
import q from "quill";
|
|
5
5
|
import "quill/dist/quill.snow.css";
|
|
6
6
|
import { handleAfterInitEvent as T, handleFormEvent as E } from "../../../../utils/events/event-util.js";
|
|
7
|
-
import
|
|
8
|
-
import { $t as
|
|
9
|
-
import { getBaseUrl as
|
|
10
|
-
const
|
|
11
|
-
const
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
7
|
+
import A from "agilebuilder-ui/src/utils/request";
|
|
8
|
+
import { $t as L } from "../../../../utils/i18n-util.js";
|
|
9
|
+
import { getBaseUrl as R, addRequiredClassUtil as j } from "../../../../utils/common-util.js";
|
|
10
|
+
const H = { style: { width: "100%", height: "100%" } }, S = e({ __name: "richtext-runtime", props: { pageContext: {}, configure: {} }, setup(e2, { expose: S2 }) {
|
|
11
|
+
const B = e2, N = t(null), _ = B.pageContext.entity ? B.pageContext.entity : {}, M = b(B.pageContext, B.configure), U = B.configure.runtime ? B.configure.runtime : {}, W = U.style, $ = U.class, D = U.headerStyle, F = U.titleExceedStyle, P = t(U.props ? U.props : {});
|
|
12
|
+
let z = x(B.pageContext, B.configure);
|
|
13
|
+
z && z.fixHeight && (W.height || (W.height = z.fixHeight + "px"));
|
|
14
|
+
let I = P.value.value;
|
|
15
|
+
const O = C(B.pageContext, I), G = t(null);
|
|
16
|
+
let J = null;
|
|
16
17
|
t(null);
|
|
17
|
-
let
|
|
18
|
+
let K = P.value.state;
|
|
18
19
|
function Q(e3) {
|
|
19
20
|
return "readonly" == e3 || "disabled" == e3;
|
|
20
21
|
}
|
|
21
|
-
const V = Q(
|
|
22
|
-
l(
|
|
23
|
-
const e3 =
|
|
24
|
-
if (null != e3 && e3 !==
|
|
25
|
-
|
|
26
|
-
const t2 = Q(
|
|
27
|
-
|
|
22
|
+
const V = Q(K), X = t({ modules: { toolbar: [["bold", "italic", "underline", "strike"], ["blockquote", "code-block"], [{ list: "ordered" }, { list: "bullet" }], [{ script: "sub" }, { script: "super" }], [{ indent: "-1" }, { indent: "+1" }], [{ direction: "rtl" }], [{ size: ["small", false, "large", "huge"] }], [{ header: [1, 2, 3, 4, 5, 6, false] }], [{ color: [] }, { background: [] }], [{ font: [] }], [{ align: [] }], ["clean"], ["link", "image"]] }, theme: "snow", placeholder: V ? "" : P.value.placeholder, readOnly: V });
|
|
23
|
+
l(P.value, () => {
|
|
24
|
+
const e3 = P.value.state;
|
|
25
|
+
if (null != e3 && e3 !== K) {
|
|
26
|
+
K = e3;
|
|
27
|
+
const t2 = Q(K);
|
|
28
|
+
J && (J.enable(!t2), J.root.dataset.placeholder = t2 ? "" : P.value.placeholder);
|
|
28
29
|
}
|
|
29
30
|
});
|
|
30
|
-
const Y = t([]), Z = t(false),
|
|
31
|
-
let
|
|
32
|
-
function
|
|
33
|
-
|
|
34
|
-
|
|
31
|
+
const Y = t([]), Z = t(false), ee = t(null), te = t(null), le = t(null);
|
|
32
|
+
let ne;
|
|
33
|
+
function ie(e3) {
|
|
34
|
+
const t2 = e3.match(/serverPath=([^&"]+)/);
|
|
35
|
+
return t2 ? t2[1] : "";
|
|
35
36
|
}
|
|
36
37
|
function oe(e3) {
|
|
38
|
+
var _a;
|
|
39
|
+
null !== e3.relatedTarget && ((_a = G.value) == null ? void 0 : _a.contains(e3.relatedTarget)) || E(J.root.innerHTML, B.pageContext, B.configure, "change", { entity: _ });
|
|
40
|
+
}
|
|
41
|
+
function ae(e3) {
|
|
37
42
|
if ("img" === e3.target.localName) {
|
|
38
43
|
Y.value = [];
|
|
39
44
|
let t2 = e3.target.src;
|
|
40
45
|
Y.value.push(t2), Z.value = true;
|
|
41
46
|
}
|
|
42
47
|
}
|
|
43
|
-
function
|
|
48
|
+
function re(e3) {
|
|
44
49
|
const t2 = new FormData();
|
|
45
50
|
t2.append("file", e3);
|
|
46
|
-
const l2 =
|
|
47
|
-
return
|
|
51
|
+
const l2 = B.pageContext.backendUrl, n2 = R(l2, B.pageContext.isTest);
|
|
52
|
+
return A.post(n2 + "/common/fs-upload/rich-editor-image", t2, { headers: { "Content-Type": "multipart/form-data" } });
|
|
48
53
|
}
|
|
49
|
-
function
|
|
50
|
-
let l2 = e3.split(","), n2 = l2[0].match(/:(.*?);/)[1],
|
|
51
|
-
for (;
|
|
54
|
+
function ue(e3, t2) {
|
|
55
|
+
let l2 = e3.split(","), n2 = l2[0].match(/:(.*?);/)[1], i2 = atob(l2[1]), o2 = i2.length, a2 = new Uint8Array(o2);
|
|
56
|
+
for (; o2--; ) a2[o2] = i2.charCodeAt(o2);
|
|
52
57
|
return new File([a2], t2, { type: n2 });
|
|
53
58
|
}
|
|
54
59
|
return n(() => {
|
|
55
60
|
var _a;
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
+
J = new q(G.value, X.value);
|
|
62
|
+
let e3 = O;
|
|
63
|
+
e3 = e3.replace(/<img data-uuid="(.*?)"/g, (e4, t3) => {
|
|
64
|
+
const l2 = ie(t3), n2 = B.pageContext.backendUrl;
|
|
65
|
+
return `<img src="${R(n2, B.pageContext.isTest)}/common/fs-upload/download?serverPath=${l2}&isShowWatermark=false" data-uuid="${l2}"`;
|
|
66
|
+
});
|
|
67
|
+
const t2 = J.clipboard.convertHTML(e3);
|
|
68
|
+
J.setContents(t2.ops), i(() => {
|
|
69
|
+
J.root.querySelectorAll("img").forEach((e4) => {
|
|
70
|
+
if (!e4.getAttribute("data-uuid")) {
|
|
71
|
+
const t3 = ie(e4.src);
|
|
72
|
+
e4.setAttribute("data-uuid", t3);
|
|
73
|
+
}
|
|
74
|
+
});
|
|
75
|
+
}), (_a = G.value) == null ? void 0 : _a.addEventListener("focusout", oe), J.on("text-change", async function(e4, t3, l2) {
|
|
76
|
+
const n2 = J.root.getElementsByTagName("img");
|
|
77
|
+
for (let e5 of n2) if (!e5.getAttribute("data-uuid")) {
|
|
78
|
+
const t4 = ie(e5.src);
|
|
79
|
+
e5.setAttribute("data-uuid", t4);
|
|
80
|
+
}
|
|
81
|
+
if (e4.ops && e4.ops.length > 0) for (let t4 = 0; t4 < e4.ops.length; t4++) {
|
|
82
|
+
const l3 = e4.ops[t4];
|
|
61
83
|
if (l3.insert && l3.insert.image) {
|
|
62
84
|
const e5 = l3.insert.image;
|
|
63
85
|
if (!e5.startsWith("data:image")) return;
|
|
64
|
-
const
|
|
65
|
-
await
|
|
66
|
-
if (!
|
|
67
|
-
const l4 =
|
|
86
|
+
const t5 = ue(e5, "image.png");
|
|
87
|
+
await re(t5).then((t6) => {
|
|
88
|
+
if (!J) return;
|
|
89
|
+
const l4 = J.root.getElementsByTagName("img");
|
|
68
90
|
if (l4 && l4.length > 0) for (let n3 = 0; n3 < l4.length; n3++) {
|
|
69
|
-
const
|
|
70
|
-
|
|
91
|
+
const i3 = l4[n3];
|
|
92
|
+
i3.src === e5 && (i3.width = 300, i3.src = t6.url, i3.setAttribute("data-uuid", t6.uuid));
|
|
71
93
|
}
|
|
72
94
|
}).catch((e6) => {
|
|
73
95
|
});
|
|
74
96
|
}
|
|
75
97
|
}
|
|
76
|
-
const
|
|
77
|
-
w(
|
|
78
|
-
}),
|
|
79
|
-
if (
|
|
80
|
-
const e4 =
|
|
81
|
-
let l2 = e4.height - (
|
|
82
|
-
l2 < 100 && (l2 = 100),
|
|
98
|
+
const i2 = J.root.innerHTML;
|
|
99
|
+
w(_, M, i2), null != i2 && "" !== i2 && (N.value = "");
|
|
100
|
+
}), ne = J.container, ne.addEventListener("click", ae), function() {
|
|
101
|
+
if (J && J.container) {
|
|
102
|
+
const e4 = J.container.parentNode.getBoundingClientRect(), t3 = J.container.getBoundingClientRect();
|
|
103
|
+
let l2 = e4.height - (t3.top - e4.top);
|
|
104
|
+
l2 < 100 && (l2 = 100), J.container.style.height = l2 + "px";
|
|
83
105
|
}
|
|
84
|
-
}(),
|
|
85
|
-
const e4 = k(
|
|
86
|
-
T(e4,
|
|
106
|
+
}(), i(() => {
|
|
107
|
+
const e4 = k(_, M);
|
|
108
|
+
T(e4, B.pageContext, B.configure, { formItemRef: ee.value, componentRef: te.value, titleRef: le.value, value: e4, entity: B.pageContext.entity.data, pageData: B.pageContext.entity.page });
|
|
87
109
|
});
|
|
88
|
-
}),
|
|
89
|
-
|
|
90
|
-
}),
|
|
91
|
-
N.value =
|
|
110
|
+
}), o(() => {
|
|
111
|
+
G.value && G.value.removeEventListener("focusout", oe), ne && ne.removeEventListener("click", ae);
|
|
112
|
+
}), S2({ addRequiredClass: function() {
|
|
113
|
+
N.value = j();
|
|
92
114
|
} }), (e3, t2) => {
|
|
93
115
|
const l2 = a("el-form-item"), n2 = a("el-image-viewer");
|
|
94
|
-
return u(), r(s, null, [c(l2, { required:
|
|
116
|
+
return u(), r(s, null, [c(l2, { required: P.value.required, class: m(f($) + (N.value ? " " + N.value : "")), "label-width": P.value.labelWidth, style: p(f(W)) }, { label: h(() => [P.value.tittleShow ? (u(), r("div", { key: 0, style: p({ ...f(D), ...f(F) }) }, y(f(L)(P.value.title)), 5)) : g("", true)]), default: h(() => [v("div", H, [v("div", { ref_key: "quillEditorRef", ref: G, style: { width: "100%" } }, null, 512)])]), _: 1 }, 8, ["required", "class", "label-width", "style"]), Z.value ? (u(), d(n2, { key: 0, "hide-on-click-modal": "", onClose: t2[0] || (t2[0] = () => {
|
|
95
117
|
Z.value = false;
|
|
96
|
-
}), "url-list": Y.value }, null, 8, ["url-list"])) :
|
|
118
|
+
}), "url-list": Y.value }, null, 8, ["url-list"])) : g("", true)], 64);
|
|
97
119
|
};
|
|
98
120
|
} });
|
|
99
121
|
export {
|
|
100
|
-
|
|
122
|
+
S as default
|
|
101
123
|
};
|
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import { defineComponent as e, ref as a, getCurrentInstance as l, onMounted as t, onUpdated as u, nextTick as o, onUnmounted as n, resolveDirective as i, withDirectives as s, createElementBlock as r, openBlock as v, createCommentVNode as p, normalizeStyle as m, normalizeClass as
|
|
1
|
+
import { defineComponent as e, ref as a, getCurrentInstance as l, onMounted as t, onUpdated as u, nextTick as o, onUnmounted as n, resolveDirective as i, withDirectives as s, createElementBlock as r, openBlock as v, createCommentVNode as p, normalizeStyle as m, normalizeClass as c, createBlock as g, createElementVNode as f, Fragment as d, renderList as y, unref as h, watch as C } from "vue";
|
|
2
2
|
import b from "./assemblys/object-render.vue.js";
|
|
3
|
-
import { updateOptionDatasources as
|
|
4
|
-
import { queryPageSuperGrids as
|
|
5
|
-
import { addComponentRef as
|
|
3
|
+
import { updateOptionDatasources as k, updateChartDatasources as P } from "../utils/page-helper-util.js";
|
|
4
|
+
import { queryPageSuperGrids as j, queryPageDesignByCode as $, convertToPageContext as x, packageAdditionalMapWithLocationSearch as D, packageAdditionalMapWithRoute as S, packageAdditionalMapWithPageRequest as T } from "../utils/page-init-util.js";
|
|
5
|
+
import { addComponentRef as N, removePageAllRef as q, initComponentRefState as w } from "../utils/global-refs.js";
|
|
6
6
|
import { removeCustomFuncFromWindow as R, handleEvent as O, initPageEvents as I, getCustomFunc as _ } from "../utils/events/event-util.js";
|
|
7
7
|
import F from "./assemblys/common/export-form-report-dialog.vue.js";
|
|
8
8
|
import M from "./assemblys/common/task-informition-dialog.vue.js";
|
|
9
|
-
import
|
|
10
|
-
import
|
|
11
|
-
import
|
|
12
|
-
import { getTaskInformitions as
|
|
9
|
+
import E from "./assemblys/common/remove-signer-dialog.vue.js";
|
|
10
|
+
import V from "./assemblys/common/remove-transactor-dialog.vue.js";
|
|
11
|
+
import W from "../utils/eventBus.js";
|
|
12
|
+
import { getTaskInformitions as B, getRemoveSigner as J, getRemoveTransactor as U, getFormData as L, exportFormReport as A, doImportFinally as G, doAddSigner as H, doCreateCopyTask as z, doAssign as Q, doAddTransactor as K, doReturnTaskTo as X, doRemoveSigners as Y, doRemoveTransactors as Z, updateValuesWhenCloseDialog as ee, refreshFormOrListPage as ae, saveChartConditionBase as le, getAdditionalParamMap as te } from "../utils/events/standard-event.js";
|
|
13
13
|
import "../utils/api/api-util.js";
|
|
14
14
|
import { ElMessage as ue } from "element-plus";
|
|
15
15
|
import { useI18n as oe } from "vue-i18n";
|
|
@@ -19,75 +19,75 @@ import se from "./super-page-dialog.vue.js";
|
|
|
19
19
|
/* empty css */
|
|
20
20
|
import { useRoute as re, useRouter as ve } from "vue-router";
|
|
21
21
|
import { jumpToPage as pe } from "agilebuilder-ui/src/utils/jump-page-utils";
|
|
22
|
-
import { setSessionCache as me, getUsername as
|
|
23
|
-
import { deepCopy as
|
|
22
|
+
import { setSessionCache as me, getUsername as ce } from "agilebuilder-ui/src/utils/auth";
|
|
23
|
+
import { deepCopy as ge, refreshMobileDialogType as fe } from "../utils/common-util.js";
|
|
24
24
|
import { isMobileBrowser as de } from "agilebuilder-ui/src/utils/common-util";
|
|
25
25
|
import { usePageContextStore as ye } from "../utils/page-store.js";
|
|
26
26
|
import he from "agilebuilder-ui/src/store";
|
|
27
27
|
import Ce from "./assemblys/common/save-chart-condition-dialog.vue.js";
|
|
28
28
|
import be from "../utils/ai-chat-util.js";
|
|
29
|
-
const
|
|
30
|
-
const $e = ye(), { t:
|
|
29
|
+
const ke = { class: "app-container runtime-page-container", "element-loading-text": "拼命加载中" }, Pe = 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: Pe2, emit: je }) {
|
|
30
|
+
const $e = ye(), { t: xe } = oe(), De = e2, Se = a(false), Te = a(null), Ne = a([]), qe = a(""), we = a({}), Re = a(null), Oe = a(null), Ie = a(false), _e = a(false), Fe = a(false), Me = a(false), Ee = a(false), Ve = a(false), We = a(null), Be = a(false), Je = a([]), Ue = a([]), Le = a([]), Ae = a(false), Ge = a(false), He = a(null), ze = a(false), Qe = a(false), Ke = a(null), Xe = a(null), Ye = a(null), Ze = a(null);
|
|
31
31
|
let ea = a(null);
|
|
32
32
|
const aa = a(null), la = a(null), ta = re(), ua = a(0), oa = de();
|
|
33
33
|
let na, ia, sa;
|
|
34
34
|
const ra = a(false), va = a(null), pa = a(false);
|
|
35
35
|
function ma(e3) {
|
|
36
36
|
var _a;
|
|
37
|
-
const a2 =
|
|
38
|
-
if (a2.isTest =
|
|
39
|
-
ea.value.isDialog = true ===
|
|
37
|
+
const a2 = x(e3);
|
|
38
|
+
if (a2.isTest = De.isTest, a2.isTest && De.dimensions && (a2.dimensions = De.dimensions), De.isDialog || (D(a2.entity.request), S(ta, a2.entity.request)), T(De.pageRequest, a2.entity.request), ea.value = a2, null == ea.value) return;
|
|
39
|
+
ea.value.isDialog = true === De.isDialog, na = setTimeout(() => {
|
|
40
40
|
!function(e4, a3) {
|
|
41
41
|
if (!a3 || 0 == a3.length) return;
|
|
42
42
|
const l3 = a3.filter((e5) => "remote" != e5.filterType);
|
|
43
|
-
l3 && l3.length > 0 &&
|
|
43
|
+
l3 && l3.length > 0 && k(e4, l3, void 0);
|
|
44
44
|
}(ea.value, e3.initOptionConfigs);
|
|
45
45
|
}, 0), ia = setTimeout(() => {
|
|
46
46
|
!function(e4, a3) {
|
|
47
47
|
if (!a3 || 0 == a3.length) return;
|
|
48
|
-
if (e4.initChartData = {}, e4.initChartData.data =
|
|
48
|
+
if (e4.initChartData = {}, e4.initChartData.data = ge(e4.entity.data), e4.initChartData.page = ge(e4.entity.page), a3 && a3.length > 0) {
|
|
49
49
|
const l3 = a3.filter((e5) => false !== e5.initializationQuery);
|
|
50
|
-
|
|
50
|
+
P(e4, l3, null, true);
|
|
51
51
|
}
|
|
52
52
|
}(ea.value, e3.initChartServiceConfigs);
|
|
53
|
-
}, 200), ea.value.initDataSources = [], w(ea.value),
|
|
53
|
+
}, 200), ea.value.initDataSources = [], w(ea.value), Ne.value = ea.value.items ? ea.value.items : [];
|
|
54
54
|
const l2 = ea.value.runtime ? ea.value.runtime : {};
|
|
55
|
-
|
|
55
|
+
qe.value = l2.class, we.value = l2.style, I(e3, ea.value), ie(ea.value.rules), O(null, ea.value, e3, "beforeload");
|
|
56
56
|
const t2 = ea.value.code;
|
|
57
|
-
return $e.setPageContext(ea.value),
|
|
57
|
+
return $e.setPageContext(ea.value), We.value = t2 + "_", W.$on(We.value + "export-form-report", (e4) => {
|
|
58
58
|
Oe.value = e4, aa.value = e4.configureObj, la.value = e4.pageContext, pa.value = false, Ie.value = true;
|
|
59
|
-
}),
|
|
59
|
+
}), W.$on(We.value + "export-pdf-report", (e4) => {
|
|
60
60
|
Oe.value = e4, aa.value = e4.configureObj, la.value = e4.pageContext, pa.value = true, Ie.value = true;
|
|
61
|
-
}),
|
|
61
|
+
}), W.$on(We.value + "import-file", (e4) => {
|
|
62
62
|
Oe.value = e4, ha.value.click();
|
|
63
|
-
}),
|
|
64
|
-
Oe.value = e4,
|
|
65
|
-
}),
|
|
66
|
-
Oe.value = e4, Me.value = true,
|
|
67
|
-
}),
|
|
68
|
-
Oe.value = e4, _e.value = true,
|
|
69
|
-
}),
|
|
70
|
-
Oe.value = e4,
|
|
71
|
-
|
|
63
|
+
}), W.$on(We.value + "assign-task", (e4) => {
|
|
64
|
+
Oe.value = e4, Ee.value = true, Ve.value = false;
|
|
65
|
+
}), W.$on(We.value + "copy-task", (e4) => {
|
|
66
|
+
Oe.value = e4, Me.value = true, Ve.value = true;
|
|
67
|
+
}), W.$on(We.value + "add-signer", (e4) => {
|
|
68
|
+
Oe.value = e4, _e.value = true, Ve.value = true;
|
|
69
|
+
}), W.$on(We.value + "choose-return-node", (e4) => {
|
|
70
|
+
Oe.value = e4, B(e4).then((e5) => {
|
|
71
|
+
Je.value = e5, Be.value = true;
|
|
72
72
|
}).catch((e5) => {
|
|
73
|
-
|
|
73
|
+
Be.value = false;
|
|
74
74
|
});
|
|
75
|
-
}),
|
|
76
|
-
Oe.value = e4,
|
|
77
|
-
|
|
75
|
+
}), W.$on(We.value + "remove-signer", (e4) => {
|
|
76
|
+
Oe.value = e4, J(e4).then((a3) => {
|
|
77
|
+
He.value = e4.pageContext.completeTaskParam.taskId, Ue.value = a3, Ae.value = true;
|
|
78
78
|
}).catch((e5) => {
|
|
79
|
-
|
|
79
|
+
Ae.value = false;
|
|
80
80
|
});
|
|
81
|
-
}),
|
|
82
|
-
Oe.value = e4, Fe.value = true,
|
|
83
|
-
}),
|
|
84
|
-
Oe.value = e4,
|
|
85
|
-
|
|
81
|
+
}), W.$on(We.value + "add-transactor", (e4) => {
|
|
82
|
+
Oe.value = e4, Fe.value = true, Ve.value = true;
|
|
83
|
+
}), W.$on(We.value + "remove-transactor", (e4) => {
|
|
84
|
+
Oe.value = e4, U(e4).then((a3) => {
|
|
85
|
+
He.value = e4.pageContext.completeTaskParam.taskId, Le.value = a3, Ge.value = true;
|
|
86
86
|
}).catch((e5) => {
|
|
87
|
-
|
|
87
|
+
Ge.value = false;
|
|
88
88
|
});
|
|
89
|
-
}),
|
|
90
|
-
}),
|
|
89
|
+
}), W.$on(We.value + "prohibit-edit", (e4) => {
|
|
90
|
+
}), W.$on(We.value + "open-dialog", (e4) => {
|
|
91
91
|
var a3, l3, t3;
|
|
92
92
|
Xe.value = e4.pageContext, Ye.value = e4.configureObj, Ze.value = e4.eventParams, a3 = Ye.value, l3 = Ze.value, t3 = e4.jumpPageSetting, function(e5, a4, l4) {
|
|
93
93
|
return new Promise((t4, u2) => {
|
|
@@ -104,7 +104,7 @@ const je = { class: "app-container runtime-page-container", "element-loading-tex
|
|
|
104
104
|
const e7 = Xe.value.entity.data, a5 = Xe.value.entity.page;
|
|
105
105
|
a5 && Object.assign(s2, a5), e7 && Object.assign(s2, e7);
|
|
106
106
|
}
|
|
107
|
-
const r2 =
|
|
107
|
+
const r2 = ge(Xe.value.entity.page);
|
|
108
108
|
l5._pageData = r2, pe(l5, null, o2, s2, e6, n2).then((e7) => {
|
|
109
109
|
e7.isNeedId = u3, t4(e7);
|
|
110
110
|
});
|
|
@@ -115,12 +115,12 @@ const je = { class: "app-container runtime-page-container", "element-loading-tex
|
|
|
115
115
|
if (e5) {
|
|
116
116
|
let l4 = {};
|
|
117
117
|
const t4 = a3 && a3.props && a3.props.linkPage ? a3.props.linkPage : null;
|
|
118
|
-
t4 && Object.assign(l4,
|
|
118
|
+
t4 && Object.assign(l4, ge(t4)), Object.assign(l4, e5), fe(l4, oa);
|
|
119
119
|
const u2 = l4.jumpMode, o2 = l4;
|
|
120
120
|
if (Ze.value || (Ze.value = {}), Ze.value.paramStoreId = l4.paramStoreId, o2.parentPageCode = Xe.value.code, o2.parentPageVersion = Xe.value.version, o2.isNewPage = true, "popup" === u2 || "refresh" === u2) {
|
|
121
121
|
const e6 = o2.linkType;
|
|
122
122
|
(function(e7, a4) {
|
|
123
|
-
const l5 =
|
|
123
|
+
const l5 = ce();
|
|
124
124
|
return new Promise((t5, u3) => {
|
|
125
125
|
if (l5) if ("popup" !== a4 && !oa || Xe.value.systemCode === e7.customSystem) t5(true);
|
|
126
126
|
else if (e7.customSystem) {
|
|
@@ -130,35 +130,35 @@ const je = { class: "app-container runtime-page-container", "element-loading-tex
|
|
|
130
130
|
}).catch(() => {
|
|
131
131
|
t5(true);
|
|
132
132
|
});
|
|
133
|
-
} else ue({ showClose: true, type: "error", message:
|
|
133
|
+
} else ue({ showClose: true, type: "error", message: xe("superPageRuntimeMessage.popMsg") }), t5(false);
|
|
134
134
|
else t5(true);
|
|
135
135
|
});
|
|
136
136
|
})(o2, u2).then((a4) => {
|
|
137
|
-
a4 && (oa && (Xe.value.systemCode !== o2.customSystem || e6 && "url" === e6) ? (o2._isIframe = true, "refresh" === u2 && (o2.dialogType = "drawer", o2.jumpPageWidth = "100%"), Ke.value = o2,
|
|
138
|
-
}),
|
|
137
|
+
a4 && (oa && (Xe.value.systemCode !== o2.customSystem || e6 && "url" === e6) ? (o2._isIframe = true, "refresh" === u2 && (o2.dialogType = "drawer", o2.jumpPageWidth = "100%"), Ke.value = o2, Qe.value = true) : (o2._isIframe = false, "popup" === u2 ? (Ke.value = o2, Qe.value = true) : "refresh" === u2 && ja.push({ path: "/dsc/page", query: o2 })));
|
|
138
|
+
}), W.$on(We.value + "close-dialog", (e7) => {
|
|
139
139
|
!function(e8) {
|
|
140
140
|
const a4 = e8.jumpMode;
|
|
141
|
-
a4 && "popup" === a4 ? $a(e8) :
|
|
141
|
+
a4 && "popup" === a4 ? $a(e8) : ja.go(-1);
|
|
142
142
|
}(e7);
|
|
143
143
|
});
|
|
144
144
|
}
|
|
145
145
|
}
|
|
146
146
|
});
|
|
147
|
-
}),
|
|
147
|
+
}), W.$on(We.value + "save-chart-condition", (e4) => {
|
|
148
148
|
ra.value = true;
|
|
149
|
-
}),
|
|
149
|
+
}), W.$on("pageLoaded", () => {
|
|
150
150
|
const e4 = { runtime: { events: ea.value.events }, systemCode: "", systemVersion: 0, code: "", version: 0, workflowCode: "", workflowVersion: 0, name: "", uuid: "", label: "" };
|
|
151
151
|
O(null, ea.value, e4, "load");
|
|
152
152
|
}), C(() => ea.value.isRefresh, (e4) => {
|
|
153
153
|
e4 && (ua.value++, ea.value.isRefresh = false);
|
|
154
|
-
}), L(ea.value, null, (_a =
|
|
154
|
+
}), L(ea.value, null, (_a = De.pageRequest) == null ? void 0 : _a.isNeedId);
|
|
155
155
|
}
|
|
156
|
-
const
|
|
157
|
-
function
|
|
156
|
+
const ca = l();
|
|
157
|
+
function ga() {
|
|
158
158
|
o(() => {
|
|
159
159
|
var _a, _b;
|
|
160
|
-
const e3 =
|
|
161
|
-
ea.value && (ea.value.pageRuntimeStyle || (ea.value.pageRuntimeStyle = {}), ea.value.pageRuntimeStyle.height =
|
|
160
|
+
const e3 = Te.value.parentNode ? Te.value.parentNode : Te.value;
|
|
161
|
+
ea.value && (ea.value.pageRuntimeStyle || (ea.value.pageRuntimeStyle = {}), ea.value.pageRuntimeStyle.height = De.contentHeight ?? ((_b = (_a = e3 == null ? void 0 : e3.getBoundingClientRect) == null ? void 0 : _a.call(e3)) == null ? void 0 : _b.height) ?? 0);
|
|
162
162
|
});
|
|
163
163
|
}
|
|
164
164
|
function fa() {
|
|
@@ -169,51 +169,51 @@ const je = { class: "app-container runtime-page-container", "element-loading-tex
|
|
|
169
169
|
Ie.value = false, Oe.value = null;
|
|
170
170
|
}
|
|
171
171
|
function ya(e3, a2) {
|
|
172
|
-
|
|
172
|
+
A(Oe.value.pageContext, Oe.value.configureObj, a2, pa.value);
|
|
173
173
|
}
|
|
174
174
|
t(() => {
|
|
175
|
-
null !=
|
|
176
|
-
ma(
|
|
177
|
-
|
|
175
|
+
null != De.pageDesign ? (Re.value = De.pageDesign, sa = setTimeout(() => {
|
|
176
|
+
ma(De.pageDesign).then(() => {
|
|
177
|
+
De.pageDesign.tableRuntimes && Object.keys(De.pageDesign.tableRuntimes).length > 0 ? j(De.pageDesign, ea.value, De.publishVersion).then((e3) => {
|
|
178
178
|
ea.value.isWorkflowEntity = e3.isWorkflowEntity, ea.value.dataTypeMaps = e3.dataTypeMaps, ea.value.superGridItems = e3.superGrids;
|
|
179
179
|
}).catch((e3) => {
|
|
180
180
|
}).finally(() => {
|
|
181
|
-
|
|
182
|
-
}) : (
|
|
181
|
+
ze.value = true, ga();
|
|
182
|
+
}) : (ze.value = true, ga()), fa();
|
|
183
183
|
});
|
|
184
|
-
}, 0)) :
|
|
184
|
+
}, 0)) : De.pageCode && (Se.value = true, $(De.pageCode).then((e3) => {
|
|
185
185
|
if (e3 && e3.designJson) {
|
|
186
186
|
const a2 = e3.designJson, l2 = JSON.parse(a2);
|
|
187
|
-
Re.value = l2, ma(l2).then(() => {
|
|
188
|
-
fa(),
|
|
187
|
+
l2.contextParam = e3.contextParam, l2.branchFieldAuth = e3.branchFieldAuth, l2.systemParam = e3.systemParam, l2.isWorkflowEntity = e3.isWorkflowEntity, l2.dataTypeMaps = e3.dataTypeMaps, Re.value = l2, ma(l2).then(() => {
|
|
188
|
+
fa(), ze.value = true, ga();
|
|
189
189
|
});
|
|
190
190
|
}
|
|
191
191
|
}).catch((e3) => {
|
|
192
192
|
Se.value = false;
|
|
193
193
|
}).finally(() => {
|
|
194
|
-
Se.value = false, "form" === ea.value.pageType && be.setPageToChatStore(
|
|
194
|
+
Se.value = false, "form" === ea.value.pageType && be.setPageToChatStore(ca, ea.value);
|
|
195
195
|
}));
|
|
196
196
|
}), u(() => {
|
|
197
197
|
o(() => {
|
|
198
|
-
ea.value &&
|
|
198
|
+
ea.value && Te.value && N(ea.value, "-1", Te);
|
|
199
199
|
});
|
|
200
200
|
}), n(() => {
|
|
201
|
-
|
|
201
|
+
q(ea.value), Re.value && R(Re.value), W.$off(We.value + "export-form-report"), W.$off(We.value + "export-pdf-report"), W.$off(We.value + "import-file"), W.$off(We.value + "assign-task"), W.$off(We.value + "copy-task"), W.$off(We.value + "add-signer"), W.$off(We.value + "choose-return-node"), W.$off(We.value + "remove-signer"), W.$off(We.value + "prohibit-edit"), W.$off(We.value + "open-dialog"), W.$off(We.value + "save-chart-condition"), W.$off("pageLoaded"), ea.value && O(null, ea.value, ea.value, "onUnmounted"), na && clearTimeout(na), ia && clearTimeout(ia), sa && clearTimeout(sa);
|
|
202
202
|
});
|
|
203
203
|
const ha = a(null);
|
|
204
204
|
function Ca(e3) {
|
|
205
|
-
true === _e.value && (_e.value = false,
|
|
205
|
+
true === _e.value && (_e.value = false, H(Oe.value, e3)), true === Me.value && (Me.value = false, z(Oe.value, e3)), true === Ee.value && (Ee.value = false, Q(Oe.value, e3)), true === Fe.value && (Fe.value = false, K(Oe.value, e3));
|
|
206
206
|
}
|
|
207
207
|
function ba(e3) {
|
|
208
|
-
|
|
209
|
-
}
|
|
210
|
-
function ja(e3) {
|
|
211
|
-
We.value = [], Ge.value = false, Y(Oe.value, e3);
|
|
208
|
+
Je.value = [], Be.value = false, X(Oe.value, e3);
|
|
212
209
|
}
|
|
213
210
|
function ka(e3) {
|
|
214
|
-
|
|
211
|
+
Ue.value = [], Ae.value = false, Y(Oe.value, e3);
|
|
215
212
|
}
|
|
216
|
-
|
|
213
|
+
function Pa(e3) {
|
|
214
|
+
Le.value = [], Ge.value = false, Z(Oe.value, e3);
|
|
215
|
+
}
|
|
216
|
+
const ja = ve();
|
|
217
217
|
function $a(e3) {
|
|
218
218
|
var _a, _b;
|
|
219
219
|
const a2 = Ke.value.closeEvent, l2 = Ke.value.isRefreshWhenClosePopup;
|
|
@@ -237,41 +237,41 @@ const je = { class: "app-container runtime-page-container", "element-loading-tex
|
|
|
237
237
|
const t3 = _(Xe.value, e4);
|
|
238
238
|
t3 && t3.apply(t3, [{ pageContext: ea.value, parentPageContext: Xe.value, parentConfigureObj: l3, jumpPageSetting: Ke.value, columnProp: a3 }]);
|
|
239
239
|
}
|
|
240
|
-
}(a2, i2, n2), ae(Xe.value, Ye.value, l2, void 0 !== l2 && false === l2 ? "noOperation" : null), Xe.value = null, Ye.value = null, Ze.value = null,
|
|
240
|
+
}(a2, i2, n2), ae(Xe.value, Ye.value, l2, void 0 !== l2 && false === l2 ? "noOperation" : null), Xe.value = null, Ye.value = null, Ze.value = null, W.$off(We.value + "close-dialog"), Qe.value = false;
|
|
241
241
|
}
|
|
242
|
-
function
|
|
242
|
+
function xa(e3) {
|
|
243
243
|
le(ea.value, e3).then((e4) => {
|
|
244
|
-
ue({ showClose: true, type: "success", message:
|
|
244
|
+
ue({ showClose: true, type: "success", message: xe("superPageRuntimeMessage.successfulSave") }), va.value.refreshConditionList();
|
|
245
245
|
});
|
|
246
246
|
}
|
|
247
|
-
function
|
|
247
|
+
function Da(e3) {
|
|
248
248
|
const a2 = e3.queryCondition;
|
|
249
249
|
let l2 = {};
|
|
250
250
|
a2 && (l2 = JSON.parse(a2)), l2 && l2.data && Object.assign(ea.value.entity.data, l2.data), l2 && l2.page && Object.assign(ea.value.entity.page, l2.page), ra.value = false;
|
|
251
251
|
}
|
|
252
|
-
return
|
|
252
|
+
return Pe2({ pickFileDone: function(e3) {
|
|
253
253
|
let a2 = e3.componentId, l2 = e3.listCode;
|
|
254
|
-
(a2 || l2) && (l2 ?
|
|
254
|
+
(a2 || l2) && (l2 ? W.$emit(l2 + "-pickFileDone", e3) : W.$emit(a2 + "-pickFileDone", e3));
|
|
255
255
|
}, uploadFileDone: function(e3) {
|
|
256
256
|
let a2 = e3.componentId, l2 = e3.listCode;
|
|
257
|
-
(a2 || l2) && (l2 ?
|
|
257
|
+
(a2 || l2) && (l2 ? W.$emit(l2 + "-uploadFileDone", e3) : W.$emit(a2 + "-uploadFileDone", e3));
|
|
258
258
|
}, scanDone: function(e3) {
|
|
259
259
|
let a2 = e3.componentId, l2 = e3.listCode;
|
|
260
|
-
(a2 || l2) && (l2 ?
|
|
260
|
+
(a2 || l2) && (l2 ? W.$emit(l2 + "-scanDone", e3) : W.$emit(a2 + "-scanDone", e3));
|
|
261
261
|
}, getFormFormatData: function() {
|
|
262
262
|
return be.getFormFormatDataUtil(ea.value);
|
|
263
263
|
} }), (e3, a2) => {
|
|
264
264
|
const l2 = i("loading");
|
|
265
|
-
return s((v(), r("div",
|
|
265
|
+
return s((v(), r("div", ke, [ze.value ? (v(), r("div", { ref_key: "thisRef", ref: Te, key: ua.value, class: c(["runtime-page-container-view", qe.value]), style: m(we.value) }, [(v(true), r(d, null, y(Ne.value, (e4, a3) => (v(), g(b, { key: e4.uuid, configure: e4, pageContext: h(ea) }, null, 8, ["configure", "pageContext"]))), 128)), Ie.value ? (v(), g(F, { key: 0, configure: aa.value, pageContext: la.value, onClose: da, onExport: ya }, null, 8, ["configure", "pageContext"])) : p("", true), f("input", { ref_key: "_selectFile_", ref: ha, type: "file", name: "_selectFile_", style: { display: "none" }, onChange: a2[0] || (a2[0] = (e4) => function() {
|
|
266
266
|
if (Oe.value) {
|
|
267
267
|
if (!ha.value) return;
|
|
268
268
|
if ("" === ha.value.value || null === ha.value.value) return;
|
|
269
269
|
const e5 = ha.value.files[0];
|
|
270
|
-
e5 ? (ha.value.value = null,
|
|
270
|
+
e5 ? (ha.value.value = null, G(Oe.value, e5)) : ue({ showClose: true, type: "warning", message: xe("superPageRuntimeMessage.noFileSelected") });
|
|
271
271
|
}
|
|
272
|
-
}()) }, null, 544), _e.value || Me.value ||
|
|
272
|
+
}()) }, null, 544), _e.value || Me.value || Ee.value || Fe.value ? (v(), g(h(ne), { key: 1, width: "60%", multiple: Ve.value, onClose: Ca }, null, 8, ["multiple"])) : p("", true), Be.value ? (v(), g(M, { key: 2, "task-informitions": Je.value, onClose: a2[1] || (a2[1] = (e4) => Be.value = false), onResult: ba }, null, 8, ["task-informitions"])) : p("", true), Ae.value ? (v(), g(E, { key: 3, "task-id": He.value, "active-tasks": Ue.value, onClose: a2[2] || (a2[2] = (e4) => Ae.value = false), onResult: ka }, null, 8, ["task-id", "active-tasks"])) : p("", true), Ge.value ? (v(), g(V, { key: 4, "task-id": He.value, "transactor-info": Le.value, onClose: a2[3] || (a2[3] = (e4) => Ge.value = false), onResult: Pa }, null, 8, ["task-id", "transactor-info"])) : p("", true), Qe.value ? (v(), g(se, { key: 5, parentPageContext: Xe.value, parentPageEventParams: Ze.value, jumpPageSetting: Ke.value, onClose: a2[4] || (a2[4] = (e4) => $a()) }, null, 8, ["parentPageContext", "parentPageEventParams", "jumpPageSetting"])) : p("", true), ra.value ? (v(), g(Ce, { key: 6, ref_key: "chartCondtionRef", ref: va, pageContext: h(ea), onClose: a2[5] || (a2[5] = (e4) => ra.value = false), onSave: xa, onConfirm: Da }, null, 8, ["pageContext"])) : p("", true)], 6)) : p("", true)])), [[l2, Se.value]]);
|
|
273
273
|
};
|
|
274
274
|
} });
|
|
275
275
|
export {
|
|
276
|
-
|
|
276
|
+
Pe as default
|
|
277
277
|
};
|