super-page-runtime 2.3.18-tmp2 → 2.3.18-tmp3
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/barcode-util.js +5 -5
- package/dist/es/components/runtime/utils/charts/chart-pie-util.js +49 -48
- package/dist/es/components/runtime/utils/charts/chart-scatter-util.js +14 -12
- package/dist/es/components/runtime/utils/charts/chart-util.js +58 -56
- package/dist/es/components/runtime/utils/events/event-util.js +111 -111
- package/dist/es/components/runtime/utils/events/print-label.js +1 -0
- package/dist/es/components/runtime/utils/events/standard-event.js +524 -512
- package/dist/es/components/runtime/utils/events/validator-util.js +1 -1
- package/dist/es/components/runtime/utils/form/scan-util.js +4 -3
- package/dist/es/components/runtime/utils/page-helper-util.js +275 -275
- package/dist/es/components/runtime/utils/page-init-util.js +82 -79
- package/dist/es/components/runtime/utils/page-store.js +10 -10
- package/dist/es/components/runtime/utils/table-utils.js +28 -28
- package/dist/es/components/runtime/views/assemblys/chart/column-line/column-line-runtime.vue2.js +14 -10
- package/dist/es/components/runtime/views/assemblys/chart/common/common-chart-header-group.vue.js +3 -3
- package/dist/es/components/runtime/views/assemblys/chart/common/common-chart-header.vue.js +6 -6
- 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 +15 -14
- package/dist/es/components/runtime/views/assemblys/chart/radar/radar-runtime.vue2.js +15 -14
- package/dist/es/components/runtime/views/assemblys/chart/scatter/scatter-runtime.vue2.js +16 -15
- package/dist/es/components/runtime/views/assemblys/chart/table/table-runtime.vue2.js +86 -85
- package/dist/es/components/runtime/views/assemblys/common/export-form-report-dialog.vue.js +24 -22
- package/dist/es/components/runtime/views/assemblys/container/fixed/YxAffix.vue2.js +1 -1
- package/dist/es/components/runtime/views/assemblys/container/tabs/tabs-runtime.vue2.js +63 -63
- package/dist/es/components/runtime/views/assemblys/data/table/main-table-runtime.vue.js +40 -38
- package/dist/es/components/runtime/views/assemblys/data/table/sub-table-runtime.vue.js +90 -87
- package/dist/es/components/runtime/views/assemblys/data/tree/tree-runtime.vue2.js +39 -38
- package/dist/es/components/runtime/views/assemblys/form/checkbox/checkbox-runtime.vue2.js +1 -0
- package/dist/es/components/runtime/views/assemblys/form/custom/custom-runtime.vue2.js +26 -26
- package/dist/es/components/runtime/views/assemblys/form/file-upload/fileupload-runtime.vue2.js +14 -14
- package/dist/es/components/runtime/views/assemblys/form/input-text/inputtext-runtime.vue2.js +49 -49
- package/dist/es/components/runtime/views/assemblys/form/label/label-runtime.vue2.js +6 -6
- package/dist/es/components/runtime/views/assemblys/form/link/link-runtime.vue2.js +10 -10
- 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 +13 -13
- package/dist/es/components/runtime/views/assemblys/form/select/select-runtime.vue2.js +16 -16
- package/dist/es/components/runtime/views/assemblys/object-render.vue.js +6 -6
- package/dist/es/components/runtime/views/home-chart.vue.js +4 -4
- package/dist/es/components/runtime/views/super-page-dialog.vue.js +9 -9
- package/dist/es/components/runtime/views/super-page.vue.js +1 -1
- package/dist/es/components/runtime/views/super-page.vue2.js +171 -170
- package/dist/es/style.css +76 -76
- package/package.json +1 -1
|
@@ -1,96 +1,96 @@
|
|
|
1
|
-
import { defineComponent as e, ref as
|
|
1
|
+
import { defineComponent as e, ref as n, watch as t, onMounted as o, nextTick as a, resolveComponent as i, createBlock as c, openBlock as l, unref as u, normalizeClass as r, normalizeStyle as s, withCtx as p, createElementBlock as f, createCommentVNode as d, Fragment as g, renderList as m, createElementVNode as b, toDisplayString as y, withModifiers as v, createTextVNode as h } from "vue";
|
|
2
2
|
import { ElTabs as x, ElTabPane as C } from "element-plus";
|
|
3
3
|
import T from "../../object-render.vue.js";
|
|
4
4
|
import { SuperIcon as E } from "agilebuilder-ui";
|
|
5
|
-
import { handleAfterInitEvent as k, handleEvent as
|
|
6
|
-
import { $t as
|
|
7
|
-
import { isPromise as
|
|
8
|
-
const
|
|
9
|
-
const
|
|
10
|
-
|
|
5
|
+
import { handleAfterInitEvent as k, handleEvent as w } from "../../../../utils/events/event-util.js";
|
|
6
|
+
import { $t as N } from "../../../../utils/i18n-util.js";
|
|
7
|
+
import { isPromise as V } from "../../../../utils/page-helper-util.js";
|
|
8
|
+
const _ = e({ __name: "tabs-runtime", props: { pageContext: {}, configure: {} }, setup(e2, { expose: _2 }) {
|
|
9
|
+
const A = e2, P = n(""), j = n([]);
|
|
10
|
+
A.configure.items.forEach((e3) => {
|
|
11
11
|
e3.code || (e3.code = e3.index);
|
|
12
|
-
}),
|
|
13
|
-
const O =
|
|
14
|
-
function S(e3,
|
|
15
|
-
return
|
|
12
|
+
}), P.value = A.configure.props.defaultOpen ? A.configure.props.defaultOpen : 1;
|
|
13
|
+
const O = n(null), R = A.configure.runtime ? A.configure.runtime : {}, B = R.style, z = R.class, I = R.headerStyle;
|
|
14
|
+
function S(e3, n2) {
|
|
15
|
+
return w(e3, A.pageContext, A.configure, "before-leave", { activeName: e3, oldActiveName: n2 }) ?? true;
|
|
16
16
|
}
|
|
17
|
-
function D(e3,
|
|
18
|
-
const
|
|
19
|
-
return
|
|
17
|
+
function D(e3, n2) {
|
|
18
|
+
const t2 = { pane: e3, ev: n2 }, o2 = e3.paneName;
|
|
19
|
+
return A.pageContext.activeTab = o2, A.pageContext.activeLabel = t2.label, w(o2, A.pageContext, A.configure, "tab-click", t2);
|
|
20
20
|
}
|
|
21
21
|
function F(e3) {
|
|
22
|
-
const
|
|
23
|
-
return
|
|
22
|
+
const n2 = { paneName: e3 };
|
|
23
|
+
return A.pageContext.activeTab = e3, w(e3, A.pageContext, A.configure, "tab-change", n2);
|
|
24
24
|
}
|
|
25
25
|
function L(e3) {
|
|
26
|
-
const
|
|
27
|
-
|
|
28
|
-
false !==
|
|
29
|
-
}) : false !==
|
|
26
|
+
const n2 = { paneName: e3 }, t2 = w(e3, A.pageContext, A.configure, "tab-remove", n2);
|
|
27
|
+
V(t2) ? t2.then((n3) => {
|
|
28
|
+
false !== n3 && U(e3);
|
|
29
|
+
}) : false !== t2 && U(e3);
|
|
30
30
|
}
|
|
31
31
|
function U(e3) {
|
|
32
|
-
|
|
33
|
-
if (
|
|
34
|
-
const e4 =
|
|
35
|
-
e4 && void 0 !== e4.code && (
|
|
32
|
+
P.value === e3 && A.configure.items.forEach((n2, t2) => {
|
|
33
|
+
if (n2.code === e3) {
|
|
34
|
+
const e4 = A.configure.items[t2 + 1] || A.configure.items[t2 - 1];
|
|
35
|
+
e4 && void 0 !== e4.code && (P.value = e4.code);
|
|
36
36
|
}
|
|
37
|
-
}),
|
|
37
|
+
}), j.value.includes(e3) || j.value.push(e3);
|
|
38
38
|
}
|
|
39
39
|
function q() {
|
|
40
|
-
return
|
|
40
|
+
return w(null, A.pageContext, A.configure, "tab-add");
|
|
41
41
|
}
|
|
42
|
-
function G(e3,
|
|
43
|
-
const
|
|
44
|
-
return
|
|
42
|
+
function G(e3, n2) {
|
|
43
|
+
const t2 = { paneName: e3, action: n2 };
|
|
44
|
+
return w(e3, A.pageContext, A.configure, "edit", t2);
|
|
45
45
|
}
|
|
46
46
|
function H() {
|
|
47
|
-
const e3 =
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
}) : false !== e3 && (
|
|
47
|
+
const e3 = w(A.configure.items, A.pageContext, A.configure, "tab-reset");
|
|
48
|
+
V(e3) ? e3.then((e4) => {
|
|
49
|
+
j.value = [];
|
|
50
|
+
}) : false !== e3 && (j.value = []);
|
|
51
51
|
}
|
|
52
|
-
return
|
|
52
|
+
return t(j, (e3) => {
|
|
53
53
|
e3 && e3.length > 0 ? e3.forEach((e4) => {
|
|
54
|
-
const
|
|
55
|
-
|
|
56
|
-
}) :
|
|
57
|
-
const
|
|
58
|
-
|
|
54
|
+
const n2 = document.getElementById("tab-" + e4);
|
|
55
|
+
n2 && (n2.style.display = "none");
|
|
56
|
+
}) : A.configure.items.forEach((e4) => {
|
|
57
|
+
const n2 = document.getElementById("tab-" + e4.code);
|
|
58
|
+
n2 && (n2.style.display = "");
|
|
59
59
|
});
|
|
60
60
|
}, { deep: true }), o(() => {
|
|
61
61
|
a(() => {
|
|
62
62
|
let e3 = [];
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
}), k(null,
|
|
63
|
+
A.configure.items.forEach((n2) => {
|
|
64
|
+
n2.code && e3.push(document.getElementById("tab-" + n2.code));
|
|
65
|
+
}), k(null, A.pageContext, A.configure, { componentRef: O.value, tabsDom: e3, entity: A.pageContext.entity.data, pageData: A.pageContext.entity.page });
|
|
66
66
|
});
|
|
67
|
-
}),
|
|
67
|
+
}), _2({ thisRef: O, activeName: P, hiddenPanes: j, resetTab: H, hiddenTabPanes: function(e3) {
|
|
68
68
|
if (Array.isArray(e3)) {
|
|
69
|
-
const
|
|
69
|
+
const n2 = [];
|
|
70
70
|
e3.forEach((e4) => {
|
|
71
|
-
|
|
72
|
-
}),
|
|
73
|
-
}
|
|
71
|
+
j.value.includes(e4) || n2.push(e4);
|
|
72
|
+
}), n2.length > 0 && j.value.push(...n2);
|
|
73
|
+
} else console.warn("hiddenTabs expects an array of pane names.");
|
|
74
74
|
}, showTabPanes: function(e3) {
|
|
75
|
-
Array.isArray(e3)
|
|
76
|
-
const
|
|
77
|
-
|
|
78
|
-
});
|
|
75
|
+
Array.isArray(e3) ? e3.forEach((e4) => {
|
|
76
|
+
const n2 = j.value.indexOf(e4);
|
|
77
|
+
n2 > -1 && j.value.splice(n2, 1);
|
|
78
|
+
}) : console.warn("showTabs expects an array of pane names.");
|
|
79
79
|
}, showTabPanesOnly: function(e3) {
|
|
80
|
-
const
|
|
81
|
-
|
|
82
|
-
e3.includes(
|
|
83
|
-
}),
|
|
80
|
+
const n2 = [];
|
|
81
|
+
A.configure.items.forEach((t2) => {
|
|
82
|
+
e3.includes(t2.code) || n2.push(t2.code);
|
|
83
|
+
}), j.value = [...new Set(n2)];
|
|
84
84
|
}, hiddenTabPanesOnly: function(e3) {
|
|
85
|
-
const
|
|
86
|
-
|
|
87
|
-
e3.includes(
|
|
88
|
-
}),
|
|
89
|
-
} }), (e3,
|
|
90
|
-
const
|
|
91
|
-
return
|
|
85
|
+
const n2 = [];
|
|
86
|
+
A.configure.items.forEach((t2) => {
|
|
87
|
+
e3.includes(t2.code) && n2.push(t2.code);
|
|
88
|
+
}), j.value = [...new Set(n2)];
|
|
89
|
+
} }), (e3, n2) => {
|
|
90
|
+
const t2 = i("el-button");
|
|
91
|
+
return l(), c(u(x), { ref_key: "thisRef", ref: O, modelValue: P.value, "onUpdate:modelValue": n2[0] || (n2[0] = (e4) => P.value = e4), type: e3.configure.props.cardType, "tab-position": e3.configure.props.tabPosition, style: s(u(B)), class: r([u(z), "runtime-page-container-tabs-view"]), closable: e3.configure.props.closable, "before-leave": S, onTabClick: D, onTabChange: F, onTabRemove: L, onTabAdd: q, onEdit: G }, { default: p(() => [(l(true), f(g, null, m(A.configure.items, (n3, t3) => (l(), c(u(C), { key: t3, label: n3.label, name: n3.code, lazy: !!e3.configure.props.lazy }, { label: p(() => [n3.iconType && n3.iconValue ? (l(), c(u(E), { key: 0, iconType: n3.iconType, iconValue: n3.iconValue, style: { "margin-right": "2px" } }, null, 8, ["iconType", "iconValue"])) : d("", true), b("span", { style: s(u(I)) }, y(u(N)(n3.label)), 5)]), default: p(() => [(e3.configure.props.isFullyRendered ?? 1) || n3.code === P.value ? (l(true), f(g, { key: 0 }, m(n3.items, (n4) => (l(), c(T, { key: n4.uuid, pageContext: e3.pageContext, configure: n4 }, null, 8, ["pageContext", "configure"]))), 128)) : d("", true)]), _: 2 }, 1032, ["label", "name", "lazy"]))), 128)), e3.configure.props.resetable ? (l(), c(u(C), { key: 0, disabled: "", name: "-1" }, { label: p(() => [e3.configure.props.resetable ? (l(), c(t2, { key: 0, type: "text", circle: "", onClick: v(H, ["stop"]) }, { default: p(() => [h(y(e3.configure.props.resetButtonName || "重置"), 1)]), _: 1 })) : d("", true)]), _: 1 })) : d("", true)]), _: 1 }, 8, ["modelValue", "type", "tab-position", "style", "class", "closable"]);
|
|
92
92
|
};
|
|
93
93
|
} });
|
|
94
94
|
export {
|
|
95
|
-
|
|
95
|
+
_ as default
|
|
96
96
|
};
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { defineComponent as e, ref as t, onMounted as n, watch as o, onUnmounted as i, resolveComponent as a, createElementBlock as l, openBlock as r, unref as u, createVNode as s } from "vue";
|
|
2
|
-
import { setTableEvents as c, canExecuteButton as p, doAfterClickEvent as d, doBeforeClickEvent as f, gridSelectRecord as g, gridSelectAllRecords as m, gridSelectionChange as v, cellClick as h, cellDblClick as b, rowClick as
|
|
3
|
-
import { getBaseUrl as E, getListCode as T, getRealRestApiPath as
|
|
2
|
+
import { setTableEvents as c, canExecuteButton as p, doAfterClickEvent as d, doBeforeClickEvent as f, gridSelectRecord as g, gridSelectAllRecords as m, gridSelectionChange as v, cellClick as h, cellDblClick as b, rowClick as C, rowDblClick as S, headerClick as w, getEventNameByType as y, getEventFuncByType as x, getHandleEvent as D } from "../../../../utils/events/event-util.js";
|
|
3
|
+
import { getBaseUrl as E, getListCode as T, getRealRestApiPath as R, isWorkflowPage as O, isVariableInvalidValue as k } from "../../../../utils/common-util.js";
|
|
4
4
|
import { getAdditionalParamMap as I, getSaveFormRequestWithRow as V, standardEvents as j } from "../../../../utils/events/standard-event.js";
|
|
5
5
|
import { isPromise as N } from "agilebuilder-ui/src/utils/common-util";
|
|
6
|
-
import { getOperationButtons as
|
|
6
|
+
import { getOperationButtons as P, popupToPage as B } from "../../../../utils/table-utils.js";
|
|
7
7
|
import F from "../../../../utils/eventBus.js";
|
|
8
8
|
import { getDefaultValue as H } from "../../../../utils/page-init-util.js";
|
|
9
|
-
import { getSizeConfig as
|
|
9
|
+
import { getSizeConfig as M, caculateShowCondition as U, decomposeVariable as L } from "../../../../utils/page-helper-util.js";
|
|
10
10
|
import { getComponentRefByCode as $ } from "../../../../utils/global-refs.js";
|
|
11
11
|
import { getRowStyleUtil as _, getCellStyleUtil as A, getHeaderCellStyleUtil as G } from "../../chart/table/chart-table-util.js";
|
|
12
12
|
const z = ["id"], W = e({ __name: "main-table-runtime", props: { pageContext: {}, configure: {} }, emits: ["setSafeDeleteTableCode"], setup(e2, { expose: W2, emit: q }) {
|
|
@@ -23,14 +23,14 @@ const z = ["id"], W = e({ __name: "main-table-runtime", props: { pageContext: {}
|
|
|
23
23
|
const e3 = Y.systemCode, t2 = Y.code;
|
|
24
24
|
let n2 = J.props && J.props.dataOrigin && "[]" !== J.props.dataOrigin.sqlFilterCondition ? J.props.dataOrigin.sqlFilterCondition : null;
|
|
25
25
|
null == n2 && (n2 = []);
|
|
26
|
-
const o2 = (_a = J.props) == null ? void 0 : _a.dataOrigin.principalLinkage, i2 = { isSql: true, optionTableHeight: 0, rowKeyProp: o2, extraParam: { beanName: Y.beanName, functionCode: t2 + ".listData", tableName: ne, systemCode: e3, pageCode: Y.code, pageVersion: Y.version }, initSearchForm: n2, lineEditOptions: { aftersaveIsCreateRow: false, autoSave: false, enter:
|
|
26
|
+
const o2 = (_a = J.props) == null ? void 0 : _a.dataOrigin.principalLinkage, i2 = { isSql: true, optionTableHeight: 0, rowKeyProp: o2, extraParam: { beanName: Y.beanName, functionCode: t2 + ".listData", tableName: ne, systemCode: e3, pageCode: Y.code, pageVersion: Y.version }, initSearchForm: n2, lineEditOptions: { aftersaveIsCreateRow: false, autoSave: false, enter: Se, esc: Ee }, indexContinuous: !(!J.props || !J.props.otherSettings) && J.props.otherSettings.serialNumberContinuous, initSearch: !J.props || false !== J.props.dataOrigin.initializationQuery, resizeHeight: je, pageCode: Y.code, pageVersion: Y.version, additionalParamMap: I(Y), showOverflowTooltip: !(!J.props || !J.props.otherSettings || void 0 !== J.props.otherSettings.isBreakLine && false !== J.props.otherSettings.isBreakLine), isEnableEnterEvent: J.props && J.props.otherSettings && J.props.otherSettings.isEnableEnterEvent, isWithDataPermission: !!(J.props && J.props.otherSettings && J.props.otherSettings.isWithDataPermission) && J.props.otherSettings.isWithDataPermission, pageDevMode: false, isWorkflowEntity: O(Y), tableClass: Z, tableStyle: X, pageContext: Y, configureObj: J, backendUrl: oe, cellStyleRender: qe, rowStyleRender: We, titleStyleRender: Qe, validateEitConditions: Xe };
|
|
27
27
|
return function(e4) {
|
|
28
28
|
var _a2;
|
|
29
29
|
((_a2 = J.props.highOrder) == null ? void 0 : _a2.mergeFields) && J.props.highOrder.mergeFields.length > 0 && (e4.mergeFields = J.props.highOrder.mergeFields.join(","));
|
|
30
30
|
}(i2), function(e4) {
|
|
31
31
|
const t3 = [];
|
|
32
32
|
e4.operations || (e4.operations = {});
|
|
33
|
-
|
|
33
|
+
P(Y, J, t3, ye), e4.operations.operation = t3;
|
|
34
34
|
}(i2), function(e4) {
|
|
35
35
|
J.props && J.props.dataOrigin && J.props.dataOrigin.sortField && (e4.initSortInfo = [], J.props.dataOrigin.sortField.forEach((t3) => {
|
|
36
36
|
const n3 = { order: "desc" === t3.type ? "desc" : "asc" };
|
|
@@ -57,18 +57,20 @@ const z = ["id"], W = e({ __name: "main-table-runtime", props: { pageContext: {}
|
|
|
57
57
|
}();
|
|
58
58
|
const re = t(), ue = t(), se = function() {
|
|
59
59
|
let e3 = oe + "/dsc/commons/list";
|
|
60
|
-
e3 && (e3 =
|
|
60
|
+
e3 && (e3 = R(e3, ee, te, Y.isTest));
|
|
61
61
|
return e3;
|
|
62
|
-
}(), ce = T(Y.code, Y.version, J.uuid), pe = Y.code + "_" + ce, de = t([]), fe = Y.entity.page, ge = t({ data: [] }), me = Y.superGridItems, ve = me ? me[J.uuid] : null
|
|
63
|
-
|
|
62
|
+
}(), ce = T(Y.code, Y.version, J.uuid), pe = Y.code + "_" + ce, de = t([]), fe = Y.entity.page, ge = t({ data: [] }), me = Y.superGridItems, ve = me ? me[J.uuid] : null;
|
|
63
|
+
console.log("superGridSetting1111===", me, ve);
|
|
64
|
+
const he = t(false), be = q;
|
|
65
|
+
function Ce() {
|
|
64
66
|
J.props.linkages && J.props.linkages.length > 0 && (J.props.linkages.forEach((e3) => {
|
|
65
|
-
const t2 =
|
|
67
|
+
const t2 = L(e3.fieldName);
|
|
66
68
|
t2 && t2.length > 1 && ae.push(t2[1]);
|
|
67
69
|
}), ae.length > 0 && function() {
|
|
68
70
|
let e3 = [];
|
|
69
71
|
Q.pageContext.toolsInputComponents && Q.pageContext.toolsInputComponents.length > 0 && Q.pageContext.toolsInputComponents.forEach((t2) => {
|
|
70
72
|
if (J.props.linkages.some((e4) => e4.fieldName === t2.prop) && t2.defaultValue) {
|
|
71
|
-
const n2 =
|
|
73
|
+
const n2 = L(t2.prop);
|
|
72
74
|
n2 && n2.length > 1 && e3.push(n2[1]);
|
|
73
75
|
}
|
|
74
76
|
});
|
|
@@ -84,10 +86,10 @@ const z = ["id"], W = e({ __name: "main-table-runtime", props: { pageContext: {}
|
|
|
84
86
|
}
|
|
85
87
|
}());
|
|
86
88
|
}
|
|
87
|
-
function
|
|
88
|
-
|
|
89
|
+
function Se({ rowIndex: e3, column: t2, row: n2, orgRow: o2 }) {
|
|
90
|
+
we(null, null, n2, t2, e3);
|
|
89
91
|
}
|
|
90
|
-
function
|
|
92
|
+
function we(e3, t2, n2, o2, i2) {
|
|
91
93
|
const a2 = ie.value.lineEditSave, l2 = J;
|
|
92
94
|
a2.props.base.tableUuid = l2.uuid, le.value.lineEditOptions.beforeSave = xe, Y.editData = n2, p({ pageContext: Y, configureObj: a2 }).then((l3) => {
|
|
93
95
|
true === l3.canExecute && (le.value.lineEditOptions.saveRow = De, ue.value.saveRow(i2, ce).then(() => {
|
|
@@ -102,10 +104,10 @@ const z = ["id"], W = e({ __name: "main-table-runtime", props: { pageContext: {}
|
|
|
102
104
|
let t2;
|
|
103
105
|
const n2 = y(e3.events, "click");
|
|
104
106
|
if (n2) {
|
|
105
|
-
if (ie.value[n2] = e3, "lineEditSave" === n2 ? t2 =
|
|
107
|
+
if (ie.value[n2] = e3, "lineEditSave" === n2 ? t2 = we : "restoreEdit" === n2 ? t2 = Te : "lineEditUpdate" === n2 ? t2 = Re : "lineEditDelete" === n2 && (t2 = ke), !t2) {
|
|
106
108
|
t2 = x(Y, e3.events, "click");
|
|
107
109
|
}
|
|
108
|
-
} else ie.value[e3.uuid] = e3, t2 =
|
|
110
|
+
} else ie.value[e3.uuid] = e3, t2 = Pe;
|
|
109
111
|
return { onClick: t2, eventName: n2 };
|
|
110
112
|
}
|
|
111
113
|
function xe({ row: e3, columns: t2, additionalParamMap: n2 }) {
|
|
@@ -137,15 +139,15 @@ const z = ["id"], W = e({ __name: "main-table-runtime", props: { pageContext: {}
|
|
|
137
139
|
}) : ue.value.restoreRow(i2, ce);
|
|
138
140
|
d(Y, J, { originalValue: e3, formatValue: t2, row: n2, column: o2, rowIndex: i2 });
|
|
139
141
|
}
|
|
140
|
-
function
|
|
142
|
+
function Re(e3, t2, n2, o2, i2) {
|
|
141
143
|
const a2 = ie.value.lineEditUpdate, l2 = J;
|
|
142
144
|
a2.props.base.tableUuid = l2.uuid;
|
|
143
145
|
const r2 = f(Y, a2, { originalValue: e3, formatValue: t2, row: n2, column: o2, rowIndex: i2 });
|
|
144
146
|
r2 && (N(r2) ? r2.then((l3) => {
|
|
145
|
-
l3 &&
|
|
146
|
-
}) :
|
|
147
|
+
l3 && Oe(e3, t2, n2, o2, i2, a2);
|
|
148
|
+
}) : Oe(e3, t2, n2, o2, i2, a2));
|
|
147
149
|
}
|
|
148
|
-
function
|
|
150
|
+
function Oe(e3, t2, n2, o2, i2, a2) {
|
|
149
151
|
Y.editData = n2, p({ pageContext: Y, configureObj: a2 }).then((a3) => {
|
|
150
152
|
if (true === a3.canExecute) {
|
|
151
153
|
ue.value.editRow(i2, ce);
|
|
@@ -178,7 +180,7 @@ const z = ["id"], W = e({ __name: "main-table-runtime", props: { pageContext: {}
|
|
|
178
180
|
}
|
|
179
181
|
}
|
|
180
182
|
function Ve(e3) {
|
|
181
|
-
if (!Y.dataTypeMaps) return;
|
|
183
|
+
if (!Y.dataTypeMaps) return void console.log("!pageContext['dataTypeMaps'] || !pageContext['dataTypeMaps'][tableName]");
|
|
182
184
|
const t2 = Y.dataTypeMaps;
|
|
183
185
|
let n2 = [];
|
|
184
186
|
if (e3) for (var o2 in e3) {
|
|
@@ -197,7 +199,7 @@ const z = ["id"], W = e({ __name: "main-table-runtime", props: { pageContext: {}
|
|
|
197
199
|
e4.propName = o2, e4.propDbName = o2, e4.dataType = t2[o2] ? t2[o2] : "TEXT", e4.operator = "EQ", e4.propValue = a2, Ze(e4, o2), e4.rightBracket = ")", e4.joinSign = "and", n2.push(e4);
|
|
198
200
|
}
|
|
199
201
|
}
|
|
200
|
-
ue.value.toolbarRefresh(null, null, n2);
|
|
202
|
+
console.log("toolbarRefresh"), ue.value.toolbarRefresh(null, null, n2);
|
|
201
203
|
}
|
|
202
204
|
function je(e3) {
|
|
203
205
|
const t2 = Ne();
|
|
@@ -208,7 +210,7 @@ const z = ["id"], W = e({ __name: "main-table-runtime", props: { pageContext: {}
|
|
|
208
210
|
}
|
|
209
211
|
function Ne() {
|
|
210
212
|
if (!ue.value) return;
|
|
211
|
-
const e3 =
|
|
213
|
+
const e3 = M(Q.pageContext, Q.configure);
|
|
212
214
|
if (e3) {
|
|
213
215
|
if (e3.isCalcHeight) {
|
|
214
216
|
let e4 = ue.value.$el;
|
|
@@ -219,11 +221,11 @@ const z = ["id"], W = e({ __name: "main-table-runtime", props: { pageContext: {}
|
|
|
219
221
|
if (e3.fixHeight && ue.value && (ue.value.tableHeight = e3.fixHeight), e3.maxHeight) return e3.maxHeight;
|
|
220
222
|
}
|
|
221
223
|
}
|
|
222
|
-
function
|
|
224
|
+
function Pe(e3, t2, n2, o2, i2, a2) {
|
|
223
225
|
const l2 = { originalValue: e3, formatValue: t2, row: n2, column: o2, rowIndex: i2, button: a2, id: n2.ID ? n2.ID : n2.id }, r2 = ie.value[a2.sourceButton.uuid], u2 = J;
|
|
224
226
|
r2.props.base.tableUuid = u2.uuid, D(null, Y, r2, "click", l2);
|
|
225
227
|
}
|
|
226
|
-
function
|
|
228
|
+
function Be(e3) {
|
|
227
229
|
"close_open_win" === e3.data && ue.value && ue.value.refresh();
|
|
228
230
|
}
|
|
229
231
|
function Fe(e3, t2) {
|
|
@@ -234,23 +236,23 @@ const z = ["id"], W = e({ __name: "main-table-runtime", props: { pageContext: {}
|
|
|
234
236
|
de.value = e3;
|
|
235
237
|
m(Y, J, { selection: e3 });
|
|
236
238
|
}
|
|
237
|
-
function
|
|
239
|
+
function Me(e3) {
|
|
238
240
|
v(Y, J, { newSelection: e3 });
|
|
239
241
|
}
|
|
240
|
-
function
|
|
242
|
+
function Ue(e3, t2, n2, o2) {
|
|
241
243
|
h(Y, J, { row: e3, column: t2, cell: n2, event: o2 });
|
|
242
244
|
}
|
|
243
|
-
function
|
|
245
|
+
function Le(e3, t2, n2, o2) {
|
|
244
246
|
b(Y, J, { row: e3, column: t2, cell: n2, event: o2 });
|
|
245
247
|
}
|
|
246
248
|
function $e(e3, t2, n2) {
|
|
247
|
-
|
|
249
|
+
C(Y, J, { row: e3, column: t2, event: n2 });
|
|
248
250
|
}
|
|
249
251
|
function _e(e3, t2, n2) {
|
|
250
|
-
|
|
252
|
+
S(Y, J, { row: e3, column: t2, event: n2 });
|
|
251
253
|
}
|
|
252
254
|
function Ae(e3, t2) {
|
|
253
|
-
|
|
255
|
+
w(Y, J, { column: e3, event: t2 });
|
|
254
256
|
}
|
|
255
257
|
function Ge() {
|
|
256
258
|
de.value = [];
|
|
@@ -283,32 +285,32 @@ const z = ["id"], W = e({ __name: "main-table-runtime", props: { pageContext: {}
|
|
|
283
285
|
}
|
|
284
286
|
n(() => {
|
|
285
287
|
const e3 = Ke();
|
|
286
|
-
ue.value && e3 && e3.distanceToBottom && (ue.value.tableHeight = e3.distanceToBottom - 110), Q.pageContext.pageRuntimeStyle && Q.pageContext.pageRuntimeStyle.height, window.addEventListener("message",
|
|
288
|
+
ue.value && e3 && e3.distanceToBottom && (ue.value.tableHeight = e3.distanceToBottom - 110), Q.pageContext.pageRuntimeStyle && console.log("pageContext.pageHeight:", Q.pageContext.pageRuntimeStyle.height), window.addEventListener("message", Be), F.$on(pe + "-close-component-page-dialog", function({ jumpInfo: e4, popEntity: t2, popPageCode: n2 }) {
|
|
287
289
|
ue.value.closePageDialog({ entity: t2, pageCode: n2, jumpInfo: e4 });
|
|
288
290
|
}), F.$on(pe + "_close-dialog-get-entity", () => {
|
|
289
291
|
F.$emit(pe + "_close-super-dialog");
|
|
290
292
|
}), F.$on(ce + "-pickFileDone", (e4) => {
|
|
291
|
-
ue.value.pickFileDone(e4);
|
|
293
|
+
console.log("superPage5555---listCode---pickFileDone--listCode=", ce, "data=", e4), ue.value.pickFileDone(e4);
|
|
292
294
|
}), F.$on(ce + "-scanDone", (e4) => {
|
|
293
|
-
ue.value.scanDone(e4);
|
|
295
|
+
console.log("superPage5555---listCode---scanDone--listCode=", ce, "data=", e4), ue.value.scanDone(e4);
|
|
294
296
|
}), le.value.formSetMaxHeight = Ne(), le.value && le.value.configureObj.props.base && le.value.configureObj.props.base.isSafeDelete && be("setSafeDeleteTableCode", le.value.extraParam.tableName);
|
|
295
297
|
}), o(() => Q.pageContext.searchFormData, (e3) => {
|
|
296
298
|
ge.value.data = e3;
|
|
297
299
|
}), o(() => Q.pageContext.entity.data, (e3) => {
|
|
298
300
|
Ve(Q.pageContext.entity.data);
|
|
299
301
|
}), i(() => {
|
|
300
|
-
window.removeEventListener("message",
|
|
302
|
+
window.removeEventListener("message", Be), F.$off(pe + "-close-component-page-dialog"), F.$off(pe + "_close-dialog-get-entity"), F.$off(ce + "-pickFileDone"), F.$off(ce + "-scanDone");
|
|
301
303
|
});
|
|
302
304
|
const Ke = () => {
|
|
303
305
|
if (!re.value) return null;
|
|
304
306
|
let e3 = re.value.closest(".app-container");
|
|
305
|
-
if (!e3) return null;
|
|
307
|
+
if (!e3) return console.warn("未找到.app-container元素"), null;
|
|
306
308
|
const t2 = re.value.getBoundingClientRect(), n2 = e3.getBoundingClientRect(), o2 = window.scrollY;
|
|
307
309
|
return { distanceToTop: t2.top + o2 - n2.top, distanceToBottom: n2.bottom - t2.top };
|
|
308
310
|
};
|
|
309
311
|
function Xe({ row: e3, editConditions: t2 }) {
|
|
310
312
|
let n2 = true;
|
|
311
|
-
return t2 && t2.length > 0 && (n2 =
|
|
313
|
+
return t2 && t2.length > 0 && (n2 = U(Q.pageContext, t2, e3)), n2;
|
|
312
314
|
}
|
|
313
315
|
function Ze(e3, t2) {
|
|
314
316
|
const n2 = $(Q.pageContext, t2);
|
|
@@ -373,7 +375,7 @@ const z = ["id"], W = e({ __name: "main-table-runtime", props: { pageContext: {}
|
|
|
373
375
|
return (_a = ue.value) == null ? void 0 : _a.getColumns();
|
|
374
376
|
} }), (e3, t2) => {
|
|
375
377
|
const n2 = a("super-grid");
|
|
376
|
-
return r(), l("div", { ref_key: "tableDivRef", ref: re, id: u(ce) + "_tableDiv" }, [s(n2, { ref_key: "gridRef", ref: ue, url: u(se), options: le.value, code: u(ce), settings: u(ve), "search-form-info": ge.value, "list-toolbar-form-data": u(fe), isDialog: u(Y).isDialog, onSelect: Fe, onSelectAll: He, onSelectionChange:
|
|
378
|
+
return r(), l("div", { ref_key: "tableDivRef", ref: re, id: u(ce) + "_tableDiv" }, [s(n2, { ref_key: "gridRef", ref: ue, url: u(se), options: le.value, code: u(ce), settings: u(ve), "search-form-info": ge.value, "list-toolbar-form-data": u(fe), isDialog: u(Y).isDialog, onSelect: Fe, onSelectAll: He, onSelectionChange: Me, onCellClick: Ue, onCellDblclick: Le, onRowClick: $e, onRowDblclick: _e, onHeaderClick: Ae, onRefresh: Ge, onNewOpenGridDialog: u(B), onCanShowMobileSearch: ze, onGridOnmounted: Ce }, null, 8, ["url", "options", "code", "settings", "search-form-info", "list-toolbar-form-data", "isDialog", "onNewOpenGridDialog"])], 8, z);
|
|
377
379
|
};
|
|
378
380
|
} });
|
|
379
381
|
export {
|