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