super-page-runtime 2.3.33 → 2.3.34
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/barcode-util.js +5 -5
- package/dist/es/components/runtime/utils/charts/chart-pie-util.js +46 -47
- package/dist/es/components/runtime/utils/charts/chart-scatter-util.js +1 -3
- package/dist/es/components/runtime/utils/charts/chart-util.js +44 -46
- package/dist/es/components/runtime/utils/events/event-util.js +18 -18
- package/dist/es/components/runtime/utils/events/print-label.js +0 -1
- package/dist/es/components/runtime/utils/events/standard-event.js +708 -720
- package/dist/es/components/runtime/utils/events/validator-util.js +1 -1
- package/dist/es/components/runtime/utils/form/scan-util.js +3 -4
- package/dist/es/components/runtime/utils/page-helper-util.js +219 -219
- package/dist/es/components/runtime/utils/page-init-util.js +124 -127
- package/dist/es/components/runtime/utils/page-store.js +21 -21
- package/dist/es/components/runtime/utils/table-utils.js +4 -4
- package/dist/es/components/runtime/views/assemblys/chart/column-line/column-line-runtime.vue2.js +10 -14
- package/dist/es/components/runtime/views/assemblys/chart/common/common-chart-header-group.vue.js +3 -3
- package/dist/es/components/runtime/views/assemblys/chart/common/common-chart-header.vue.js +6 -6
- package/dist/es/components/runtime/views/assemblys/chart/gauge/gauge-runtime.vue2.js +12 -13
- package/dist/es/components/runtime/views/assemblys/chart/pie/pie-runtime.vue2.js +14 -15
- package/dist/es/components/runtime/views/assemblys/chart/radar/radar-runtime.vue2.js +14 -15
- package/dist/es/components/runtime/views/assemblys/chart/scatter/scatter-runtime.vue2.js +15 -16
- package/dist/es/components/runtime/views/assemblys/chart/table/table-runtime.vue2.js +67 -67
- package/dist/es/components/runtime/views/assemblys/common/export-form-report-dialog.vue.js +22 -24
- package/dist/es/components/runtime/views/assemblys/container/fixed/YxAffix.vue2.js +1 -1
- package/dist/es/components/runtime/views/assemblys/container/tabs/tabs-runtime.vue2.js +62 -62
- package/dist/es/components/runtime/views/assemblys/data/table/main-table-runtime.vue.js +20 -22
- package/dist/es/components/runtime/views/assemblys/data/table/sub-table-runtime.vue.js +117 -120
- package/dist/es/components/runtime/views/assemblys/data/tree/tree-runtime.vue2.js +39 -40
- package/dist/es/components/runtime/views/assemblys/form/checkbox/checkbox-runtime.vue2.js +0 -1
- package/dist/es/components/runtime/views/assemblys/form/custom/custom-runtime.vue2.js +26 -26
- package/dist/es/components/runtime/views/assemblys/form/file-upload/fileupload-runtime.vue2.js +7 -7
- package/dist/es/components/runtime/views/assemblys/form/input-text/inputtext-runtime.vue2.js +52 -52
- package/dist/es/components/runtime/views/assemblys/form/label/label-runtime.vue2.js +6 -6
- package/dist/es/components/runtime/views/assemblys/form/link/link-runtime.vue2.js +10 -10
- package/dist/es/components/runtime/views/assemblys/form/radio/radio-runtime.vue2.js +0 -1
- package/dist/es/components/runtime/views/assemblys/form/rich-text/richtext-runtime.vue2.js +13 -13
- package/dist/es/components/runtime/views/assemblys/form/select/select-runtime.vue2.js +17 -17
- package/dist/es/components/runtime/views/assemblys/object-render.vue.js +5 -5
- package/dist/es/components/runtime/views/home-chart.vue.js +4 -4
- package/dist/es/components/runtime/views/super-page-dialog.vue.js +4 -4
- package/dist/es/components/runtime/views/super-page.vue.js +1 -1
- package/dist/es/components/runtime/views/super-page.vue2.js +182 -182
- package/dist/es/style.css +76 -76
- package/package.json +2 -2
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
import { defineComponent as e, ref as a, getCurrentInstance as
|
|
1
|
+
import { defineComponent as e, ref as a, getCurrentInstance as t, onMounted as l, onUpdated as o, nextTick as u, onUnmounted as n, resolveDirective as i, withDirectives as s, createElementBlock as r, openBlock as v, normalizeStyle as p, normalizeClass as m, unref as c, createCommentVNode as g, createVNode as f, createBlock as d, createElementVNode as y, Fragment as h, renderList as C, watch as P } from "vue";
|
|
2
2
|
import b from "./assemblys/object-render.vue.js";
|
|
3
|
-
import { updateOptionDatasources as
|
|
4
|
-
import { queryPageDesignWhenPreview as x, queryPageDesignByCode as
|
|
5
|
-
import { addComponentRef as q, removePageAllRef as
|
|
6
|
-
import { removeCustomFuncFromWindow as
|
|
3
|
+
import { updateOptionDatasources as j, updateChartDatasources as k } from "../utils/page-helper-util.js";
|
|
4
|
+
import { queryPageDesignWhenPreview as x, queryPageDesignByCode as $, convertToPageContext as S, packageAdditionalMapWithLocationSearch as D, packageAdditionalMapWithRoute as N, packageAdditionalMapWithPageRequest as w } from "../utils/page-init-util.js";
|
|
5
|
+
import { addComponentRef as q, removePageAllRef as T, initComponentRefState as R } from "../utils/global-refs.js";
|
|
6
|
+
import { removeCustomFuncFromWindow as _, handleEvent as O, initPageEvents as F, getCustomFunc as I } from "../utils/events/event-util.js";
|
|
7
7
|
import M from "./assemblys/common/export-form-report-dialog.vue.js";
|
|
8
8
|
import A from "./assemblys/common/task-informition-dialog.vue.js";
|
|
9
9
|
import E from "./assemblys/common/remove-signer-dialog.vue.js";
|
|
10
|
-
import
|
|
11
|
-
import
|
|
12
|
-
import { doFileTaskFunc as
|
|
10
|
+
import V from "./assemblys/common/remove-transactor-dialog.vue.js";
|
|
11
|
+
import W from "../utils/eventBus.js";
|
|
12
|
+
import { doFileTaskFunc as B, getTaskInformitions as J, getRemoveSigner as U, getRemoveTransactor as L, getFormData as H, exportFormReport as z, doImportFinally as Q, doAddSigner as G, doCreateCopyTask as K, doAssign as X, doAddTransactor as Y, doReturnTaskTo as Z, doRemoveSigners as ee, doRemoveTransactors as ae, updateValuesWhenCloseDialog as te, refreshFormOrListPage as le, saveChartConditionBase as oe, getAdditionalParamMap as ue } from "../utils/events/standard-event.js";
|
|
13
13
|
import "../utils/api/api-util.js";
|
|
14
|
-
import { ElMessage as
|
|
14
|
+
import { ElMessage as ne } from "element-plus";
|
|
15
15
|
import { useI18n as ie } from "vue-i18n";
|
|
16
16
|
import { DepartmentUserTree as se } from "agilebuilder-ui";
|
|
17
17
|
import { i18nValidateRulesMessage as re } from "../utils/events/validator-util.js";
|
|
@@ -19,278 +19,278 @@ import ve from "./super-page-dialog.vue.js";
|
|
|
19
19
|
/* empty css */
|
|
20
20
|
import { useRoute as pe, useRouter as me } from "vue-router";
|
|
21
21
|
import { jumpToPage as ce } from "agilebuilder-ui/src/utils/jump-page-utils";
|
|
22
|
-
import { setSessionCache as ge, getUsername as
|
|
23
|
-
import { deepCopy as
|
|
24
|
-
import { isMobileBrowser as
|
|
25
|
-
import { usePageContextStore as
|
|
22
|
+
import { setSessionCache as ge, getUsername as fe } from "agilebuilder-ui/src/utils/auth";
|
|
23
|
+
import { deepCopy as de, refreshMobileDialogType as ye } from "../utils/common-util.js";
|
|
24
|
+
import { isMobileBrowser as he } from "agilebuilder-ui/src/utils/common-util";
|
|
25
|
+
import { usePageContextStore as Ce } from "../utils/page-store.js";
|
|
26
26
|
import Pe from "agilebuilder-ui/src/store";
|
|
27
27
|
import be from "./assemblys/common/save-chart-condition-dialog.vue.js";
|
|
28
|
-
import
|
|
29
|
-
import
|
|
28
|
+
import je from "../utils/ai-chat-util.js";
|
|
29
|
+
import ke from "./assemblys/page-bottom.vue.js";
|
|
30
30
|
import xe from "./assemblys/common/event-call-component.vue.js";
|
|
31
|
-
import { scrollIntoViewWithContainer as
|
|
32
|
-
const
|
|
33
|
-
const
|
|
34
|
-
let
|
|
35
|
-
const ia = a(null), sa = a(null), ra = pe(), va = a(0), pa =
|
|
31
|
+
import { scrollIntoViewWithContainer as $e } from "../utils/anchor-util.js";
|
|
32
|
+
const Se = e({ __name: "super-page", props: { pageCode: { type: String, required: false }, pageVersion: { type: Number, required: false }, pageId: { type: Number, required: false }, dataId: { type: Number, required: false }, pageDesign: { type: Object, required: false }, isTest: { type: Boolean, required: false }, dimensions: { type: String, required: false }, publishVersion: { type: Number, required: false }, taskId: { type: Number, required: false }, pageRequest: { type: Object, required: false }, contentHeight: { type: [String, Number], default: null }, isDialog: { type: Boolean, required: false }, isPreview: { type: Boolean, required: false } }, emits: ["open", "opened", "close", "closed"], setup(e2, { expose: Se2, emit: De }) {
|
|
33
|
+
const Ne = Ce(), { t: we } = ie(), qe = e2, Te = a(false), Re = a(""), _e = { list: "list-page-container", form: "form-page-container" }, Oe = a(null), Fe = a([]), Ie = a(""), Me = a({}), Ae = a(null), Ee = a(null), Ve = a(false), We = a(false), Be = a(false), Je = a(false), Ue = a(false), Le = a(false), He = a(null), ze = a(false), Qe = a([]), Ge = a([]), Ke = a([]), Xe = a(false), Ye = a(false), Ze = a(null), ea = a(false), aa = a(false), ta = a(null), la = a(null), oa = a(null), ua = a(null);
|
|
34
|
+
let na = a(null);
|
|
35
|
+
const ia = a(null), sa = a(null), ra = pe(), va = a(0), pa = he();
|
|
36
36
|
let ma, ca;
|
|
37
|
-
const ga = a(false),
|
|
38
|
-
function Ca(e3) {
|
|
39
|
-
const a2 = $(e3);
|
|
40
|
-
return a2.isTest = qe.isTest, a2.isTest && qe.dimensions && (a2.dimensions = qe.dimensions), qe.isDialog || (S(a2.entity.request), I(ra, a2.entity.request)), N(qe.pageRequest, a2.entity.request), a2;
|
|
41
|
-
}
|
|
37
|
+
const ga = a(false), fa = a(null), da = a(false), ya = a(null);
|
|
42
38
|
function ha(e3) {
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
39
|
+
const a2 = S(e3);
|
|
40
|
+
return a2.isTest = qe.isTest, a2.isTest && qe.dimensions && (a2.dimensions = qe.dimensions), qe.isDialog || (D(a2.entity.request), N(ra, a2.entity.request)), w(qe.pageRequest, a2.entity.request), a2;
|
|
41
|
+
}
|
|
42
|
+
function Ca(e3) {
|
|
43
|
+
var _a2;
|
|
44
|
+
const a2 = ha(e3);
|
|
45
|
+
if (na.value = a2, null == na.value) return;
|
|
46
|
+
na.value.isDialog = true === qe.isDialog, Re.value = _e[na.value.pageType] ?? "", ma = setTimeout(() => {
|
|
47
47
|
!function(e4, a3) {
|
|
48
|
-
if (!a3 || 0 == a3.length) return
|
|
49
|
-
const
|
|
50
|
-
|
|
51
|
-
}(
|
|
48
|
+
if (!a3 || 0 == a3.length) return;
|
|
49
|
+
const t3 = a3.filter((e5) => "remote" != e5.filterType);
|
|
50
|
+
t3 && t3.length > 0 && j(e4, t3, void 0);
|
|
51
|
+
}(na.value, e3.initOptionConfigs);
|
|
52
52
|
}, 0), ca = setTimeout(() => {
|
|
53
|
-
|
|
54
|
-
if (!a3 || 0 == a3.length) return
|
|
55
|
-
if (e4.initChartData = {}, e4.initChartData.data =
|
|
56
|
-
const
|
|
57
|
-
|
|
53
|
+
e3.initChartServiceConfigs, function(e4, a3) {
|
|
54
|
+
if (!a3 || 0 == a3.length) return;
|
|
55
|
+
if (e4.initChartData = {}, e4.initChartData.data = de(e4.entity.data), e4.initChartData.page = de(e4.entity.page), a3 && a3.length > 0) {
|
|
56
|
+
const t3 = a3.filter((e5) => false !== e5.initializationQuery);
|
|
57
|
+
k(e4, t3, null, true);
|
|
58
58
|
}
|
|
59
|
-
}(
|
|
60
|
-
}, 200),
|
|
61
|
-
const
|
|
62
|
-
|
|
63
|
-
const
|
|
64
|
-
return
|
|
65
|
-
Ee.value = e4, ia.value = e4.configureObj, sa.value = e4.pageContext,
|
|
66
|
-
}),
|
|
67
|
-
Ee.value = e4, ia.value = e4.configureObj, sa.value = e4.pageContext,
|
|
68
|
-
}),
|
|
69
|
-
Ee.value = e4,
|
|
70
|
-
}),
|
|
59
|
+
}(na.value, e3.initChartServiceConfigs);
|
|
60
|
+
}, 200), na.value.initDataSources = [], R(na.value), Fe.value = na.value.items ? na.value.items : [];
|
|
61
|
+
const t2 = na.value.runtime ? na.value.runtime : {};
|
|
62
|
+
Ie.value = t2.class, Me.value = t2.style, F(e3, na.value), re(na.value.rules), O(null, na.value, e3, "beforeload");
|
|
63
|
+
const l2 = na.value.code;
|
|
64
|
+
return Ne.setPageContext(na.value), He.value = l2 + "_", W.$on(He.value + "export-form-report", (e4) => {
|
|
65
|
+
Ee.value = e4, ia.value = e4.configureObj, sa.value = e4.pageContext, da.value = false, Ve.value = true;
|
|
66
|
+
}), W.$on(He.value + "export-pdf-report", (e4) => {
|
|
67
|
+
Ee.value = e4, ia.value = e4.configureObj, sa.value = e4.pageContext, da.value = true, Ve.value = true;
|
|
68
|
+
}), W.$on(He.value + "import-file", (e4) => {
|
|
69
|
+
Ee.value = e4, $a.value.click();
|
|
70
|
+
}), W.$on(He.value + "assign-task", (e4) => {
|
|
71
71
|
Ee.value = e4, Ue.value = true, Le.value = false;
|
|
72
|
-
}),
|
|
72
|
+
}), W.$on(He.value + "copy-task", (e4) => {
|
|
73
73
|
Ee.value = e4, Je.value = true, Le.value = true;
|
|
74
|
-
}),
|
|
75
|
-
Ee.value = e4,
|
|
76
|
-
}),
|
|
74
|
+
}), W.$on(He.value + "add-signer", (e4) => {
|
|
75
|
+
Ee.value = e4, We.value = true, Le.value = true;
|
|
76
|
+
}), W.$on(He.value + "choose-return-node", (e4) => {
|
|
77
77
|
Ee.value = e4, J(e4).then((e5) => {
|
|
78
78
|
Qe.value = e5, ze.value = true;
|
|
79
79
|
}).catch((e5) => {
|
|
80
|
-
|
|
80
|
+
ze.value = false;
|
|
81
81
|
});
|
|
82
|
-
}),
|
|
82
|
+
}), W.$on(He.value + "remove-signer", (e4) => {
|
|
83
83
|
Ee.value = e4, U(e4).then((a3) => {
|
|
84
84
|
Ze.value = e4.pageContext.completeTaskParam.taskId, Ge.value = a3, Xe.value = true;
|
|
85
85
|
}).catch((e5) => {
|
|
86
|
-
|
|
86
|
+
Xe.value = false;
|
|
87
87
|
});
|
|
88
|
-
}),
|
|
89
|
-
Ee.value = e4,
|
|
90
|
-
}),
|
|
88
|
+
}), W.$on(He.value + "add-transactor", (e4) => {
|
|
89
|
+
Ee.value = e4, Be.value = true, Le.value = true;
|
|
90
|
+
}), W.$on(He.value + "remove-transactor", (e4) => {
|
|
91
91
|
Ee.value = e4, L(e4).then((a3) => {
|
|
92
92
|
Ze.value = e4.pageContext.completeTaskParam.taskId, Ke.value = a3, Ye.value = true;
|
|
93
93
|
}).catch((e5) => {
|
|
94
|
-
|
|
94
|
+
Ye.value = false;
|
|
95
95
|
});
|
|
96
|
-
}),
|
|
97
|
-
}),
|
|
98
|
-
var a3,
|
|
99
|
-
|
|
100
|
-
return new Promise((
|
|
101
|
-
var
|
|
102
|
-
if (
|
|
96
|
+
}), W.$on(He.value + "prohibit-edit", (e4) => {
|
|
97
|
+
}), W.$on(He.value + "open-dialog", (e4) => {
|
|
98
|
+
var a3, t3, l3;
|
|
99
|
+
la.value = e4.pageContext, oa.value = e4.configureObj, ua.value = e4.eventParams, a3 = oa.value, t3 = ua.value, l3 = e4.jumpPageSetting, function(e5, a4, t4) {
|
|
100
|
+
return new Promise((l4, o2) => {
|
|
101
|
+
var _a3;
|
|
102
|
+
if (t4) l4(t4);
|
|
103
103
|
else {
|
|
104
|
-
const
|
|
105
|
-
if (
|
|
106
|
-
false !==
|
|
107
|
-
const e6 =
|
|
108
|
-
|
|
109
|
-
let
|
|
104
|
+
const t5 = e5 && e5.props && e5.props.linkPage ? e5.props.linkPage : null;
|
|
105
|
+
if (t5 && t5.jumpPageUrl) {
|
|
106
|
+
false !== t5.isNewPage && true !== t5.isNewPage && (t5.isNewPage = true);
|
|
107
|
+
const e6 = ue(na), o3 = !!((_a3 = oa.value.props.linkPage) == null ? void 0 : _a3.isNeedId);
|
|
108
|
+
oa.value;
|
|
109
|
+
let u2 = o3 && a4 ? a4.id : null, n2 = o3 && a4 ? a4.ids : null, i2 = a4 ? a4.selections : [], s2 = a4 ? a4.row : null;
|
|
110
110
|
if (!s2) if (s2 = {}, i2 && i2.length > 0) s2 = i2[0];
|
|
111
111
|
else {
|
|
112
|
-
const e7 =
|
|
112
|
+
const e7 = la.value.entity.data, a5 = la.value.entity.page;
|
|
113
113
|
a5 && Object.assign(s2, a5), e7 && Object.assign(s2, e7);
|
|
114
114
|
}
|
|
115
|
-
const r2 =
|
|
116
|
-
|
|
117
|
-
e7.isNeedId =
|
|
115
|
+
const r2 = de(la.value.entity.page);
|
|
116
|
+
t5._pageData = r2, ce(t5, null, u2, s2, e6, n2).then((e7) => {
|
|
117
|
+
e7.isNeedId = o3, l4(e7);
|
|
118
118
|
});
|
|
119
|
-
} else
|
|
119
|
+
} else l4(false);
|
|
120
120
|
}
|
|
121
121
|
});
|
|
122
|
-
}(a3,
|
|
122
|
+
}(a3, t3, l3).then((e5) => {
|
|
123
123
|
if (e5) {
|
|
124
|
-
let
|
|
125
|
-
const
|
|
126
|
-
|
|
127
|
-
const
|
|
128
|
-
if (
|
|
129
|
-
const e6 =
|
|
124
|
+
let t4 = {};
|
|
125
|
+
const l4 = a3 && a3.props && a3.props.linkPage ? a3.props.linkPage : null;
|
|
126
|
+
l4 && Object.assign(t4, de(l4)), Object.assign(t4, e5), ye(t4, pa);
|
|
127
|
+
const o2 = t4.jumpMode, u2 = t4;
|
|
128
|
+
if (ua.value || (ua.value = {}), ua.value.paramStoreId = t4.paramStoreId, u2.parentPageCode = la.value.code, u2.parentPageVersion = la.value.version, u2.isNewPage = true, "popup" === o2 || "refresh" === o2) {
|
|
129
|
+
const e6 = u2.linkType;
|
|
130
130
|
(function(e7, a4) {
|
|
131
|
-
const
|
|
132
|
-
return new Promise((
|
|
133
|
-
if (
|
|
131
|
+
const t5 = fe();
|
|
132
|
+
return new Promise((l5, o3) => {
|
|
133
|
+
if (t5) if ("popup" !== a4 && !pa || la.value.systemCode === e7.customSystem) l5(true);
|
|
134
134
|
else if (e7.customSystem) {
|
|
135
135
|
const a5 = e7.customSystem;
|
|
136
|
-
Pe.dispatch("getCurrentUserPermissions", { loginName:
|
|
137
|
-
|
|
136
|
+
Pe.dispatch("getCurrentUserPermissions", { loginName: t5, systemCode: a5 }).then(() => {
|
|
137
|
+
l5(true);
|
|
138
138
|
}).catch(() => {
|
|
139
|
-
|
|
139
|
+
l5(true);
|
|
140
140
|
});
|
|
141
|
-
} else
|
|
142
|
-
else
|
|
141
|
+
} else ne({ showClose: true, type: "error", message: we("superPageRuntimeMessage.popMsg") }), console.error("弹框参数缺少customSystem参数,parentPageContext.value.systemCode={}", la.value.systemCode), l5(false);
|
|
142
|
+
else l5(true);
|
|
143
143
|
});
|
|
144
|
-
})(
|
|
145
|
-
a4 && (pa && (
|
|
146
|
-
}),
|
|
144
|
+
})(u2, o2).then((a4) => {
|
|
145
|
+
a4 && (pa && (la.value.systemCode !== u2.customSystem || e6 && "url" === e6) ? (u2._isIframe = true, "refresh" === o2 && (u2.dialogType = "drawer", u2.jumpPageWidth = "100%"), ta.value = u2, aa.value = true) : (u2._isIframe = false, "popup" === o2 ? (ta.value = u2, aa.value = true) : "refresh" === o2 && qa.push({ path: "/dsc/page", query: u2 })));
|
|
146
|
+
}), W.$on(He.value + "close-dialog", (e7) => {
|
|
147
147
|
!function(e8) {
|
|
148
148
|
const a4 = e8.jumpMode;
|
|
149
|
-
a4 && "popup" === a4 ?
|
|
149
|
+
a4 && "popup" === a4 ? Ta(e8) : (pa && W.$off(He.value + "close-dialog"), qa.go(-1));
|
|
150
150
|
}(e7);
|
|
151
151
|
});
|
|
152
152
|
}
|
|
153
153
|
} else console.error("页面配置信息不存在");
|
|
154
154
|
});
|
|
155
|
-
}),
|
|
155
|
+
}), W.$on(He.value + "save-chart-condition", (e4) => {
|
|
156
156
|
ga.value = true;
|
|
157
|
-
}),
|
|
158
|
-
const e4 = { runtime: { events:
|
|
159
|
-
O(null,
|
|
160
|
-
}),
|
|
161
|
-
var
|
|
162
|
-
(
|
|
163
|
-
}), P(() =>
|
|
164
|
-
e4 && (va.value++,
|
|
165
|
-
}), H(
|
|
157
|
+
}), W.$on("pageLoaded", () => {
|
|
158
|
+
const e4 = { runtime: { events: na.value.events }, systemCode: "", systemVersion: 0, code: "", version: 0, workflowCode: "", workflowVersion: 0, name: "", uuid: "", label: "" };
|
|
159
|
+
O(null, na.value, e4, "load"), $e(Ne.getAutoAnchorComponentConditions(), na.value);
|
|
160
|
+
}), W.$on(He.value + "event-call-component", (e4) => {
|
|
161
|
+
var _a3;
|
|
162
|
+
(_a3 = ya.value) == null ? void 0 : _a3.renderComponent(e4.componentName, e4.componentProps);
|
|
163
|
+
}), P(() => na.value.isRefresh, (e4) => {
|
|
164
|
+
e4 && (va.value++, na.value.isRefresh = false);
|
|
165
|
+
}), H(na.value, null, (_a2 = qe.pageRequest) == null ? void 0 : _a2.isNeedId);
|
|
166
166
|
}
|
|
167
|
-
const Pa =
|
|
167
|
+
const Pa = t();
|
|
168
168
|
function ba() {
|
|
169
|
-
|
|
170
|
-
var
|
|
169
|
+
u(() => {
|
|
170
|
+
var _a2, _b;
|
|
171
171
|
const e3 = Oe.value.parentNode ? Oe.value.parentNode : Oe.value;
|
|
172
|
-
if (
|
|
172
|
+
if (na.value && (na.value.pageRuntimeStyle || (na.value.pageRuntimeStyle = {}), !pa)) {
|
|
173
173
|
let a2 = qe.contentHeight;
|
|
174
|
-
Number(a2) && (a2 += "px"),
|
|
174
|
+
Number(a2) && (a2 += "px"), na.value.pageRuntimeStyle.height = a2 ?? ((_b = (_a2 = e3 == null ? void 0 : e3.getBoundingClientRect) == null ? void 0 : _a2.call(e3)) == null ? void 0 : _b.height) ?? 0;
|
|
175
175
|
}
|
|
176
176
|
});
|
|
177
177
|
}
|
|
178
|
-
function
|
|
179
|
-
const e3 =
|
|
178
|
+
function ja() {
|
|
179
|
+
const e3 = na.value.entity.data, a2 = null == e3.ID ? e3.id : e3.ID;
|
|
180
180
|
ra && ra.query && ra.query._t_ && a2 && ge(ra.query._t_ + "_id", a2);
|
|
181
181
|
}
|
|
182
|
-
function
|
|
183
|
-
|
|
182
|
+
function ka() {
|
|
183
|
+
Ve.value = false, Ee.value = null;
|
|
184
184
|
}
|
|
185
185
|
function xa(e3, a2) {
|
|
186
|
-
z(Ee.value.pageContext, Ee.value.configureObj, a2,
|
|
186
|
+
z(Ee.value.pageContext, Ee.value.configureObj, a2, da.value);
|
|
187
187
|
}
|
|
188
|
-
|
|
188
|
+
l(() => {
|
|
189
189
|
!function() {
|
|
190
|
-
if (
|
|
191
|
-
|
|
190
|
+
if (Ne.resetComponentCounters(), Ne.resetAutoAnchorComponentConditions(), qe.isPreview && qe.pageDesign) {
|
|
191
|
+
Te.value = true;
|
|
192
192
|
let e3 = qe.pageDesign;
|
|
193
|
-
const a2 =
|
|
193
|
+
const a2 = ha(e3);
|
|
194
194
|
x(e3, a2).then((a3) => {
|
|
195
|
-
e3.contextParam = a3.contextParam, e3.branchFieldAuth = a3.branchFieldAuth, e3.systemParam = a3.systemParam, e3.isWorkflowEntity = a3.isWorkflowEntity, e3.dataTypeMaps = a3.dataTypeMaps, Ae.value = e3,
|
|
196
|
-
|
|
195
|
+
e3.contextParam = a3.contextParam, e3.branchFieldAuth = a3.branchFieldAuth, e3.systemParam = a3.systemParam, e3.isWorkflowEntity = a3.isWorkflowEntity, e3.dataTypeMaps = a3.dataTypeMaps, Ae.value = e3, Ca(e3).then(() => {
|
|
196
|
+
ja(), ea.value = true, pa || B(na.value), ba();
|
|
197
197
|
});
|
|
198
198
|
}).finally(() => {
|
|
199
|
-
|
|
199
|
+
Te.value = false;
|
|
200
200
|
});
|
|
201
|
-
} else qe.pageCode && (
|
|
201
|
+
} else qe.pageCode && (Te.value = true, $(qe.pageCode).then((e3) => {
|
|
202
202
|
if (e3 && e3.designJson) {
|
|
203
|
-
const a2 = e3.designJson,
|
|
204
|
-
|
|
205
|
-
|
|
203
|
+
const a2 = e3.designJson, t2 = JSON.parse(a2);
|
|
204
|
+
t2.contextParam = e3.contextParam, t2.branchFieldAuth = e3.branchFieldAuth, t2.systemParam = e3.systemParam, t2.isWorkflowEntity = e3.isWorkflowEntity, t2.dataTypeMaps = e3.dataTypeMaps, Ae.value = t2, Ca(t2).then(() => {
|
|
205
|
+
ja(), ea.value = true, pa || B(na.value), ba();
|
|
206
206
|
});
|
|
207
207
|
}
|
|
208
208
|
}).catch((e3) => {
|
|
209
|
-
|
|
209
|
+
Te.value = false;
|
|
210
210
|
}).finally(() => {
|
|
211
|
-
|
|
211
|
+
Te.value = false, "form" === na.value.pageType && je.setPageToChatStore(Pa, na.value);
|
|
212
212
|
}));
|
|
213
213
|
}();
|
|
214
|
-
}),
|
|
215
|
-
|
|
216
|
-
|
|
214
|
+
}), o(() => {
|
|
215
|
+
u(() => {
|
|
216
|
+
na.value && Oe.value && q(na.value, "-1", Oe);
|
|
217
217
|
});
|
|
218
|
-
}),
|
|
219
|
-
|
|
218
|
+
}), n(() => {
|
|
219
|
+
T(na.value), Ae.value && _(Ae.value), W.$off(He.value + "export-form-report"), W.$off(He.value + "export-pdf-report"), W.$off(He.value + "import-file"), W.$off(He.value + "assign-task"), W.$off(He.value + "copy-task"), W.$off(He.value + "add-signer"), W.$off(He.value + "choose-return-node"), W.$off(He.value + "remove-signer"), W.$off(He.value + "prohibit-edit"), W.$off(He.value + "open-dialog"), W.$off(He.value + "save-chart-condition"), W.$off("pageLoaded"), na.value && O(null, na.value, na.value, "onUnmounted"), ma && clearTimeout(ma), ca && clearTimeout(ca);
|
|
220
220
|
});
|
|
221
|
-
const
|
|
222
|
-
function $a(e3) {
|
|
223
|
-
true === Ve.value && (Ve.value = false, G(Ee.value, e3)), true === Je.value && (Je.value = false, K(Ee.value, e3)), true === Ue.value && (Ue.value = false, X(Ee.value, e3)), true === We.value && (We.value = false, Y(Ee.value, e3));
|
|
224
|
-
}
|
|
221
|
+
const $a = a(null);
|
|
225
222
|
function Sa(e3) {
|
|
223
|
+
true === We.value && (We.value = false, G(Ee.value, e3)), true === Je.value && (Je.value = false, K(Ee.value, e3)), true === Ue.value && (Ue.value = false, X(Ee.value, e3)), true === Be.value && (Be.value = false, Y(Ee.value, e3));
|
|
224
|
+
}
|
|
225
|
+
function Da(e3) {
|
|
226
226
|
Qe.value = [], ze.value = false, Z(Ee.value, e3);
|
|
227
227
|
}
|
|
228
|
-
function
|
|
228
|
+
function Na(e3) {
|
|
229
229
|
Ge.value = [], Xe.value = false, ee(Ee.value, e3);
|
|
230
230
|
}
|
|
231
|
-
function
|
|
231
|
+
function wa(e3) {
|
|
232
232
|
Ke.value = [], Ye.value = false, ae(Ee.value, e3);
|
|
233
233
|
}
|
|
234
234
|
const qa = me();
|
|
235
|
-
function
|
|
236
|
-
var
|
|
237
|
-
const a2 =
|
|
238
|
-
let
|
|
239
|
-
const
|
|
240
|
-
let
|
|
241
|
-
const i2 =
|
|
235
|
+
function Ta(e3) {
|
|
236
|
+
var _a2, _b;
|
|
237
|
+
const a2 = ta.value.closeEvent, t2 = ta.value.isRefreshWhenClosePopup;
|
|
238
|
+
let l2, o2;
|
|
239
|
+
const u2 = la.value.tableName;
|
|
240
|
+
let n2;
|
|
241
|
+
const i2 = ua.value.columnProp ? ua.value.columnProp : null;
|
|
242
242
|
if (i2) {
|
|
243
|
-
const e4 = (_b = (
|
|
244
|
-
var
|
|
245
|
-
return ((_b2 = (
|
|
243
|
+
const e4 = (_b = (_a2 = oa.value) == null ? void 0 : _a2.items) == null ? void 0 : _b.filter((e5) => {
|
|
244
|
+
var _a3, _b2, _c, _d;
|
|
245
|
+
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
246
|
});
|
|
247
|
-
|
|
248
|
-
} else
|
|
247
|
+
n2 = e4 && e4.length > 0 ? e4[0] : null;
|
|
248
|
+
} else n2 = oa.value;
|
|
249
249
|
if (e3) {
|
|
250
250
|
const a3 = e3.isNeedValueMapping;
|
|
251
|
-
|
|
251
|
+
l2 = e3.dataModel, o2 = e3.sourceTableName, a3 && te(la.value, n2, l2, o2, ta.value ? ta.value.valueMappings : null);
|
|
252
252
|
}
|
|
253
|
-
O(null,
|
|
253
|
+
O(null, la.value, n2, "closePopup", { sourceModel: l2, sourceTableName: o2, jumpPageSetting: ta.value, entity: la.value.entity.data, targetTableName: u2, pageContext: na.value, parentPageContext: la.value, parentConfigureObj: n2, columnProp: i2 }), "function" == typeof a2 ? a2.apply(a2, [{ dataModel: e3.dataModel }]) : function(e4, a3, t3) {
|
|
254
254
|
if (e4) {
|
|
255
|
-
const
|
|
256
|
-
|
|
255
|
+
const l3 = I(la.value, e4);
|
|
256
|
+
l3 && l3.apply(l3, [{ pageContext: na.value, parentPageContext: la.value, parentConfigureObj: t3, jumpPageSetting: ta.value, columnProp: a3 }]);
|
|
257
257
|
}
|
|
258
|
-
}(a2, i2,
|
|
258
|
+
}(a2, i2, n2), le(la.value, oa.value, t2, void 0 !== t2 && false === t2 ? "noOperation" : null), la.value = null, oa.value = null, ua.value = null, W.$off(He.value + "close-dialog"), aa.value = false;
|
|
259
259
|
}
|
|
260
|
-
function
|
|
261
|
-
|
|
262
|
-
|
|
260
|
+
function Ra(e3) {
|
|
261
|
+
oe(na.value, e3).then((e4) => {
|
|
262
|
+
ne({ showClose: true, type: "success", message: we("superPageRuntimeMessage.successfulSave") }), fa.value.refreshConditionList();
|
|
263
263
|
});
|
|
264
264
|
}
|
|
265
|
-
function
|
|
265
|
+
function _a(e3) {
|
|
266
266
|
const a2 = e3.queryCondition;
|
|
267
|
-
let
|
|
268
|
-
a2 && (
|
|
267
|
+
let t2 = {};
|
|
268
|
+
a2 && (t2 = JSON.parse(a2)), t2 && t2.data && Object.assign(na.value.entity.data, t2.data), t2 && t2.page && Object.assign(na.value.entity.page, t2.page), ga.value = false;
|
|
269
269
|
}
|
|
270
|
-
return
|
|
271
|
-
let a2 = e3.componentId,
|
|
272
|
-
|
|
270
|
+
return Se2({ pickFileDone: function(e3) {
|
|
271
|
+
let a2 = e3.componentId, t2 = e3.listCode;
|
|
272
|
+
(a2 || t2) && (t2 ? W.$emit(t2 + "-pickFileDone", e3) : W.$emit(a2 + "-pickFileDone", e3));
|
|
273
273
|
}, uploadFileDone: function(e3) {
|
|
274
|
-
let a2 = e3.componentId,
|
|
275
|
-
|
|
274
|
+
let a2 = e3.componentId, t2 = e3.listCode;
|
|
275
|
+
(a2 || t2) && (t2 ? W.$emit(t2 + "-uploadFileDone", e3) : W.$emit(a2 + "-uploadFileDone", e3));
|
|
276
276
|
}, scanDone: function(e3) {
|
|
277
|
-
let a2 = e3.componentId,
|
|
278
|
-
|
|
277
|
+
let a2 = e3.componentId, t2 = e3.listCode;
|
|
278
|
+
(a2 || t2) && (t2 ? W.$emit(t2 + "-scanDone", e3) : W.$emit(a2 + "-scanDone", e3));
|
|
279
279
|
}, getFormFormatData: function() {
|
|
280
|
-
return
|
|
280
|
+
return je.getFormFormatDataUtil(na.value);
|
|
281
281
|
} }), (e3, a2) => {
|
|
282
|
-
var
|
|
283
|
-
const
|
|
284
|
-
return s((v(), r("div", { class: m(["app-container runtime-page-container", [
|
|
282
|
+
var _a2;
|
|
283
|
+
const t2 = i("loading");
|
|
284
|
+
return s((v(), r("div", { class: m(["app-container runtime-page-container", [Re.value]]), style: p((_a2 = c(na)) == null ? void 0 : _a2.pageRuntimeStyle), "element-loading-text": "拼命加载中" }, [ea.value ? (v(), r("div", { ref_key: "thisRef", ref: Oe, key: va.value, class: m(["runtime-page-container-view", Ie.value]), style: p(Me.value) }, [(v(true), r(h, null, C(Fe.value, (e4, a3) => (v(), d(b, { key: e4.uuid, configure: e4, pageContext: c(na) }, null, 8, ["configure", "pageContext"]))), 128)), f(ke, { pageContext: c(na) }, null, 8, ["pageContext"]), Ve.value ? (v(), d(M, { key: 0, configure: ia.value, pageContext: sa.value, onClose: ka, onExport: xa }, null, 8, ["configure", "pageContext"])) : g("", true), y("input", { ref_key: "_selectFile_", ref: $a, type: "file", name: "_selectFile_", style: { display: "none" }, onChange: a2[0] || (a2[0] = (e4) => function() {
|
|
285
285
|
if (Ee.value) {
|
|
286
|
-
if (
|
|
287
|
-
if ("" ===
|
|
288
|
-
const e5 =
|
|
289
|
-
e5 ? (
|
|
286
|
+
if (!$a.value) return;
|
|
287
|
+
if ("" === $a.value.value || null === $a.value.value) return;
|
|
288
|
+
const e5 = $a.value.files[0];
|
|
289
|
+
e5 ? ($a.value.value = null, Q(Ee.value, e5)) : ne({ showClose: true, type: "warning", message: we("superPageRuntimeMessage.noFileSelected") });
|
|
290
290
|
}
|
|
291
|
-
}()) }, null, 544),
|
|
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: ua.value, jumpPageSetting: ta.value, onClose: a2[4] || (a2[4] = (e4) => Ta()) }, null, 8, ["parentPageContext", "parentPageEventParams", "jumpPageSetting"])) : g("", true), ga.value ? (v(), d(be, { key: 6, ref_key: "chartCondtionRef", ref: fa, pageContext: c(na), onClose: a2[5] || (a2[5] = (e4) => ga.value = false), onSave: Ra, onConfirm: _a }, null, 8, ["pageContext"])) : g("", true), f(xe, { ref_key: "eventCallComponentRef", ref: ya }, null, 512)], 6)) : g("", true)], 6)), [[t2, Te.value]]);
|
|
292
292
|
};
|
|
293
293
|
} });
|
|
294
294
|
export {
|
|
295
|
-
|
|
295
|
+
Se as default
|
|
296
296
|
};
|