super-page-runtime 2.2.77-sit8 → 2.2.78
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 +46 -45
- package/dist/es/components/runtime/utils/charts/chart-scatter-util.js +16 -14
- package/dist/es/components/runtime/utils/charts/chart-util.d.ts +1 -1
- package/dist/es/components/runtime/utils/charts/chart-util.js +9 -7
- package/dist/es/components/runtime/utils/events/event-util.js +113 -113
- package/dist/es/components/runtime/utils/events/print-label.js +38 -37
- package/dist/es/components/runtime/utils/events/standard-event.js +523 -508
- package/dist/es/components/runtime/utils/events/validator-util.js +62 -72
- package/dist/es/components/runtime/utils/form/scan-util.js +4 -3
- package/dist/es/components/runtime/utils/page-helper-util.js +210 -210
- package/dist/es/components/runtime/utils/page-init-util.js +50 -47
- 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 +13 -16
- package/dist/es/components/runtime/views/assemblys/button/button-group/buttongroup-runtime.vue.js +1 -4
- package/dist/es/components/runtime/views/assemblys/button/button-group/buttongroup-runtime.vue2.js +11 -15
- 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/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 +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 +122 -131
- package/dist/es/components/runtime/views/assemblys/chart/table/table-runtime.vue2.js +57 -90
- package/dist/es/components/runtime/views/assemblys/common/export-form-report-dialog.vue.js +26 -22
- 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 +35 -38
- package/dist/es/components/runtime/views/assemblys/container/tabs/tabs-runtime.vue.js +1 -1
- 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 +12 -10
- package/dist/es/components/runtime/views/assemblys/data/table/main-table-runtime.vue.js +94 -92
- package/dist/es/components/runtime/views/assemblys/data/table/sub-table-runtime.vue.js +124 -123
- package/dist/es/components/runtime/views/assemblys/data/table/table-runtime.vue2.js +14 -16
- 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 +77 -80
- 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 -34
- package/dist/es/components/runtime/views/assemblys/form/date-picker/datepicker-runtime.vue2.js +41 -39
- 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 +51 -50
- 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 +4 -5
- package/dist/es/components/runtime/views/assemblys/workflow/workflow-button/workflowbutton-runtime.vue.js +1 -4
- 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 +10 -9
- package/dist/es/components/runtime/views/{super-page-dialog.vue3.js → super-page-dialog.vue2.js} +0 -1
- 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 +0 -1
- package/dist/es/style.css +99 -225
- package/package.json +2 -2
|
@@ -1,79 +1,76 @@
|
|
|
1
|
-
import { defineComponent as e, ref as t, onMounted as o, nextTick as n, onUnmounted as i, watchEffect as l, computed as a,
|
|
2
|
-
const
|
|
3
|
-
const
|
|
4
|
-
e3.contentRect.height && (y.value.height = e3.contentRect.height);
|
|
5
|
-
}, S = () => {
|
|
1
|
+
import { defineComponent as e, ref as t, onMounted as o, nextTick as n, onUnmounted as i, watchEffect as l, computed as a, createElementBlock as r, openBlock as s, createCommentVNode as u, createElementVNode as f, normalizeStyle as c, normalizeClass as d, renderSlot as p } from "vue";
|
|
2
|
+
const v = e({ __name: "YxAffix", props: { offset: { type: Number, default: 0 }, position: { type: String, default: "top", validator: (e2) => ["top", "bottom"].includes(e2) }, target: { type: [String, HTMLElement], default: () => window }, autoDetectParentScroll: { type: Boolean, default: true }, stickyInScrollContainer: { type: Boolean, default: true }, zIndex: { type: Number, default: 100 }, enableIntervalUpdate: { type: Boolean, default: true }, enableIntervalTime: { type: Number, default: 2e3 } }, emits: ["change"], setup(e2, { emit: v2 }) {
|
|
3
|
+
const m = e2, w = v2, h = t(null), g = t(null), x = t(false), y = t({}), b = t([]), T = t(window), B = t(0), I = t(null), E = () => {
|
|
6
4
|
try {
|
|
7
|
-
if (!
|
|
8
|
-
const e3 =
|
|
5
|
+
if (!g.value) return;
|
|
6
|
+
const e3 = g.value.getBoundingClientRect(), t2 = T.value;
|
|
9
7
|
if (t2 === window) {
|
|
10
|
-
const t3 = "top" ===
|
|
11
|
-
B.value = 0,
|
|
12
|
-
} else if (
|
|
8
|
+
const t3 = "top" === m.position ? e3.top <= m.offset : e3.bottom >= window.innerHeight - m.offset;
|
|
9
|
+
B.value = 0, S(t3, e3);
|
|
10
|
+
} else if (m.stickyInScrollContainer) {
|
|
13
11
|
const o2 = t2.getBoundingClientRect(), { isFixTop: n2, isFixBottom: i2, containerOffset: l2 } = ((e4) => {
|
|
14
|
-
const t3 = ["top"].includes(
|
|
15
|
-
if (!
|
|
16
|
-
const n3 =
|
|
12
|
+
const t3 = ["top"].includes(m.position), o3 = ["bottom"].includes(m.position);
|
|
13
|
+
if (!h.value) return { isTop: t3, isBottom: o3 };
|
|
14
|
+
const n3 = h.value.getBoundingClientRect(), i3 = n3.top - e4.top, l3 = n3.left - e4.left, a2 = e4.height - n3.height - i3, r2 = e4.top, s2 = window.innerHeight - e4.bottom;
|
|
17
15
|
return { isTop: t3, isBottom: o3, containerTop: r2, containerBottom: s2, containerOffset: t3 ? r2 : o3 ? s2 : 0, offsetTop: i3, offsetLeft: l3, offsetBottom: a2, isFixTop: t3 && i3 <= 0, isFixBottom: o3 && a2 <= 0 };
|
|
18
16
|
})(o2);
|
|
19
|
-
B.value = l2 ?? 0,
|
|
17
|
+
B.value = l2 ?? 0, S(n2 || i2 || false, e3);
|
|
20
18
|
}
|
|
21
19
|
} catch (e3) {
|
|
20
|
+
console.error(e3);
|
|
22
21
|
}
|
|
23
|
-
},
|
|
22
|
+
}, S = (e3, t2) => {
|
|
24
23
|
var _a;
|
|
25
|
-
|
|
26
|
-
},
|
|
27
|
-
requestAnimationFrame(
|
|
24
|
+
e3 === x.value && ((_a = y.value) == null ? void 0 : _a.height) === `${t2.height}px` || (x.value = e3, w("change", e3), y.value = e3 ? { width: "100%", height: `${t2.height}px` } : {});
|
|
25
|
+
}, C = () => {
|
|
26
|
+
requestAnimationFrame(E);
|
|
28
27
|
};
|
|
29
|
-
let
|
|
30
|
-
const
|
|
31
|
-
x.value = false, clearTimeout(
|
|
32
|
-
|
|
28
|
+
let L;
|
|
29
|
+
const k = () => {
|
|
30
|
+
x.value = false, clearTimeout(L), L = window.setTimeout(() => {
|
|
31
|
+
E();
|
|
33
32
|
}, 100);
|
|
34
33
|
};
|
|
35
34
|
o(() => {
|
|
36
35
|
setTimeout(() => {
|
|
37
36
|
n(() => {
|
|
38
37
|
try {
|
|
39
|
-
|
|
38
|
+
m.enableIntervalUpdate && (I.value = setInterval(C, m.enableIntervalTime));
|
|
40
39
|
const e3 = (() => {
|
|
41
|
-
if (
|
|
40
|
+
if (m.autoDetectParentScroll && g.value) {
|
|
42
41
|
const e4 = [];
|
|
43
|
-
let t2 =
|
|
42
|
+
let t2 = g.value.parentElement;
|
|
44
43
|
for (; t2 && t2 !== document.body; ) {
|
|
45
44
|
const { overflowY: o2 } = window.getComputedStyle(t2);
|
|
46
45
|
/(auto|scroll)/.test(o2) && e4.push(t2), t2 = t2.parentElement;
|
|
47
46
|
}
|
|
48
47
|
return [...e4, window];
|
|
49
48
|
}
|
|
50
|
-
if ("string" == typeof
|
|
51
|
-
const e4 = document.querySelector(
|
|
49
|
+
if ("string" == typeof m.target) {
|
|
50
|
+
const e4 = document.querySelector(m.target);
|
|
52
51
|
return [...e4 ? [e4] : [], window];
|
|
53
52
|
}
|
|
54
53
|
return [window];
|
|
55
54
|
})();
|
|
56
|
-
b.value = e3, T.value = e3[0], b.value.forEach((e4) => e4.addEventListener("scroll",
|
|
55
|
+
console.log("检测父级滚动节点", e3), b.value = e3, T.value = e3[0], b.value.forEach((e4) => e4.addEventListener("scroll", C)), window.addEventListener("resize", k), E();
|
|
57
56
|
} catch (e3) {
|
|
57
|
+
console.error(e3);
|
|
58
58
|
}
|
|
59
59
|
});
|
|
60
60
|
}, 100);
|
|
61
61
|
}), i(() => {
|
|
62
|
-
T.value && b.value.forEach((e3) => e3.removeEventListener("scroll",
|
|
62
|
+
T.value && b.value.forEach((e3) => e3.removeEventListener("scroll", C)), window.removeEventListener("resize", k), clearTimeout(L), I.value && clearInterval(I.value);
|
|
63
63
|
}), l(() => {
|
|
64
64
|
n(() => {
|
|
65
|
-
|
|
65
|
+
C();
|
|
66
66
|
});
|
|
67
67
|
});
|
|
68
|
-
const
|
|
69
|
-
var _a
|
|
70
|
-
return x.value
|
|
68
|
+
const z = a(() => {
|
|
69
|
+
var _a;
|
|
70
|
+
return x.value ? { position: "fixed", width: `${(_a = g.value) == null ? void 0 : _a.offsetWidth}px`, zIndex: m.zIndex, [m.position]: `${m.offset + B.value}px` } : { position: "relative" };
|
|
71
71
|
});
|
|
72
|
-
return (e3, t2) => {
|
|
73
|
-
const o2 = r("resize");
|
|
74
|
-
return u(), s("div", { ref_key: "affixMainRef", ref: g, class: "yx-affix", style: f({ height: x.value ? y.value.height : void 0 }) }, [c((u(), s("div", { ref_key: "affixRef", ref: w, style: f(F.value), class: d([{ "is-fixed": x.value, "is-top": "top" === h.position, "is-bottom": "bottom" === h.position }, "yx-affix-content"]) }, [v(e3.$slots, "default", {}, void 0, true)], 6)), [[o2, E]])], 4);
|
|
75
|
-
};
|
|
72
|
+
return (e3, t2) => (s(), r("div", { ref_key: "affixMainRef", ref: h, class: "yx-affix" }, [x.value ? (s(), r("div", { key: 0, style: c(y.value), class: "yx-affix-placeholder" }, null, 4)) : u("", true), f("div", { ref_key: "affixRef", ref: g, style: c(z.value), class: d({ "yx-affix-content": true, "is-fixed": x.value, "is-top": "top" === m.position, "is-bottom": "bottom" === m.position }) }, [p(e3.$slots, "default", {}, void 0, true)], 6)], 512));
|
|
76
73
|
} });
|
|
77
74
|
export {
|
|
78
|
-
|
|
75
|
+
v as default
|
|
79
76
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import t from "./tabs-runtime.vue2.js";
|
|
2
2
|
/* empty css */
|
|
3
3
|
import e from "../../../../../../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
-
const r = e(t, [["__scopeId", "data-v-
|
|
4
|
+
const r = e(t, [["__scopeId", "data-v-3a587c94"]]);
|
|
5
5
|
export {
|
|
6
6
|
r as default
|
|
7
7
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import o from "./tools-runtime.vue2.js";
|
|
2
2
|
/* empty css */
|
|
3
3
|
import t from "../../../../../../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
-
const e = t(o, [["__scopeId", "data-v-
|
|
4
|
+
const e = t(o, [["__scopeId", "data-v-445a411e"]]);
|
|
5
5
|
export {
|
|
6
6
|
e as default
|
|
7
7
|
};
|
|
@@ -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,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 s, createVNode 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 C, headerClick as S, 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 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: G }) {
|
|
12
|
+
const W = e2, q = W.pageContext;
|
|
13
|
+
let Q = W.configure;
|
|
14
14
|
const J = t({});
|
|
15
|
-
|
|
16
|
-
const K = J.value.style, X = J.value.class, Y =
|
|
17
|
-
let te = E(
|
|
15
|
+
q.isTest ? J.value = W.configure.runtime ? W.configure.runtime : {} : q.tableRuntimes && q.tableRuntimes[Q.uuid] && (Q = JSON.parse(q.tableRuntimes[Q.uuid].configure), J.value = Q.runtime ? Q.runtime : {});
|
|
16
|
+
const K = J.value.style, X = J.value.class, Y = q.systemCode, Z = q.backendUrl, ee = Q.props && Q.props.dataOrigin && Q.props.dataOrigin.tableName;
|
|
17
|
+
let te = E(q.backendUrl, q.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 = q.systemCode, t2 = q.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: q.beanName, functionCode: t2 + ".listData", tableName: ee, systemCode: e3, pageCode: q.code, pageVersion: q.version }, initSearchForm: n2, lineEditOptions: { aftersaveIsCreateRow: false, autoSave: false, enter: he, esc: ye }, indexContinuous: !(!Q.props || !Q.props.otherSettings) && Q.props.otherSettings.serialNumberContinuous, initSearch: !Q.props || false !== Q.props.dataOrigin.initializationQuery, resizeHeight: Re, pageCode: q.code, pageVersion: q.version, additionalParamMap: I(q), 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(q), tableClass: X, tableStyle: K, pageContext: q, configureObj: Q, backendUrl: te, cellStyleRender: ze, rowStyleRender: Ae, titleStyleRender: Ge };
|
|
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(q, 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
|
+
W.pageContext.toolsInputComponents && W.pageContext.toolsInputComponents.length > 0 && W.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) qe();
|
|
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 = We();
|
|
51
|
+
e4 = e4.filter((e5) => R(t3, e5)), 0 === e4.length ? (Te(t3), qe()) : oe.forEach((t4) => {
|
|
52
|
+
o(() => W.pageContext.entity.page[t4], () => {
|
|
53
|
+
const t5 = We();
|
|
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,112 +70,114 @@ 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, q, Q);
|
|
74
|
+
const n3 = q.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 = O(e3, Y, Z, q.isTest));
|
|
81
81
|
return e3;
|
|
82
|
-
}(),
|
|
82
|
+
}(), se = k(q.code, q.version, Q.uuid), ue = q.code + "_" + se, ce = t([]), pe = q.entity.page, de = t({ data: [] }), fe = q.superGridItems, ge = fe ? fe[Q.uuid] : null;
|
|
83
|
+
console.log("superGridSetting1111===", fe, ge);
|
|
84
|
+
const me = t(false), ve = G;
|
|
83
85
|
function he({ rowIndex: e3, column: t2, row: n2, orgRow: o2 }) {
|
|
84
86
|
be(null, null, n2, t2, e3);
|
|
85
87
|
}
|
|
86
88
|
function be(e3, t2, n2, o2, i2) {
|
|
87
89
|
const a2 = ne.value.lineEditSave, l2 = Q;
|
|
88
|
-
a2.props.base.tableUuid = l2.uuid, ie.value.lineEditOptions.beforeSave =
|
|
89
|
-
true === l3.canExecute && (ie.value.lineEditOptions.saveRow =
|
|
90
|
-
d(
|
|
90
|
+
a2.props.base.tableUuid = l2.uuid, ie.value.lineEditOptions.beforeSave = Ce, q.editData = n2, p({ pageContext: q, configureObj: a2 }).then((l3) => {
|
|
91
|
+
true === l3.canExecute && (ie.value.lineEditOptions.saveRow = Se, le.value.saveRow(i2, se).then(() => {
|
|
92
|
+
d(q, a2, { originalValue: e3, formatValue: t2, row: n2, column: o2, rowIndex: i2 });
|
|
91
93
|
}));
|
|
92
94
|
}).finally(() => {
|
|
93
|
-
|
|
95
|
+
q.editData = null;
|
|
94
96
|
});
|
|
95
97
|
}
|
|
96
98
|
function we(e3) {
|
|
97
99
|
if (!e3) return;
|
|
98
100
|
let t2;
|
|
99
|
-
const n2 =
|
|
101
|
+
const n2 = y(e3.events, "click");
|
|
100
102
|
if (n2) {
|
|
101
|
-
if (ne.value[n2] = e3, "lineEditSave" === n2 ? t2 = be : "restoreEdit" === n2 ? t2 = xe : "lineEditUpdate" === n2 ? t2 = De : "lineEditDelete" === n2 && (t2 =
|
|
102
|
-
t2 = x(
|
|
103
|
+
if (ne.value[n2] = e3, "lineEditSave" === n2 ? t2 = be : "restoreEdit" === n2 ? t2 = xe : "lineEditUpdate" === n2 ? t2 = De : "lineEditDelete" === n2 && (t2 = ke), !t2) {
|
|
104
|
+
t2 = x(q, e3.events, "click");
|
|
103
105
|
}
|
|
104
106
|
} else ne.value[e3.uuid] = e3, t2 = Ve;
|
|
105
107
|
return t2;
|
|
106
108
|
}
|
|
107
|
-
function
|
|
109
|
+
function Ce({ row: e3, columns: t2, additionalParamMap: n2 }) {
|
|
108
110
|
const o2 = ne.value.lineEditSave, i2 = Q;
|
|
109
111
|
o2.props.base.tableUuid = i2.uuid;
|
|
110
|
-
return f(
|
|
112
|
+
return f(q, o2, { row: e3, columns: t2 });
|
|
111
113
|
}
|
|
112
|
-
function
|
|
114
|
+
function Se({ row: e3, columns: t2, dataTypeMap: n2, dynamicColumnInfo: o2, additionalParamMap: i2, mainDefaultValueColumns: a2 }) {
|
|
113
115
|
const l2 = ne.value.lineEditSave, r2 = Q;
|
|
114
116
|
return l2.props.base.tableUuid = r2.uuid, new Promise((t3, n3) => {
|
|
115
117
|
const i3 = { tableName: r2.props.dataOrigin.tableName };
|
|
116
|
-
V(
|
|
118
|
+
V(q, l2, "/dsc/commons", false, a2, o2, e3, i3).then((e4) => {
|
|
117
119
|
t3(e4 ? e4.entity : {});
|
|
118
120
|
}).catch((e4) => {
|
|
119
121
|
n3(e4);
|
|
120
122
|
});
|
|
121
123
|
});
|
|
122
124
|
}
|
|
123
|
-
function
|
|
125
|
+
function ye({ rowIndex: e3, column: t2, row: n2, orgRow: o2 }) {
|
|
124
126
|
xe(null, null, n2, t2, e3);
|
|
125
127
|
}
|
|
126
128
|
function xe(e3, t2, n2, o2, i2) {
|
|
127
129
|
const a2 = ne.value.restoreEdit, l2 = Q;
|
|
128
130
|
a2.props.base.tableUuid = l2.uuid;
|
|
129
|
-
const r2 = f(
|
|
131
|
+
const r2 = f(q, a2, { originalValue: e3, formatValue: t2, row: n2, column: o2, rowIndex: i2 });
|
|
130
132
|
if (!r2) return;
|
|
131
133
|
N(r2) ? r2.then((e4) => {
|
|
132
|
-
e4 && le.value.restoreRow(i2,
|
|
133
|
-
}) : le.value.restoreRow(i2,
|
|
134
|
-
d(
|
|
134
|
+
e4 && le.value.restoreRow(i2, se);
|
|
135
|
+
}) : le.value.restoreRow(i2, se);
|
|
136
|
+
d(q, Q, { originalValue: e3, formatValue: t2, row: n2, column: o2, rowIndex: i2 });
|
|
135
137
|
}
|
|
136
138
|
function De(e3, t2, n2, o2, i2) {
|
|
137
139
|
const a2 = ne.value.lineEditUpdate, l2 = Q;
|
|
138
140
|
a2.props.base.tableUuid = l2.uuid;
|
|
139
|
-
const r2 = f(
|
|
141
|
+
const r2 = f(q, a2, { originalValue: e3, formatValue: t2, row: n2, column: o2, rowIndex: i2 });
|
|
140
142
|
r2 && (N(r2) ? r2.then((l3) => {
|
|
141
143
|
l3 && Ee(e3, t2, n2, o2, i2, a2);
|
|
142
144
|
}) : Ee(e3, t2, n2, o2, i2, a2));
|
|
143
145
|
}
|
|
144
146
|
function Ee(e3, t2, n2, o2, i2, a2) {
|
|
145
|
-
|
|
147
|
+
q.editData = n2, p({ pageContext: q, configureObj: a2 }).then((a3) => {
|
|
146
148
|
if (true === a3.canExecute) {
|
|
147
|
-
le.value.editRow(i2,
|
|
148
|
-
d(
|
|
149
|
+
le.value.editRow(i2, se);
|
|
150
|
+
d(q, Q, { originalValue: e3, formatValue: t2, row: n2, column: o2, rowIndex: i2 });
|
|
149
151
|
}
|
|
150
152
|
}).finally(() => {
|
|
151
|
-
|
|
153
|
+
q.editData = null;
|
|
152
154
|
});
|
|
153
155
|
}
|
|
154
|
-
function
|
|
156
|
+
function ke(e3, t2, n2, o2, i2) {
|
|
155
157
|
const a2 = ne.value.lineEditDelete, l2 = Q;
|
|
156
158
|
a2.props.base.tableUuid = l2.uuid;
|
|
157
|
-
const r2 = f(
|
|
159
|
+
const r2 = f(q, a2, { originalValue: e3, formatValue: t2, row: n2, column: o2, rowIndex: i2 });
|
|
158
160
|
r2 && (N(r2) ? r2.then((l3) => {
|
|
159
|
-
l3 &&
|
|
160
|
-
}) :
|
|
161
|
+
l3 && Oe(e3, t2, n2, o2, i2, a2);
|
|
162
|
+
}) : Oe(e3, t2, n2, o2, i2, a2));
|
|
161
163
|
}
|
|
162
|
-
function
|
|
163
|
-
if (n2.id || n2.ID)
|
|
164
|
+
function Oe(e3, t2, n2, o2, i2, a2) {
|
|
165
|
+
if (n2.id || n2.ID) q.editData = n2, p({ pageContext: q, configureObj: a2 }).then((e4) => {
|
|
164
166
|
if (true === e4.canExecute) {
|
|
165
167
|
const e5 = [];
|
|
166
|
-
n2.id ? e5.push(n2.id) : e5.push(n2.ID), j.delete({ pageContext:
|
|
168
|
+
n2.id ? e5.push(n2.id) : e5.push(n2.ID), j.delete({ pageContext: q, configureObj: a2, ids: e5 });
|
|
167
169
|
}
|
|
168
170
|
}).finally(() => {
|
|
169
|
-
|
|
171
|
+
q.editData = null;
|
|
170
172
|
});
|
|
171
173
|
else {
|
|
172
174
|
xe(e3, t2, n2, o2, i2);
|
|
173
|
-
d(
|
|
175
|
+
d(q, Q, { originalValue: e3, formatValue: t2, row: n2, column: o2, rowIndex: i2 });
|
|
174
176
|
}
|
|
175
177
|
}
|
|
176
178
|
function Te(e3) {
|
|
177
|
-
if (!
|
|
178
|
-
const t2 =
|
|
179
|
+
if (!q.dataTypeMaps) return void console.log("!pageContext['dataTypeMaps'] || !pageContext['dataTypeMaps'][tableName]");
|
|
180
|
+
const t2 = q.dataTypeMaps;
|
|
179
181
|
let n2 = [];
|
|
180
182
|
if (e3) for (var o2 in e3) {
|
|
181
183
|
const a2 = e3[o2];
|
|
@@ -193,7 +195,7 @@ const A = ["id"], z = e({ __name: "main-table-runtime", props: { pageContext: {}
|
|
|
193
195
|
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);
|
|
194
196
|
}
|
|
195
197
|
}
|
|
196
|
-
le.value.toolbarRefresh(null, null, n2);
|
|
198
|
+
console.log("toolbarRefresh"), le.value.toolbarRefresh(null, null, n2);
|
|
197
199
|
}
|
|
198
200
|
function Re(e3) {
|
|
199
201
|
const t2 = Ie();
|
|
@@ -204,7 +206,8 @@ const A = ["id"], z = e({ __name: "main-table-runtime", props: { pageContext: {}
|
|
|
204
206
|
}
|
|
205
207
|
function Ie() {
|
|
206
208
|
if (!le.value) return;
|
|
207
|
-
|
|
209
|
+
console.log("objectRender---configure.name=", W.configure.name, "props.configure=", W.configure, "runtimeStyle.value=", K);
|
|
210
|
+
const e3 = M(W.pageContext, W.configure);
|
|
208
211
|
if (e3) {
|
|
209
212
|
if (e3.isCalcHeight) {
|
|
210
213
|
let e4 = le.value.$el;
|
|
@@ -216,37 +219,37 @@ const A = ["id"], z = e({ __name: "main-table-runtime", props: { pageContext: {}
|
|
|
216
219
|
}
|
|
217
220
|
}
|
|
218
221
|
function Ve(e3, t2, n2, o2, i2, a2) {
|
|
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],
|
|
220
|
-
r2.props.base.tableUuid =
|
|
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], s2 = Q;
|
|
223
|
+
r2.props.base.tableUuid = s2.uuid, D(null, q, r2, "click", l2);
|
|
221
224
|
}
|
|
222
225
|
function je(e3) {
|
|
223
226
|
"close_open_win" === e3.data && le.value && le.value.refresh();
|
|
224
227
|
}
|
|
225
228
|
function Ne(e3, t2) {
|
|
226
229
|
ce.value = e3;
|
|
227
|
-
g(
|
|
230
|
+
g(q, Q, { selection: e3, row: t2 });
|
|
228
231
|
}
|
|
229
232
|
function Pe(e3) {
|
|
230
233
|
ce.value = e3;
|
|
231
|
-
m(
|
|
234
|
+
m(q, Q, { selection: e3 });
|
|
232
235
|
}
|
|
233
236
|
function Be(e3) {
|
|
234
|
-
v(
|
|
237
|
+
v(q, Q, { newSelection: e3 });
|
|
235
238
|
}
|
|
236
239
|
function Fe(e3, t2, n2, o2) {
|
|
237
|
-
h(
|
|
240
|
+
h(q, Q, { row: e3, column: t2, cell: n2, event: o2 });
|
|
238
241
|
}
|
|
239
242
|
function He(e3, t2, n2, o2) {
|
|
240
|
-
b(
|
|
243
|
+
b(q, Q, { row: e3, column: t2, cell: n2, event: o2 });
|
|
241
244
|
}
|
|
242
245
|
function Ue(e3, t2, n2) {
|
|
243
|
-
w(
|
|
246
|
+
w(q, Q, { row: e3, column: t2, event: n2 });
|
|
244
247
|
}
|
|
245
248
|
function Me(e3, t2, n2) {
|
|
246
|
-
|
|
249
|
+
C(q, Q, { row: e3, column: t2, event: n2 });
|
|
247
250
|
}
|
|
248
251
|
function $e(e3, t2) {
|
|
249
|
-
|
|
252
|
+
S(q, Q, { column: e3, event: t2 });
|
|
250
253
|
}
|
|
251
254
|
function _e() {
|
|
252
255
|
ce.value = [];
|
|
@@ -255,57 +258,57 @@ const A = ["id"], z = e({ __name: "main-table-runtime", props: { pageContext: {}
|
|
|
255
258
|
me.value = true;
|
|
256
259
|
}
|
|
257
260
|
function Ae(e3) {
|
|
258
|
-
return $(e3, [],
|
|
261
|
+
return $(e3, [], W);
|
|
259
262
|
}
|
|
260
263
|
function ze(e3) {
|
|
261
|
-
return _(e3, e3.cellStyle,
|
|
264
|
+
return _(e3, e3.cellStyle, W);
|
|
262
265
|
}
|
|
263
|
-
function
|
|
264
|
-
const t2 = e3.titleStyle, n2 =
|
|
265
|
-
return L(e3, { cellTitleStyle: t2, titleStyle: n2 },
|
|
266
|
+
function Ge(e3) {
|
|
267
|
+
const t2 = e3.titleStyle, n2 = W.configure.style.titleStyle;
|
|
268
|
+
return L(e3, { cellTitleStyle: t2, titleStyle: n2 }, W);
|
|
266
269
|
}
|
|
267
|
-
function
|
|
270
|
+
function We() {
|
|
268
271
|
const e3 = {};
|
|
269
272
|
return oe.forEach((t2) => {
|
|
270
|
-
e3[t2] =
|
|
273
|
+
e3[t2] = W.pageContext.entity.page[t2];
|
|
271
274
|
}), e3;
|
|
272
275
|
}
|
|
273
|
-
function
|
|
276
|
+
function qe() {
|
|
274
277
|
oe.forEach((e3) => {
|
|
275
|
-
o(() =>
|
|
276
|
-
Te(
|
|
278
|
+
o(() => W.pageContext.entity.page[e3], () => {
|
|
279
|
+
Te(We());
|
|
277
280
|
});
|
|
278
281
|
});
|
|
279
282
|
}
|
|
280
283
|
n(() => {
|
|
281
284
|
const e3 = Qe();
|
|
282
|
-
le.value && e3 && e3.distanceToBottom && (le.value.tableHeight = e3.distanceToBottom - 110),
|
|
285
|
+
le.value && e3 && e3.distanceToBottom && (le.value.tableHeight = e3.distanceToBottom - 110), W.pageContext.pageRuntimeStyle && console.log("pageContext.pageHeight:", W.pageContext.pageRuntimeStyle.height), window.addEventListener("message", je), F.$on(ue + "-close-component-page-dialog", function({ jumpInfo: e4, popEntity: t2, popPageCode: n2 }) {
|
|
283
286
|
le.value.closePageDialog({ entity: t2, pageCode: n2, jumpInfo: e4 });
|
|
284
|
-
}), F.$on(
|
|
285
|
-
F.$emit(
|
|
286
|
-
}), F.$on(
|
|
287
|
-
le.value.pickFileDone(e4);
|
|
288
|
-
}), F.$on(
|
|
289
|
-
le.value.scanDone(e4);
|
|
287
|
+
}), F.$on(ue + "_close-dialog-get-entity", () => {
|
|
288
|
+
F.$emit(ue + "_close-super-dialog");
|
|
289
|
+
}), F.$on(se + "-pickFileDone", (e4) => {
|
|
290
|
+
console.log("superPage5555---listCode---pickFileDone--listCode=", se, "data=", e4), le.value.pickFileDone(e4);
|
|
291
|
+
}), F.$on(se + "-scanDone", (e4) => {
|
|
292
|
+
console.log("superPage5555---listCode---scanDone--listCode=", se, "data=", e4), le.value.scanDone(e4);
|
|
290
293
|
}), ie.value.formSetMaxHeight = Ie(), ie.value && ie.value.configureObj.props.base && ie.value.configureObj.props.base.isSafeDelete && ve("setSafeDeleteTableCode", ie.value.extraParam.tableName);
|
|
291
|
-
}), o(() =>
|
|
294
|
+
}), o(() => W.pageContext.searchFormData, (e3) => {
|
|
292
295
|
de.value.data = e3;
|
|
293
|
-
}), o(() =>
|
|
294
|
-
Te(
|
|
296
|
+
}), o(() => W.pageContext.entity.data, (e3) => {
|
|
297
|
+
Te(W.pageContext.entity.data);
|
|
295
298
|
}), i(() => {
|
|
296
|
-
window.removeEventListener("message", je), F.$off(
|
|
299
|
+
window.removeEventListener("message", je), F.$off(ue + "-close-component-page-dialog"), F.$off(ue + "_close-dialog-get-entity"), F.$off(se + "-pickFileDone"), F.$off(se + "-scanDone");
|
|
297
300
|
});
|
|
298
301
|
const Qe = () => {
|
|
299
302
|
if (!ae.value) return null;
|
|
300
303
|
let e3 = ae.value.closest(".app-container");
|
|
301
|
-
if (!e3) return null;
|
|
304
|
+
if (!e3) return console.warn("未找到.app-container元素"), null;
|
|
302
305
|
const t2 = ae.value.getBoundingClientRect(), n2 = e3.getBoundingClientRect(), o2 = window.scrollY;
|
|
303
306
|
return { distanceToTop: t2.top + o2 - n2.top, distanceToBottom: n2.bottom - t2.top };
|
|
304
307
|
};
|
|
305
308
|
return z2({ refresh: function(e3, t2, n2, o2) {
|
|
306
309
|
return le.value.refresh(e3, t2, n2, o2);
|
|
307
310
|
}, createRow: function() {
|
|
308
|
-
return le.value.createRow(
|
|
311
|
+
return le.value.createRow(se, {}, { getDefaultValueFunc: H });
|
|
309
312
|
}, clearSelections: _e, getSelections: function() {
|
|
310
313
|
return ce.value;
|
|
311
314
|
}, getSelectionIds: function() {
|
|
@@ -322,15 +325,14 @@ const A = ["id"], z = e({ __name: "main-table-runtime", props: { pageContext: {}
|
|
|
322
325
|
}, showMobileSearch: function() {
|
|
323
326
|
me.value && le.value.showMobileSearch();
|
|
324
327
|
}, getTableSelectOptions: function() {
|
|
325
|
-
if (le.value) return le.value.getTableSelectOptions(
|
|
328
|
+
if (le.value) return le.value.getTableSelectOptions(se);
|
|
326
329
|
}, dynamicControlTableEdit: function(e3, t2, n2) {
|
|
327
330
|
le.value && le.value.dynamicControlTableEdit(e3, t2, n2);
|
|
328
331
|
}, doLayout: function(e3) {
|
|
329
332
|
le.value && le.value.doLayout(e3);
|
|
330
|
-
}, changeOperationAddState: function(e3) {
|
|
331
333
|
} }), (e3, t2) => {
|
|
332
334
|
const n2 = a("super-grid");
|
|
333
|
-
return r(), l("div", { ref_key: "tableDivRef", ref: ae, id:
|
|
335
|
+
return r(), l("div", { ref_key: "tableDivRef", ref: ae, id: s(se) + "_tableDiv" }, [u(n2, { ref_key: "gridRef", ref: le, url: s(re), options: ie.value, code: s(se), settings: s(ge), "search-form-info": de.value, "list-toolbar-form-data": s(pe), onSelect: Ne, onSelectAll: Pe, onSelectionChange: Be, onCellClick: Fe, onCellDblclick: He, onRowClick: Ue, onRowDblclick: Me, onHeaderClick: $e, onRefresh: _e, onNewOpenGridDialog: s(B), onCanShowMobileSearch: Le }, null, 8, ["url", "options", "code", "settings", "search-form-info", "list-toolbar-form-data", "onNewOpenGridDialog"])], 8, A);
|
|
334
336
|
};
|
|
335
337
|
} });
|
|
336
338
|
export {
|