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