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