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