super-page-runtime 2.3.13-sit4 → 2.3.14-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/assemblys-config.js +1 -1
- package/dist/es/components/runtime/utils/events/standard-event.d.ts +4 -0
- package/dist/es/components/runtime/utils/events/standard-event.js +343 -296
- package/dist/es/components/runtime/utils/events/validator-util.js +76 -71
- package/dist/es/components/runtime/utils/page-init-util.js +107 -87
- package/dist/es/components/runtime/utils/page-permission-util.js +12 -12
- package/dist/es/components/runtime/views/assemblys/chart/common/common-homepage-search.vue2.js +15 -14
- package/dist/es/components/runtime/views/assemblys/data/table/main-table-runtime.vue.js +12 -11
- package/dist/es/components/runtime/views/assemblys/data/table/sub-table-runtime.vue.js +19 -18
- package/dist/es/components/runtime/views/assemblys/form/date-picker/datepicker-runtime.vue2.js +38 -27
- 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.vue.js +7 -0
- package/dist/es/components/runtime/views/assemblys/workflow/extract-workflow/extract-workflow-runtime.vue2.js +37 -0
- package/dist/es/components/runtime/views/assemblys/workflow/workflow-button/workflowbutton-runtime.vue.js +1 -1
- package/dist/es/components/runtime/views/assemblys/workflow/workflow-node/workflownode-runtime.vue2.js +12 -12
- 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 +184 -180
- package/dist/es/i18n/langs/cn.js +1 -1
- package/dist/es/i18n/langs/en.js +1 -1
- package/dist/es/style.css +82 -79
- package/package.json +2 -2
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import { defineComponent as e, ref as l, onMounted as a, nextTick as o, resolveComponent as n, createElementBlock as t, openBlock as i, createVNode as u, normalizeStyle as r, normalizeClass as p, unref as s, withCtx as c, createTextVNode as d, toDisplayString as m, createBlock as v, createCommentVNode as f, createElementVNode as g } from "vue";
|
|
2
|
+
import { handleAfterInitEvent as y, handleEvent as C } from "../../../../utils/events/event-util.js";
|
|
3
|
+
import { $t as _ } from "../../../../utils/i18n-util.js";
|
|
4
|
+
import { DepartmentUserTree as k } from "agilebuilder-ui";
|
|
5
|
+
import { Search as x, Delete as b } from "@element-plus/icons-vue";
|
|
6
|
+
const N = { class: "page-runtime-header-btn" }, h = { class: "dialog-footer" }, w = e({ __name: "extract-workflow-runtime", props: { pageContext: {}, configure: {} }, setup(e2, { expose: w2 }) {
|
|
7
|
+
const V = e2, U = l(), q = l(false), z = l(false), R = l({}), j = l({ loginName: [], opinion: [] }), D = V.configure.runtime ? V.configure.runtime : {}, E = l(D.props ? D.props : {}), F = D.style, M = D.class;
|
|
8
|
+
function O() {
|
|
9
|
+
return void 0 !== V.pageContext.canClick && void 0 !== V.pageContext.clickUuid && (!V.pageContext.canClick && V.pageContext.clickUuid === V.configure.uuid);
|
|
10
|
+
}
|
|
11
|
+
D.props && (true === D.props.requireExtractTransactor && (j.value.loginName = [{ required: true, message: "请选择办理人", trigger: "blur" }]), true === D.props.isMustOpinion && (j.value.opinion = [{ required: true, message: "请输入意见", trigger: "change" }]));
|
|
12
|
+
const T = l(null);
|
|
13
|
+
function $() {
|
|
14
|
+
q.value = true;
|
|
15
|
+
}
|
|
16
|
+
function A(e3) {
|
|
17
|
+
q.value = false, R.value.loginName = e3 ? e3.loginName : "", R.value.name = e3 ? e3.name : "";
|
|
18
|
+
}
|
|
19
|
+
function B() {
|
|
20
|
+
U.value.validate((e3, l2) => {
|
|
21
|
+
e3 && C({ loginName: R.value.loginName, opinion: R.value.opinion }, V.pageContext, V.configure, "click");
|
|
22
|
+
});
|
|
23
|
+
}
|
|
24
|
+
return a(() => {
|
|
25
|
+
o(() => {
|
|
26
|
+
y(null, V.pageContext, V.configure, { componentRef: T.value, entity: V.pageContext.entity.data, pageData: V.pageContext.entity.page });
|
|
27
|
+
});
|
|
28
|
+
}), w2({ click: function() {
|
|
29
|
+
T.value && T.value.$el.click();
|
|
30
|
+
} }), (e3, l2) => {
|
|
31
|
+
const a2 = n("el-button"), o2 = n("el-icon"), y2 = n("el-input"), C2 = n("el-form-item"), w3 = n("el-form"), V2 = n("el-dialog");
|
|
32
|
+
return i(), t("span", N, [u(a2, { ref_key: "componentRef", ref: T, disabled: O(), class: p(s(M)), style: r(s(F)), type: E.value.type, size: E.value.size, round: E.value.round, plain: E.value.plain, loading: O(), onClick: l2[0] || (l2[0] = (e4) => z.value = true) }, { default: c(() => [d(m(s(_)(E.value.title)), 1)]), _: 1 }, 8, ["disabled", "class", "style", "type", "size", "round", "plain", "loading"]), u(V2, { modelValue: z.value, "onUpdate:modelValue": l2[6] || (l2[6] = (e4) => z.value = e4), title: "选择办理人", width: "500" }, { footer: c(() => [g("div", h, [u(a2, { onClick: l2[5] || (l2[5] = (e4) => z.value = false) }, { default: c(() => l2[7] || (l2[7] = [d("取消")])), _: 1 }), u(a2, { type: "primary", onClick: B }, { default: c(() => l2[8] || (l2[8] = [d(" 确定 ")])), _: 1 })])]), default: c(() => [u(w3, { ref_key: "ruleFormRef", ref: U, style: { "max-width": "600px" }, model: R.value, rules: j.value, "label-width": "auto" }, { default: c(() => [u(C2, { label: "办理人", prop: "loginName" }, { default: c(() => [u(y2, { "model-value": R.value.name, readonly: true, type: "text", placeholder: "选择办理人", onClick: l2[3] || (l2[3] = (e4) => $()) }, { append: c(() => [u(o2, { class: "el-input__icon", onClick: l2[1] || (l2[1] = (e4) => $()) }, { default: c(() => [u(s(x))]), _: 1 }), u(o2, { class: "el-input__icon", onClick: l2[2] || (l2[2] = (e4) => (R.value.loginName = "", void (R.value.name = ""))) }, { default: c(() => [u(s(b))]), _: 1 })]), _: 1 }, 8, ["model-value"])]), _: 1 }), u(C2, { label: "意见", prop: "opinion" }, { default: c(() => [u(y2, { modelValue: R.value.opinion, "onUpdate:modelValue": l2[4] || (l2[4] = (e4) => R.value.opinion = e4), type: "textarea" }, null, 8, ["modelValue"])]), _: 1 }), q.value ? (i(), v(s(k), { key: 0, width: "60%", multiple: false, onClose: A })) : f("", true)]), _: 1 }, 8, ["model", "rules"])]), _: 1 }, 8, ["modelValue"])]);
|
|
33
|
+
};
|
|
34
|
+
} });
|
|
35
|
+
export {
|
|
36
|
+
w as default
|
|
37
|
+
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import o from "./workflowbutton-runtime.vue2.js";
|
|
2
2
|
/* empty css */
|
|
3
3
|
import t from "../../../../../../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
-
const r = t(o, [["__scopeId", "data-v-
|
|
4
|
+
const r = t(o, [["__scopeId", "data-v-3078f246"]]);
|
|
5
5
|
export {
|
|
6
6
|
r as default
|
|
7
7
|
};
|
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
import { defineComponent as t, ref as e, onMounted as n, createElementBlock as a, createCommentVNode as o, openBlock as p, normalizeClass as
|
|
1
|
+
import { defineComponent as t, ref as e, onMounted as n, createElementBlock as a, createCommentVNode as o, openBlock as p, normalizeClass as i, unref as r, createElementVNode as u, normalizeStyle as s, toDisplayString as l } from "vue";
|
|
2
2
|
import { getFormModelFields as g } from "../../../../utils/page-init-util.js";
|
|
3
|
-
import { getVariableValue as
|
|
4
|
-
const
|
|
5
|
-
const
|
|
6
|
-
let
|
|
7
|
-
const
|
|
3
|
+
import { getVariableValue as C, setVariableValue as c } from "../../../../utils/page-helper-util.js";
|
|
4
|
+
const x = t({ __name: "workflownode-runtime", props: { pageContext: {}, configure: {} }, setup(t2, { expose: x2 }) {
|
|
5
|
+
const y = t2, f = e(false), m = y.pageContext.entity ? y.pageContext.entity : {};
|
|
6
|
+
let T = g(y.pageContext, y.configure);
|
|
7
|
+
const d = y.configure.runtime ? y.configure.runtime : {}, _ = e(d.props ? d.props : {}), v = d.class, E = d.headerStyle;
|
|
8
8
|
let R = e("");
|
|
9
|
-
return "form" ===
|
|
10
|
-
}),
|
|
11
|
-
return
|
|
9
|
+
return "form" === y.pageContext.pageType && y.pageContext.entity && y.pageContext.entity.data && ("EXTRACT" === y.pageContext.entity.data.PROCESS_STATE || "EXTRACT" === y.pageContext.entity.data.process_state ? R.value = "抽单办理中" : R.value = y.pageContext.entity.data.CURRENT_ACTIVITY_NAME || y.pageContext.entity.data.current_activity_name, f.value = !!y.pageContext.entity.data.WORKFLOW_ID), n(() => {
|
|
10
|
+
}), x2({ getValue: function() {
|
|
11
|
+
return C(m, T);
|
|
12
12
|
}, setValue: function(t3) {
|
|
13
|
-
return
|
|
14
|
-
} }), (t3, e2) =>
|
|
13
|
+
return c(m, T, t3);
|
|
14
|
+
} }), (t3, e2) => f.value ? (p(), a("span", { key: 0, class: i(r(v)) }, [u("span", { style: s(r(E)) }, [u("span", null, l(_.value.title), 1), u("span", null, l(r(R)), 1)], 4)], 2)) : o("", true);
|
|
15
15
|
} });
|
|
16
16
|
export {
|
|
17
|
-
|
|
17
|
+
x as default
|
|
18
18
|
};
|
|
@@ -4,6 +4,7 @@ import { PageDesign } from '../utils/interfaces/page-design-types';
|
|
|
4
4
|
declare function pickFileDone(data: any): void;
|
|
5
5
|
declare function uploadFileDone(data: any): void;
|
|
6
6
|
declare function scanDone(data: any): void;
|
|
7
|
+
declare function getFormFormatData(): any;
|
|
7
8
|
declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
|
|
8
9
|
pageCode: {
|
|
9
10
|
type: StringConstructor;
|
|
@@ -57,6 +58,7 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
|
|
|
57
58
|
pickFileDone: typeof pickFileDone;
|
|
58
59
|
uploadFileDone: typeof uploadFileDone;
|
|
59
60
|
scanDone: typeof scanDone;
|
|
61
|
+
getFormFormatData: typeof getFormFormatData;
|
|
60
62
|
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
61
63
|
close: (...args: any[]) => void;
|
|
62
64
|
open: (...args: any[]) => void;
|
|
@@ -1,261 +1,265 @@
|
|
|
1
|
-
import { defineComponent as e, ref as l, onMounted as
|
|
2
|
-
import
|
|
3
|
-
import { updateOptionDatasources as
|
|
4
|
-
import { queryPageSuperGrids as
|
|
5
|
-
import { addComponentRef as
|
|
6
|
-
import { removeCustomFuncFromWindow as O, handleEvent as R, initPageEvents as
|
|
7
|
-
import
|
|
1
|
+
import { defineComponent as e, ref as a, getCurrentInstance as l, onMounted as t, onUpdated as u, nextTick as n, onUnmounted as o, resolveDirective as i, withDirectives as s, createElementBlock as r, openBlock as v, createCommentVNode as p, normalizeStyle as m, normalizeClass as g, createBlock as c, 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 j, updateChartDatasources as P } from "../utils/page-helper-util.js";
|
|
4
|
+
import { queryPageSuperGrids as k, queryPageDesignByCode as $, convertToPageContext as D, packageAdditionalMapWithLocationSearch as x, packageAdditionalMapWithRoute as S, packageAdditionalMapWithPageRequest as N } from "../utils/page-init-util.js";
|
|
5
|
+
import { addComponentRef as q, removePageAllRef as T, initComponentRefState as w } from "../utils/global-refs.js";
|
|
6
|
+
import { removeCustomFuncFromWindow as O, handleEvent as R, initPageEvents as _, getCustomFunc as I } 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
|
|
10
|
-
import
|
|
11
|
-
import { getTaskInformitions as
|
|
9
|
+
import V from "./assemblys/common/remove-signer-dialog.vue.js";
|
|
10
|
+
import E from "../utils/eventBus.js";
|
|
11
|
+
import { getTaskInformitions as B, getRemoveSigner as J, getFormData as U, exportFormReport as W, doImportFinally as L, doAddSigner as G, doCreateCopyTask as H, doAssign as z, doReturnTaskTo as Q, doRemoveSigners as A, updateValuesWhenCloseDialog as K, refreshFormOrListPage as X, saveChartConditionBase as Y, getAdditionalParamMap as Z } from "../utils/events/standard-event.js";
|
|
12
12
|
import "../utils/api/api-util.js";
|
|
13
|
-
import { ElMessage as
|
|
14
|
-
import { useI18n as
|
|
13
|
+
import { ElMessage as ee } from "element-plus";
|
|
14
|
+
import { useI18n as ae } from "vue-i18n";
|
|
15
15
|
import { DepartmentUserTree as le } from "agilebuilder-ui";
|
|
16
|
-
import { i18nValidateRulesMessage as
|
|
17
|
-
import
|
|
16
|
+
import { i18nValidateRulesMessage as te } from "../utils/events/validator-util.js";
|
|
17
|
+
import ue from "./super-page-dialog.vue.js";
|
|
18
18
|
/* empty css */
|
|
19
|
-
import { useRoute as
|
|
20
|
-
import { jumpToPage as
|
|
21
|
-
import { setSessionCache as
|
|
22
|
-
import { deepCopy as
|
|
23
|
-
import { isMobileBrowser as
|
|
24
|
-
import { usePageContextStore as
|
|
25
|
-
import
|
|
26
|
-
import
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
19
|
+
import { useRoute as ne, useRouter as oe } from "vue-router";
|
|
20
|
+
import { jumpToPage as ie } from "agilebuilder-ui/src/utils/jump-page-utils";
|
|
21
|
+
import { setSessionCache as se, getUsername as re } from "agilebuilder-ui/src/utils/auth";
|
|
22
|
+
import { deepCopy as ve, refreshMobileDialogType as pe } from "../utils/common-util.js";
|
|
23
|
+
import { isMobileBrowser as me } from "agilebuilder-ui/src/utils/common-util";
|
|
24
|
+
import { usePageContextStore as ge } from "../utils/page-store.js";
|
|
25
|
+
import ce from "agilebuilder-ui/src/store";
|
|
26
|
+
import fe from "./assemblys/common/save-chart-condition-dialog.vue.js";
|
|
27
|
+
import de from "../utils/ai-chat-util.js";
|
|
28
|
+
const ye = { class: "app-container runtime-page-container", "element-loading-text": "拼命加载中" }, he = 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: he2, emit: Ce }) {
|
|
29
|
+
const be = ge(), { t: je } = ae(), Pe = e2, ke = a(false), $e = a(null), De = a([]), xe = a(""), Se = a({}), Ne = a(null), qe = a(null), Te = a(false), we = a(false), Oe = a(false), Re = a(false), _e = a(false), Ie = a(null), Fe = a(false), Me = a([]), Ve = a([]), Ee = a(false), Be = a(null), Je = a(false), Ue = a(false), We = a(null), Le = a(null), Ge = a(null), He = a(null);
|
|
30
|
+
let ze = a(null);
|
|
31
|
+
const Qe = a(null), Ae = a(null), Ke = ne(), Xe = a(0), Ye = me();
|
|
32
|
+
let Ze, ea, aa;
|
|
33
|
+
const la = a(false), ta = a(null), ua = a(false);
|
|
34
|
+
function na(e3) {
|
|
34
35
|
var _a;
|
|
35
|
-
const
|
|
36
|
-
if (
|
|
37
|
-
|
|
38
|
-
!function(e4,
|
|
39
|
-
if (!
|
|
40
|
-
const
|
|
41
|
-
|
|
42
|
-
}(
|
|
43
|
-
}, 0),
|
|
44
|
-
!function(e4,
|
|
45
|
-
if (!
|
|
46
|
-
if (e4.initChartData = {}, e4.initChartData.data =
|
|
47
|
-
const
|
|
48
|
-
|
|
36
|
+
const a2 = D(e3);
|
|
37
|
+
if (a2.isTest = Pe.isTest, a2.isTest && Pe.dimensions && (a2.dimensions = Pe.dimensions), Pe.isDialog || (x(a2.entity.request), S(Ke, a2.entity.request)), N(Pe.pageRequest, a2.entity.request), ze.value = a2, null == ze.value) return;
|
|
38
|
+
ze.value.isDialog = true === Pe.isDialog, Ze = setTimeout(() => {
|
|
39
|
+
!function(e4, a3) {
|
|
40
|
+
if (!a3 || 0 == a3.length) return;
|
|
41
|
+
const l3 = a3.filter((e5) => "remote" != e5.filterType);
|
|
42
|
+
l3 && l3.length > 0 && j(e4, l3, void 0);
|
|
43
|
+
}(ze.value, e3.initOptionConfigs);
|
|
44
|
+
}, 0), ea = setTimeout(() => {
|
|
45
|
+
!function(e4, a3) {
|
|
46
|
+
if (!a3 || 0 == a3.length) return;
|
|
47
|
+
if (e4.initChartData = {}, e4.initChartData.data = ve(e4.entity.data), e4.initChartData.page = ve(e4.entity.page), a3 && a3.length > 0) {
|
|
48
|
+
const l3 = a3.filter((e5) => false !== e5.initializationQuery);
|
|
49
|
+
P(e4, l3, null, true);
|
|
49
50
|
}
|
|
50
|
-
}(
|
|
51
|
-
}, 200),
|
|
52
|
-
const
|
|
53
|
-
|
|
54
|
-
const t2 =
|
|
55
|
-
return
|
|
56
|
-
|
|
57
|
-
}),
|
|
58
|
-
|
|
59
|
-
}),
|
|
60
|
-
|
|
61
|
-
}),
|
|
62
|
-
|
|
63
|
-
}),
|
|
64
|
-
|
|
65
|
-
}),
|
|
66
|
-
|
|
67
|
-
}),
|
|
68
|
-
|
|
69
|
-
|
|
51
|
+
}(ze.value, e3.initChartServiceConfigs);
|
|
52
|
+
}, 200), ze.value.initDataSources = [], w(ze.value), De.value = ze.value.items ? ze.value.items : [];
|
|
53
|
+
const l2 = ze.value.runtime ? ze.value.runtime : {};
|
|
54
|
+
xe.value = l2.class, Se.value = l2.style, _(e3, ze.value), te(ze.value.rules), R(null, ze.value, e3, "beforeload");
|
|
55
|
+
const t2 = ze.value.code;
|
|
56
|
+
return be.setPageContext(ze.value), Ie.value = t2 + "_", E.$on(Ie.value + "export-form-report", (e4) => {
|
|
57
|
+
qe.value = e4, Qe.value = e4.configureObj, Ae.value = e4.pageContext, ua.value = false, Te.value = true;
|
|
58
|
+
}), E.$on(Ie.value + "export-pdf-report", (e4) => {
|
|
59
|
+
qe.value = e4, Qe.value = e4.configureObj, Ae.value = e4.pageContext, ua.value = true, Te.value = true;
|
|
60
|
+
}), E.$on(Ie.value + "import-file", (e4) => {
|
|
61
|
+
qe.value = e4, pa.value.click();
|
|
62
|
+
}), E.$on(Ie.value + "assign-task", (e4) => {
|
|
63
|
+
qe.value = e4, Re.value = true, _e.value = false;
|
|
64
|
+
}), E.$on(Ie.value + "copy-task", (e4) => {
|
|
65
|
+
qe.value = e4, Oe.value = true, _e.value = true;
|
|
66
|
+
}), E.$on(Ie.value + "add-signer", (e4) => {
|
|
67
|
+
qe.value = e4, we.value = true, _e.value = true;
|
|
68
|
+
}), E.$on(Ie.value + "choose-return-node", (e4) => {
|
|
69
|
+
qe.value = e4, B(e4).then((e5) => {
|
|
70
|
+
Me.value = e5, Fe.value = true;
|
|
70
71
|
}).catch((e5) => {
|
|
71
|
-
|
|
72
|
+
Fe.value = false;
|
|
72
73
|
});
|
|
73
|
-
}),
|
|
74
|
-
|
|
75
|
-
|
|
74
|
+
}), E.$on(Ie.value + "remove-signer", (e4) => {
|
|
75
|
+
qe.value = e4, J(e4).then((a3) => {
|
|
76
|
+
Be.value = e4.pageContext.completeTaskParam.taskId, Ve.value = a3, Ee.value = true;
|
|
76
77
|
}).catch((e5) => {
|
|
77
|
-
|
|
78
|
+
Ee.value = false;
|
|
78
79
|
});
|
|
79
|
-
}),
|
|
80
|
-
}),
|
|
81
|
-
var
|
|
82
|
-
|
|
80
|
+
}), E.$on(Ie.value + "prohibit-edit", (e4) => {
|
|
81
|
+
}), E.$on(Ie.value + "open-dialog", (e4) => {
|
|
82
|
+
var a3, l3, t3;
|
|
83
|
+
Le.value = e4.pageContext, Ge.value = e4.configureObj, He.value = e4.eventParams, a3 = Ge.value, l3 = He.value, t3 = e4.jumpPageSetting, function(e5, a4, l4) {
|
|
83
84
|
return new Promise((t4, u2) => {
|
|
84
85
|
var _a2;
|
|
85
|
-
if (
|
|
86
|
+
if (l4) t4(l4);
|
|
86
87
|
else {
|
|
87
|
-
const
|
|
88
|
-
if (
|
|
89
|
-
false !==
|
|
90
|
-
const e6 =
|
|
91
|
-
let n2 = u3 &&
|
|
88
|
+
const l5 = e5 && e5.props && e5.props.linkPage ? e5.props.linkPage : null;
|
|
89
|
+
if (l5 && l5.jumpPageUrl) {
|
|
90
|
+
false !== l5.isNewPage && true !== l5.isNewPage && (l5.isNewPage = true);
|
|
91
|
+
const e6 = Z(ze), u3 = !!((_a2 = Ge.value.props.linkPage) == null ? void 0 : _a2.isNeedId);
|
|
92
|
+
let n2 = u3 && a4 ? a4.id : null, o2 = u3 && a4 ? a4.ids : null, i2 = a4 ? a4.selections : [], s2 = a4 ? a4.row : null;
|
|
92
93
|
if (!s2) if (s2 = {}, i2 && i2.length > 0) s2 = i2[0];
|
|
93
94
|
else {
|
|
94
|
-
const e7 =
|
|
95
|
-
|
|
95
|
+
const e7 = Le.value.entity.data, a5 = Le.value.entity.page;
|
|
96
|
+
a5 && Object.assign(s2, a5), e7 && Object.assign(s2, e7);
|
|
96
97
|
}
|
|
97
|
-
const r2 =
|
|
98
|
-
|
|
98
|
+
const r2 = ve(Le.value.entity.page);
|
|
99
|
+
l5._pageData = r2, ie(l5, null, n2, s2, e6, o2).then((e7) => {
|
|
99
100
|
e7.isNeedId = u3, t4(e7);
|
|
100
101
|
});
|
|
101
102
|
} else t4(false);
|
|
102
103
|
}
|
|
103
104
|
});
|
|
104
|
-
}(
|
|
105
|
+
}(a3, l3, t3).then((e5) => {
|
|
105
106
|
if (e5) {
|
|
106
|
-
let
|
|
107
|
-
const t4 =
|
|
108
|
-
t4 && Object.assign(
|
|
109
|
-
const u2 =
|
|
110
|
-
if (
|
|
107
|
+
let l4 = {};
|
|
108
|
+
const t4 = a3 && a3.props && a3.props.linkPage ? a3.props.linkPage : null;
|
|
109
|
+
t4 && Object.assign(l4, ve(t4)), Object.assign(l4, e5), pe(l4, Ye);
|
|
110
|
+
const u2 = l4.jumpMode, n2 = l4;
|
|
111
|
+
if (He.value || (He.value = {}), He.value.paramStoreId = l4.paramStoreId, n2.parentPageCode = Le.value.code, n2.parentPageVersion = Le.value.version, n2.isNewPage = true, "popup" === u2 || "refresh" === u2) {
|
|
111
112
|
const e6 = n2.linkType;
|
|
112
|
-
(function(e7,
|
|
113
|
-
const
|
|
113
|
+
(function(e7, a4) {
|
|
114
|
+
const l5 = re();
|
|
114
115
|
return new Promise((t5, u3) => {
|
|
115
|
-
if (
|
|
116
|
+
if (l5) if ("popup" !== a4 && !Ye || Le.value.systemCode === e7.customSystem) t5(true);
|
|
116
117
|
else if (e7.customSystem) {
|
|
117
|
-
const
|
|
118
|
-
|
|
118
|
+
const a5 = e7.customSystem;
|
|
119
|
+
ce.dispatch("getCurrentUserPermissions", { loginName: l5, systemCode: a5 }).then(() => {
|
|
119
120
|
t5(true);
|
|
120
121
|
}).catch(() => {
|
|
121
122
|
t5(true);
|
|
122
123
|
});
|
|
123
|
-
} else
|
|
124
|
+
} else ee({ showClose: true, type: "error", message: je("superPageRuntimeMessage.popMsg") }), t5(false);
|
|
124
125
|
else t5(true);
|
|
125
126
|
});
|
|
126
|
-
})(n2, u2).then((
|
|
127
|
-
|
|
128
|
-
}),
|
|
127
|
+
})(n2, u2).then((a4) => {
|
|
128
|
+
a4 && (Ye && (Le.value.systemCode !== n2.customSystem || e6 && "url" === e6) ? (n2._isIframe = true, "refresh" === u2 && (n2.dialogType = "drawer", n2.jumpPageWidth = "100%"), We.value = n2, Ue.value = true) : (n2._isIframe = false, "popup" === u2 ? (We.value = n2, Ue.value = true) : "refresh" === u2 && fa.push({ path: "/dsc/page", query: n2 })));
|
|
129
|
+
}), E.$on(Ie.value + "close-dialog", (e7) => {
|
|
129
130
|
!function(e8) {
|
|
130
|
-
const
|
|
131
|
-
|
|
131
|
+
const a4 = e8.jumpMode;
|
|
132
|
+
a4 && "popup" === a4 ? da(e8) : fa.go(-1);
|
|
132
133
|
}(e7);
|
|
133
134
|
});
|
|
134
135
|
}
|
|
135
136
|
}
|
|
136
137
|
});
|
|
137
|
-
}),
|
|
138
|
-
|
|
139
|
-
}),
|
|
140
|
-
const e4 = { runtime: { events:
|
|
141
|
-
R(null,
|
|
142
|
-
}),
|
|
143
|
-
e4 && (
|
|
144
|
-
}),
|
|
138
|
+
}), E.$on(Ie.value + "save-chart-condition", (e4) => {
|
|
139
|
+
la.value = true;
|
|
140
|
+
}), E.$on("pageLoaded", () => {
|
|
141
|
+
const e4 = { runtime: { events: ze.value.events }, systemCode: "", systemVersion: 0, code: "", version: 0, workflowCode: "", workflowVersion: 0, name: "", uuid: "", label: "" };
|
|
142
|
+
R(null, ze.value, e4, "load");
|
|
143
|
+
}), C(() => ze.value.isRefresh, (e4) => {
|
|
144
|
+
e4 && (Xe.value++, ze.value.isRefresh = false);
|
|
145
|
+
}), U(ze.value, null, (_a = Pe.pageRequest) == null ? void 0 : _a.isNeedId);
|
|
145
146
|
}
|
|
146
|
-
|
|
147
|
-
|
|
147
|
+
const oa = l();
|
|
148
|
+
function ia() {
|
|
149
|
+
n(() => {
|
|
148
150
|
var _a, _b;
|
|
149
|
-
const e3 =
|
|
150
|
-
|
|
151
|
+
const e3 = $e.value.parentNode ? $e.value.parentNode : $e.value;
|
|
152
|
+
ze.value && (ze.value.pageRuntimeStyle || (ze.value.pageRuntimeStyle = {}), ze.value.pageRuntimeStyle.height = Pe.contentHeight ?? ((_b = (_a = e3 == null ? void 0 : e3.getBoundingClientRect) == null ? void 0 : _a.call(e3)) == null ? void 0 : _b.height) ?? 0);
|
|
151
153
|
});
|
|
152
154
|
}
|
|
153
|
-
function
|
|
154
|
-
const e3 =
|
|
155
|
-
|
|
155
|
+
function sa() {
|
|
156
|
+
const e3 = ze.value.entity.data, a2 = null == e3.ID ? e3.id : e3.ID;
|
|
157
|
+
Ke.query && Ke.query._t_ && a2 && se(Ke.query._t_ + "_id", a2);
|
|
156
158
|
}
|
|
157
|
-
function
|
|
158
|
-
|
|
159
|
+
function ra() {
|
|
160
|
+
Te.value = false, qe.value = null;
|
|
159
161
|
}
|
|
160
|
-
function
|
|
161
|
-
W(
|
|
162
|
+
function va(e3, a2) {
|
|
163
|
+
W(qe.value.pageContext, qe.value.configureObj, a2, ua.value);
|
|
162
164
|
}
|
|
163
|
-
|
|
164
|
-
null !=
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
165
|
+
t(() => {
|
|
166
|
+
null != Pe.pageDesign ? (Ne.value = Pe.pageDesign, aa = setTimeout(() => {
|
|
167
|
+
na(Pe.pageDesign).then(() => {
|
|
168
|
+
Pe.pageDesign.tableRuntimes && Object.keys(Pe.pageDesign.tableRuntimes).length > 0 ? k(Pe.pageDesign, ze.value, Pe.publishVersion).then((e3) => {
|
|
169
|
+
ze.value.isWorkflowEntity = e3.isWorkflowEntity, ze.value.dataTypeMaps = e3.dataTypeMaps, ze.value.superGridItems = e3.superGrids;
|
|
168
170
|
}).catch((e3) => {
|
|
169
171
|
}).finally(() => {
|
|
170
|
-
|
|
171
|
-
}) : (
|
|
172
|
+
Je.value = true, ia();
|
|
173
|
+
}) : (Je.value = true, ia()), sa();
|
|
172
174
|
});
|
|
173
|
-
}, 0)) :
|
|
175
|
+
}, 0)) : Pe.pageCode && (ke.value = true, $(Pe.pageCode).then((e3) => {
|
|
174
176
|
if (e3 && e3.designJson) {
|
|
175
|
-
const
|
|
176
|
-
|
|
177
|
-
|
|
177
|
+
const a2 = e3.designJson, l2 = JSON.parse(a2);
|
|
178
|
+
Ne.value = l2, na(l2).then(() => {
|
|
179
|
+
sa(), Je.value = true, ia();
|
|
178
180
|
});
|
|
179
181
|
}
|
|
180
182
|
}).catch((e3) => {
|
|
181
|
-
|
|
183
|
+
ke.value = false;
|
|
182
184
|
}).finally(() => {
|
|
183
|
-
|
|
185
|
+
ke.value = false, "form" === ze.value.pageType && de.setPageToChatStore(oa, ze.value);
|
|
184
186
|
}));
|
|
185
|
-
}),
|
|
186
|
-
|
|
187
|
-
|
|
187
|
+
}), u(() => {
|
|
188
|
+
n(() => {
|
|
189
|
+
ze.value && $e.value && q(ze.value, "-1", $e);
|
|
188
190
|
});
|
|
189
|
-
}),
|
|
190
|
-
|
|
191
|
+
}), o(() => {
|
|
192
|
+
T(ze.value), Ne.value && O(Ne.value), E.$off(Ie.value + "export-form-report"), E.$off(Ie.value + "export-pdf-report"), E.$off(Ie.value + "import-file"), E.$off(Ie.value + "assign-task"), E.$off(Ie.value + "copy-task"), E.$off(Ie.value + "add-signer"), E.$off(Ie.value + "choose-return-node"), E.$off(Ie.value + "remove-signer"), E.$off(Ie.value + "prohibit-edit"), E.$off(Ie.value + "open-dialog"), E.$off(Ie.value + "save-chart-condition"), E.$off("pageLoaded"), ze.value && R(null, ze.value, ze.value, "onUnmounted"), Ze && clearTimeout(Ze), ea && clearTimeout(ea), aa && clearTimeout(aa);
|
|
191
193
|
});
|
|
192
|
-
const
|
|
193
|
-
function
|
|
194
|
-
true ===
|
|
194
|
+
const pa = a(null);
|
|
195
|
+
function ma(e3) {
|
|
196
|
+
true === we.value && (we.value = false, G(qe.value, e3)), true === Oe.value && (Oe.value = false, H(qe.value, e3)), true === Re.value && (Re.value = false, z(qe.value, e3));
|
|
195
197
|
}
|
|
196
|
-
function
|
|
197
|
-
|
|
198
|
+
function ga(e3) {
|
|
199
|
+
Me.value = [], Fe.value = false, Q(qe.value, e3);
|
|
198
200
|
}
|
|
199
|
-
function
|
|
200
|
-
|
|
201
|
+
function ca(e3) {
|
|
202
|
+
Ve.value = [], Ee.value = false, A(qe.value, e3);
|
|
201
203
|
}
|
|
202
|
-
const
|
|
203
|
-
function
|
|
204
|
+
const fa = oe();
|
|
205
|
+
function da(e3) {
|
|
204
206
|
var _a, _b;
|
|
205
|
-
const
|
|
207
|
+
const a2 = We.value.closeEvent, l2 = We.value.isRefreshWhenClosePopup;
|
|
206
208
|
let t2, u2;
|
|
207
|
-
const n2 =
|
|
209
|
+
const n2 = Le.value.tableName;
|
|
208
210
|
let o2;
|
|
209
|
-
const i2 =
|
|
211
|
+
const i2 = He.value.columnProp ? He.value.columnProp : null;
|
|
210
212
|
if (i2) {
|
|
211
|
-
const e4 = (_b = (_a =
|
|
213
|
+
const e4 = (_b = (_a = Ge.value) == null ? void 0 : _a.items) == null ? void 0 : _b.filter((e5) => {
|
|
212
214
|
var _a2, _b2, _c, _d;
|
|
213
215
|
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;
|
|
214
216
|
});
|
|
215
217
|
o2 = e4 && e4.length > 0 ? e4[0] : null;
|
|
216
|
-
} else o2 =
|
|
218
|
+
} else o2 = Ge.value;
|
|
217
219
|
if (e3) {
|
|
218
|
-
const
|
|
219
|
-
t2 = e3.dataModel, u2 = e3.sourceTableName,
|
|
220
|
+
const a3 = e3.isNeedValueMapping;
|
|
221
|
+
t2 = e3.dataModel, u2 = e3.sourceTableName, a3 && K(Le.value, o2, t2, u2, We.value ? We.value.valueMappings : null);
|
|
220
222
|
}
|
|
221
|
-
R(null,
|
|
223
|
+
R(null, Le.value, o2, "closePopup", { sourceModel: t2, sourceTableName: u2, jumpPageSetting: We.value, entity: Le.value.entity.data, targetTableName: n2, pageContext: ze.value, parentPageContext: Le.value, parentConfigureObj: o2, columnProp: i2 }), function(e4, a3, l3) {
|
|
222
224
|
if (e4) {
|
|
223
|
-
const t3 =
|
|
224
|
-
t3 && t3.apply(t3, [{ pageContext:
|
|
225
|
+
const t3 = I(Le.value, e4);
|
|
226
|
+
t3 && t3.apply(t3, [{ pageContext: ze.value, parentPageContext: Le.value, parentConfigureObj: l3, jumpPageSetting: We.value, columnProp: a3 }]);
|
|
225
227
|
}
|
|
226
|
-
}(
|
|
228
|
+
}(a2, i2, o2), X(Le.value, Ge.value, l2, void 0 !== l2 && false === l2 ? "noOperation" : null), Le.value = null, Ge.value = null, He.value = null, E.$off(Ie.value + "close-dialog"), Ue.value = false;
|
|
227
229
|
}
|
|
228
|
-
function
|
|
229
|
-
|
|
230
|
-
|
|
230
|
+
function ya(e3) {
|
|
231
|
+
Y(ze.value, e3).then((e4) => {
|
|
232
|
+
ee({ showClose: true, type: "success", message: je("superPageRuntimeMessage.successfulSave") }), ta.value.refreshConditionList();
|
|
231
233
|
});
|
|
232
234
|
}
|
|
233
|
-
function
|
|
234
|
-
const
|
|
235
|
-
let
|
|
236
|
-
|
|
235
|
+
function ha(e3) {
|
|
236
|
+
const a2 = e3.queryCondition;
|
|
237
|
+
let l2 = {};
|
|
238
|
+
a2 && (l2 = JSON.parse(a2)), l2 && l2.data && Object.assign(ze.value.entity.data, l2.data), l2 && l2.page && Object.assign(ze.value.entity.page, l2.page), la.value = false;
|
|
237
239
|
}
|
|
238
|
-
return
|
|
239
|
-
let
|
|
240
|
-
(
|
|
240
|
+
return he2({ pickFileDone: function(e3) {
|
|
241
|
+
let a2 = e3.componentId, l2 = e3.listCode;
|
|
242
|
+
(a2 || l2) && (l2 ? E.$emit(l2 + "-pickFileDone", e3) : E.$emit(a2 + "-pickFileDone", e3));
|
|
241
243
|
}, uploadFileDone: function(e3) {
|
|
242
|
-
let
|
|
243
|
-
(
|
|
244
|
+
let a2 = e3.componentId, l2 = e3.listCode;
|
|
245
|
+
(a2 || l2) && (l2 ? E.$emit(l2 + "-uploadFileDone", e3) : E.$emit(a2 + "-uploadFileDone", e3));
|
|
244
246
|
}, scanDone: function(e3) {
|
|
245
|
-
let
|
|
246
|
-
(
|
|
247
|
-
}
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
247
|
+
let a2 = e3.componentId, l2 = e3.listCode;
|
|
248
|
+
(a2 || l2) && (l2 ? E.$emit(l2 + "-scanDone", e3) : E.$emit(a2 + "-scanDone", e3));
|
|
249
|
+
}, getFormFormatData: function() {
|
|
250
|
+
return de.getFormFormatDataUtil(ze.value);
|
|
251
|
+
} }), (e3, a2) => {
|
|
252
|
+
const l2 = i("loading");
|
|
253
|
+
return s((v(), r("div", ye, [Je.value ? (v(), r("div", { ref_key: "thisRef", ref: $e, key: Xe.value, class: g(["runtime-page-container-view", xe.value]), style: m(Se.value) }, [(v(true), r(d, null, y(De.value, (e4, a3) => (v(), c(b, { key: e4.uuid, configure: e4, pageContext: h(ze) }, null, 8, ["configure", "pageContext"]))), 128)), Te.value ? (v(), c(F, { key: 0, configure: Qe.value, pageContext: Ae.value, onClose: ra, onExport: va }, null, 8, ["configure", "pageContext"])) : p("", true), f("input", { ref_key: "_selectFile_", ref: pa, type: "file", name: "_selectFile_", style: { display: "none" }, onChange: a2[0] || (a2[0] = (e4) => function() {
|
|
254
|
+
if (qe.value) {
|
|
255
|
+
if (!pa.value) return;
|
|
256
|
+
if ("" === pa.value.value || null === pa.value.value) return;
|
|
257
|
+
const e5 = pa.value.files[0];
|
|
258
|
+
e5 ? (pa.value.value = null, L(qe.value, e5)) : ee({ showClose: true, type: "warning", message: je("superPageRuntimeMessage.noFileSelected") });
|
|
255
259
|
}
|
|
256
|
-
}()) }, null, 544),
|
|
260
|
+
}()) }, null, 544), we.value || Oe.value || Re.value ? (v(), c(h(le), { key: 1, width: "60%", multiple: _e.value, onClose: ma }, null, 8, ["multiple"])) : p("", true), Fe.value ? (v(), c(M, { key: 2, "task-informitions": Me.value, onClose: a2[1] || (a2[1] = (e4) => Fe.value = false), onResult: ga }, null, 8, ["task-informitions"])) : p("", true), Ee.value ? (v(), c(V, { key: 3, "task-id": Be.value, "active-tasks": Ve.value, onClose: a2[2] || (a2[2] = (e4) => Ee.value = false), onResult: ca }, null, 8, ["task-id", "active-tasks"])) : p("", true), Ue.value ? (v(), c(ue, { key: 4, parentPageContext: Le.value, parentPageEventParams: He.value, jumpPageSetting: We.value, onClose: a2[3] || (a2[3] = (e4) => da()) }, null, 8, ["parentPageContext", "parentPageEventParams", "jumpPageSetting"])) : p("", true), la.value ? (v(), c(fe, { key: 5, ref_key: "chartCondtionRef", ref: ta, pageContext: h(ze), onClose: a2[4] || (a2[4] = (e4) => la.value = false), onSave: ya, onConfirm: ha }, null, 8, ["pageContext"])) : p("", true)], 6)) : p("", true)])), [[l2, ke.value]]);
|
|
257
261
|
};
|
|
258
262
|
} });
|
|
259
263
|
export {
|
|
260
|
-
|
|
264
|
+
he as default
|
|
261
265
|
};
|