super-page-runtime 2.2.83 → 2.2.89-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/api/page-expose-util.js +56 -56
- package/dist/es/components/runtime/utils/barcode-util.js +5 -5
- package/dist/es/components/runtime/utils/charts/chart-columnline-util.js +74 -74
- package/dist/es/components/runtime/utils/charts/chart-pie-util.js +45 -46
- package/dist/es/components/runtime/utils/charts/chart-scatter-util.js +14 -16
- package/dist/es/components/runtime/utils/charts/chart-util.d.ts +1 -1
- package/dist/es/components/runtime/utils/charts/chart-util.js +7 -9
- package/dist/es/components/runtime/utils/events/event-util.js +113 -113
- package/dist/es/components/runtime/utils/events/print-label.js +37 -38
- package/dist/es/components/runtime/utils/events/standard-event.js +535 -540
- package/dist/es/components/runtime/utils/events/validator-util.js +72 -62
- package/dist/es/components/runtime/utils/form/scan-util.js +3 -4
- package/dist/es/components/runtime/utils/page-helper-util.js +210 -210
- package/dist/es/components/runtime/utils/page-init-util.js +47 -50
- package/dist/es/components/runtime/utils/page-permission-util.js +16 -16
- package/dist/es/components/runtime/utils/page-store.js +1 -1
- package/dist/es/components/runtime/utils/table-utils.js +23 -23
- package/dist/es/components/runtime/views/assemblys/button/button/button-runtime.vue2.js +16 -13
- package/dist/es/components/runtime/views/assemblys/button/button-group/buttongroup-runtime.vue.js +4 -1
- package/dist/es/components/runtime/views/assemblys/button/button-group/buttongroup-runtime.vue2.js +15 -11
- package/dist/es/components/runtime/views/assemblys/chart/column-line/column-line-runtime.vue2.js +12 -16
- package/dist/es/components/runtime/views/assemblys/chart/common/common-chart-header-group.vue.js +6 -10
- package/dist/es/components/runtime/views/assemblys/chart/common/common-chart-header.vue.js +9 -11
- package/dist/es/components/runtime/views/assemblys/chart/common/common-homepage-search.vue.js +1 -1
- package/dist/es/components/runtime/views/assemblys/chart/common/common-homepage-search.vue2.js +1 -1
- package/dist/es/components/runtime/views/assemblys/chart/gauge/gauge-runtime.vue2.js +12 -13
- package/dist/es/components/runtime/views/assemblys/chart/pie/pie-runtime.vue2.js +13 -14
- package/dist/es/components/runtime/views/assemblys/chart/radar/radar-runtime.vue2.js +14 -15
- package/dist/es/components/runtime/views/assemblys/chart/scatter/scatter-runtime.vue2.js +16 -17
- package/dist/es/components/runtime/views/assemblys/chart/table/chart-table-util.js +131 -122
- package/dist/es/components/runtime/views/assemblys/chart/table/table-runtime.vue2.js +90 -57
- package/dist/es/components/runtime/views/assemblys/common/export-form-report-dialog.vue.js +22 -26
- package/dist/es/components/runtime/views/assemblys/common/remove-signer-dialog.vue.js +4 -4
- package/dist/es/components/runtime/views/assemblys/common/save-chart-condition-dialog.vue.js +1 -1
- package/dist/es/components/runtime/views/assemblys/common/task-informition-dialog.vue.js +2 -2
- package/dist/es/components/runtime/views/assemblys/container/card/card-runtime.vue.js +1 -1
- package/dist/es/components/runtime/views/assemblys/container/card/card-runtime.vue2.js +6 -6
- package/dist/es/components/runtime/views/assemblys/container/fixed/YxAffix.vue.js +1 -1
- package/dist/es/components/runtime/views/assemblys/container/fixed/YxAffix.vue2.js +39 -36
- package/dist/es/components/runtime/views/assemblys/container/tabs/tabs-runtime.vue.js +1 -1
- package/dist/es/components/runtime/views/assemblys/container/tabs/tabs-runtime.vue2.js +11 -8
- package/dist/es/components/runtime/views/assemblys/container/tools/tools-runtime.vue.js +1 -1
- package/dist/es/components/runtime/views/assemblys/data/bar-code/barcode-runtime.vue2.js +10 -12
- package/dist/es/components/runtime/views/assemblys/data/table/main-table-runtime.vue.js +92 -94
- package/dist/es/components/runtime/views/assemblys/data/table/sub-table-runtime.vue.js +123 -124
- package/dist/es/components/runtime/views/assemblys/data/table/table-runtime.vue2.js +16 -14
- package/dist/es/components/runtime/views/assemblys/data/tree/tree-runtime.vue.js +1 -1
- package/dist/es/components/runtime/views/assemblys/data/tree/tree-runtime.vue2.js +80 -77
- package/dist/es/components/runtime/views/assemblys/form/checkbox/checkbox-runtime.vue2.js +0 -1
- package/dist/es/components/runtime/views/assemblys/form/custom/custom-runtime.vue2.js +34 -29
- package/dist/es/components/runtime/views/assemblys/form/date-picker/datepicker-runtime.vue2.js +39 -41
- 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 +50 -51
- package/dist/es/components/runtime/views/assemblys/form/label/label-runtime.vue2.js +6 -8
- package/dist/es/components/runtime/views/assemblys/form/link/link-runtime.vue2.js +9 -10
- package/dist/es/components/runtime/views/assemblys/form/radio/radio-runtime.vue2.js +0 -1
- package/dist/es/components/runtime/views/assemblys/form/rich-text/richtext-runtime.vue2.js +0 -1
- package/dist/es/components/runtime/views/assemblys/form/select/select-runtime.vue2.js +8 -8
- package/dist/es/components/runtime/views/assemblys/object-render.vue.js +5 -4
- package/dist/es/components/runtime/views/assemblys/workflow/workflow-button/workflowbutton-runtime.vue.js +4 -1
- package/dist/es/components/runtime/views/assemblys/workflow/workflow-button/workflowbutton-runtime.vue2.js +7 -7
- package/dist/es/components/runtime/views/home-chart.vue.js +7 -7
- package/dist/es/components/runtime/views/super-page-dialog.vue.js +9 -10
- package/dist/es/components/runtime/views/{super-page-dialog.vue2.js → super-page-dialog.vue3.js} +1 -0
- package/dist/es/components/runtime/views/super-page.vue.js +1 -1
- package/dist/es/components/runtime/views/super-page.vue2.js +126 -126
- package/dist/es/index.js +1 -0
- package/dist/es/style.css +234 -99
- package/package.json +2 -2
|
@@ -1,6 +1,6 @@
|
|
|
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
|
|
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 w, rowDblClick as
|
|
3
|
-
import { getBaseUrl as E, getListCode as
|
|
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 w, rowDblClick as S, headerClick as y, getEventNameByType as C, getEventFuncByType as x, getHandleEvent as D } from "../../../../utils/events/event-util.js";
|
|
3
|
+
import { getBaseUrl as E, getListCode as O, getRealRestApiPath as k, isWorkflowPage as T, isVariableInvalidValue as R } 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
6
|
import { getOperationButtons as P, popupToPage as B } from "../../../../utils/table-utils.js";
|
|
@@ -8,27 +8,27 @@ import F from "../../../../utils/eventBus.js";
|
|
|
8
8
|
import { getDefaultValue as H } from "../../../../utils/page-init-util.js";
|
|
9
9
|
import { decomposeVariable as U, getSizeConfig as M } from "../../../../utils/page-helper-util.js";
|
|
10
10
|
import { getRowStyleUtil as $, getCellStyleUtil as _, getHeaderCellStyleUtil as L } from "../../chart/table/chart-table-util.js";
|
|
11
|
-
const A = ["id"], z = e({ __name: "main-table-runtime", props: { pageContext: {}, configure: {} }, emits: ["setSafeDeleteTableCode"], setup(e2, { expose: z2, emit:
|
|
12
|
-
const
|
|
13
|
-
let Q =
|
|
11
|
+
const A = ["id"], z = e({ __name: "main-table-runtime", props: { pageContext: {}, configure: {} }, emits: ["setSafeDeleteTableCode"], setup(e2, { expose: z2, emit: W }) {
|
|
12
|
+
const q = e2, G = q.pageContext;
|
|
13
|
+
let Q = q.configure;
|
|
14
14
|
const J = t({});
|
|
15
|
-
|
|
16
|
-
const K = J.value.style, X = J.value.class, Y =
|
|
17
|
-
let te = E(
|
|
15
|
+
G.isTest ? J.value = q.configure.runtime ? q.configure.runtime : {} : G.tableRuntimes && G.tableRuntimes[Q.uuid] && (Q = JSON.parse(G.tableRuntimes[Q.uuid].configure), J.value = Q.runtime ? Q.runtime : {});
|
|
16
|
+
const K = J.value.style, X = J.value.class, Y = G.systemCode, Z = G.backendUrl, ee = Q.props && Q.props.dataOrigin && Q.props.dataOrigin.tableName;
|
|
17
|
+
let te = E(G.backendUrl, G.isTest);
|
|
18
18
|
te || (te = window.$vueApp.config.globalProperties.baseURL);
|
|
19
19
|
const ne = t({}), oe = [], ie = t({});
|
|
20
20
|
ie.value = function() {
|
|
21
|
-
const e3 =
|
|
21
|
+
const e3 = G.systemCode, t2 = G.code;
|
|
22
22
|
let n2 = Q.props && Q.props.dataOrigin && "[]" !== Q.props.dataOrigin.sqlFilterCondition ? Q.props.dataOrigin.sqlFilterCondition : null;
|
|
23
23
|
null == n2 && (n2 = []);
|
|
24
|
-
const i2 = { isSql: true, optionTableHeight: 0, rowKeyProp: Q.props.dataOrigin.principalLinkage, extraParam: { beanName:
|
|
24
|
+
const i2 = { isSql: true, optionTableHeight: 0, rowKeyProp: Q.props.dataOrigin.principalLinkage, extraParam: { beanName: G.beanName, functionCode: t2 + ".listData", tableName: ee, systemCode: e3, pageCode: G.code, pageVersion: G.version }, initSearchForm: n2, lineEditOptions: { aftersaveIsCreateRow: false, autoSave: false, enter: he, esc: Ce }, indexContinuous: !(!Q.props || !Q.props.otherSettings) && Q.props.otherSettings.serialNumberContinuous, initSearch: !Q.props || false !== Q.props.dataOrigin.initializationQuery, resizeHeight: Re, pageCode: G.code, pageVersion: G.version, additionalParamMap: I(G), showOverflowTooltip: !(!Q.props || !Q.props.otherSettings || void 0 !== Q.props.otherSettings.isBreakLine && false !== Q.props.otherSettings.isBreakLine), isEnableEnterEvent: Q.props && Q.props.otherSettings && Q.props.otherSettings.isEnableEnterEvent, isWithDataPermission: !!(Q.props && Q.props.otherSettings && Q.props.otherSettings.isWithDataPermission) && Q.props.otherSettings.isWithDataPermission, pageDevMode: false, isWorkflowEntity: T(G), tableClass: X, tableStyle: K, pageContext: G, configureObj: Q, backendUrl: te, cellStyleRender: ze, rowStyleRender: Ae, titleStyleRender: We };
|
|
25
25
|
(function(e4) {
|
|
26
26
|
var _a;
|
|
27
27
|
((_a = Q.props.highOrder) == null ? void 0 : _a.mergeFields) && Q.props.highOrder.mergeFields.length > 0 && (e4.mergeFields = Q.props.highOrder.mergeFields.join(","));
|
|
28
28
|
})(i2), function(e4) {
|
|
29
29
|
const t3 = [];
|
|
30
30
|
e4.operations || (e4.operations = {});
|
|
31
|
-
P(
|
|
31
|
+
P(G, Q, t3, we), e4.operations.operation = t3;
|
|
32
32
|
}(i2), function(e4) {
|
|
33
33
|
Q.props && Q.props.dataOrigin && Q.props.dataOrigin.sortField && (e4.initSortInfo = [], Q.props.dataOrigin.sortField.forEach((t3) => {
|
|
34
34
|
const n3 = { order: "desc" === t3.type ? "desc" : "asc" };
|
|
@@ -39,18 +39,18 @@ const A = ["id"], z = e({ __name: "main-table-runtime", props: { pageContext: {}
|
|
|
39
39
|
t3 && t3.length > 1 && oe.push(t3[1]);
|
|
40
40
|
}), oe.length > 0 && function() {
|
|
41
41
|
let e4 = [];
|
|
42
|
-
|
|
42
|
+
q.pageContext.toolsInputComponents && q.pageContext.toolsInputComponents.length > 0 && q.pageContext.toolsInputComponents.forEach((t3) => {
|
|
43
43
|
if (Q.props.linkages.some((e5) => e5.fieldName === t3.prop) && t3.defaultValue) {
|
|
44
44
|
const n3 = U(t3.prop);
|
|
45
45
|
n3 && n3.length > 1 && e4.push(n3[1]);
|
|
46
46
|
}
|
|
47
47
|
});
|
|
48
|
-
if (0 === e4.length)
|
|
48
|
+
if (0 === e4.length) Ge();
|
|
49
49
|
else {
|
|
50
|
-
const t3 =
|
|
51
|
-
e4 = e4.filter((e5) => R(t3, e5)), 0 === e4.length ? (Te(t3),
|
|
52
|
-
o(() =>
|
|
53
|
-
const t5 =
|
|
50
|
+
const t3 = qe();
|
|
51
|
+
e4 = e4.filter((e5) => R(t3, e5)), 0 === e4.length ? (Te(t3), Ge()) : oe.forEach((t4) => {
|
|
52
|
+
o(() => q.pageContext.entity.page[t4], () => {
|
|
53
|
+
const t5 = qe();
|
|
54
54
|
0 === e4.length ? Te(t5) : (e4 = e4.filter((e5) => R(t5, e5)), 0 === e4.length && Te(t5));
|
|
55
55
|
}, { immediate: true });
|
|
56
56
|
});
|
|
@@ -70,114 +70,112 @@ const A = ["id"], z = e({ __name: "main-table-runtime", props: { pageContext: {}
|
|
|
70
70
|
}
|
|
71
71
|
}(i2), function(e4) {
|
|
72
72
|
const t3 = Q.runtime && Q.runtime.events ? Q.runtime.events : [];
|
|
73
|
-
c(e4, t3,
|
|
74
|
-
const n3 =
|
|
73
|
+
c(e4, t3, G, Q);
|
|
74
|
+
const n3 = G.customEvents;
|
|
75
75
|
n3 && (e4.eventCallBack = n3);
|
|
76
76
|
}(i2), i2;
|
|
77
77
|
}();
|
|
78
78
|
const ae = t(), le = t(), re = function() {
|
|
79
79
|
let e3 = te + "/dsc/commons/list";
|
|
80
|
-
e3 && (e3 =
|
|
80
|
+
e3 && (e3 = k(e3, Y, Z, G.isTest));
|
|
81
81
|
return e3;
|
|
82
|
-
}(),
|
|
83
|
-
console.log("superGridSetting1111===", fe, ge);
|
|
84
|
-
const me = t(false), ve = G;
|
|
82
|
+
}(), ue = O(G.code, G.version, Q.uuid), se = G.code + "_" + ue, ce = t([]), pe = G.entity.page, de = t({ data: [] }), fe = G.superGridItems, ge = fe ? fe[Q.uuid] : null, me = t(false), ve = W;
|
|
85
83
|
function he({ rowIndex: e3, column: t2, row: n2, orgRow: o2 }) {
|
|
86
84
|
be(null, null, n2, t2, e3);
|
|
87
85
|
}
|
|
88
86
|
function be(e3, t2, n2, o2, i2) {
|
|
89
87
|
const a2 = ne.value.lineEditSave, l2 = Q;
|
|
90
|
-
a2.props.base.tableUuid = l2.uuid, ie.value.lineEditOptions.beforeSave =
|
|
91
|
-
true === l3.canExecute && (ie.value.lineEditOptions.saveRow =
|
|
92
|
-
d(
|
|
88
|
+
a2.props.base.tableUuid = l2.uuid, ie.value.lineEditOptions.beforeSave = Se, G.editData = n2, p({ pageContext: G, configureObj: a2 }).then((l3) => {
|
|
89
|
+
true === l3.canExecute && (ie.value.lineEditOptions.saveRow = ye, le.value.saveRow(i2, ue).then(() => {
|
|
90
|
+
d(G, a2, { originalValue: e3, formatValue: t2, row: n2, column: o2, rowIndex: i2 });
|
|
93
91
|
}));
|
|
94
92
|
}).finally(() => {
|
|
95
|
-
|
|
93
|
+
G.editData = null;
|
|
96
94
|
});
|
|
97
95
|
}
|
|
98
96
|
function we(e3) {
|
|
99
97
|
if (!e3) return;
|
|
100
98
|
let t2;
|
|
101
|
-
const n2 =
|
|
99
|
+
const n2 = C(e3.events, "click");
|
|
102
100
|
if (n2) {
|
|
103
|
-
if (ne.value[n2] = e3, "lineEditSave" === n2 ? t2 = be : "restoreEdit" === n2 ? t2 = xe : "lineEditUpdate" === n2 ? t2 = De : "lineEditDelete" === n2 && (t2 =
|
|
104
|
-
t2 = x(
|
|
101
|
+
if (ne.value[n2] = e3, "lineEditSave" === n2 ? t2 = be : "restoreEdit" === n2 ? t2 = xe : "lineEditUpdate" === n2 ? t2 = De : "lineEditDelete" === n2 && (t2 = Oe), !t2) {
|
|
102
|
+
t2 = x(G, e3.events, "click");
|
|
105
103
|
}
|
|
106
104
|
} else ne.value[e3.uuid] = e3, t2 = Ve;
|
|
107
105
|
return t2;
|
|
108
106
|
}
|
|
109
|
-
function
|
|
107
|
+
function Se({ row: e3, columns: t2, additionalParamMap: n2 }) {
|
|
110
108
|
const o2 = ne.value.lineEditSave, i2 = Q;
|
|
111
109
|
o2.props.base.tableUuid = i2.uuid;
|
|
112
|
-
return f(
|
|
110
|
+
return f(G, o2, { row: e3, columns: t2 });
|
|
113
111
|
}
|
|
114
|
-
function
|
|
112
|
+
function ye({ row: e3, columns: t2, dataTypeMap: n2, dynamicColumnInfo: o2, additionalParamMap: i2, mainDefaultValueColumns: a2 }) {
|
|
115
113
|
const l2 = ne.value.lineEditSave, r2 = Q;
|
|
116
114
|
return l2.props.base.tableUuid = r2.uuid, new Promise((t3, n3) => {
|
|
117
115
|
const i3 = { tableName: r2.props.dataOrigin.tableName };
|
|
118
|
-
V(
|
|
116
|
+
V(G, l2, "/dsc/commons", false, a2, o2, e3, i3).then((e4) => {
|
|
119
117
|
t3(e4 ? e4.entity : {});
|
|
120
118
|
}).catch((e4) => {
|
|
121
119
|
n3(e4);
|
|
122
120
|
});
|
|
123
121
|
});
|
|
124
122
|
}
|
|
125
|
-
function
|
|
123
|
+
function Ce({ rowIndex: e3, column: t2, row: n2, orgRow: o2 }) {
|
|
126
124
|
xe(null, null, n2, t2, e3);
|
|
127
125
|
}
|
|
128
126
|
function xe(e3, t2, n2, o2, i2) {
|
|
129
127
|
const a2 = ne.value.restoreEdit, l2 = Q;
|
|
130
128
|
a2.props.base.tableUuid = l2.uuid;
|
|
131
|
-
const r2 = f(
|
|
129
|
+
const r2 = f(G, a2, { originalValue: e3, formatValue: t2, row: n2, column: o2, rowIndex: i2 });
|
|
132
130
|
if (!r2) return;
|
|
133
131
|
N(r2) ? r2.then((e4) => {
|
|
134
|
-
e4 && le.value.restoreRow(i2,
|
|
135
|
-
}) : le.value.restoreRow(i2,
|
|
136
|
-
d(
|
|
132
|
+
e4 && le.value.restoreRow(i2, ue);
|
|
133
|
+
}) : le.value.restoreRow(i2, ue);
|
|
134
|
+
d(G, Q, { originalValue: e3, formatValue: t2, row: n2, column: o2, rowIndex: i2 });
|
|
137
135
|
}
|
|
138
136
|
function De(e3, t2, n2, o2, i2) {
|
|
139
137
|
const a2 = ne.value.lineEditUpdate, l2 = Q;
|
|
140
138
|
a2.props.base.tableUuid = l2.uuid;
|
|
141
|
-
const r2 = f(
|
|
139
|
+
const r2 = f(G, a2, { originalValue: e3, formatValue: t2, row: n2, column: o2, rowIndex: i2 });
|
|
142
140
|
r2 && (N(r2) ? r2.then((l3) => {
|
|
143
141
|
l3 && Ee(e3, t2, n2, o2, i2, a2);
|
|
144
142
|
}) : Ee(e3, t2, n2, o2, i2, a2));
|
|
145
143
|
}
|
|
146
144
|
function Ee(e3, t2, n2, o2, i2, a2) {
|
|
147
|
-
|
|
145
|
+
G.editData = n2, p({ pageContext: G, configureObj: a2 }).then((a3) => {
|
|
148
146
|
if (true === a3.canExecute) {
|
|
149
|
-
le.value.editRow(i2,
|
|
150
|
-
d(
|
|
147
|
+
le.value.editRow(i2, ue);
|
|
148
|
+
d(G, Q, { originalValue: e3, formatValue: t2, row: n2, column: o2, rowIndex: i2 });
|
|
151
149
|
}
|
|
152
150
|
}).finally(() => {
|
|
153
|
-
|
|
151
|
+
G.editData = null;
|
|
154
152
|
});
|
|
155
153
|
}
|
|
156
|
-
function
|
|
154
|
+
function Oe(e3, t2, n2, o2, i2) {
|
|
157
155
|
const a2 = ne.value.lineEditDelete, l2 = Q;
|
|
158
156
|
a2.props.base.tableUuid = l2.uuid;
|
|
159
|
-
const r2 = f(
|
|
157
|
+
const r2 = f(G, a2, { originalValue: e3, formatValue: t2, row: n2, column: o2, rowIndex: i2 });
|
|
160
158
|
r2 && (N(r2) ? r2.then((l3) => {
|
|
161
|
-
l3 &&
|
|
162
|
-
}) :
|
|
159
|
+
l3 && ke(e3, t2, n2, o2, i2, a2);
|
|
160
|
+
}) : ke(e3, t2, n2, o2, i2, a2));
|
|
163
161
|
}
|
|
164
|
-
function
|
|
165
|
-
if (n2.id || n2.ID)
|
|
162
|
+
function ke(e3, t2, n2, o2, i2, a2) {
|
|
163
|
+
if (n2.id || n2.ID) G.editData = n2, p({ pageContext: G, configureObj: a2 }).then((e4) => {
|
|
166
164
|
if (true === e4.canExecute) {
|
|
167
165
|
const e5 = [];
|
|
168
|
-
n2.id ? e5.push(n2.id) : e5.push(n2.ID), j.delete({ pageContext:
|
|
166
|
+
n2.id ? e5.push(n2.id) : e5.push(n2.ID), j.delete({ pageContext: G, configureObj: a2, ids: e5 });
|
|
169
167
|
}
|
|
170
168
|
}).finally(() => {
|
|
171
|
-
|
|
169
|
+
G.editData = null;
|
|
172
170
|
});
|
|
173
171
|
else {
|
|
174
172
|
xe(e3, t2, n2, o2, i2);
|
|
175
|
-
d(
|
|
173
|
+
d(G, Q, { originalValue: e3, formatValue: t2, row: n2, column: o2, rowIndex: i2 });
|
|
176
174
|
}
|
|
177
175
|
}
|
|
178
176
|
function Te(e3) {
|
|
179
|
-
if (!
|
|
180
|
-
const t2 =
|
|
177
|
+
if (!G.dataTypeMaps) return;
|
|
178
|
+
const t2 = G.dataTypeMaps;
|
|
181
179
|
let n2 = [];
|
|
182
180
|
if (e3) for (var o2 in e3) {
|
|
183
181
|
const a2 = e3[o2];
|
|
@@ -195,7 +193,7 @@ const A = ["id"], z = e({ __name: "main-table-runtime", props: { pageContext: {}
|
|
|
195
193
|
e4.propName = o2, e4.propDbName = o2, e4.dataType = t2[o2] ? t2[o2] : "TEXT", e4.operator = "EQ", e4.propValue = a2, e4.rightBracket = ")", e4.joinSign = "and", n2.push(e4);
|
|
196
194
|
}
|
|
197
195
|
}
|
|
198
|
-
|
|
196
|
+
le.value.toolbarRefresh(null, null, n2);
|
|
199
197
|
}
|
|
200
198
|
function Re(e3) {
|
|
201
199
|
const t2 = Ie();
|
|
@@ -206,8 +204,7 @@ const A = ["id"], z = e({ __name: "main-table-runtime", props: { pageContext: {}
|
|
|
206
204
|
}
|
|
207
205
|
function Ie() {
|
|
208
206
|
if (!le.value) return;
|
|
209
|
-
|
|
210
|
-
const e3 = M(W.pageContext, W.configure);
|
|
207
|
+
const e3 = M(q.pageContext, q.configure);
|
|
211
208
|
if (e3) {
|
|
212
209
|
if (e3.isCalcHeight) {
|
|
213
210
|
let e4 = le.value.$el;
|
|
@@ -219,37 +216,37 @@ const A = ["id"], z = e({ __name: "main-table-runtime", props: { pageContext: {}
|
|
|
219
216
|
}
|
|
220
217
|
}
|
|
221
218
|
function Ve(e3, t2, n2, o2, i2, a2) {
|
|
222
|
-
const l2 = { originalValue: e3, formatValue: t2, row: n2, column: o2, rowIndex: i2, button: a2, id: n2.ID ? n2.ID : n2.id }, r2 = ne.value[a2.sourceButton.uuid],
|
|
223
|
-
r2.props.base.tableUuid =
|
|
219
|
+
const l2 = { originalValue: e3, formatValue: t2, row: n2, column: o2, rowIndex: i2, button: a2, id: n2.ID ? n2.ID : n2.id }, r2 = ne.value[a2.sourceButton.uuid], u2 = Q;
|
|
220
|
+
r2.props.base.tableUuid = u2.uuid, D(null, G, r2, "click", l2);
|
|
224
221
|
}
|
|
225
222
|
function je(e3) {
|
|
226
223
|
"close_open_win" === e3.data && le.value && le.value.refresh();
|
|
227
224
|
}
|
|
228
225
|
function Ne(e3, t2) {
|
|
229
226
|
ce.value = e3;
|
|
230
|
-
g(
|
|
227
|
+
g(G, Q, { selection: e3, row: t2 });
|
|
231
228
|
}
|
|
232
229
|
function Pe(e3) {
|
|
233
230
|
ce.value = e3;
|
|
234
|
-
m(
|
|
231
|
+
m(G, Q, { selection: e3 });
|
|
235
232
|
}
|
|
236
233
|
function Be(e3) {
|
|
237
|
-
v(
|
|
234
|
+
v(G, Q, { newSelection: e3 });
|
|
238
235
|
}
|
|
239
236
|
function Fe(e3, t2, n2, o2) {
|
|
240
|
-
h(
|
|
237
|
+
h(G, Q, { row: e3, column: t2, cell: n2, event: o2 });
|
|
241
238
|
}
|
|
242
239
|
function He(e3, t2, n2, o2) {
|
|
243
|
-
b(
|
|
240
|
+
b(G, Q, { row: e3, column: t2, cell: n2, event: o2 });
|
|
244
241
|
}
|
|
245
242
|
function Ue(e3, t2, n2) {
|
|
246
|
-
w(
|
|
243
|
+
w(G, Q, { row: e3, column: t2, event: n2 });
|
|
247
244
|
}
|
|
248
245
|
function Me(e3, t2, n2) {
|
|
249
|
-
|
|
246
|
+
S(G, Q, { row: e3, column: t2, event: n2 });
|
|
250
247
|
}
|
|
251
248
|
function $e(e3, t2) {
|
|
252
|
-
|
|
249
|
+
y(G, Q, { column: e3, event: t2 });
|
|
253
250
|
}
|
|
254
251
|
function _e() {
|
|
255
252
|
ce.value = [];
|
|
@@ -258,57 +255,57 @@ const A = ["id"], z = e({ __name: "main-table-runtime", props: { pageContext: {}
|
|
|
258
255
|
me.value = true;
|
|
259
256
|
}
|
|
260
257
|
function Ae(e3) {
|
|
261
|
-
return $(e3, [],
|
|
258
|
+
return $(e3, [], q);
|
|
262
259
|
}
|
|
263
260
|
function ze(e3) {
|
|
264
|
-
return _(e3, e3.cellStyle,
|
|
261
|
+
return _(e3, e3.cellStyle, q);
|
|
265
262
|
}
|
|
266
|
-
function
|
|
267
|
-
const t2 = e3.titleStyle, n2 =
|
|
268
|
-
return L(e3, { cellTitleStyle: t2, titleStyle: n2 },
|
|
263
|
+
function We(e3) {
|
|
264
|
+
const t2 = e3.titleStyle, n2 = q.configure.style.titleStyle;
|
|
265
|
+
return L(e3, { cellTitleStyle: t2, titleStyle: n2 }, q);
|
|
269
266
|
}
|
|
270
|
-
function
|
|
267
|
+
function qe() {
|
|
271
268
|
const e3 = {};
|
|
272
269
|
return oe.forEach((t2) => {
|
|
273
|
-
e3[t2] =
|
|
270
|
+
e3[t2] = q.pageContext.entity.page[t2];
|
|
274
271
|
}), e3;
|
|
275
272
|
}
|
|
276
|
-
function
|
|
273
|
+
function Ge() {
|
|
277
274
|
oe.forEach((e3) => {
|
|
278
|
-
o(() =>
|
|
279
|
-
Te(
|
|
275
|
+
o(() => q.pageContext.entity.page[e3], () => {
|
|
276
|
+
Te(qe());
|
|
280
277
|
});
|
|
281
278
|
});
|
|
282
279
|
}
|
|
283
280
|
n(() => {
|
|
284
281
|
const e3 = Qe();
|
|
285
|
-
le.value && e3 && e3.distanceToBottom && (le.value.tableHeight = e3.distanceToBottom - 110),
|
|
282
|
+
le.value && e3 && e3.distanceToBottom && (le.value.tableHeight = e3.distanceToBottom - 110), q.pageContext.pageRuntimeStyle, window.addEventListener("message", je), F.$on(se + "-close-component-page-dialog", function({ jumpInfo: e4, popEntity: t2, popPageCode: n2 }) {
|
|
286
283
|
le.value.closePageDialog({ entity: t2, pageCode: n2, jumpInfo: e4 });
|
|
287
|
-
}), F.$on(
|
|
288
|
-
F.$emit(
|
|
289
|
-
}), F.$on(
|
|
290
|
-
|
|
291
|
-
}), F.$on(
|
|
292
|
-
|
|
284
|
+
}), F.$on(se + "_close-dialog-get-entity", () => {
|
|
285
|
+
F.$emit(se + "_close-super-dialog");
|
|
286
|
+
}), F.$on(ue + "-pickFileDone", (e4) => {
|
|
287
|
+
le.value.pickFileDone(e4);
|
|
288
|
+
}), F.$on(ue + "-scanDone", (e4) => {
|
|
289
|
+
le.value.scanDone(e4);
|
|
293
290
|
}), ie.value.formSetMaxHeight = Ie(), ie.value && ie.value.configureObj.props.base && ie.value.configureObj.props.base.isSafeDelete && ve("setSafeDeleteTableCode", ie.value.extraParam.tableName);
|
|
294
|
-
}), o(() =>
|
|
291
|
+
}), o(() => q.pageContext.searchFormData, (e3) => {
|
|
295
292
|
de.value.data = e3;
|
|
296
|
-
}), o(() =>
|
|
297
|
-
Te(
|
|
293
|
+
}), o(() => q.pageContext.entity.data, (e3) => {
|
|
294
|
+
Te(q.pageContext.entity.data);
|
|
298
295
|
}), i(() => {
|
|
299
|
-
window.removeEventListener("message", je), F.$off(
|
|
296
|
+
window.removeEventListener("message", je), F.$off(se + "-close-component-page-dialog"), F.$off(se + "_close-dialog-get-entity"), F.$off(ue + "-pickFileDone"), F.$off(ue + "-scanDone");
|
|
300
297
|
});
|
|
301
298
|
const Qe = () => {
|
|
302
299
|
if (!ae.value) return null;
|
|
303
300
|
let e3 = ae.value.closest(".app-container");
|
|
304
|
-
if (!e3) return
|
|
301
|
+
if (!e3) return null;
|
|
305
302
|
const t2 = ae.value.getBoundingClientRect(), n2 = e3.getBoundingClientRect(), o2 = window.scrollY;
|
|
306
303
|
return { distanceToTop: t2.top + o2 - n2.top, distanceToBottom: n2.bottom - t2.top };
|
|
307
304
|
};
|
|
308
305
|
return z2({ refresh: function(e3, t2, n2, o2) {
|
|
309
306
|
return le.value.refresh(e3, t2, n2, o2);
|
|
310
307
|
}, createRow: function() {
|
|
311
|
-
return le.value.createRow(
|
|
308
|
+
return le.value.createRow(ue, {}, { getDefaultValueFunc: H });
|
|
312
309
|
}, clearSelections: _e, getSelections: function() {
|
|
313
310
|
return ce.value;
|
|
314
311
|
}, getSelectionIds: function() {
|
|
@@ -325,14 +322,15 @@ const A = ["id"], z = e({ __name: "main-table-runtime", props: { pageContext: {}
|
|
|
325
322
|
}, showMobileSearch: function() {
|
|
326
323
|
me.value && le.value.showMobileSearch();
|
|
327
324
|
}, getTableSelectOptions: function() {
|
|
328
|
-
if (le.value) return le.value.getTableSelectOptions(
|
|
325
|
+
if (le.value) return le.value.getTableSelectOptions(ue);
|
|
329
326
|
}, dynamicControlTableEdit: function(e3, t2, n2) {
|
|
330
327
|
le.value && le.value.dynamicControlTableEdit(e3, t2, n2);
|
|
331
328
|
}, doLayout: function(e3) {
|
|
332
329
|
le.value && le.value.doLayout(e3);
|
|
330
|
+
}, changeOperationAddState: function(e3) {
|
|
333
331
|
} }), (e3, t2) => {
|
|
334
332
|
const n2 = a("super-grid");
|
|
335
|
-
return r(), l("div", { ref_key: "tableDivRef", ref: ae, id:
|
|
333
|
+
return r(), l("div", { ref_key: "tableDivRef", ref: ae, id: u(ue) + "_tableDiv" }, [s(n2, { ref_key: "gridRef", ref: le, url: u(re), options: ie.value, code: u(ue), settings: u(ge), "search-form-info": de.value, "list-toolbar-form-data": u(pe), onSelect: Ne, onSelectAll: Pe, onSelectionChange: Be, onCellClick: Fe, onCellDblclick: He, onRowClick: Ue, onRowDblclick: Me, onHeaderClick: $e, onRefresh: _e, onNewOpenGridDialog: u(B), onCanShowMobileSearch: Le }, null, 8, ["url", "options", "code", "settings", "search-form-info", "list-toolbar-form-data", "onNewOpenGridDialog"])], 8, A);
|
|
336
334
|
};
|
|
337
335
|
} });
|
|
338
336
|
export {
|