super-page-runtime 2.3.2 → 2.3.3-tmp2
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 +53 -53
- 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 +26 -24
- package/dist/es/components/runtime/utils/events/event-util.js +119 -119
- package/dist/es/components/runtime/utils/events/print-label.js +27 -25
- package/dist/es/components/runtime/utils/events/standard-event.js +481 -469
- package/dist/es/components/runtime/utils/events/validator-util.js +96 -89
- 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 +48 -44
- package/dist/es/components/runtime/utils/page-store.js +1 -1
- package/dist/es/components/runtime/utils/table-utils.js +30 -30
- 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 +15 -14
- package/dist/es/components/runtime/views/assemblys/chart/pie/pie-runtime.vue2.js +12 -11
- package/dist/es/components/runtime/views/assemblys/chart/radar/radar-runtime.vue2.js +18 -17
- package/dist/es/components/runtime/views/assemblys/chart/scatter/scatter-runtime.vue2.js +19 -18
- 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 +19 -18
- package/dist/es/components/runtime/views/assemblys/common/export-form-report-dialog.vue.js +26 -22
- package/dist/es/components/runtime/views/assemblys/container/fixed/YxAffix.vue2.js +3 -1
- 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 +91 -39
- 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 +43 -40
- package/dist/es/components/runtime/views/assemblys/data/table/sub-table-runtime.vue.js +123 -120
- package/dist/es/components/runtime/views/assemblys/data/tree/tree-runtime.vue2.js +58 -57
- 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 +32 -32
- 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 -49
- package/dist/es/components/runtime/views/assemblys/form/label/label-runtime.vue2.js +8 -6
- package/dist/es/components/runtime/views/assemblys/form/link/link-runtime.vue2.js +10 -9
- package/dist/es/components/runtime/views/assemblys/form/radio/radio-runtime.vue2.js +1 -0
- package/dist/es/components/runtime/views/assemblys/form/rich-text/richtext-runtime.vue2.js +1 -0
- package/dist/es/components/runtime/views/assemblys/form/select/select-runtime.vue2.js +8 -8
- package/dist/es/components/runtime/views/home-chart.vue.js +7 -7
- package/dist/es/components/runtime/views/super-page-dialog.vue.js +7 -6
- package/dist/es/components/runtime/views/super-page.vue.js +1 -1
- package/dist/es/components/runtime/views/super-page.vue2.js +133 -131
- package/dist/es/style.css +93 -84
- package/package.json +2 -2
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as e, computed as t, ref as
|
|
1
|
+
import { defineComponent as e, computed as t, ref as r, onMounted as a, watch as o, resolveComponent as l, createBlock as n, openBlock as u, normalizeStyle as i, normalizeClass as s, unref as c, withCtx as p, createElementBlock as m, createCommentVNode as f, toDisplayString as g } from "vue";
|
|
2
2
|
import d from "qrcode";
|
|
3
3
|
import v from "jsbarcode";
|
|
4
4
|
import { getFormModelFields as y } from "../../../../utils/page-init-util.js";
|
|
@@ -12,7 +12,7 @@ const j = ["src"], D = e({ __name: "barcode-runtime", props: { pageContext: {},
|
|
|
12
12
|
let k = y(q.pageContext, q.configure);
|
|
13
13
|
const A = t({ get: () => x(N, k), set(e3) {
|
|
14
14
|
h(N, k, e3);
|
|
15
|
-
} }), E = q.configure.runtime ? q.configure.runtime : {}, _ =
|
|
15
|
+
} }), E = q.configure.runtime ? q.configure.runtime : {}, _ = r(E.props ? E.props : {}), O = E.style, P = E.class, S = E.headerStyle, $ = r(""), I = r(null), Q = r(_.value.brCodeFormat ?? "CODE128"), V = r([]);
|
|
16
16
|
function F(e3) {
|
|
17
17
|
return h(N, k, e3);
|
|
18
18
|
}
|
|
@@ -22,31 +22,32 @@ const j = ["src"], D = e({ __name: "barcode-runtime", props: { pageContext: {},
|
|
|
22
22
|
function L(e3) {
|
|
23
23
|
var t2;
|
|
24
24
|
"QR-code" === _.value.type ? (t2 = e3, d.toDataURL(t2, (e4, t3) => {
|
|
25
|
-
e4
|
|
25
|
+
e4 ? console.error(e4) : $.value = t3;
|
|
26
26
|
})) : function(e4) {
|
|
27
27
|
try {
|
|
28
28
|
v(I.value, e4, { format: Q.value });
|
|
29
29
|
} catch (e5) {
|
|
30
|
+
console.error("生成条形码时发生错误:", e5);
|
|
30
31
|
}
|
|
31
32
|
}(e3);
|
|
32
33
|
}
|
|
33
|
-
return
|
|
34
|
+
return a(() => {
|
|
34
35
|
_.value.generateRule && ("fixed" === _.value.generateRuleType ? (V.value = Array.from(_.value.generateRule.matchAll(/\$\{(\w+)\}/g), (e3) => e3[1]), V.value.forEach((e3) => {
|
|
35
|
-
|
|
36
|
+
o(() => q.pageContext.entity.data[e3], (e4, t2) => {
|
|
36
37
|
null != e4 && function() {
|
|
37
38
|
let e5 = true;
|
|
38
39
|
V.value.forEach((t3) => {
|
|
39
40
|
q.pageContext.entity.data[t3] || (e5 = false);
|
|
40
41
|
}), e5 && J(function(e6, t3) {
|
|
41
|
-
const
|
|
42
|
-
return e6.replace(
|
|
42
|
+
const r2 = /\$\{(\w+)\}/g;
|
|
43
|
+
return e6.replace(r2, (e7, r3) => t3.hasOwnProperty(r3) ? t3[r3] : e7);
|
|
43
44
|
}(_.value.generateRule, q.pageContext.entity.data));
|
|
44
45
|
}();
|
|
45
46
|
});
|
|
46
47
|
})) : w.get(window.$vueApp.config.globalProperties.baseAPI + "/dc/setting-barcode-models/by-code/" + _.value.generateRule).then((e3) => {
|
|
47
48
|
const t2 = JSON.parse(e3.barcodeModelItems);
|
|
48
49
|
t2.forEach((e4) => {
|
|
49
|
-
"-1" !== e4.propDbName && -1 !== e4.propDbName && (V.value.push(e4.propDbName),
|
|
50
|
+
"-1" !== e4.propDbName && -1 !== e4.propDbName && (V.value.push(e4.propDbName), o(() => q.pageContext.entity.data[e4.propDbName], (e5, r2) => {
|
|
50
51
|
if (null != e5) {
|
|
51
52
|
const e6 = b(t2, q.pageContext.entity.data);
|
|
52
53
|
e6 && J(e6);
|
|
@@ -54,12 +55,13 @@ const j = ["src"], D = e({ __name: "barcode-runtime", props: { pageContext: {},
|
|
|
54
55
|
}));
|
|
55
56
|
});
|
|
56
57
|
}).catch((e3) => {
|
|
58
|
+
console.error("获取条码规则失败:", e3);
|
|
57
59
|
})), A.value && L(A.value);
|
|
58
60
|
}), D2({ getValue: function() {
|
|
59
61
|
return x(N, k);
|
|
60
62
|
}, setValue: F }), (e3, t2) => {
|
|
61
|
-
const
|
|
62
|
-
return
|
|
63
|
+
const r2 = l("el-form-item");
|
|
64
|
+
return u(), n(r2, { required: !!_.value.required, class: s(c(P)), "label-width": _.value.labelWidth, style: i(c(O)) }, { label: p(() => [_.value.tittleShow ? (u(), m("div", { key: 0, style: i({ ...c(S) }) }, g(c(R)(_.value.title)), 5)) : f("", true)]), default: p(() => ["QR-code" === _.value.type ? (u(), m("img", { key: 0, src: $.value }, null, 8, j)) : (u(), m("canvas", { key: 1, ref_key: "barcode", ref: I }, null, 512))]), _: 1 }, 8, ["required", "class", "label-width", "style"]);
|
|
63
65
|
};
|
|
64
66
|
} });
|
|
65
67
|
export {
|
|
@@ -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
|
|
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 S, rowDblClick as w, 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 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 }) {
|
|
@@ -15,21 +15,21 @@ const z = ["id"], W = e({ __name: "main-table-runtime", props: { pageContext: {}
|
|
|
15
15
|
const K = t({});
|
|
16
16
|
Y.isTest ? K.value = Q.configure.runtime ? Q.configure.runtime : {} : Y.tableRuntimes && Y.tableRuntimes[J.uuid] && (J = JSON.parse(Y.tableRuntimes[J.uuid].configure), K.value = J.runtime ? J.runtime : {});
|
|
17
17
|
const X = K.value.style, Z = K.value.class, ee = Y.systemCode, te = Y.backendUrl, ne = J.props && J.props.dataOrigin && J.props.dataOrigin.tableName;
|
|
18
|
-
let oe =
|
|
18
|
+
let oe = E(Y.backendUrl, Y.isTest);
|
|
19
19
|
oe || (oe = window.$vueApp.config.globalProperties.baseURL);
|
|
20
20
|
const ie = t({}), ae = [], le = t({});
|
|
21
21
|
le.value = function() {
|
|
22
22
|
const e3 = Y.systemCode, t2 = Y.code;
|
|
23
23
|
let n2 = J.props && J.props.dataOrigin && "[]" !== J.props.dataOrigin.sqlFilterCondition ? J.props.dataOrigin.sqlFilterCondition : null;
|
|
24
24
|
null == n2 && (n2 = []);
|
|
25
|
-
const o2 = { isSql: true, optionTableHeight: 0, rowKeyProp: J.props.dataOrigin.principalLinkage, 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:
|
|
25
|
+
const o2 = { isSql: true, optionTableHeight: 0, rowKeyProp: J.props.dataOrigin.principalLinkage, 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: we, 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 };
|
|
26
26
|
return function(e4) {
|
|
27
27
|
var _a;
|
|
28
28
|
((_a = J.props.highOrder) == null ? void 0 : _a.mergeFields) && J.props.highOrder.mergeFields.length > 0 && (e4.mergeFields = J.props.highOrder.mergeFields.join(","));
|
|
29
29
|
}(o2), function(e4) {
|
|
30
30
|
const t3 = [];
|
|
31
31
|
e4.operations || (e4.operations = {});
|
|
32
|
-
|
|
32
|
+
P(Y, J, t3, ye), e4.operations.operation = t3;
|
|
33
33
|
}(o2), function(e4) {
|
|
34
34
|
J.props && J.props.dataOrigin && J.props.dataOrigin.sortField && (e4.initSortInfo = [], J.props.dataOrigin.sortField.forEach((t3) => {
|
|
35
35
|
const n3 = { order: "desc" === t3.type ? "desc" : "asc" };
|
|
@@ -56,18 +56,20 @@ const z = ["id"], W = e({ __name: "main-table-runtime", props: { pageContext: {}
|
|
|
56
56
|
}();
|
|
57
57
|
const re = t(), ue = t(), se = function() {
|
|
58
58
|
let e3 = oe + "/dsc/commons/list";
|
|
59
|
-
e3 && (e3 =
|
|
59
|
+
e3 && (e3 = R(e3, ee, te, Y.isTest));
|
|
60
60
|
return e3;
|
|
61
|
-
}(), 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
|
|
62
|
-
|
|
61
|
+
}(), 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;
|
|
62
|
+
console.log("superGridSetting1111===", me, ve);
|
|
63
|
+
const he = t(false), be = q;
|
|
64
|
+
function Se() {
|
|
63
65
|
J.props.linkages && J.props.linkages.length > 0 && (J.props.linkages.forEach((e3) => {
|
|
64
|
-
const t2 =
|
|
66
|
+
const t2 = L(e3.fieldName);
|
|
65
67
|
t2 && t2.length > 1 && ae.push(t2[1]);
|
|
66
68
|
}), ae.length > 0 && function() {
|
|
67
69
|
let e3 = [];
|
|
68
70
|
Q.pageContext.toolsInputComponents && Q.pageContext.toolsInputComponents.length > 0 && Q.pageContext.toolsInputComponents.forEach((t2) => {
|
|
69
71
|
if (J.props.linkages.some((e4) => e4.fieldName === t2.prop) && t2.defaultValue) {
|
|
70
|
-
const n2 =
|
|
72
|
+
const n2 = L(t2.prop);
|
|
71
73
|
n2 && n2.length > 1 && e3.push(n2[1]);
|
|
72
74
|
}
|
|
73
75
|
});
|
|
@@ -83,13 +85,13 @@ const z = ["id"], W = e({ __name: "main-table-runtime", props: { pageContext: {}
|
|
|
83
85
|
}
|
|
84
86
|
}());
|
|
85
87
|
}
|
|
86
|
-
function
|
|
88
|
+
function we({ rowIndex: e3, column: t2, row: n2, orgRow: o2 }) {
|
|
87
89
|
Ce(null, null, n2, t2, e3);
|
|
88
90
|
}
|
|
89
91
|
function Ce(e3, t2, n2, o2, i2) {
|
|
90
92
|
const a2 = ie.value.lineEditSave, l2 = J;
|
|
91
93
|
a2.props.base.tableUuid = l2.uuid, le.value.lineEditOptions.beforeSave = xe, Y.editData = n2, p({ pageContext: Y, configureObj: a2 }).then((l3) => {
|
|
92
|
-
true === l3.canExecute && (le.value.lineEditOptions.saveRow =
|
|
94
|
+
true === l3.canExecute && (le.value.lineEditOptions.saveRow = De, ue.value.saveRow(i2, ce).then(() => {
|
|
93
95
|
d(Y, a2, { originalValue: e3, formatValue: t2, row: n2, column: o2, rowIndex: i2 });
|
|
94
96
|
}));
|
|
95
97
|
}).finally(() => {
|
|
@@ -101,10 +103,10 @@ const z = ["id"], W = e({ __name: "main-table-runtime", props: { pageContext: {}
|
|
|
101
103
|
let t2;
|
|
102
104
|
const n2 = y(e3.events, "click");
|
|
103
105
|
if (n2) {
|
|
104
|
-
if (ie.value[n2] = e3, "lineEditSave" === n2 ? t2 = Ce : "restoreEdit" === n2 ? t2 = Te : "lineEditUpdate" === n2 ? t2 =
|
|
106
|
+
if (ie.value[n2] = e3, "lineEditSave" === n2 ? t2 = Ce : "restoreEdit" === n2 ? t2 = Te : "lineEditUpdate" === n2 ? t2 = Re : "lineEditDelete" === n2 && (t2 = ke), !t2) {
|
|
105
107
|
t2 = x(Y, e3.events, "click");
|
|
106
108
|
}
|
|
107
|
-
} else ie.value[e3.uuid] = e3, t2 =
|
|
109
|
+
} else ie.value[e3.uuid] = e3, t2 = Pe;
|
|
108
110
|
return { onClick: t2, eventName: n2 };
|
|
109
111
|
}
|
|
110
112
|
function xe({ row: e3, columns: t2, additionalParamMap: n2 }) {
|
|
@@ -112,7 +114,7 @@ const z = ["id"], W = e({ __name: "main-table-runtime", props: { pageContext: {}
|
|
|
112
114
|
o2.props.base.tableUuid = i2.uuid;
|
|
113
115
|
return f(Y, o2, { row: e3, columns: t2 });
|
|
114
116
|
}
|
|
115
|
-
function
|
|
117
|
+
function De({ row: e3, columns: t2, dataTypeMap: n2, dynamicColumnInfo: o2, additionalParamMap: i2, mainDefaultValueColumns: a2 }) {
|
|
116
118
|
const l2 = ie.value.lineEditSave, r2 = J;
|
|
117
119
|
return l2.props.base.tableUuid = r2.uuid, new Promise((t3, n3) => {
|
|
118
120
|
const i3 = { tableName: r2.props.dataOrigin.tableName };
|
|
@@ -123,7 +125,7 @@ const z = ["id"], W = e({ __name: "main-table-runtime", props: { pageContext: {}
|
|
|
123
125
|
});
|
|
124
126
|
});
|
|
125
127
|
}
|
|
126
|
-
function
|
|
128
|
+
function Ee({ rowIndex: e3, column: t2, row: n2, orgRow: o2 }) {
|
|
127
129
|
Te(null, null, n2, t2, e3);
|
|
128
130
|
}
|
|
129
131
|
function Te(e3, t2, n2, o2, i2) {
|
|
@@ -136,15 +138,15 @@ const z = ["id"], W = e({ __name: "main-table-runtime", props: { pageContext: {}
|
|
|
136
138
|
}) : ue.value.restoreRow(i2, ce);
|
|
137
139
|
d(Y, J, { originalValue: e3, formatValue: t2, row: n2, column: o2, rowIndex: i2 });
|
|
138
140
|
}
|
|
139
|
-
function
|
|
141
|
+
function Re(e3, t2, n2, o2, i2) {
|
|
140
142
|
const a2 = ie.value.lineEditUpdate, l2 = J;
|
|
141
143
|
a2.props.base.tableUuid = l2.uuid;
|
|
142
144
|
const r2 = f(Y, a2, { originalValue: e3, formatValue: t2, row: n2, column: o2, rowIndex: i2 });
|
|
143
145
|
r2 && (N(r2) ? r2.then((l3) => {
|
|
144
|
-
l3 &&
|
|
145
|
-
}) :
|
|
146
|
+
l3 && Oe(e3, t2, n2, o2, i2, a2);
|
|
147
|
+
}) : Oe(e3, t2, n2, o2, i2, a2));
|
|
146
148
|
}
|
|
147
|
-
function
|
|
149
|
+
function Oe(e3, t2, n2, o2, i2, a2) {
|
|
148
150
|
Y.editData = n2, p({ pageContext: Y, configureObj: a2 }).then((a3) => {
|
|
149
151
|
if (true === a3.canExecute) {
|
|
150
152
|
ue.value.editRow(i2, ce);
|
|
@@ -177,7 +179,7 @@ const z = ["id"], W = e({ __name: "main-table-runtime", props: { pageContext: {}
|
|
|
177
179
|
}
|
|
178
180
|
}
|
|
179
181
|
function Ve(e3) {
|
|
180
|
-
if (!Y.dataTypeMaps) return;
|
|
182
|
+
if (!Y.dataTypeMaps) return void console.log("!pageContext['dataTypeMaps'] || !pageContext['dataTypeMaps'][tableName]");
|
|
181
183
|
const t2 = Y.dataTypeMaps;
|
|
182
184
|
let n2 = [];
|
|
183
185
|
if (e3) for (var o2 in e3) {
|
|
@@ -196,7 +198,7 @@ const z = ["id"], W = e({ __name: "main-table-runtime", props: { pageContext: {}
|
|
|
196
198
|
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);
|
|
197
199
|
}
|
|
198
200
|
}
|
|
199
|
-
ue.value.toolbarRefresh(null, null, n2);
|
|
201
|
+
console.log("toolbarRefresh"), ue.value.toolbarRefresh(null, null, n2);
|
|
200
202
|
}
|
|
201
203
|
function je(e3) {
|
|
202
204
|
const t2 = Ne();
|
|
@@ -207,7 +209,8 @@ const z = ["id"], W = e({ __name: "main-table-runtime", props: { pageContext: {}
|
|
|
207
209
|
}
|
|
208
210
|
function Ne() {
|
|
209
211
|
if (!ue.value) return;
|
|
210
|
-
|
|
212
|
+
console.log("objectRender---configure.name=", Q.configure.name, "props.configure=", Q.configure, "runtimeStyle.value=", X);
|
|
213
|
+
const e3 = M(Q.pageContext, Q.configure);
|
|
211
214
|
if (e3) {
|
|
212
215
|
if (e3.isCalcHeight) {
|
|
213
216
|
let e4 = ue.value.$el;
|
|
@@ -218,11 +221,11 @@ const z = ["id"], W = e({ __name: "main-table-runtime", props: { pageContext: {}
|
|
|
218
221
|
if (e3.fixHeight && ue.value && (ue.value.tableHeight = e3.fixHeight), e3.maxHeight) return e3.maxHeight;
|
|
219
222
|
}
|
|
220
223
|
}
|
|
221
|
-
function
|
|
224
|
+
function Pe(e3, t2, n2, o2, i2, a2) {
|
|
222
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;
|
|
223
|
-
r2.props.base.tableUuid = u2.uuid,
|
|
226
|
+
r2.props.base.tableUuid = u2.uuid, D(null, Y, r2, "click", l2);
|
|
224
227
|
}
|
|
225
|
-
function
|
|
228
|
+
function Be(e3) {
|
|
226
229
|
"close_open_win" === e3.data && ue.value && ue.value.refresh();
|
|
227
230
|
}
|
|
228
231
|
function Fe(e3, t2) {
|
|
@@ -233,20 +236,20 @@ const z = ["id"], W = e({ __name: "main-table-runtime", props: { pageContext: {}
|
|
|
233
236
|
de.value = e3;
|
|
234
237
|
m(Y, J, { selection: e3 });
|
|
235
238
|
}
|
|
236
|
-
function
|
|
239
|
+
function Me(e3) {
|
|
237
240
|
v(Y, J, { newSelection: e3 });
|
|
238
241
|
}
|
|
239
|
-
function
|
|
242
|
+
function Ue(e3, t2, n2, o2) {
|
|
240
243
|
h(Y, J, { row: e3, column: t2, cell: n2, event: o2 });
|
|
241
244
|
}
|
|
242
|
-
function
|
|
245
|
+
function Le(e3, t2, n2, o2) {
|
|
243
246
|
b(Y, J, { row: e3, column: t2, cell: n2, event: o2 });
|
|
244
247
|
}
|
|
245
248
|
function $e(e3, t2, n2) {
|
|
246
|
-
|
|
249
|
+
S(Y, J, { row: e3, column: t2, event: n2 });
|
|
247
250
|
}
|
|
248
251
|
function _e(e3, t2, n2) {
|
|
249
|
-
|
|
252
|
+
w(Y, J, { row: e3, column: t2, event: n2 });
|
|
250
253
|
}
|
|
251
254
|
function Ae(e3, t2) {
|
|
252
255
|
C(Y, J, { column: e3, event: t2 });
|
|
@@ -282,32 +285,32 @@ const z = ["id"], W = e({ __name: "main-table-runtime", props: { pageContext: {}
|
|
|
282
285
|
}
|
|
283
286
|
n(() => {
|
|
284
287
|
const e3 = Ke();
|
|
285
|
-
ue.value && e3 && e3.distanceToBottom && (ue.value.tableHeight = e3.distanceToBottom - 110), Q.pageContext.pageRuntimeStyle, 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 }) {
|
|
286
289
|
ue.value.closePageDialog({ entity: t2, pageCode: n2, jumpInfo: e4 });
|
|
287
290
|
}), F.$on(pe + "_close-dialog-get-entity", () => {
|
|
288
291
|
F.$emit(pe + "_close-super-dialog");
|
|
289
292
|
}), F.$on(ce + "-pickFileDone", (e4) => {
|
|
290
|
-
ue.value.pickFileDone(e4);
|
|
293
|
+
console.log("superPage5555---listCode---pickFileDone--listCode=", ce, "data=", e4), ue.value.pickFileDone(e4);
|
|
291
294
|
}), F.$on(ce + "-scanDone", (e4) => {
|
|
292
|
-
ue.value.scanDone(e4);
|
|
295
|
+
console.log("superPage5555---listCode---scanDone--listCode=", ce, "data=", e4), ue.value.scanDone(e4);
|
|
293
296
|
}), le.value.formSetMaxHeight = Ne(), le.value && le.value.configureObj.props.base && le.value.configureObj.props.base.isSafeDelete && be("setSafeDeleteTableCode", le.value.extraParam.tableName);
|
|
294
297
|
}), o(() => Q.pageContext.searchFormData, (e3) => {
|
|
295
298
|
ge.value.data = e3;
|
|
296
299
|
}), o(() => Q.pageContext.entity.data, (e3) => {
|
|
297
300
|
Ve(Q.pageContext.entity.data);
|
|
298
301
|
}), i(() => {
|
|
299
|
-
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");
|
|
300
303
|
});
|
|
301
304
|
const Ke = () => {
|
|
302
305
|
if (!re.value) return null;
|
|
303
306
|
let e3 = re.value.closest(".app-container");
|
|
304
|
-
if (!e3) return null;
|
|
307
|
+
if (!e3) return console.warn("未找到.app-container元素"), null;
|
|
305
308
|
const t2 = re.value.getBoundingClientRect(), n2 = e3.getBoundingClientRect(), o2 = window.scrollY;
|
|
306
309
|
return { distanceToTop: t2.top + o2 - n2.top, distanceToBottom: n2.bottom - t2.top };
|
|
307
310
|
};
|
|
308
311
|
function Xe({ row: e3, editConditions: t2 }) {
|
|
309
312
|
let n2 = true;
|
|
310
|
-
return t2 && t2.length > 0 && (n2 =
|
|
313
|
+
return t2 && t2.length > 0 && (n2 = U(Q.pageContext, t2, e3)), n2;
|
|
311
314
|
}
|
|
312
315
|
function Ze(e3, t2) {
|
|
313
316
|
const n2 = $(Q.pageContext, t2);
|
|
@@ -363,7 +366,7 @@ const z = ["id"], W = e({ __name: "main-table-runtime", props: { pageContext: {}
|
|
|
363
366
|
(_a = ue.value) == null ? void 0 : _a.setScrollTopByRowIndex(e3);
|
|
364
367
|
} }), (e3, t2) => {
|
|
365
368
|
const n2 = a("super-grid");
|
|
366
|
-
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), onSelect: Fe, onSelectAll: He, onSelectionChange:
|
|
369
|
+
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), onSelect: Fe, onSelectAll: He, onSelectionChange: Me, onCellClick: Ue, onCellDblclick: Le, onRowClick: $e, onRowDblclick: _e, onHeaderClick: Ae, onRefresh: Ge, onNewOpenGridDialog: u(B), onCanShowMobileSearch: ze, onGridOnmounted: Se }, null, 8, ["url", "options", "code", "settings", "search-form-info", "list-toolbar-form-data", "onNewOpenGridDialog"])], 8, z);
|
|
367
370
|
};
|
|
368
371
|
} });
|
|
369
372
|
export {
|