super-page-runtime 2.3.5 → 2.3.6-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/api/page-expose-util.js +78 -70
- package/dist/es/components/runtime/utils/charts/chart-util.js +1 -1
- package/dist/es/components/runtime/utils/common-util.d.ts +1 -1
- package/dist/es/components/runtime/utils/common-util.js +62 -47
- 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 +21 -19
- package/dist/es/components/runtime/utils/events/validator-util.js +23 -23
- package/dist/es/components/runtime/utils/page-init-util.d.ts +1 -1
- package/dist/es/components/runtime/utils/page-init-util.js +45 -33
- package/dist/es/components/runtime/utils/page-store.js +10 -10
- package/dist/es/components/runtime/utils/table-utils.d.ts +14 -0
- package/dist/es/components/runtime/utils/table-utils.js +57 -32
- 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/common/common-homepage-search.vue2.js +3 -3
- package/dist/es/components/runtime/views/assemblys/chart/table/chart-table-util.d.ts +10 -2
- package/dist/es/components/runtime/views/assemblys/chart/table/chart-table-util.js +36 -33
- package/dist/es/components/runtime/views/assemblys/chart/table/normal-column.vue.js +6 -6
- package/dist/es/components/runtime/views/assemblys/chart/table/table-runtime.vue2.js +131 -131
- package/dist/es/components/runtime/views/assemblys/common/export-form-report-dialog.vue.d.ts +8 -4
- package/dist/es/components/runtime/views/assemblys/common/export-form-report-dialog.vue.js +26 -26
- 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 +9 -10
- package/dist/es/components/runtime/views/assemblys/data/table/sub-table-runtime.vue.js +48 -48
- package/dist/es/components/runtime/views/assemblys/data/table/table-runtime.vue2.js +42 -42
- package/dist/es/components/runtime/views/assemblys/data/tree/tree-runtime.vue.js +1 -1
- package/dist/es/components/runtime/views/assemblys/data/tree/tree-runtime.vue2.js +15 -15
- package/dist/es/components/runtime/views/assemblys/form/custom/custom-runtime.vue2.js +22 -21
- package/dist/es/components/runtime/views/assemblys/form/date-picker/datepicker-runtime.vue2.js +32 -32
- 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 +45 -46
- 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 +0 -1
- package/dist/es/components/runtime/views/assemblys/form/select/select-runtime.vue2.js +60 -51
- package/dist/es/components/runtime/views/assemblys/object-render.vue.js +69 -67
- 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.d.ts +2 -2
- package/dist/es/components/runtime/views/super-page.vue.js +1 -1
- package/dist/es/components/runtime/views/super-page.vue2.js +11 -12
- package/dist/es/style.css +82 -82
- package/package.json +2 -2
- package/dist/es.zip +0 -0
|
@@ -1,126 +1,128 @@
|
|
|
1
|
-
import { defineComponent as e, ref as o, computed as t, markRaw as n, onMounted as
|
|
2
|
-
import
|
|
3
|
-
import { getRuntimeComponentByName as
|
|
4
|
-
import { PageDimensions as
|
|
5
|
-
import { addComponentRef as
|
|
6
|
-
import { getPermissionCodes as
|
|
7
|
-
import { caculateShowCondition as
|
|
8
|
-
import { isWorkflowPage as
|
|
9
|
-
import { isShowMobileEvent as
|
|
10
|
-
import { usePageContextStore as
|
|
1
|
+
import { defineComponent as e, ref as o, computed as t, markRaw as n, onMounted as i, onUnmounted as s, withDirectives as r, createCommentVNode as u, unref as l, createBlock as p, openBlock as a, resolveDynamicComponent as c, normalizeClass as g, normalizeStyle as f, vShow as m, nextTick as d } from "vue";
|
|
2
|
+
import C from "./error-render.vue.js";
|
|
3
|
+
import { getRuntimeComponentByName as v } from "../../utils/assemblys-config.js";
|
|
4
|
+
import { PageDimensions as b } from "../../utils/interfaces/page-design-types.js";
|
|
5
|
+
import { addComponentRef as x, addComponentRefByCode as h } from "../../utils/global-refs.js";
|
|
6
|
+
import { getPermissionCodes as y, packageFormRules as j, controlObjectRenderState as w } from "../../utils/page-init-util.js";
|
|
7
|
+
import { caculateShowCondition as N, getFormPropName as _, getSizeConfig as P } from "../../utils/page-helper-util.js";
|
|
8
|
+
import { isWorkflowPage as L, getPropClassName as O, isNumber as S } from "../../utils/common-util.js";
|
|
9
|
+
import { isShowMobileEvent as H, isShowComponent as T } from "../../utils/events/event-util.js";
|
|
10
|
+
import { usePageContextStore as $ } from "../../utils/page-store.js";
|
|
11
|
+
import { isHasFieldAuth as F } from "../../utils/table-utils.js";
|
|
12
|
+
import { checkPermission as M } from "agilebuilder-ui/src/utils/permission.js";
|
|
11
13
|
const k = e({ __name: "object-render", props: { pageContext: {}, configure: {} }, setup(e2) {
|
|
12
14
|
var _a, _b;
|
|
13
15
|
const k2 = e2;
|
|
14
16
|
null == k2.configure.style && (k2.configure.style = {});
|
|
15
|
-
const
|
|
16
|
-
k2.configure && k2.configure.props && k2.configure.props.base && (k2.configure.props.base.functionCode =
|
|
17
|
-
|
|
17
|
+
const A = y(k2.configure, k2.pageContext);
|
|
18
|
+
k2.configure && k2.configure.props && k2.configure.props.base && (k2.configure.props.base.functionCode = A);
|
|
19
|
+
const B = M(A || "true", k2.pageContext.systemCode), E = F(k2.pageContext, k2.configure), J = B && E;
|
|
20
|
+
k2.configure && k2.configure.props && k2.configure.props.base && (k2.configure.props.base.isHasFieldAuthPermission = J), j(k2.pageContext, k2.configure, J);
|
|
21
|
+
let R = o(null), W = o(true), q = o("");
|
|
18
22
|
if (k2.configure && k2.configure.props) {
|
|
19
23
|
let e3 = [];
|
|
20
|
-
((_a = k2.configure.props.base) == null ? void 0 : _a.showConditions) && (e3 = "string" == typeof k2.configure.props.base.showConditions ? JSON.parse(k2.configure.props.base.showConditions) : k2.configure.props.base.showConditions),
|
|
24
|
+
((_a = k2.configure.props.base) == null ? void 0 : _a.showConditions) && (e3 = "string" == typeof k2.configure.props.base.showConditions ? JSON.parse(k2.configure.props.base.showConditions) : k2.configure.props.base.showConditions), W = t(() => {
|
|
21
25
|
var _a2;
|
|
22
26
|
let o2 = true;
|
|
23
|
-
if (
|
|
24
|
-
else if (
|
|
27
|
+
if (J) if (R.value && null !== R.value) o2 = "show" === R.value;
|
|
28
|
+
else if (H(k2.pageContext, k2.configure)) if (e3 && e3.length > 0) o2 = N(k2.pageContext, e3);
|
|
25
29
|
else {
|
|
26
30
|
const e4 = (_a2 = k2.configure.props.base) == null ? void 0 : _a2.state;
|
|
27
31
|
e4 && "hidden" === e4 && (o2 = false);
|
|
28
32
|
}
|
|
29
33
|
else o2 = false;
|
|
34
|
+
else o2 = false;
|
|
30
35
|
return o2;
|
|
31
36
|
});
|
|
32
|
-
if (k2.configure._dynamicShowFlag =
|
|
37
|
+
if (k2.configure._dynamicShowFlag = W, (_b = k2.configure.props.base) == null ? void 0 : _b.editConditions) {
|
|
33
38
|
const e4 = k2.configure.props.base.editConditions;
|
|
34
39
|
if (e4.length > 0) {
|
|
35
40
|
const o2 = k2.configure.runtime ? k2.configure.runtime : {}, n2 = o2.props ? o2.props : {};
|
|
36
|
-
if (n2.rawSate = n2.state,
|
|
41
|
+
if (n2.rawSate = n2.state, L(k2.pageContext) && k2.pageContext.fieldPermissionMap) {
|
|
37
42
|
const e5 = k2.configure.props.base;
|
|
38
43
|
if (e5 && e5.prop) {
|
|
39
44
|
let o3 = e5.prop;
|
|
40
|
-
o3 =
|
|
45
|
+
o3 = _(o3);
|
|
41
46
|
const t2 = k2.pageContext.fieldPermissionMap.get(o3);
|
|
42
|
-
t2 && false === t2.canEdit && (
|
|
47
|
+
t2 && false === t2.canEdit && (q.value = "disabled");
|
|
43
48
|
}
|
|
44
49
|
}
|
|
45
50
|
n2.state = t({ get() {
|
|
46
|
-
if ("disabled" ===
|
|
47
|
-
return
|
|
51
|
+
if ("disabled" === q.value) return q.value;
|
|
52
|
+
return N(k2.pageContext, e4) ? "" : "disabled";
|
|
48
53
|
}, set() {
|
|
49
54
|
} });
|
|
50
55
|
}
|
|
51
56
|
}
|
|
52
57
|
}
|
|
53
|
-
const
|
|
54
|
-
|
|
55
|
-
const
|
|
56
|
-
null ==
|
|
57
|
-
const
|
|
58
|
-
|
|
59
|
-
const
|
|
60
|
-
if (
|
|
61
|
-
Object.assign(
|
|
62
|
-
const e3 = k2.pageContext && k2.pageContext.dimensions ? k2.pageContext.dimensions :
|
|
63
|
-
o2 && Object.assign(
|
|
64
|
-
const t2 =
|
|
65
|
-
t2 && (
|
|
58
|
+
const z = o({});
|
|
59
|
+
z.value = n(v(k2.configure.name));
|
|
60
|
+
const D = o(true);
|
|
61
|
+
null == z.value && (z.value = C, D.value = false);
|
|
62
|
+
const G = o(null), I = o({}), K = o(""), Q = O(k2.configure);
|
|
63
|
+
Q && (K.value = Q);
|
|
64
|
+
const U = k2.configure.runtime && k2.configure.runtime.common ? k2.configure.runtime.common : {};
|
|
65
|
+
if (U.class && (K.value += " " + U.class), U.style) {
|
|
66
|
+
Object.assign(I.value, U.style);
|
|
67
|
+
const e3 = k2.pageContext && k2.pageContext.dimensions ? k2.pageContext.dimensions : b.PC, o2 = U.style[e3 + "_style"];
|
|
68
|
+
o2 && Object.assign(I.value, o2);
|
|
69
|
+
const t2 = U.style[e3 + "_class"];
|
|
70
|
+
t2 && (K.value += " " + t2);
|
|
66
71
|
}
|
|
67
|
-
const
|
|
68
|
-
function
|
|
69
|
-
if (
|
|
70
|
-
|
|
72
|
+
const V = $();
|
|
73
|
+
function X(e3) {
|
|
74
|
+
if (G.value = e3, e3 && !e3.show && (e3.show = function() {
|
|
75
|
+
R.value = "show";
|
|
71
76
|
}), e3 && !e3.hide && (e3.hide = function() {
|
|
72
|
-
|
|
77
|
+
R.value = "hide";
|
|
73
78
|
}), e3 && !e3.getConfigure && (e3.getConfigure = function() {
|
|
74
79
|
return k2.configure;
|
|
75
|
-
}), k2.configure.uuid &&
|
|
76
|
-
else if ("table" === k2.configure.name)
|
|
80
|
+
}), k2.configure.uuid && x(k2.pageContext, k2.configure.uuid, G), k2.configure.code) h(k2.pageContext, k2.configure.code, G);
|
|
81
|
+
else if ("table" === k2.configure.name) h(k2.pageContext, k2.configure.uuid, G);
|
|
77
82
|
else if (k2.configure.props && k2.configure.props.base) {
|
|
78
83
|
const e4 = k2.configure.props.base;
|
|
79
84
|
if (e4.prop) {
|
|
80
85
|
let o3 = e4.prop;
|
|
81
|
-
o3.startsWith("${") && (o3 = o3.substring(2, o3.length - 1)), o3.includes(".") && (o3 = o3.substring(o3.indexOf(".") + 1)),
|
|
86
|
+
o3.startsWith("${") && (o3 = o3.substring(2, o3.length - 1)), o3.includes(".") && (o3 = o3.substring(o3.indexOf(".") + 1)), h(k2.pageContext, o3, G);
|
|
82
87
|
}
|
|
83
88
|
}
|
|
84
89
|
const o2 = k2.configure.props ? k2.configure.props.base : null;
|
|
85
90
|
if (o2 && o2.prop) {
|
|
86
91
|
let e4 = o2.prop;
|
|
87
|
-
e4 =
|
|
92
|
+
e4 = _(e4), w(k2.pageContext, e4);
|
|
88
93
|
}
|
|
89
94
|
!function() {
|
|
90
|
-
if (!
|
|
91
|
-
const e4 =
|
|
92
|
-
"table" !== k2.configure.name && e4 && e4.isCalcHeight &&
|
|
93
|
-
let e5 =
|
|
94
|
-
e5 || (e5 =
|
|
95
|
+
if (!G.value) return;
|
|
96
|
+
const e4 = P(k2.pageContext, k2.configure);
|
|
97
|
+
"table" !== k2.configure.name && e4 && e4.isCalcHeight && d(() => {
|
|
98
|
+
let e5 = G.value.$el;
|
|
99
|
+
e5 || (e5 = G.value);
|
|
95
100
|
const o3 = e5.parentNode;
|
|
96
101
|
if (!e5 || !o3) return;
|
|
97
102
|
const t2 = e5.getBoundingClientRect();
|
|
98
|
-
let n2 = window.innerHeight - t2.y - 80,
|
|
99
|
-
|
|
103
|
+
let n2 = window.innerHeight - t2.y - 80, i2 = n2 + "";
|
|
104
|
+
S(n2) && (i2 = n2 + "px"), I.value.height = i2, I.value["overflow-y"] = "auto", I.value["overflow-x"] = "hidden", k2.configure.sytle || (k2.configure.sytle = {}), k2.configure.sytle._heightStyle = i2;
|
|
100
105
|
});
|
|
101
106
|
}();
|
|
102
107
|
}
|
|
103
|
-
let
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
108
|
+
let Y;
|
|
109
|
+
i(() => {
|
|
110
|
+
Z(), V.countComponentsLoadedNumber(), Y = setTimeout(() => {
|
|
111
|
+
V.componentsTotalNmber !== V.componentsLoadedNumber || V.pageComponentsLoaded || V.setPageComponentsLoaded(true);
|
|
107
112
|
}, 30);
|
|
108
|
-
}),
|
|
109
|
-
|
|
113
|
+
}), s(() => {
|
|
114
|
+
Y && clearTimeout(Y);
|
|
110
115
|
});
|
|
111
|
-
const
|
|
112
|
-
if (!
|
|
113
|
-
let e3 =
|
|
114
|
-
e3 || (e3 =
|
|
116
|
+
const Z = () => {
|
|
117
|
+
if (!G.value) return;
|
|
118
|
+
let e3 = G.value.$el;
|
|
119
|
+
e3 || (e3 = G.value);
|
|
115
120
|
const o2 = e3.parentNode;
|
|
116
121
|
if (!e3 || !o2) return;
|
|
117
|
-
const t2 = k2.configure.props ? k2.configure.props : {}, n2 = k2.configure.style ? k2.configure.style : {},
|
|
118
|
-
"top" ==
|
|
119
|
-
};
|
|
120
|
-
return (e3, o2) => {
|
|
121
|
-
const t2 = r("permission");
|
|
122
|
-
return a(H)(e3.configure) ? u((c(), p(g(R.value), { key: 0, ref: K, style: m(z.value), class: f(A.value), configure: e3.configure, pageContext: e3.pageContext }, null, 8, ["style", "class", "configure", "pageContext"])), [[d, a(F)], [t2, { codes: a(B) ? a(B) : "true", systemCode: e3.pageContext.systemCode }]]) : l("", true);
|
|
122
|
+
const t2 = k2.configure.props ? k2.configure.props : {}, n2 = k2.configure.style ? k2.configure.style : {}, i2 = t2.position;
|
|
123
|
+
"top" == i2 || "bottom" == i2 || n2.position;
|
|
123
124
|
};
|
|
125
|
+
return (e3, o2) => l(J) && l(T)(e3.configure) ? r((a(), p(c(z.value), { key: 0, ref: X, style: f(I.value), class: g(K.value), configure: e3.configure, pageContext: e3.pageContext }, null, 8, ["style", "class", "configure", "pageContext"])), [[m, l(W)]]) : u("", true);
|
|
124
126
|
} });
|
|
125
127
|
export {
|
|
126
128
|
k 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
|
}
|
|
@@ -46,7 +46,7 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
|
|
|
46
46
|
required: false;
|
|
47
47
|
};
|
|
48
48
|
contentHeight: {
|
|
49
|
-
type: (
|
|
49
|
+
type: (StringConstructor | NumberConstructor)[];
|
|
50
50
|
default: any;
|
|
51
51
|
};
|
|
52
52
|
isDialog: {
|
|
@@ -104,7 +104,7 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
|
|
|
104
104
|
required: false;
|
|
105
105
|
};
|
|
106
106
|
contentHeight: {
|
|
107
|
-
type: (
|
|
107
|
+
type: (StringConstructor | NumberConstructor)[];
|
|
108
108
|
default: any;
|
|
109
109
|
};
|
|
110
110
|
isDialog: {
|
|
@@ -2,7 +2,7 @@ import { defineComponent as e, ref as l, onMounted as a, onUpdated as t, nextTic
|
|
|
2
2
|
import y from "./assemblys/object-render.vue.js";
|
|
3
3
|
import { updateOptionDatasources as h, updateChartDatasources as C } from "../utils/page-helper-util.js";
|
|
4
4
|
import { queryPageSuperGrids as b, queryPageDesignByCode as j, convertToPageContext as P, packageAdditionalMapWithLocationSearch as k, packageAdditionalMapWithRoute as $, packageAdditionalMapWithPageRequest as x } from "../utils/page-init-util.js";
|
|
5
|
-
import { addComponentRef as
|
|
5
|
+
import { addComponentRef as D, removePageAllRef as S, initComponentRefState as N } from "../utils/global-refs.js";
|
|
6
6
|
import { removeCustomFuncFromWindow as q, handleEvent as w, initPageEvents as O, getCustomFunc as R } from "../utils/events/event-util.js";
|
|
7
7
|
import T from "./assemblys/common/export-form-report-dialog.vue.js";
|
|
8
8
|
import _ from "./assemblys/common/task-informition-dialog.vue.js";
|
|
@@ -25,7 +25,7 @@ import { usePageContextStore as ve } from "../utils/page-store.js";
|
|
|
25
25
|
import pe from "agilebuilder-ui/src/store";
|
|
26
26
|
import me from "./assemblys/common/save-chart-condition-dialog.vue.js";
|
|
27
27
|
const ge = { class: "app-container runtime-page-container" }, ce = 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: ce2, emit: fe }) {
|
|
28
|
-
const de = ve(), { t: ye } = Y(), he = e2, Ce = l(null), be = l([]), je = l(""), Pe = l({}), ke = l(null), $e = l(null), xe = l(false),
|
|
28
|
+
const de = ve(), { t: ye } = Y(), he = e2, Ce = l(null), be = l([]), je = l(""), Pe = l({}), ke = l(null), $e = l(null), xe = l(false), De = l(false), Se = l(false), Ne = l(false), qe = l(false), we = l(null), Oe = l(false), Re = l([]), Te = l([]), _e = l(false), Ie = l(null), Me = l(false), Fe = l(false), Ve = l(null), Ee = l(null), Be = l(null), Je = l(null);
|
|
29
29
|
let We = l(null);
|
|
30
30
|
const Le = l(null), Ue = l(null), Ge = ae(), He = l(0), ze = re();
|
|
31
31
|
let Ae, Ke, Qe;
|
|
@@ -41,7 +41,7 @@ const ge = { class: "app-container runtime-page-container" }, ce = e({ __name: "
|
|
|
41
41
|
a3 && a3.length > 0 && h(e4, a3, void 0);
|
|
42
42
|
}(We.value, e3.initOptionConfigs);
|
|
43
43
|
}, 0), Ke = setTimeout(() => {
|
|
44
|
-
|
|
44
|
+
!function(e4, l3) {
|
|
45
45
|
if (!l3 || 0 == l3.length) return;
|
|
46
46
|
e4.initChartData = {}, e4.initChartData.data = ie(e4.entity.data), e4.initChartData.page = ie(e4.entity.page), l3 && l3.length > 0 && C(e4, l3, null, true);
|
|
47
47
|
}(We.value, e3.initChartServiceConfigs);
|
|
@@ -58,9 +58,9 @@ const ge = { class: "app-container runtime-page-container" }, ce = e({ __name: "
|
|
|
58
58
|
}), M.$on(we.value + "assign-task", (e4) => {
|
|
59
59
|
$e.value = e4, Ne.value = true, qe.value = false;
|
|
60
60
|
}), M.$on(we.value + "copy-task", (e4) => {
|
|
61
|
-
$e.value = e4, De.value = true, qe.value = true;
|
|
62
|
-
}), M.$on(we.value + "add-signer", (e4) => {
|
|
63
61
|
$e.value = e4, Se.value = true, qe.value = true;
|
|
62
|
+
}), M.$on(we.value + "add-signer", (e4) => {
|
|
63
|
+
$e.value = e4, De.value = true, qe.value = true;
|
|
64
64
|
}), M.$on(we.value + "choose-return-node", (e4) => {
|
|
65
65
|
$e.value = e4, F(e4).then((e5) => {
|
|
66
66
|
Re.value = e5, Oe.value = true;
|
|
@@ -85,7 +85,6 @@ const ge = { class: "app-container runtime-page-container" }, ce = e({ __name: "
|
|
|
85
85
|
if (a5 && a5.jumpPageUrl) {
|
|
86
86
|
false !== a5.isNewPage && true !== a5.isNewPage && (a5.isNewPage = true);
|
|
87
87
|
const e6 = Q(We), u3 = !!((_a2 = Be.value.props.linkPage) == null ? void 0 : _a2.isNeedId);
|
|
88
|
-
Be.value;
|
|
89
88
|
let n2 = u3 && l4 ? l4.id : null, o2 = u3 && l4 ? l4.ids : null, i2 = l4 ? l4.selections : [], s2 = l4 ? l4.row : null;
|
|
90
89
|
if (!s2) if (s2 = {}, i2 && i2.length > 0) s2 = i2[0];
|
|
91
90
|
else {
|
|
@@ -118,7 +117,7 @@ const ge = { class: "app-container runtime-page-container" }, ce = e({ __name: "
|
|
|
118
117
|
}).catch(() => {
|
|
119
118
|
t5(true);
|
|
120
119
|
});
|
|
121
|
-
} else X({ showClose: true, type: "error", message: ye("superPageRuntimeMessage.popMsg") }),
|
|
120
|
+
} else X({ showClose: true, type: "error", message: ye("superPageRuntimeMessage.popMsg") }), t5(false);
|
|
122
121
|
else t5(true);
|
|
123
122
|
});
|
|
124
123
|
})(n2, u2).then((l4) => {
|
|
@@ -130,7 +129,7 @@ const ge = { class: "app-container runtime-page-container" }, ce = e({ __name: "
|
|
|
130
129
|
}(e7);
|
|
131
130
|
});
|
|
132
131
|
}
|
|
133
|
-
}
|
|
132
|
+
}
|
|
134
133
|
});
|
|
135
134
|
}), M.$on(we.value + "save-chart-condition", (e4) => {
|
|
136
135
|
Xe.value = true;
|
|
@@ -178,14 +177,14 @@ const ge = { class: "app-container runtime-page-container" }, ce = e({ __name: "
|
|
|
178
177
|
});
|
|
179
178
|
}), t(() => {
|
|
180
179
|
u(() => {
|
|
181
|
-
We.value && Ce.value &&
|
|
180
|
+
We.value && Ce.value && D(We.value, "-1", Ce);
|
|
182
181
|
});
|
|
183
182
|
}), n(() => {
|
|
184
|
-
|
|
183
|
+
S(We.value), ke.value && q(ke.value), M.$off(we.value + "export-form-report"), M.$off(we.value + "export-pdf-report"), M.$off(we.value + "import-file"), M.$off(we.value + "assign-task"), M.$off(we.value + "copy-task"), M.$off(we.value + "add-signer"), M.$off(we.value + "choose-return-node"), M.$off(we.value + "remove-signer"), M.$off(we.value + "prohibit-edit"), M.$off(we.value + "open-dialog"), M.$off(we.value + "save-chart-condition"), M.$off("pageLoaded"), We.value && w(null, We.value, We.value, "onUnmounted"), Ae && clearTimeout(Ae), Ke && clearTimeout(Ke), Qe && clearTimeout(Qe);
|
|
185
184
|
});
|
|
186
185
|
const nl = l(null);
|
|
187
186
|
function ol(e3) {
|
|
188
|
-
true ===
|
|
187
|
+
true === De.value && (De.value = false, W($e.value, e3)), true === Se.value && (Se.value = false, L($e.value, e3)), true === Ne.value && (Ne.value = false, U($e.value, e3));
|
|
189
188
|
}
|
|
190
189
|
function il(e3) {
|
|
191
190
|
Re.value = [], Oe.value = false, G($e.value, e3);
|
|
@@ -245,7 +244,7 @@ const ge = { class: "app-container runtime-page-container" }, ce = e({ __name: "
|
|
|
245
244
|
const e5 = nl.value.files[0];
|
|
246
245
|
e5 ? (nl.value.value = null, J($e.value, e5)) : X({ showClose: true, type: "warning", message: ye("superPageRuntimeMessage.noFileSelected") });
|
|
247
246
|
}
|
|
248
|
-
}()) }, null, 544),
|
|
247
|
+
}()) }, null, 544), De.value || Se.value || Ne.value ? (i(), p(f(Z), { key: 1, width: "60%", multiple: qe.value, onClose: ol }, null, 8, ["multiple"])) : s("", true), Oe.value ? (i(), p(_, { key: 2, "task-informitions": Re.value, onClose: l2[1] || (l2[1] = (e4) => Oe.value = false), onResult: il }, null, 8, ["task-informitions"])) : s("", true), _e.value ? (i(), p(I, { key: 3, "task-id": Ie.value, "active-tasks": Te.value, onClose: l2[2] || (l2[2] = (e4) => _e.value = false), onResult: sl }, null, 8, ["task-id", "active-tasks"])) : s("", true), Fe.value ? (i(), p(le, { key: 4, parentPageContext: Ee.value, parentPageEventParams: Je.value, jumpPageSetting: Ve.value, onClose: l2[3] || (l2[3] = (e4) => vl()) }, null, 8, ["parentPageContext", "parentPageEventParams", "jumpPageSetting"])) : s("", true), Xe.value ? (i(), p(me, { key: 5, ref_key: "chartCondtionRef", ref: Ye, pageContext: f(We), onClose: l2[4] || (l2[4] = (e4) => Xe.value = false), onSave: pl, onConfirm: ml }, null, 8, ["pageContext"])) : s("", true)], 6)) : s("", true)]));
|
|
249
248
|
} });
|
|
250
249
|
export {
|
|
251
250
|
ce as default
|