super-page-runtime 2.2.23 → 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.d.ts +1 -0
- package/dist/es/components/runtime/utils/events/event-util.js +194 -182
- package/dist/es/components/runtime/utils/events/print-label.js +38 -37
- package/dist/es/components/runtime/utils/events/standard-event.js +452 -440
- 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 +72 -61
- 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 +43 -41
- 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/assemblys/object-render.vue.js +72 -71
- package/dist/es/components/runtime/views/home-chart.vue.js +10 -9
- package/dist/es/components/runtime/views/super-page-dialog.vue.js +14 -13
- package/dist/es/components/runtime/views/super-page.vue.js +134 -132
- package/package.json +2 -2
|
@@ -1,52 +1,52 @@
|
|
|
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, createVNode 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 S, headerClick as
|
|
3
|
-
import { getBaseUrl 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, createVNode as s, unref as u } 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 C, getEventNameByType as y, getEventFuncByType as x, getHandleEvent as D } from "../../../../utils/events/event-util.js";
|
|
3
|
+
import { getBaseUrl as E, getListCode as k, getRealRestApiPath as O, isWorkflowPage as I, isVariableInvalidValue as T } from "../../../../utils/common-util.js";
|
|
4
4
|
import { getAdditionalParamMap as R, 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 U } from "../../../../utils/table-utils.js";
|
|
7
|
-
import
|
|
8
|
-
import { getDefaultValue as
|
|
9
|
-
import { decomposeVariable as
|
|
7
|
+
import M from "../../../../utils/eventBus.js";
|
|
8
|
+
import { getDefaultValue as B } from "../../../../utils/page-init-util.js";
|
|
9
|
+
import { decomposeVariable as F, getSizeConfig as $ } from "../../../../utils/page-helper-util.js";
|
|
10
10
|
import { getRowStyleUtil as L, getCellStyleUtil as _, getHeaderCellStyleUtil as A } from "../../chart/table/chart-table-util.js";
|
|
11
11
|
const H = e({ __name: "main-table-runtime", props: { pageContext: {}, configure: {} }, emits: ["setSafeDeleteTableCode"], setup(e2, { expose: H2, emit: z }) {
|
|
12
|
-
const
|
|
13
|
-
let
|
|
12
|
+
const G = e2, W = G.pageContext;
|
|
13
|
+
let q = G.configure;
|
|
14
14
|
const Q = t({});
|
|
15
|
-
|
|
16
|
-
const J = Q.value.style, K = Q.value.class, X =
|
|
17
|
-
let ee =
|
|
15
|
+
W.isTest ? Q.value = G.configure.runtime ? G.configure.runtime : {} : W.tableRuntimes && W.tableRuntimes[q.uuid] && (q = JSON.parse(W.tableRuntimes[q.uuid].configure), Q.value = q.runtime ? q.runtime : {});
|
|
16
|
+
const J = Q.value.style, K = Q.value.class, X = W.systemCode, Y = W.backendUrl, Z = q.props && q.props.dataOrigin && q.props.dataOrigin.tableName;
|
|
17
|
+
let ee = E(W.backendUrl, W.isTest);
|
|
18
18
|
ee || (ee = window.$vueApp.config.globalProperties.baseURL);
|
|
19
19
|
const te = t({}), ne = [], oe = t({});
|
|
20
20
|
oe.value = function() {
|
|
21
|
-
const e3 =
|
|
22
|
-
let n2 =
|
|
21
|
+
const e3 = W.systemCode, t2 = W.code;
|
|
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, rowKeyProp:
|
|
24
|
+
const i2 = { isSql: true, rowKeyProp: q.props.dataOrigin.principalLinkage, extraParam: { beanName: W.beanName, functionCode: t2 + ".listData", tableName: Z, systemCode: e3, pageCode: W.code, pageVersion: W.version }, initSearchForm: n2, lineEditOptions: { aftersaveIsCreateRow: false, autoSave: false, enter: me, esc: Se }, indexContinuous: !(!q.props || !q.props.otherSettings) && q.props.otherSettings.serialNumberContinuous, initSearch: !q.props || false !== q.props.dataOrigin.initializationQuery, resizeHeight: Oe, pageCode: W.code, pageVersion: W.version, additionalParamMap: R(W), 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: I(W), tableClass: K, tableStyle: J, pageContext: W, configureObj: q, backendUrl: ee, cellStyleRender: Ae, rowStyleRender: _e, titleStyleRender: He };
|
|
25
25
|
(function(e4) {
|
|
26
26
|
const t3 = [];
|
|
27
27
|
e4.operations || (e4.operations = {});
|
|
28
|
-
P(
|
|
28
|
+
P(W, q, t3, he), e4.operations.operation = t3;
|
|
29
29
|
})(i2), function(e4) {
|
|
30
|
-
|
|
30
|
+
q.props && q.props.dataOrigin && q.props.dataOrigin.sortField && (e4.initSortInfo = [], q.props.dataOrigin.sortField.forEach((t3) => {
|
|
31
31
|
const n3 = { order: "desc" === t3.type ? "desc" : "asc" };
|
|
32
32
|
n3.prop = t3.name, e4.initSortInfo.push(n3);
|
|
33
33
|
}));
|
|
34
|
-
}(i2),
|
|
35
|
-
const t3 =
|
|
34
|
+
}(i2), q.props.linkages && q.props.linkages.length > 0 && (q.props.linkages.forEach((e4) => {
|
|
35
|
+
const t3 = F(e4.fieldName);
|
|
36
36
|
t3 && t3.length > 1 && ne.push(t3[1]);
|
|
37
37
|
}), ne.length > 0 && function() {
|
|
38
38
|
let e4 = [];
|
|
39
|
-
|
|
40
|
-
if (
|
|
41
|
-
const n3 =
|
|
39
|
+
G.pageContext.toolsInputComponents && G.pageContext.toolsInputComponents.length > 0 && G.pageContext.toolsInputComponents.forEach((t3) => {
|
|
40
|
+
if (q.props.linkages.some((e5) => e5.fieldName === t3.prop) && t3.defaultValue) {
|
|
41
|
+
const n3 = F(t3.prop);
|
|
42
42
|
n3 && n3.length > 1 && e4.push(n3[1]);
|
|
43
43
|
}
|
|
44
44
|
});
|
|
45
|
-
if (0 === e4.length)
|
|
45
|
+
if (0 === e4.length) Ge();
|
|
46
46
|
else {
|
|
47
47
|
const t3 = ze();
|
|
48
|
-
e4 = e4.filter((e5) => T(t3, e5)), 0 === e4.length ? (ke(t3),
|
|
49
|
-
o(() =>
|
|
48
|
+
e4 = e4.filter((e5) => T(t3, e5)), 0 === e4.length ? (ke(t3), Ge()) : ne.forEach((t4) => {
|
|
49
|
+
o(() => G.pageContext.entity.page[t4], () => {
|
|
50
50
|
const t5 = ze();
|
|
51
51
|
0 === e4.length ? ke(t5) : (e4 = e4.filter((e5) => T(t5, e5)), 0 === e4.length && ke(t5));
|
|
52
52
|
}, { immediate: true });
|
|
@@ -54,7 +54,7 @@ const H = e({ __name: "main-table-runtime", props: { pageContext: {}, configure:
|
|
|
54
54
|
}
|
|
55
55
|
}());
|
|
56
56
|
return function(e4) {
|
|
57
|
-
const t3 =
|
|
57
|
+
const t3 = q.props ? q.props.dataOrigin : {};
|
|
58
58
|
if (t3.treeTable) {
|
|
59
59
|
let n3;
|
|
60
60
|
const o2 = t3.rowKey;
|
|
@@ -66,51 +66,53 @@ const H = e({ __name: "main-table-runtime", props: { pageContext: {}, configure:
|
|
|
66
66
|
}
|
|
67
67
|
}
|
|
68
68
|
}(i2), function(e4) {
|
|
69
|
-
const t3 =
|
|
70
|
-
c(e4, t3,
|
|
71
|
-
const n3 =
|
|
69
|
+
const t3 = q.runtime && q.runtime.events ? q.runtime.events : [];
|
|
70
|
+
c(e4, t3, W, q);
|
|
71
|
+
const n3 = W.customEvents;
|
|
72
72
|
n3 && (e4.eventCallBack = n3);
|
|
73
73
|
}(i2), i2;
|
|
74
74
|
}();
|
|
75
75
|
const ie = t(), ae = function() {
|
|
76
76
|
let e3 = ee + "/dsc/commons/list";
|
|
77
|
-
e3 && (e3 = O(e3, X, Y,
|
|
77
|
+
e3 && (e3 = O(e3, X, Y, W.isTest));
|
|
78
78
|
return e3;
|
|
79
|
-
}(), le = k(
|
|
79
|
+
}(), le = k(W.code, W.version, q.uuid), re = W.code + "_" + le, se = t([]), ue = W.entity.page, ce = t({ data: [] }), pe = W.superGridItems, de = pe ? pe[q.uuid] : null;
|
|
80
|
+
console.log("superGridSetting1111===", pe, de);
|
|
81
|
+
const fe = t(false), ge = z;
|
|
80
82
|
function me({ rowIndex: e3, column: t2, row: n2, orgRow: o2 }) {
|
|
81
83
|
ve(null, null, n2, t2, e3);
|
|
82
84
|
}
|
|
83
85
|
function ve(e3, t2, n2, o2, i2) {
|
|
84
|
-
const a2 = te.value.lineEditSave, l2 =
|
|
85
|
-
a2.props.base.tableUuid = l2.uuid, oe.value.lineEditOptions.beforeSave = be,
|
|
86
|
+
const a2 = te.value.lineEditSave, l2 = q;
|
|
87
|
+
a2.props.base.tableUuid = l2.uuid, oe.value.lineEditOptions.beforeSave = be, W.editData = n2, p({ pageContext: W, configureObj: a2 }).then((l3) => {
|
|
86
88
|
true === l3.canExecute && (oe.value.lineEditOptions.saveRow = we, ie.value.saveRow(i2, le).then(() => {
|
|
87
|
-
d(
|
|
89
|
+
d(W, a2, { originalValue: e3, formatValue: t2, row: n2, column: o2, rowIndex: i2 });
|
|
88
90
|
}));
|
|
89
91
|
}).finally(() => {
|
|
90
|
-
|
|
92
|
+
W.editData = null;
|
|
91
93
|
});
|
|
92
94
|
}
|
|
93
95
|
function he(e3) {
|
|
94
96
|
if (!e3) return;
|
|
95
97
|
let t2;
|
|
96
|
-
const n2 =
|
|
98
|
+
const n2 = y(e3.events, "click");
|
|
97
99
|
if (n2) {
|
|
98
|
-
if (te.value[n2] = e3, "lineEditSave" === n2 ? t2 = ve : "restoreEdit" === n2 ? t2 =
|
|
99
|
-
t2 =
|
|
100
|
+
if (te.value[n2] = e3, "lineEditSave" === n2 ? t2 = ve : "restoreEdit" === n2 ? t2 = Ce : "lineEditUpdate" === n2 ? t2 = ye : "lineEditDelete" === n2 && (t2 = De), !t2) {
|
|
101
|
+
t2 = x(W, e3.events, "click");
|
|
100
102
|
}
|
|
101
103
|
} else te.value[e3.uuid] = e3, t2 = Te;
|
|
102
104
|
return t2;
|
|
103
105
|
}
|
|
104
106
|
function be({ row: e3, columns: t2, additionalParamMap: n2 }) {
|
|
105
|
-
const o2 = te.value.lineEditSave, i2 =
|
|
107
|
+
const o2 = te.value.lineEditSave, i2 = q;
|
|
106
108
|
o2.props.base.tableUuid = i2.uuid;
|
|
107
|
-
return f(
|
|
109
|
+
return f(W, o2, { row: e3, columns: t2 });
|
|
108
110
|
}
|
|
109
111
|
function we({ row: e3, columns: t2, dataTypeMap: n2, dynamicColumnInfo: o2, additionalParamMap: i2, mainDefaultValueColumns: a2 }) {
|
|
110
|
-
const l2 = te.value.lineEditSave, r2 =
|
|
112
|
+
const l2 = te.value.lineEditSave, r2 = q;
|
|
111
113
|
return l2.props.base.tableUuid = r2.uuid, new Promise((t3, n3) => {
|
|
112
114
|
const i3 = { tableName: r2.props.dataOrigin.tableName };
|
|
113
|
-
V(
|
|
115
|
+
V(W, l2, "/dsc/commons", false, a2, o2, e3, i3).then((e4) => {
|
|
114
116
|
t3(e4 ? e4.entity : {});
|
|
115
117
|
}).catch((e4) => {
|
|
116
118
|
n3(e4);
|
|
@@ -118,61 +120,61 @@ const H = e({ __name: "main-table-runtime", props: { pageContext: {}, configure:
|
|
|
118
120
|
});
|
|
119
121
|
}
|
|
120
122
|
function Se({ rowIndex: e3, column: t2, row: n2, orgRow: o2 }) {
|
|
121
|
-
|
|
123
|
+
Ce(null, null, n2, t2, e3);
|
|
122
124
|
}
|
|
123
|
-
function
|
|
124
|
-
const a2 = te.value.restoreEdit, l2 =
|
|
125
|
+
function Ce(e3, t2, n2, o2, i2) {
|
|
126
|
+
const a2 = te.value.restoreEdit, l2 = q;
|
|
125
127
|
a2.props.base.tableUuid = l2.uuid;
|
|
126
|
-
const r2 = f(
|
|
128
|
+
const r2 = f(W, a2, { originalValue: e3, formatValue: t2, row: n2, column: o2, rowIndex: i2 });
|
|
127
129
|
if (!r2) return;
|
|
128
130
|
N(r2) ? r2.then((e4) => {
|
|
129
131
|
e4 && ie.value.restoreRow(i2, le);
|
|
130
132
|
}) : ie.value.restoreRow(i2, le);
|
|
131
|
-
d(
|
|
133
|
+
d(W, q, { originalValue: e3, formatValue: t2, row: n2, column: o2, rowIndex: i2 });
|
|
132
134
|
}
|
|
133
|
-
function
|
|
134
|
-
const a2 = te.value.lineEditUpdate, l2 =
|
|
135
|
+
function ye(e3, t2, n2, o2, i2) {
|
|
136
|
+
const a2 = te.value.lineEditUpdate, l2 = q;
|
|
135
137
|
a2.props.base.tableUuid = l2.uuid;
|
|
136
|
-
const r2 = f(
|
|
138
|
+
const r2 = f(W, a2, { originalValue: e3, formatValue: t2, row: n2, column: o2, rowIndex: i2 });
|
|
137
139
|
r2 && (N(r2) ? r2.then((l3) => {
|
|
138
|
-
l3 &&
|
|
139
|
-
}) :
|
|
140
|
+
l3 && xe(e3, t2, n2, o2, i2, a2);
|
|
141
|
+
}) : xe(e3, t2, n2, o2, i2, a2));
|
|
140
142
|
}
|
|
141
|
-
function
|
|
142
|
-
|
|
143
|
+
function xe(e3, t2, n2, o2, i2, a2) {
|
|
144
|
+
W.editData = n2, p({ pageContext: W, configureObj: a2 }).then((a3) => {
|
|
143
145
|
if (true === a3.canExecute) {
|
|
144
146
|
ie.value.editRow(i2, le);
|
|
145
|
-
d(
|
|
147
|
+
d(W, q, { originalValue: e3, formatValue: t2, row: n2, column: o2, rowIndex: i2 });
|
|
146
148
|
}
|
|
147
149
|
}).finally(() => {
|
|
148
|
-
|
|
150
|
+
W.editData = null;
|
|
149
151
|
});
|
|
150
152
|
}
|
|
151
|
-
function
|
|
152
|
-
const a2 = te.value.lineEditDelete, l2 =
|
|
153
|
+
function De(e3, t2, n2, o2, i2) {
|
|
154
|
+
const a2 = te.value.lineEditDelete, l2 = q;
|
|
153
155
|
a2.props.base.tableUuid = l2.uuid;
|
|
154
|
-
const r2 = f(
|
|
156
|
+
const r2 = f(W, a2, { originalValue: e3, formatValue: t2, row: n2, column: o2, rowIndex: i2 });
|
|
155
157
|
r2 && (N(r2) ? r2.then((l3) => {
|
|
156
|
-
l3 &&
|
|
157
|
-
}) :
|
|
158
|
+
l3 && Ee(e3, t2, n2, o2, i2, a2);
|
|
159
|
+
}) : Ee(e3, t2, n2, o2, i2, a2));
|
|
158
160
|
}
|
|
159
|
-
function
|
|
160
|
-
if (n2.id || n2.ID)
|
|
161
|
+
function Ee(e3, t2, n2, o2, i2, a2) {
|
|
162
|
+
if (n2.id || n2.ID) W.editData = n2, p({ pageContext: W, configureObj: a2 }).then((e4) => {
|
|
161
163
|
if (true === e4.canExecute) {
|
|
162
164
|
const e5 = [];
|
|
163
|
-
n2.id ? e5.push(n2.id) : e5.push(n2.ID), j.delete({ pageContext:
|
|
165
|
+
n2.id ? e5.push(n2.id) : e5.push(n2.ID), j.delete({ pageContext: W, configureObj: a2, ids: e5 });
|
|
164
166
|
}
|
|
165
167
|
}).finally(() => {
|
|
166
|
-
|
|
168
|
+
W.editData = null;
|
|
167
169
|
});
|
|
168
170
|
else {
|
|
169
|
-
|
|
170
|
-
d(
|
|
171
|
+
Ce(e3, t2, n2, o2, i2);
|
|
172
|
+
d(W, q, { originalValue: e3, formatValue: t2, row: n2, column: o2, rowIndex: i2 });
|
|
171
173
|
}
|
|
172
174
|
}
|
|
173
175
|
function ke(e3) {
|
|
174
|
-
if (!
|
|
175
|
-
const t2 =
|
|
176
|
+
if (!W.dataTypeMaps) return void console.log("!pageContext['dataTypeMaps'] || !pageContext['dataTypeMaps'][tableName]");
|
|
177
|
+
const t2 = W.dataTypeMaps;
|
|
176
178
|
let n2 = [];
|
|
177
179
|
if (e3) for (var o2 in e3) {
|
|
178
180
|
const a2 = e3[o2];
|
|
@@ -190,7 +192,7 @@ const H = e({ __name: "main-table-runtime", props: { pageContext: {}, configure:
|
|
|
190
192
|
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);
|
|
191
193
|
}
|
|
192
194
|
}
|
|
193
|
-
ie.value.toolbarRefresh(null, null, n2);
|
|
195
|
+
console.log("toolbarRefresh"), ie.value.toolbarRefresh(null, null, n2);
|
|
194
196
|
}
|
|
195
197
|
function Oe(e3) {
|
|
196
198
|
const t2 = Ie();
|
|
@@ -201,7 +203,8 @@ const H = e({ __name: "main-table-runtime", props: { pageContext: {}, configure:
|
|
|
201
203
|
}
|
|
202
204
|
function Ie() {
|
|
203
205
|
if (!ie.value) return;
|
|
204
|
-
|
|
206
|
+
console.log("objectRender---configure.name=", G.configure.name, "props.configure=", G.configure, "runtimeStyle.value=", J);
|
|
207
|
+
const e3 = $(G.pageContext, G.configure);
|
|
205
208
|
if (e3 && e3.isCalcHeight) {
|
|
206
209
|
let e4 = ie.value.$el;
|
|
207
210
|
if (e4 || (e4 = ie.value), !e4) return;
|
|
@@ -210,96 +213,96 @@ const H = e({ __name: "main-table-runtime", props: { pageContext: {}, configure:
|
|
|
210
213
|
}
|
|
211
214
|
}
|
|
212
215
|
function Te(e3, t2, n2, o2, i2, a2) {
|
|
213
|
-
const l2 = { originalValue: e3, formatValue: t2, row: n2, column: o2, rowIndex: i2, button: a2, id: n2.ID ? n2.ID : n2.id }, r2 = te.value[a2.sourceButton.uuid],
|
|
214
|
-
r2.props.base.tableUuid =
|
|
216
|
+
const l2 = { originalValue: e3, formatValue: t2, row: n2, column: o2, rowIndex: i2, button: a2, id: n2.ID ? n2.ID : n2.id }, r2 = te.value[a2.sourceButton.uuid], s2 = q;
|
|
217
|
+
r2.props.base.tableUuid = s2.uuid, D(null, W, r2, "click", l2);
|
|
215
218
|
}
|
|
216
219
|
function Re(e3) {
|
|
217
220
|
"close_open_win" === e3.data && ie.value && ie.value.refresh();
|
|
218
221
|
}
|
|
219
222
|
function Ve(e3, t2) {
|
|
220
|
-
|
|
221
|
-
g(
|
|
223
|
+
se.value = e3;
|
|
224
|
+
g(W, q, { selection: e3, row: t2 });
|
|
222
225
|
}
|
|
223
226
|
function je(e3) {
|
|
224
|
-
|
|
225
|
-
m(
|
|
227
|
+
se.value = e3;
|
|
228
|
+
m(W, q, { selection: e3 });
|
|
226
229
|
}
|
|
227
230
|
function Ne(e3) {
|
|
228
|
-
v(
|
|
231
|
+
v(W, q, { newSelection: e3 });
|
|
229
232
|
}
|
|
230
233
|
function Pe(e3, t2, n2, o2) {
|
|
231
|
-
h(
|
|
234
|
+
h(W, q, { row: e3, column: t2, cell: n2, event: o2 });
|
|
232
235
|
}
|
|
233
236
|
function Ue(e3, t2, n2, o2) {
|
|
234
|
-
b(
|
|
235
|
-
}
|
|
236
|
-
function Be(e3, t2, n2) {
|
|
237
|
-
w(q, G, { row: e3, column: t2, event: n2 });
|
|
237
|
+
b(W, q, { row: e3, column: t2, cell: n2, event: o2 });
|
|
238
238
|
}
|
|
239
239
|
function Me(e3, t2, n2) {
|
|
240
|
-
|
|
240
|
+
w(W, q, { row: e3, column: t2, event: n2 });
|
|
241
|
+
}
|
|
242
|
+
function Be(e3, t2, n2) {
|
|
243
|
+
S(W, q, { row: e3, column: t2, event: n2 });
|
|
241
244
|
}
|
|
242
|
-
function
|
|
243
|
-
|
|
245
|
+
function Fe(e3, t2) {
|
|
246
|
+
C(W, q, { column: e3, event: t2 });
|
|
244
247
|
}
|
|
245
|
-
function
|
|
246
|
-
|
|
248
|
+
function $e() {
|
|
249
|
+
se.value = [];
|
|
247
250
|
}
|
|
248
251
|
function Le(e3) {
|
|
249
252
|
fe.value = true;
|
|
250
253
|
}
|
|
251
254
|
function _e(e3) {
|
|
252
|
-
return L(e3, [],
|
|
255
|
+
return L(e3, [], G);
|
|
253
256
|
}
|
|
254
257
|
function Ae(e3) {
|
|
255
|
-
return _(e3, e3.cellStyle,
|
|
258
|
+
return _(e3, e3.cellStyle, G);
|
|
256
259
|
}
|
|
257
260
|
function He(e3) {
|
|
258
|
-
const t2 = e3.titleStyle, n2 =
|
|
259
|
-
return A(e3, { cellTitleStyle: t2, titleStyle: n2 },
|
|
261
|
+
const t2 = e3.titleStyle, n2 = G.configure.style.titleStyle;
|
|
262
|
+
return A(e3, { cellTitleStyle: t2, titleStyle: n2 }, G);
|
|
260
263
|
}
|
|
261
264
|
function ze() {
|
|
262
265
|
const e3 = {};
|
|
263
266
|
return ne.forEach((t2) => {
|
|
264
|
-
e3[t2] =
|
|
267
|
+
e3[t2] = G.pageContext.entity.page[t2];
|
|
265
268
|
}), e3;
|
|
266
269
|
}
|
|
267
|
-
function
|
|
270
|
+
function Ge() {
|
|
268
271
|
ne.forEach((e3) => {
|
|
269
|
-
o(() =>
|
|
272
|
+
o(() => G.pageContext.entity.page[e3], () => {
|
|
270
273
|
ke(ze());
|
|
271
274
|
});
|
|
272
275
|
});
|
|
273
276
|
}
|
|
274
277
|
return n(() => {
|
|
275
|
-
window.addEventListener("message", Re),
|
|
278
|
+
window.addEventListener("message", Re), M.$on(re + "-close-component-page-dialog", function({ jumpInfo: e3, popEntity: t2, popPageCode: n2 }) {
|
|
276
279
|
ie.value.closePageDialog({ entity: t2, pageCode: n2, jumpInfo: e3 });
|
|
277
|
-
}),
|
|
278
|
-
|
|
279
|
-
}),
|
|
280
|
-
ie.value.pickFileDone(e3);
|
|
281
|
-
}),
|
|
282
|
-
ie.value.scanDone(e3);
|
|
280
|
+
}), M.$on(re + "_close-dialog-get-entity", () => {
|
|
281
|
+
M.$emit(re + "_close-super-dialog");
|
|
282
|
+
}), M.$on(le + "-pickFileDone", (e3) => {
|
|
283
|
+
console.log("superPage5555---listCode---pickFileDone--listCode=", le, "data=", e3), ie.value.pickFileDone(e3);
|
|
284
|
+
}), M.$on(le + "-scanDone", (e3) => {
|
|
285
|
+
console.log("superPage5555---listCode---scanDone--listCode=", le, "data=", e3), ie.value.scanDone(e3);
|
|
283
286
|
}), oe.value.formSetMaxHeight = Ie(), oe.value && oe.value.configureObj.props.base && oe.value.configureObj.props.base.isSafeDelete && ge("setSafeDeleteTableCode", oe.value.extraParam.tableName);
|
|
284
|
-
}), o(() =>
|
|
287
|
+
}), o(() => G.pageContext.searchFormData, (e3) => {
|
|
285
288
|
ce.value.data = e3;
|
|
286
|
-
}), o(() =>
|
|
287
|
-
ke(
|
|
289
|
+
}), o(() => G.pageContext.entity.data, (e3) => {
|
|
290
|
+
ke(G.pageContext.entity.data);
|
|
288
291
|
}), i(() => {
|
|
289
|
-
window.removeEventListener("message", Re),
|
|
292
|
+
window.removeEventListener("message", Re), M.$off(re + "-close-component-page-dialog"), M.$off(re + "_close-dialog-get-entity"), M.$off(le + "-pickFileDone"), M.$off(le + "-scanDone");
|
|
290
293
|
}), H2({ refresh: function(e3, t2, n2, o2) {
|
|
291
294
|
return ie.value.refresh(e3, t2, n2, o2);
|
|
292
295
|
}, createRow: function() {
|
|
293
|
-
return ie.value.createRow(le, {}, { getDefaultValueFunc:
|
|
294
|
-
}, clearSelections:
|
|
295
|
-
return
|
|
296
|
+
return ie.value.createRow(le, {}, { getDefaultValueFunc: B });
|
|
297
|
+
}, clearSelections: $e, getSelections: function() {
|
|
298
|
+
return se.value;
|
|
296
299
|
}, getSelectionIds: function() {
|
|
297
300
|
const e3 = [];
|
|
298
|
-
return null !==
|
|
301
|
+
return null !== se.value && se.value.forEach((t2) => {
|
|
299
302
|
e3.push(t2.id ? t2.id : t2.ID ? t2.ID : null);
|
|
300
303
|
}), e3;
|
|
301
304
|
}, getTableConfigure: function() {
|
|
302
|
-
return
|
|
305
|
+
return q;
|
|
303
306
|
}, isDeleteChange: function(e3) {
|
|
304
307
|
ie.value.isDeleteChange(e3);
|
|
305
308
|
}, validatorSunTableListData: function() {
|
|
@@ -314,7 +317,7 @@ const H = e({ __name: "main-table-runtime", props: { pageContext: {}, configure:
|
|
|
314
317
|
ie.value && ie.value.doLayout(e3);
|
|
315
318
|
} }), (e3, t2) => {
|
|
316
319
|
const n2 = a("super-grid");
|
|
317
|
-
return r(), l("div", null, [
|
|
320
|
+
return r(), l("div", null, [s(n2, { ref_key: "gridRef", ref: ie, url: u(ae), options: oe.value, code: u(le), settings: u(de), "search-form-info": ce.value, "list-toolbar-form-data": u(ue), onSelect: Ve, onSelectAll: je, onSelectionChange: Ne, onCellClick: Pe, onCellDblclick: Ue, onRowClick: Me, onRowDblclick: Be, onHeaderClick: Fe, onRefresh: $e, onNewOpenGridDialog: u(U), onCanShowMobileSearch: Le }, null, 8, ["url", "options", "code", "settings", "search-form-info", "list-toolbar-form-data", "onNewOpenGridDialog"])]);
|
|
318
321
|
};
|
|
319
322
|
} });
|
|
320
323
|
export {
|