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