super-page-runtime 2.3.30 → 2.3.31-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 +131 -131
- package/dist/es/components/runtime/utils/events/event-util.js +3 -3
- package/dist/es/components/runtime/utils/events/print-label.js +25 -26
- package/dist/es/components/runtime/utils/events/standard-event.js +135 -135
- package/dist/es/components/runtime/utils/events/validator-util.d.ts +0 -1
- package/dist/es/components/runtime/utils/events/validator-util.js +18 -14
- package/dist/es/components/runtime/utils/page-helper-util.js +162 -162
- package/dist/es/components/runtime/utils/page-init-util.js +39 -41
- 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/chart/table/table-runtime.vue2.js +2 -3
- package/dist/es/components/runtime/views/assemblys/common/event-call-component.vue.js +13 -13
- 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/container/iframe/iframe-runtime.vue2.js +5 -5
- 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 +1 -1
- package/dist/es/components/runtime/views/assemblys/data/table/sub-table-runtime.vue.js +2 -2
- 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 +34 -34
- package/dist/es/components/runtime/views/assemblys/form/file-upload/fileupload-runtime.vue2.js +1 -1
- 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 +1 -1
- package/dist/es/components/runtime/views/assemblys/form/select/select-runtime.vue2.js +47 -48
- package/dist/es/components/runtime/views/assemblys/object-render.vue.js +14 -16
- 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.vue2.js +31 -32
- package/dist/es/i18n/langs/cn.js +1 -1
- package/dist/es/i18n/langs/en.js +1 -1
- package/package.json +2 -2
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as e, ref as t, computed as l, onMounted as n, nextTick as a, resolveComponent as u, createElementBlock as
|
|
1
|
+
import { defineComponent as e, ref as t, computed as l, onMounted as n, nextTick as a, resolveComponent as u, createElementBlock as i, createBlock as o, openBlock as s, normalizeStyle as p, normalizeClass as r, unref as f, createElementVNode as c, toDisplayString as v, withCtx as y, createCommentVNode as g, createTextVNode as m } from "vue";
|
|
2
2
|
import { getFormModelFields as x } from "../../../../utils/page-init-util.js";
|
|
3
3
|
import { getVariableValue as d, formatValueByType as h } from "../../../../utils/page-helper-util.js";
|
|
4
4
|
import { SuperIcon as k } from "agilebuilder-ui";
|
|
@@ -8,9 +8,7 @@ const I = { style: { width: "100%", "text-align": "center", "font-weight": "700"
|
|
|
8
8
|
const R = e2, S = R.pageContext.entity ? R.pageContext.entity : {};
|
|
9
9
|
let P = x(R.pageContext, R.configure);
|
|
10
10
|
const q = R.configure.runtime ? R.configure.runtime : {}, O = q.style, A = q.class, z = q.headerStyle, D = q.appendClass, E = q.appendStyle, F = q.titleExceedStyle, N = t(q.props ? q.props : {});
|
|
11
|
-
const W = t(N.value.options ? N.value.options : []), B = N.value.formatType
|
|
12
|
-
N.value;
|
|
13
|
-
const G = l(() => {
|
|
11
|
+
const W = t(N.value.options ? N.value.options : []), B = N.value.formatType, G = l(() => {
|
|
14
12
|
let e3 = d(S, P);
|
|
15
13
|
if (B) if (N.value.hasOptions) {
|
|
16
14
|
let t2 = null;
|
|
@@ -30,7 +28,7 @@ const I = { style: { width: "100%", "text-align": "center", "font-weight": "700"
|
|
|
30
28
|
W.value = e3 || [];
|
|
31
29
|
} }), (e3, t2) => {
|
|
32
30
|
const l2 = u("el-form-item");
|
|
33
|
-
return N.value.whetherTittle ? (s(),
|
|
31
|
+
return N.value.whetherTittle ? (s(), i("div", { key: 0, ref_key: "titleRef", ref: K, class: r(f(A)), style: p(f(O)) }, [c("div", I, v(N.value.title), 1)], 6)) : N.value.tittleShow ? (s(), o(l2, { key: 1, ref_key: "formItemRef", ref: H, required: !!N.value.required, class: r([f(A), N.value.contentAlign ? "form-item-align-" + N.value.contentAlign : "formNo" === N.value.showType ? "form-item-align-flex-end" : ""]), "label-width": N.value.labelWidth, style: p(f(O)) }, { label: y(() => [N.value.tittleShow ? (s(), i("div", { key: 0, ref_key: "titleRef", ref: K, style: p({ ...f(z), ...f(F) }) }, v(f(_)(N.value.title)), 5)) : g("", true)]), default: y(() => [c("div", { style: { display: "flex", width: "100%", "justify-content": "space-between" }, ref_key: "componentRef", ref: J, onClick: t2[0] || (t2[0] = (t3) => f(C)(t3, e3.pageContext, e3.configure, "click")) }, [c("span", b, [N.value.preIconValue || N.value.preText ? (s(), i("span", { key: 0, class: r({ "el-input__suffix": "outer" != N.value.iconPosition, "el-input-group__append": "outer" == N.value.iconPosition }), style: p(f(E)) }, [N.value.preIconType && N.value.preIconValue ? (s(), o(f(k), { key: 0, iconType: N.value.preIconType, iconValue: N.value.preIconValue }, null, 8, ["iconType", "iconValue"])) : g("", true), m(" " + v(f(_)(N.value.preText)), 1)], 6)) : g("", true), m(" " + v(G.value), 1)]), N.value.sufIconValue || N.value.sufText ? (s(), i("span", { key: 0, class: r({ "el-input__suffix": "outer" != N.value.iconPosition, "el-input-group__append": "outer" == N.value.iconPosition }) }, [N.value.sufIconType && N.value.sufIconValue ? (s(), o(f(k), { key: 0, style: {}, iconType: N.value.sufIconType, iconValue: N.value.sufIconValue }, null, 8, ["iconType", "iconValue"])) : g("", true), c("span", null, " " + v(f(_)(N.value.sufText)), 1)], 2)) : g("", true)], 512)]), _: 1 }, 8, ["required", "class", "label-width", "style"])) : (s(), i("span", { key: 2, style: { display: "flex", "justify-content": "space-between" }, onClick: t2[1] || (t2[1] = (t3) => f(C)(t3, e3.pageContext, e3.configure, "click")) }, [c("span", { style: { overflow: "hidden", "white-space": "nowrap" }, title: G.value }, v(N.value.prefixIcon) + " " + v(G.value), 9, V), N.value.suffixTxt ? (s(), i("span", { key: 0, class: r(f(D)), style: p(f(E)) }, v(N.value.suffixTxt), 7)) : g("", true)]));
|
|
34
32
|
};
|
|
35
33
|
} });
|
|
36
34
|
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);
|
|
@@ -159,7 +159,7 @@ const N = { class: "toolbar-right-btns" }, R = ["title"], _ = { class: "richtext
|
|
|
159
159
|
const l2 = le.root.getElementsByTagName("img");
|
|
160
160
|
for (const e6 of l2) e6.src === t4 && (e6.width = 300, e6.src = n2.url, e6.setAttribute("data-uuid", n2.uuid));
|
|
161
161
|
} catch (e5) {
|
|
162
|
-
|
|
162
|
+
Ee();
|
|
163
163
|
} finally {
|
|
164
164
|
ae.value = false;
|
|
165
165
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as e, ref as
|
|
1
|
+
import { defineComponent as e, ref as t, computed as l, watch as o, onUnmounted as a, onMounted as n, nextTick as i, resolveComponent as u, createBlock as r, openBlock as s, normalizeStyle as p, normalizeClass as c, unref as f, withCtx as v, createVNode as g, createElementVNode as m, withKeys as d, withModifiers as h, createElementBlock as y, Fragment as x, renderList as b, createCommentVNode as C, toDisplayString as w, createTextVNode as _ } from "vue";
|
|
2
2
|
import { setVariableValue as k, getOptionDatasFromPage as S, queryOptionDatasources as T, autoSetAfterSelect as j, getVariableValue as A } from "../../../../utils/page-helper-util.js";
|
|
3
3
|
import { getFormModelFields as R } from "../../../../utils/page-init-util.js";
|
|
4
4
|
import { handleFormEvent as V, handleAfterInitEvent as M } from "../../../../utils/events/event-util.js";
|
|
@@ -10,33 +10,33 @@ import z from "clipboard";
|
|
|
10
10
|
import { ElMessage as E } from "element-plus";
|
|
11
11
|
import { useI18n as O } from "vue-i18n";
|
|
12
12
|
const W = { style: { "padding-left": "5px" } }, B = { style: { width: "100%" } }, F = { key: 0, style: { display: "flex", "flex-direction": "column" } }, K = { style: { color: "var(--el-text-color-secondary)", "font-size": "13px" } }, L = { style: { float: "left" } }, U = { style: { float: "right", color: "var(--el-text-color-secondary)" } }, $ = e({ __name: "select-runtime", props: { pageContext: {}, configure: {} }, setup(e2, { expose: $2 }) {
|
|
13
|
-
const { t: G } = O(), H = e2, J =
|
|
13
|
+
const { t: G } = O(), H = e2, J = t(null), N = H.pageContext.entity ? H.pageContext.entity : {};
|
|
14
14
|
let Q = R(H.pageContext, H.configure);
|
|
15
|
-
const X = H.configure.runtime ? H.configure.runtime : {}, Y = X.style, Z = X.class, ee = X.headerStyle,
|
|
16
|
-
let oe =
|
|
15
|
+
const X = H.configure.runtime ? H.configure.runtime : {}, Y = X.style, Z = X.class, ee = X.headerStyle, te = X.titleExceedStyle, le = t(X.props ? X.props : {});
|
|
16
|
+
let oe = t(le.value.optionDescriptionPosition && "default" !== le.value.optionDescriptionPosition), ae = [];
|
|
17
17
|
const ne = "copyBtn_" + H.configure.uuid + "_" + (/* @__PURE__ */ new Date()).getTime();
|
|
18
18
|
function ie() {
|
|
19
19
|
let e3 = A(N, Q);
|
|
20
|
-
return null != e3 && (e3 = String(e3)),
|
|
20
|
+
return null != e3 && (e3 = String(e3)), le.value.multiple && (e3 = e3 ? String(e3).split(",") : []), e3;
|
|
21
21
|
}
|
|
22
|
-
const ue =
|
|
23
|
-
const
|
|
24
|
-
ae = Array.isArray(
|
|
25
|
-
let
|
|
26
|
-
if (
|
|
27
|
-
|
|
22
|
+
const ue = l({ get: () => ie(), set(e3) {
|
|
23
|
+
const t2 = ie();
|
|
24
|
+
ae = Array.isArray(t2) ? [...t2] : t2;
|
|
25
|
+
let l2 = e3;
|
|
26
|
+
if (le.value.multiple) {
|
|
27
|
+
l2 = !!le.value.arrayValue ? Array.isArray(e3) ? e3 : e3 ? String(e3).split(",") : [] : Array.isArray(e3) ? e3.length > 0 ? e3.join(",") : "" : e3 ?? "";
|
|
28
28
|
}
|
|
29
|
-
void 0 ===
|
|
30
|
-
} }), re =
|
|
29
|
+
void 0 === l2 && (l2 = null), k(N, Q, l2), null != l2 && (J.value = "");
|
|
30
|
+
} }), re = t(le.value.options ? le.value.options : []), se = S(H.pageContext, H.configure);
|
|
31
31
|
se.length > 0 && (re.value = se);
|
|
32
|
-
const pe =
|
|
32
|
+
const pe = t(false), ce = H.configure.props && H.configure.props.dataOrigin ? H.configure.props.dataOrigin : {}, fe = ce.optionValueSetType;
|
|
33
33
|
let ve = [];
|
|
34
|
-
const ge =
|
|
34
|
+
const ge = le.value.optionconfigInfo ? le.value.optionconfigInfo : {};
|
|
35
35
|
if ("dynamicData" == fe || "dataTable" == fe || "service" == fe) {
|
|
36
36
|
if ("remote" == ce.filterType) {
|
|
37
37
|
let e3;
|
|
38
|
-
|
|
39
|
-
e3 !==
|
|
38
|
+
le.value.filterable = true, le.value.remote = true, le.value.remoteShowSuffix = true, le.value.remoteMethod = function(t2) {
|
|
39
|
+
e3 !== t2 && (e3 = t2, pe.value = true, T(H.pageContext, ge, t2).then((e4) => {
|
|
40
40
|
pe.value = false;
|
|
41
41
|
}).then((e4) => {
|
|
42
42
|
pe.value = false;
|
|
@@ -45,24 +45,24 @@ const W = { style: { "padding-left": "5px" } }, B = { style: { width: "100%" } }
|
|
|
45
45
|
}
|
|
46
46
|
if (ce.autoSets) for (let e3 of ce.autoSets) e3.source && ve.push(e3);
|
|
47
47
|
}
|
|
48
|
-
H.configure && H.configure.props && H.configure.props.base && H.configure.props.base.optionProp && ve.push({ source: "label", target: H.configure.props.base.optionProp }),
|
|
49
|
-
let
|
|
50
|
-
re.value && null != e3 && null != e3 && (
|
|
51
|
-
ve.length > 0 && j(H.configure, H.pageContext, ve,
|
|
52
|
-
|
|
48
|
+
H.configure && H.configure.props && H.configure.props.base && H.configure.props.base.optionProp && ve.push({ source: "label", target: H.configure.props.base.optionProp }), le.value.changeMethod = function(e3) {
|
|
49
|
+
let t2, l2 = null;
|
|
50
|
+
re.value && null != e3 && null != e3 && (l2 = re.value.filter((t3) => Array.isArray(e3) ? e3.includes(t3.value) : e3 === t3.value));
|
|
51
|
+
ve.length > 0 && j(H.configure, H.pageContext, ve, l2, [le.value.prop]);
|
|
52
|
+
l2 && l2.length > 0 && (t2 = l2[0]);
|
|
53
53
|
let o2 = {};
|
|
54
|
-
|
|
54
|
+
t2 && (o2.extendParams = t2);
|
|
55
55
|
o2.options = re.value, o2.oldValue = ae, V(e3, H.pageContext, H.configure, "change", o2);
|
|
56
56
|
};
|
|
57
|
-
const me =
|
|
57
|
+
const me = le.value.monitorFields, de = [];
|
|
58
58
|
if (me) {
|
|
59
59
|
const e3 = [];
|
|
60
|
-
for (let
|
|
61
|
-
|
|
62
|
-
const
|
|
63
|
-
"page" !==
|
|
60
|
+
for (let t2 of me) if (t2.startsWith("${")) {
|
|
61
|
+
t2 = t2.substring(2, t2.length - 1);
|
|
62
|
+
const l2 = t2.split(".");
|
|
63
|
+
"page" !== l2[0] && "task" !== l2[0] && "data" !== l2[0] || (de.push(l2), e3.includes(l2[0]) || e3.push(l2[0]));
|
|
64
64
|
}
|
|
65
|
-
for (let
|
|
65
|
+
for (let t2 of e3) o(N[t2], () => {
|
|
66
66
|
xe();
|
|
67
67
|
});
|
|
68
68
|
}
|
|
@@ -71,7 +71,7 @@ const W = { style: { "padding-left": "5px" } }, B = { style: { width: "100%" } }
|
|
|
71
71
|
ye && clearTimeout(ye), ye = setTimeout(function() {
|
|
72
72
|
const e3 = function() {
|
|
73
73
|
let e4 = [];
|
|
74
|
-
for (let
|
|
74
|
+
for (let t2 of de) e4.push(A(N, t2));
|
|
75
75
|
return e4.join(",");
|
|
76
76
|
}();
|
|
77
77
|
e3 != he && (he = e3, ge.watchAttrValue = e3, T(H.pageContext, ge, void 0).then((e4) => {
|
|
@@ -83,18 +83,18 @@ const W = { style: { "padding-left": "5px" } }, B = { style: { width: "100%" } }
|
|
|
83
83
|
ye && clearTimeout(ye);
|
|
84
84
|
});
|
|
85
85
|
let be = false;
|
|
86
|
-
const Ce =
|
|
86
|
+
const Ce = t(null), we = t(null), _e = t(null);
|
|
87
87
|
function ke() {
|
|
88
88
|
const e3 = ie();
|
|
89
89
|
if (null != e3 && "" !== e3 && e3.length > 0) {
|
|
90
|
-
let
|
|
91
|
-
return "string" == typeof e3 ? re.value.length > 0 ? re.value.forEach((
|
|
92
|
-
|
|
93
|
-
}) :
|
|
90
|
+
let t2 = "";
|
|
91
|
+
return "string" == typeof e3 ? re.value.length > 0 ? re.value.forEach((l2) => {
|
|
92
|
+
l2.value === e3 && (t2 = l2.label);
|
|
93
|
+
}) : t2 = e3 : re.value.length > 0 ? (re.value.forEach((l2) => {
|
|
94
94
|
e3.forEach((e4) => {
|
|
95
|
-
|
|
95
|
+
l2.value === e4 && (t2 = t2 + l2.label + ",");
|
|
96
96
|
});
|
|
97
|
-
}),
|
|
97
|
+
}), t2 = t2.slice(0, t2.length - 1)) : t2 = e3.join(","), t2;
|
|
98
98
|
}
|
|
99
99
|
}
|
|
100
100
|
return n(() => {
|
|
@@ -104,7 +104,6 @@ const W = { style: { "padding-left": "5px" } }, B = { style: { width: "100%" } }
|
|
|
104
104
|
e3.on("success", () => {
|
|
105
105
|
E({ showClose: true, type: "success", message: G("superPageRuntimeMessage.copySuccess") });
|
|
106
106
|
}), e3.on("error", (e4) => {
|
|
107
|
-
console.error("复制失败", e4);
|
|
108
107
|
}), i(() => {
|
|
109
108
|
const e4 = ue.value;
|
|
110
109
|
M(e4, H.pageContext, H.configure, { formItemRef: Ce.value, componentRef: we.value, titleRef: _e.value, value: e4, entity: H.pageContext.entity.data, pageData: H.pageContext.entity.page });
|
|
@@ -113,14 +112,14 @@ const W = { style: { "padding-left": "5px" } }, B = { style: { width: "100%" } }
|
|
|
113
112
|
if (re.value = e3 || [], !be) {
|
|
114
113
|
const e4 = ie();
|
|
115
114
|
if (null != e4 && "" !== e4 && re.value.length > 0) {
|
|
116
|
-
let
|
|
117
|
-
for (let
|
|
118
|
-
|
|
115
|
+
let t2 = false;
|
|
116
|
+
for (let l2 of re.value) if (l2.value == e4) {
|
|
117
|
+
t2 = true;
|
|
119
118
|
break;
|
|
120
119
|
}
|
|
121
|
-
if (!
|
|
122
|
-
for (let
|
|
123
|
-
ue.value =
|
|
120
|
+
if (!t2) {
|
|
121
|
+
for (let t3 of re.value) if (t3.label == e4) {
|
|
122
|
+
ue.value = t3.value;
|
|
124
123
|
break;
|
|
125
124
|
}
|
|
126
125
|
}
|
|
@@ -131,10 +130,10 @@ const W = { style: { "padding-left": "5px" } }, B = { style: { width: "100%" } }
|
|
|
131
130
|
J.value = I();
|
|
132
131
|
}, getSelectItemsTitle: ke, getOptions: function() {
|
|
133
132
|
return re.value;
|
|
134
|
-
} }), (e3,
|
|
135
|
-
const
|
|
136
|
-
return s(), r(i2, { ref_key: "formItemRef", ref: Ce, required: !!
|
|
137
|
-
}, ["stop"]), ["space"])), onChange:
|
|
133
|
+
} }), (e3, t2) => {
|
|
134
|
+
const l2 = u("el-icon"), o2 = u("el-option"), a2 = u("el-select"), n2 = u("el-popover"), i2 = u("el-form-item");
|
|
135
|
+
return s(), r(i2, { ref_key: "formItemRef", ref: Ce, required: !!le.value.required, class: c(f(Z) + (J.value ? " " + J.value : "")), "label-width": le.value.labelWidth, style: p(f(Y)) }, { label: v(() => [le.value.tittleShow ? (s(), y("div", { key: 0, ref_key: "titleRef", ref: _e, style: p({ ...f(ee), ...f(te) }) }, [le.value.prefixType ? (s(), r(P, { key: 0, pageContext: e3.pageContext, property: le.value }, null, 8, ["pageContext", "property"])) : (s(), y(x, { key: 1 }, [_(w(f(D)(le.value.title)), 1)], 64))], 4)) : C("", true)]), default: v(() => [g(n2, { placement: "top", trigger: "hover" }, { reference: v(() => [m("div", B, [g(a2, { ref_key: "componentRef", ref: we, style: { width: "100%" }, disabled: "disabled" === le.value.state, size: le.value.size, clearable: le.value.clearable, multiple: le.value.multiple, "collapse-tags": le.value.collapseTags, "collapse-tags-tooltip": le.value.collapseTagsTooltip, filterable: le.value.filterable, "allow-create": le.value.allowCreate, placeholder: le.value.placeholder, "remote-show-suffix": le.value.remoteShowSuffix, remote: le.value.remote, "remote-method": le.value.remoteMethod, loading: pe.value, onKeydown: t2[0] || (t2[0] = d(h(() => {
|
|
136
|
+
}, ["stop"]), ["space"])), onChange: le.value.changeMethod, onClear: le.value.changeMethod, modelValue: ue.value, "onUpdate:modelValue": t2[1] || (t2[1] = (e4) => ue.value = e4) }, { default: v(() => [(s(true), y(x, null, b(re.value, (t3) => (s(), r(o2, { key: t3.value, label: t3.label, value: t3.value, class: c({ "option-description-newLine": f(oe) }), onClick: (l3) => f(V)(t3.value, e3.pageContext, e3.configure, "click", { values: ue.value }) }, { default: v(() => [t3._description_ ? (s(), y(x, { key: 0 }, [f(oe) ? (s(), y("div", F, [m("span", null, w(t3.label), 1), m("span", K, w(t3._description_), 1)])) : (s(), y(x, { key: 1 }, [m("span", L, w(t3.label), 1), m("span", U, w(t3._description_), 1)], 64))], 64)) : C("", true)]), _: 2 }, 1032, ["label", "value", "class", "onClick"]))), 128))]), _: 1 }, 8, ["disabled", "size", "clearable", "multiple", "collapse-tags", "collapse-tags-tooltip", "filterable", "allow-create", "placeholder", "remote-show-suffix", "remote", "remote-method", "loading", "onChange", "onClear", "modelValue"])])]), default: v(() => [m("span", W, [g(l2, { id: ne }, { default: v(() => [g(f(q))]), _: 1 })])]), _: 1 })]), _: 1 }, 8, ["required", "class", "label-width", "style"]);
|
|
138
137
|
};
|
|
139
138
|
} });
|
|
140
139
|
export {
|
|
@@ -3,13 +3,13 @@ import C from "./error-render.vue.js";
|
|
|
3
3
|
import { getRuntimeComponentByName as v } from "../../utils/assemblys-config.js";
|
|
4
4
|
import { PageDimensions as b } from "../../utils/interfaces/page-design-types.js";
|
|
5
5
|
import { addComponentRef as h, addComponentRefByCode as x } from "../../utils/global-refs.js";
|
|
6
|
-
import { getPermissionCodes as y, packageFormRules as
|
|
6
|
+
import { getPermissionCodes as y, packageFormRules as j, controlObjectRenderState as w } from "../../utils/page-init-util.js";
|
|
7
7
|
import { caculateShowCondition as M, getFormPropName as _, getSizeConfig as A } from "../../utils/page-helper-util.js";
|
|
8
|
-
import { isWorkflowPage as T, getPropClassName as $, isNumber as
|
|
9
|
-
import { isShowMobileEvent as
|
|
10
|
-
import { usePageContextStore as
|
|
11
|
-
import { isHasFieldAuth as
|
|
12
|
-
import { checkPermission as
|
|
8
|
+
import { isWorkflowPage as T, getPropClassName as $, isNumber as N } from "../../utils/common-util.js";
|
|
9
|
+
import { isShowMobileEvent as O, isShowComponent as P } from "../../utils/events/event-util.js";
|
|
10
|
+
import { usePageContextStore as S } from "../../utils/page-store.js";
|
|
11
|
+
import { isHasFieldAuth as B } from "../../utils/table-utils.js";
|
|
12
|
+
import { checkPermission as H } from "agilebuilder-ui/src/utils/permission.js";
|
|
13
13
|
import { isMobileBrowser as R } from "agilebuilder-ui/src/utils/common-util";
|
|
14
14
|
const F = e({ __name: "object-render", props: { pageContext: {}, configure: {} }, setup(e2) {
|
|
15
15
|
var _a, _b;
|
|
@@ -17,8 +17,8 @@ const F = e({ __name: "object-render", props: { pageContext: {}, configure: {} }
|
|
|
17
17
|
null == F2.configure.style && (F2.configure.style = {});
|
|
18
18
|
const k = y(F2.configure, F2.pageContext);
|
|
19
19
|
F2.configure && F2.configure.props && F2.configure.props.base && (F2.configure.props.base.functionCode = k);
|
|
20
|
-
const D =
|
|
21
|
-
F2.configure && F2.configure.props && F2.configure.props.base && (F2.configure.props.base.isHasFieldAuthPermission = J),
|
|
20
|
+
const D = H(k || "true", F2.pageContext.systemCode), E = B(F2.pageContext, F2.configure), J = D && E;
|
|
21
|
+
F2.configure && F2.configure.props && F2.configure.props.base && (F2.configure.props.base.isHasFieldAuthPermission = J), j(F2.pageContext, F2.configure, J);
|
|
22
22
|
let L = o(null), W = o(true), q = o("");
|
|
23
23
|
if (F2.configure && F2.configure.props) {
|
|
24
24
|
let e3 = [];
|
|
@@ -26,7 +26,7 @@ const F = e({ __name: "object-render", props: { pageContext: {}, configure: {} }
|
|
|
26
26
|
var _a2;
|
|
27
27
|
let o2 = true;
|
|
28
28
|
if (J) if (L.value && null !== L.value) o2 = "show" === L.value;
|
|
29
|
-
else if (
|
|
29
|
+
else if (O(F2.pageContext, F2.configure)) if (e3 && e3.length > 0) o2 = M(F2.pageContext, e3);
|
|
30
30
|
else {
|
|
31
31
|
const e4 = (_a2 = F2.configure.props.base) == null ? void 0 : _a2.state;
|
|
32
32
|
e4 && "hidden" === e4 && (o2 = false);
|
|
@@ -70,7 +70,7 @@ const F = e({ __name: "object-render", props: { pageContext: {}, configure: {} }
|
|
|
70
70
|
const t2 = V.style[e3 + "_class"];
|
|
71
71
|
t2 && (Q.value += " " + t2);
|
|
72
72
|
}
|
|
73
|
-
const X =
|
|
73
|
+
const X = S();
|
|
74
74
|
function Y(e3) {
|
|
75
75
|
if (I.value = e3, e3 && !e3.show && (e3.show = function() {
|
|
76
76
|
L.value = "show";
|
|
@@ -90,7 +90,7 @@ const F = e({ __name: "object-render", props: { pageContext: {}, configure: {} }
|
|
|
90
90
|
const o2 = F2.configure.props ? F2.configure.props.base : null;
|
|
91
91
|
if (o2 && o2.prop) {
|
|
92
92
|
let e4 = o2.prop;
|
|
93
|
-
e4 = _(e4),
|
|
93
|
+
e4 = _(e4), w(F2.pageContext, e4), F2.pageContext.propTitleMap = F2.pageContext.propTitleMap || {}, F2.pageContext.propTitleMap[e4] = o2.title ? o2.title : e4;
|
|
94
94
|
}
|
|
95
95
|
!function() {
|
|
96
96
|
if (!I.value) return;
|
|
@@ -118,16 +118,14 @@ const F = e({ __name: "object-render", props: { pageContext: {}, configure: {} }
|
|
|
118
118
|
const o2 = e3.parentNode;
|
|
119
119
|
if (!e3 || !o2) return;
|
|
120
120
|
const t2 = e3.getBoundingClientRect();
|
|
121
|
-
let n2 = window.innerHeight - t2.y - 30;
|
|
122
|
-
window.innerHeight, t2.y;
|
|
123
|
-
let i2 = n2 + "";
|
|
121
|
+
let n2 = window.innerHeight - t2.y - 30, i2 = n2 + "";
|
|
124
122
|
if ("tabs" === F2.configure.name && F2.pageContext.isDialog && !R()) {
|
|
125
123
|
const o3 = e3.closest(".runtime-page-container");
|
|
126
124
|
if (o3) {
|
|
127
125
|
const e4 = o3.getBoundingClientRect(), s2 = t2.y - e4.y;
|
|
128
126
|
n2 = e4.height - s2 - 30, i2 = n2 + "px";
|
|
129
127
|
}
|
|
130
|
-
} else
|
|
128
|
+
} else N(n2) && (i2 = n2 + "px");
|
|
131
129
|
K.value.height = i2, K.value["overflow-y"] = "auto", K.value["overflow-x"] = "hidden", F2.configure.sytle || (F2.configure.sytle = {}), F2.configure.sytle._heightStyle = i2;
|
|
132
130
|
}
|
|
133
131
|
i(() => {
|
|
@@ -146,7 +144,7 @@ const F = e({ __name: "object-render", props: { pageContext: {}, configure: {} }
|
|
|
146
144
|
const t2 = F2.configure.props ? F2.configure.props : {}, n2 = F2.configure.style ? F2.configure.style : {}, i2 = t2.position;
|
|
147
145
|
"top" == i2 || "bottom" == i2 || n2.position;
|
|
148
146
|
};
|
|
149
|
-
return (e3, o2) => l(J) && l(
|
|
147
|
+
return (e3, o2) => l(J) && l(P)(e3.configure) ? r((p(), a(c(z.value), { key: 0, ref: Y, style: f(K.value), class: g(Q.value), configure: e3.configure, pageContext: e3.pageContext }, null, 8, ["style", "class", "configure", "pageContext"])), [[m, l(W)]]) : u("", true);
|
|
150
148
|
} });
|
|
151
149
|
export {
|
|
152
150
|
F as default
|
|
@@ -7,12 +7,12 @@ import { initPageEvents as f } from "../utils/events/event-util.js";
|
|
|
7
7
|
import { setHomeChartInitConfigValue as v } from "../utils/charts/chart-util.js";
|
|
8
8
|
import { useI18n as C } from "vue-i18n";
|
|
9
9
|
const y = { "element-loading-text": "加载中..." }, S = { key: 1 }, b = e({ name: "HomeChart", inheritAttrs: false, __name: "home-chart", props: { chartUuid: { type: String, default: "" }, homeChartSettingUserId: { type: Number, default: 0 } }, setup(e2) {
|
|
10
|
-
const { t: b2 } = C(), I = e2, U = t(true),
|
|
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,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as e, ref as a, getCurrentInstance as t, onMounted as l, onUpdated as
|
|
1
|
+
import { defineComponent as e, ref as a, getCurrentInstance as t, onMounted as l, onUpdated as u, nextTick as o, 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
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";
|
|
@@ -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
|
|
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 ue, getAdditionalParamMap as oe } 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";
|
|
@@ -30,7 +30,7 @@ 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
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),
|
|
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), ua = a(null), oa = 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;
|
|
@@ -50,7 +50,7 @@ const Se = e({ __name: "super-page", props: { pageCode: { type: String, required
|
|
|
50
50
|
t3 && t3.length > 0 && j(e4, t3, void 0);
|
|
51
51
|
}(na.value, e3.initOptionConfigs);
|
|
52
52
|
}, 0), ca = setTimeout(() => {
|
|
53
|
-
|
|
53
|
+
!function(e4, a3) {
|
|
54
54
|
if (!a3 || 0 == a3.length) return;
|
|
55
55
|
if (e4.initChartData = {}, e4.initChartData.data = de(e4.entity.data), e4.initChartData.page = de(e4.entity.page), a3 && a3.length > 0) {
|
|
56
56
|
const t3 = a3.filter((e5) => false !== e5.initializationQuery);
|
|
@@ -96,25 +96,24 @@ const Se = e({ __name: "super-page", props: { pageCode: { type: String, required
|
|
|
96
96
|
}), W.$on(He.value + "prohibit-edit", (e4) => {
|
|
97
97
|
}), W.$on(He.value + "open-dialog", (e4) => {
|
|
98
98
|
var a3, t3, l3;
|
|
99
|
-
la.value = e4.pageContext,
|
|
100
|
-
return new Promise((l4,
|
|
99
|
+
la.value = e4.pageContext, ua.value = e4.configureObj, oa.value = e4.eventParams, a3 = ua.value, t3 = oa.value, l3 = e4.jumpPageSetting, function(e5, a4, t4) {
|
|
100
|
+
return new Promise((l4, u2) => {
|
|
101
101
|
var _a3;
|
|
102
102
|
if (t4) l4(t4);
|
|
103
103
|
else {
|
|
104
104
|
const t5 = e5 && e5.props && e5.props.linkPage ? e5.props.linkPage : null;
|
|
105
105
|
if (t5 && t5.jumpPageUrl) {
|
|
106
106
|
false !== t5.isNewPage && true !== t5.isNewPage && (t5.isNewPage = true);
|
|
107
|
-
const e6 =
|
|
108
|
-
|
|
109
|
-
let u2 = o3 && a4 ? a4.id : null, n2 = o3 && a4 ? a4.ids : null, i2 = a4 ? a4.selections : [], s2 = a4 ? a4.row : null;
|
|
107
|
+
const e6 = oe(na), u3 = !!((_a3 = ua.value.props.linkPage) == null ? void 0 : _a3.isNeedId);
|
|
108
|
+
let o2 = u3 && a4 ? a4.id : null, n2 = u3 && a4 ? a4.ids : null, i2 = a4 ? a4.selections : [], s2 = a4 ? a4.row : null;
|
|
110
109
|
if (!s2) if (s2 = {}, i2 && i2.length > 0) s2 = i2[0];
|
|
111
110
|
else {
|
|
112
111
|
const e7 = la.value.entity.data, a5 = la.value.entity.page;
|
|
113
112
|
a5 && Object.assign(s2, a5), e7 && Object.assign(s2, e7);
|
|
114
113
|
}
|
|
115
114
|
const r2 = de(la.value.entity.page);
|
|
116
|
-
t5._pageData = r2, ce(t5, null,
|
|
117
|
-
e7.isNeedId =
|
|
115
|
+
t5._pageData = r2, ce(t5, null, o2, s2, e6, n2).then((e7) => {
|
|
116
|
+
e7.isNeedId = u3, l4(e7);
|
|
118
117
|
});
|
|
119
118
|
} else l4(false);
|
|
120
119
|
}
|
|
@@ -124,12 +123,12 @@ const Se = e({ __name: "super-page", props: { pageCode: { type: String, required
|
|
|
124
123
|
let t4 = {};
|
|
125
124
|
const l4 = a3 && a3.props && a3.props.linkPage ? a3.props.linkPage : null;
|
|
126
125
|
l4 && Object.assign(t4, de(l4)), Object.assign(t4, e5), ye(t4, pa);
|
|
127
|
-
const
|
|
128
|
-
if (
|
|
129
|
-
const e6 =
|
|
126
|
+
const u2 = t4.jumpMode, o2 = t4;
|
|
127
|
+
if (oa.value || (oa.value = {}), oa.value.paramStoreId = t4.paramStoreId, o2.parentPageCode = la.value.code, o2.parentPageVersion = la.value.version, o2.isNewPage = true, "popup" === u2 || "refresh" === u2) {
|
|
128
|
+
const e6 = o2.linkType;
|
|
130
129
|
(function(e7, a4) {
|
|
131
130
|
const t5 = fe();
|
|
132
|
-
return new Promise((l5,
|
|
131
|
+
return new Promise((l5, u3) => {
|
|
133
132
|
if (t5) if ("popup" !== a4 && !pa || la.value.systemCode === e7.customSystem) l5(true);
|
|
134
133
|
else if (e7.customSystem) {
|
|
135
134
|
const a5 = e7.customSystem;
|
|
@@ -138,11 +137,11 @@ const Se = e({ __name: "super-page", props: { pageCode: { type: String, required
|
|
|
138
137
|
}).catch(() => {
|
|
139
138
|
l5(true);
|
|
140
139
|
});
|
|
141
|
-
} else ne({ showClose: true, type: "error", message: we("superPageRuntimeMessage.popMsg") }),
|
|
140
|
+
} else ne({ showClose: true, type: "error", message: we("superPageRuntimeMessage.popMsg") }), l5(false);
|
|
142
141
|
else l5(true);
|
|
143
142
|
});
|
|
144
|
-
})(
|
|
145
|
-
a4 && (pa && (la.value.systemCode !==
|
|
143
|
+
})(o2, u2).then((a4) => {
|
|
144
|
+
a4 && (pa && (la.value.systemCode !== o2.customSystem || e6 && "url" === e6) ? (o2._isIframe = true, "refresh" === u2 && (o2.dialogType = "drawer", o2.jumpPageWidth = "100%"), ta.value = o2, aa.value = true) : (o2._isIframe = false, "popup" === u2 ? (ta.value = o2, aa.value = true) : "refresh" === u2 && qa.push({ path: "/dsc/page", query: o2 })));
|
|
146
145
|
}), W.$on(He.value + "close-dialog", (e7) => {
|
|
147
146
|
!function(e8) {
|
|
148
147
|
const a4 = e8.jumpMode;
|
|
@@ -150,7 +149,7 @@ const Se = e({ __name: "super-page", props: { pageCode: { type: String, required
|
|
|
150
149
|
}(e7);
|
|
151
150
|
});
|
|
152
151
|
}
|
|
153
|
-
}
|
|
152
|
+
}
|
|
154
153
|
});
|
|
155
154
|
}), W.$on(He.value + "save-chart-condition", (e4) => {
|
|
156
155
|
ga.value = true;
|
|
@@ -166,7 +165,7 @@ const Se = e({ __name: "super-page", props: { pageCode: { type: String, required
|
|
|
166
165
|
}
|
|
167
166
|
const Pa = t();
|
|
168
167
|
function ba() {
|
|
169
|
-
|
|
168
|
+
o(() => {
|
|
170
169
|
var _a2, _b;
|
|
171
170
|
const e3 = Oe.value.parentNode ? Oe.value.parentNode : Oe.value;
|
|
172
171
|
if (na.value && (na.value.pageRuntimeStyle || (na.value.pageRuntimeStyle = {}), !pa)) {
|
|
@@ -211,8 +210,8 @@ const Se = e({ __name: "super-page", props: { pageCode: { type: String, required
|
|
|
211
210
|
Te.value = false, "form" === na.value.pageType && je.setPageToChatStore(Pa, na.value);
|
|
212
211
|
}));
|
|
213
212
|
}();
|
|
214
|
-
}),
|
|
215
|
-
|
|
213
|
+
}), u(() => {
|
|
214
|
+
o(() => {
|
|
216
215
|
na.value && Oe.value && q(na.value, "-1", Oe);
|
|
217
216
|
});
|
|
218
217
|
}), n(() => {
|
|
@@ -235,30 +234,30 @@ const Se = e({ __name: "super-page", props: { pageCode: { type: String, required
|
|
|
235
234
|
function Ta(e3) {
|
|
236
235
|
var _a2, _b;
|
|
237
236
|
const a2 = ta.value.closeEvent, t2 = ta.value.isRefreshWhenClosePopup;
|
|
238
|
-
let l2,
|
|
239
|
-
const
|
|
237
|
+
let l2, u2;
|
|
238
|
+
const o2 = la.value.tableName;
|
|
240
239
|
let n2;
|
|
241
|
-
const i2 =
|
|
240
|
+
const i2 = oa.value.columnProp ? oa.value.columnProp : null;
|
|
242
241
|
if (i2) {
|
|
243
|
-
const e4 = (_b = (_a2 =
|
|
242
|
+
const e4 = (_b = (_a2 = ua.value) == null ? void 0 : _a2.items) == null ? void 0 : _b.filter((e5) => {
|
|
244
243
|
var _a3, _b2, _c, _d;
|
|
245
244
|
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;
|
|
246
245
|
});
|
|
247
246
|
n2 = e4 && e4.length > 0 ? e4[0] : null;
|
|
248
|
-
} else n2 =
|
|
247
|
+
} else n2 = ua.value;
|
|
249
248
|
if (e3) {
|
|
250
249
|
const a3 = e3.isNeedValueMapping;
|
|
251
|
-
l2 = e3.dataModel,
|
|
250
|
+
l2 = e3.dataModel, u2 = e3.sourceTableName, a3 && te(la.value, n2, l2, u2, ta.value ? ta.value.valueMappings : null);
|
|
252
251
|
}
|
|
253
|
-
O(null, la.value, n2, "closePopup", { sourceModel: l2, sourceTableName:
|
|
252
|
+
O(null, la.value, n2, "closePopup", { sourceModel: l2, sourceTableName: u2, jumpPageSetting: ta.value, entity: la.value.entity.data, targetTableName: o2, pageContext: na.value, parentPageContext: la.value, parentConfigureObj: n2, columnProp: i2 }), function(e4, a3, t3) {
|
|
254
253
|
if (e4) {
|
|
255
254
|
const l3 = I(la.value, e4);
|
|
256
255
|
l3 && l3.apply(l3, [{ pageContext: na.value, parentPageContext: la.value, parentConfigureObj: t3, jumpPageSetting: ta.value, columnProp: a3 }]);
|
|
257
256
|
}
|
|
258
|
-
}(a2, i2, n2), le(la.value,
|
|
257
|
+
}(a2, i2, n2), le(la.value, ua.value, t2, void 0 !== t2 && false === t2 ? "noOperation" : null), la.value = null, ua.value = null, oa.value = null, W.$off(He.value + "close-dialog"), aa.value = false;
|
|
259
258
|
}
|
|
260
259
|
function Ra(e3) {
|
|
261
|
-
|
|
260
|
+
ue(na.value, e3).then((e4) => {
|
|
262
261
|
ne({ showClose: true, type: "success", message: we("superPageRuntimeMessage.successfulSave") }), fa.value.refreshConditionList();
|
|
263
262
|
});
|
|
264
263
|
}
|
|
@@ -288,7 +287,7 @@ const Se = e({ __name: "super-page", props: { pageCode: { type: String, required
|
|
|
288
287
|
const e5 = $a.value.files[0];
|
|
289
288
|
e5 ? ($a.value.value = null, Q(Ee.value, e5)) : ne({ showClose: true, type: "warning", message: we("superPageRuntimeMessage.noFileSelected") });
|
|
290
289
|
}
|
|
291
|
-
}()) }, 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:
|
|
290
|
+
}()) }, 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: oa.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]]);
|
|
292
291
|
};
|
|
293
292
|
} });
|
|
294
293
|
export {
|
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: "未查询到图表定义", xxxNotEmpty: "{label}不能为空", successfulStart: "起草成功", successfulInitiateExtract: "发起成功", successfulCancelExtract: "取消成功", taskMeaage1: "当前任务为子流程,不能进行减少办理人操作", taskMeaage2: "当前流程已结束或已取消或当前任务为并发环节,不能进行减少办理人操作", taskMeaage3: "当前任务只有一个办理人,不能再减少", taskMeaage4: "流程已结束或有并发环节,无法跳转环节", taskMeaage5: "以下任务请使用修改办理人", delTransactor: "减少办理人", handledBy: "办理人为", pleaseSelectRemoverTransactors: "请选择要减少的办理人", copySuccess: "复制成功",
|
|
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}不能为空", successfulStart: "起草成功", successfulInitiateExtract: "发起成功", successfulCancelExtract: "取消成功", taskMeaage1: "当前任务为子流程,不能进行减少办理人操作", taskMeaage2: "当前流程已结束或已取消或当前任务为并发环节,不能进行减少办理人操作", taskMeaage3: "当前任务只有一个办理人,不能再减少", taskMeaage4: "流程已结束或有并发环节,无法跳转环节", taskMeaage5: "以下任务请使用修改办理人", delTransactor: "减少办理人", handledBy: "办理人为", pleaseSelectRemoverTransactors: "请选择要减少的办理人", copySuccess: "复制成功", transactorNames: "办理人姓名", doingExtractFormData: "抽单办理中", nodeTrustorName: "委托人:", logTip: "日志提示", hasReadTip: "已读", success: "成功", fail: "失败", partSucess: "部分成功", doing: "进行中", asyncExportType: "异步导出", asyncImportType: "异步导入", startExecute: "开始执行", endExecute: "执行结束" }, chartMessage: { saveAsImage: "保存为图片", restore: "还原", dataView: "数据视图", zoomIn: "放大", zoomOut: "缩小", magicType: "动态类型切换", brush: "刷选", close: "关闭", refresh: "刷新" } };
|
|
2
2
|
export {
|
|
3
3
|
e as default
|
|
4
4
|
};
|