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