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