super-page-runtime 2.3.36 → 2.3.37-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 +131 -131
- package/dist/es/components/runtime/utils/events/event-util.js +114 -114
- package/dist/es/components/runtime/utils/events/print-label.js +33 -34
- package/dist/es/components/runtime/utils/events/standard-event.js +38 -38
- package/dist/es/components/runtime/utils/events/validator-util.js +126 -88
- package/dist/es/components/runtime/utils/page-init-util.js +26 -28
- package/dist/es/components/runtime/utils/table-utils.js +1 -1
- package/dist/es/components/runtime/views/assemblys/button/button/button-runtime.vue2.js +3 -3
- package/dist/es/components/runtime/views/assemblys/button/button-group/buttongroup-runtime.vue2.js +3 -3
- package/dist/es/components/runtime/views/assemblys/button/dropdown/dropdown-runtime.vue2.js +3 -3
- package/dist/es/components/runtime/views/assemblys/button/export-pdf/exportpdf-runtime.vue2.js +1 -1
- package/dist/es/components/runtime/views/assemblys/button/print-label/printlabel-runtime.vue2.js +3 -3
- package/dist/es/components/runtime/views/assemblys/chart/column-line/column-line-runtime.vue2.js +1 -1
- 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 +6 -8
- 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 +1 -1
- package/dist/es/components/runtime/views/assemblys/chart/pie/pie-runtime.vue2.js +1 -1
- package/dist/es/components/runtime/views/assemblys/chart/radar/radar-runtime.vue2.js +1 -1
- package/dist/es/components/runtime/views/assemblys/chart/scatter/scatter-runtime.vue2.js +1 -1
- package/dist/es/components/runtime/views/assemblys/chart/table/chart-table-util.js +95 -98
- package/dist/es/components/runtime/views/assemblys/chart/table/table-runtime.vue2.js +2 -3
- package/dist/es/components/runtime/views/assemblys/common/event-call-component.vue.js +13 -13
- package/dist/es/components/runtime/views/assemblys/common/export-form-report-dialog.vue.js +9 -11
- package/dist/es/components/runtime/views/assemblys/common/save-chart-condition-dialog.vue.js +1 -1
- package/dist/es/components/runtime/views/assemblys/container/card/card-runtime.vue2.js +3 -3
- package/dist/es/components/runtime/views/assemblys/container/collapse/collapse-runtime.vue2.js +3 -3
- package/dist/es/components/runtime/views/assemblys/container/container/container-runtime.vue2.js +3 -3
- package/dist/es/components/runtime/views/assemblys/container/fixed/YxAffix.vue2.js +0 -2
- package/dist/es/components/runtime/views/assemblys/container/flex/flex-runtime.vue2.js +3 -3
- package/dist/es/components/runtime/views/assemblys/container/form/form-runtime.vue2.js +17 -12
- package/dist/es/components/runtime/views/assemblys/container/iframe/iframe-runtime.vue2.js +5 -5
- package/dist/es/components/runtime/views/assemblys/container/tabs/tabs-runtime.vue2.js +3 -3
- package/dist/es/components/runtime/views/assemblys/data/bar-code/barcode-runtime.vue2.js +9 -11
- package/dist/es/components/runtime/views/assemblys/data/table/main-table-runtime.vue.js +1 -1
- package/dist/es/components/runtime/views/assemblys/data/table/sub-table-runtime.vue.js +69 -66
- package/dist/es/components/runtime/views/assemblys/data/table/table-runtime.vue2.js +36 -33
- package/dist/es/components/runtime/views/assemblys/data/tree/tree-runtime.vue2.js +16 -16
- package/dist/es/components/runtime/views/assemblys/form/checkbox/checkbox-runtime.vue2.js +37 -37
- package/dist/es/components/runtime/views/assemblys/form/common/title-suffix-element.vue.js +3 -3
- package/dist/es/components/runtime/views/assemblys/form/custom/custom-runtime.vue2.js +43 -43
- package/dist/es/components/runtime/views/assemblys/form/date-picker/datepicker-runtime.vue2.js +62 -62
- package/dist/es/components/runtime/views/assemblys/form/dept-tree/depttree-runtime.vue2.js +38 -38
- package/dist/es/components/runtime/views/assemblys/form/divider/divider-runtime.vue2.js +3 -3
- package/dist/es/components/runtime/views/assemblys/form/file-upload/fileupload-runtime.vue2.js +59 -60
- package/dist/es/components/runtime/views/assemblys/form/input-number/input-number-runtime.vue2.js +21 -21
- package/dist/es/components/runtime/views/assemblys/form/input-text/inputtext-runtime.vue2.js +52 -53
- package/dist/es/components/runtime/views/assemblys/form/label/label-runtime.vue.js +1 -1
- package/dist/es/components/runtime/views/assemblys/form/label/label-runtime.vue2.js +26 -28
- package/dist/es/components/runtime/views/assemblys/form/link/link-runtime.vue2.js +27 -29
- package/dist/es/components/runtime/views/assemblys/form/radio/radio-runtime.vue2.js +50 -50
- package/dist/es/components/runtime/views/assemblys/form/rich-text/richtext-runtime.vue.js +1 -1
- package/dist/es/components/runtime/views/assemblys/form/rich-text/richtext-runtime.vue2.js +106 -106
- package/dist/es/components/runtime/views/assemblys/form/select/select-runtime.vue.js +1 -1
- package/dist/es/components/runtime/views/assemblys/form/select/select-runtime.vue2.js +89 -90
- package/dist/es/components/runtime/views/assemblys/form/separatelabel/separatelabel-runtime.vue2.js +1 -1
- package/dist/es/components/runtime/views/assemblys/form/switch/switch-runtime.vue2.js +4 -4
- package/dist/es/components/runtime/views/assemblys/form/tag/tag-runtime.vue2.js +11 -11
- package/dist/es/components/runtime/views/assemblys/form/textarea/textarea-runtime.vue.js +1 -1
- package/dist/es/components/runtime/views/assemblys/form/textarea/textarea-runtime.vue2.js +21 -21
- package/dist/es/components/runtime/views/assemblys/home-chart-render.vue.js +3 -3
- package/dist/es/components/runtime/views/assemblys/object-render.vue.js +96 -94
- package/dist/es/components/runtime/views/assemblys/page-bottom.vue.js +1 -1
- package/dist/es/components/runtime/views/assemblys/workflow/component/workflow-opinion-box.vue.js +2 -2
- package/dist/es/components/runtime/views/assemblys/workflow/component/workflow-opinion-box.vue2.js +30 -18
- package/dist/es/components/runtime/views/assemblys/workflow/extract-workflow/extract-workflow-runtime-dialog.vue2.js +1 -1
- package/dist/es/components/runtime/views/assemblys/workflow/extract-workflow/extract-workflow-runtime.vue2.js +1 -1
- package/dist/es/components/runtime/views/assemblys/workflow/workflow-button/workflowbutton-runtime.vue.js +1 -1
- package/dist/es/components/runtime/views/assemblys/workflow/workflow-button/workflowbutton-runtime.vue2.js +26 -18
- package/dist/es/components/runtime/views/home-chart.vue.js +7 -7
- package/dist/es/components/runtime/views/super-page-dialog.vue.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 +27 -22
- package/dist/es/i18n/langs/cn.js +1 -1
- package/dist/es/i18n/langs/en.js +1 -1
- package/dist/es/style.css +166 -158
- package/package.json +2 -2
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { defineComponent as e, ref as t, onMounted as n, nextTick as o, createElementBlock as
|
|
2
|
-
import { handleAfterInitEvent as
|
|
1
|
+
import { defineComponent as e, ref as t, onMounted as n, nextTick as o, createElementBlock as i, openBlock as r, normalizeStyle as s, normalizeClass as a, unref as c } from "vue";
|
|
2
|
+
import { handleAfterInitEvent as l } from "../../../../utils/events/event-util.js";
|
|
3
3
|
import { getSystemFrontendUrl as u } from "agilebuilder-ui/src/utils/common-util.js";
|
|
4
4
|
const f = ["src"], g = e({ __name: "iframe-runtime", props: { pageContext: {}, configure: {}, indexObj: {}, selectWidget: {} }, setup(e2, { expose: g2 }) {
|
|
5
5
|
const p = e2, m = t(null), d = p.configure.runtime ? p.configure.runtime : {}, y = d.style, w = d.class, h = t();
|
|
@@ -26,7 +26,7 @@ const f = ["src"], g = e({ __name: "iframe-runtime", props: { pageContext: {}, c
|
|
|
26
26
|
t2(n3);
|
|
27
27
|
} else n2(new Error("System not found"));
|
|
28
28
|
}).catch((e4) => {
|
|
29
|
-
|
|
29
|
+
n2(e4);
|
|
30
30
|
});
|
|
31
31
|
});
|
|
32
32
|
}
|
|
@@ -35,11 +35,11 @@ const f = ["src"], g = e({ __name: "iframe-runtime", props: { pageContext: {}, c
|
|
|
35
35
|
}
|
|
36
36
|
return n(() => {
|
|
37
37
|
o(() => {
|
|
38
|
-
|
|
38
|
+
l(null, p.pageContext, p.configure, { componentRef: m.value, entity: p.pageContext.entity.data, pageData: p.pageContext.entity.page });
|
|
39
39
|
});
|
|
40
40
|
}), g2({ changeIframeSrc: b, changeIframeSrcByPage: v, getPagePathByCode: P, refreshIframe: function() {
|
|
41
41
|
m.value && m.value.contentWindow.location.reload();
|
|
42
|
-
} }), (e3, t2) => (
|
|
42
|
+
} }), (e3, t2) => (r(), i("iframe", { ref_key: "thisRef", ref: m, src: h.value, class: a(["amb-widget-container-iframe", c(w)]), style: s(c(y)) }, null, 14, f));
|
|
43
43
|
} });
|
|
44
44
|
export {
|
|
45
45
|
g as default
|
|
@@ -86,9 +86,9 @@ const A = e({ __name: "tabs-runtime", props: { pageContext: {}, configure: {} },
|
|
|
86
86
|
P.configure.items.forEach((n2) => {
|
|
87
87
|
e3.includes(n2.code) && t2.push(n2.code);
|
|
88
88
|
}), w.value = [...new Set(t2)];
|
|
89
|
-
} }), (
|
|
90
|
-
const
|
|
91
|
-
return u(), c(l(x), { ref_key: "thisRef", ref: O, modelValue: j.value, "onUpdate:modelValue":
|
|
89
|
+
} }), (e3, t2) => {
|
|
90
|
+
const n2 = i("el-button");
|
|
91
|
+
return u(), c(l(x), { ref_key: "thisRef", ref: O, modelValue: j.value, "onUpdate:modelValue": t2[0] || (t2[0] = (e4) => j.value = e4), type: e3.configure.props.cardType, "tab-position": e3.configure.props.tabPosition, style: s(l(B)), class: r([l(z), "runtime-page-container-tabs-view"]), closable: e3.configure.props.closable, "before-leave": S, onTabClick: D, onTabChange: F, onTabRemove: L, onTabAdd: q, onEdit: G }, { default: p(() => [(u(true), f(d, null, m(P.configure.items, (t3, n3) => (u(), c(l(C), { key: n3, label: t3.label, name: t3.code, lazy: !!e3.configure.props.lazy }, { label: p(() => [t3.iconType && t3.iconValue ? (u(), c(l(E), { key: 0, iconType: t3.iconType, iconValue: t3.iconValue, style: { "margin-right": "2px" } }, null, 8, ["iconType", "iconValue"])) : g("", true), b("span", { style: s(l(I)) }, y(l(V)(t3.label)), 5)]), default: p(() => [(e3.configure.props.isFullyRendered ?? 1) || t3.code === j.value ? (u(true), f(d, { key: 0 }, m(t3.items, (t4) => (u(), c(T, { key: t4.uuid, pageContext: e3.pageContext, configure: t4 }, null, 8, ["pageContext", "configure"]))), 128)) : g("", true)]), _: 2 }, 1032, ["label", "name", "lazy"]))), 128)), e3.configure.props.resetable ? (u(), c(l(C), { key: 0, disabled: "", name: "-1" }, { label: p(() => [e3.configure.props.resetable ? (u(), c(n2, { key: 0, type: "text", circle: "", onClick: v(H, ["stop"]) }, { default: p(() => [h(y(e3.configure.props.resetButtonName || "重置"), 1)]), _: 1 })) : g("", true)]), _: 1 })) : g("", true)]), _: 1 }, 8, ["modelValue", "type", "tab-position", "style", "class", "closable"]);
|
|
92
92
|
};
|
|
93
93
|
} });
|
|
94
94
|
export {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as e, computed as t, ref as
|
|
1
|
+
import { defineComponent as e, computed as t, ref as a, onMounted as r, watch as o, resolveComponent as l, createBlock as u, openBlock as n, normalizeStyle as i, normalizeClass as s, unref as p, withCtx as c, 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 : {}, _ = a(E.props ? E.props : {}), O = E.style, P = E.class, S = E.headerStyle, $ = a(""), I = a(null), Q = a(_.value.brCodeFormat ?? "CODE128"), V = a([]);
|
|
16
16
|
function F(e3) {
|
|
17
17
|
return h(N, k, e3);
|
|
18
18
|
}
|
|
@@ -22,16 +22,15 @@ 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 || ($.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);
|
|
31
30
|
}
|
|
32
31
|
}(e3);
|
|
33
32
|
}
|
|
34
|
-
return
|
|
33
|
+
return r(() => {
|
|
35
34
|
_.value.generateRule && ("fixed" === _.value.generateRuleType ? (V.value = Array.from(_.value.generateRule.matchAll(/\$\{(\w+)\}/g), (e3) => e3[1]), V.value.forEach((e3) => {
|
|
36
35
|
o(() => q.pageContext.entity.data[e3], (e4, t2) => {
|
|
37
36
|
null != e4 && function() {
|
|
@@ -39,15 +38,15 @@ const j = ["src"], D = e({ __name: "barcode-runtime", props: { pageContext: {},
|
|
|
39
38
|
V.value.forEach((t3) => {
|
|
40
39
|
q.pageContext.entity.data[t3] || (e5 = false);
|
|
41
40
|
}), e5 && J(function(e6, t3) {
|
|
42
|
-
const
|
|
43
|
-
return e6.replace(
|
|
41
|
+
const a2 = /\$\{(\w+)\}/g;
|
|
42
|
+
return e6.replace(a2, (e7, a3) => t3.hasOwnProperty(a3) ? t3[a3] : e7);
|
|
44
43
|
}(_.value.generateRule, q.pageContext.entity.data));
|
|
45
44
|
}();
|
|
46
45
|
});
|
|
47
46
|
})) : w.get(window.$vueApp.config.globalProperties.baseAPI + "/component/setting-barcode-models/by-code/" + _.value.generateRule).then((e3) => {
|
|
48
47
|
const t2 = JSON.parse(e3.barcodeModelItems);
|
|
49
48
|
t2.forEach((e4) => {
|
|
50
|
-
"-1" !== e4.propDbName && -1 !== e4.propDbName && (V.value.push(e4.propDbName), o(() => q.pageContext.entity.data[e4.propDbName], (e5,
|
|
49
|
+
"-1" !== e4.propDbName && -1 !== e4.propDbName && (V.value.push(e4.propDbName), o(() => q.pageContext.entity.data[e4.propDbName], (e5, a2) => {
|
|
51
50
|
if (null != e5) {
|
|
52
51
|
const e6 = b(t2, q.pageContext.entity.data);
|
|
53
52
|
e6 && J(e6);
|
|
@@ -55,13 +54,12 @@ const j = ["src"], D = e({ __name: "barcode-runtime", props: { pageContext: {},
|
|
|
55
54
|
}));
|
|
56
55
|
});
|
|
57
56
|
}).catch((e3) => {
|
|
58
|
-
console.error("获取条码规则失败:", e3);
|
|
59
57
|
})), A.value && L(A.value);
|
|
60
58
|
}), D2({ getValue: function() {
|
|
61
59
|
return x(N, k);
|
|
62
60
|
}, setValue: F }), (e3, t2) => {
|
|
63
|
-
const
|
|
64
|
-
return
|
|
61
|
+
const a2 = l("el-form-item");
|
|
62
|
+
return n(), u(a2, { required: !!_.value.required, class: s(p(P)), "label-width": _.value.labelWidth, style: i(p(O)) }, { label: c(() => [_.value.tittleShow ? (n(), m("div", { key: 0, style: i({ ...p(S) }) }, g(p(R)(_.value.title)), 5)) : f("", true)]), default: c(() => ["QR-code" === _.value.type ? (n(), m("img", { key: 0, src: $.value }, null, 8, j)) : (n(), m("canvas", { key: 1, ref_key: "barcode", ref: I }, null, 512))]), _: 1 }, 8, ["required", "class", "label-width", "style"]);
|
|
65
63
|
};
|
|
66
64
|
} });
|
|
67
65
|
export {
|
|
@@ -284,7 +284,7 @@ const W = ["id"], q = e({ __name: "main-table-runtime", props: { pageContext: {}
|
|
|
284
284
|
}
|
|
285
285
|
n(() => {
|
|
286
286
|
const e3 = Xe();
|
|
287
|
-
se.value && e3 && e3.distanceToBottom && (se.value.tableHeight = e3.distanceToBottom - 110), Y.pageContext.pageRuntimeStyle
|
|
287
|
+
se.value && e3 && e3.distanceToBottom && (se.value.tableHeight = e3.distanceToBottom - 110), Y.pageContext.pageRuntimeStyle, window.addEventListener("message", Fe), H.$on(de + "-close-component-page-dialog", function({ jumpInfo: e4, popEntity: t2, popPageCode: n2 }) {
|
|
288
288
|
se.value.closePageDialog({ entity: t2, pageCode: n2, jumpInfo: e4 });
|
|
289
289
|
}), H.$on(de + "_close-dialog-get-entity", () => {
|
|
290
290
|
H.$emit(de + "_close-super-dialog");
|
|
@@ -3,27 +3,27 @@ import { setTableEvents as c, gridSelectRecord as p, gridSelectAllRecords as d,
|
|
|
3
3
|
import { caculateShowCondition as w, setVariableValue as T, getVariableValue as x, getSizeConfig as C } from "../../../../utils/page-helper-util.js";
|
|
4
4
|
import { getModelFields as D, getDefaultValue as y } from "../../../../utils/page-init-util.js";
|
|
5
5
|
import P from "../../../../utils/eventBus.js";
|
|
6
|
-
import { popupToPage as
|
|
6
|
+
import { popupToPage as I, getOperationButtons as R } from "../../../../utils/table-utils.js";
|
|
7
7
|
import { getListCode as O, getBaseUrl as _ } from "../../../../utils/common-util.js";
|
|
8
8
|
import { getAdditionalParamMap as k } from "../../../../utils/events/standard-event.js";
|
|
9
9
|
import { getRowStyleUtil as A, getCellStyleUtil as M, getHeaderCellStyleUtil as E } from "../../chart/table/chart-table-util.js";
|
|
10
|
-
const
|
|
10
|
+
const N = e({ __name: "sub-table-runtime", props: { pageContext: {}, configure: {} }, emits: ["setSafeDeleteTableCode"], setup(e2, { expose: N2, emit: F }) {
|
|
11
11
|
var _a;
|
|
12
|
-
const
|
|
13
|
-
let
|
|
14
|
-
const V =
|
|
15
|
-
|
|
16
|
-
const G = O(
|
|
17
|
-
let Y = D(
|
|
12
|
+
const $ = e2, j = $.pageContext;
|
|
13
|
+
let z = $.configure;
|
|
14
|
+
const V = $.configure.runtime ? $.configure.runtime : {};
|
|
15
|
+
j.isTest ? V.value = $.configure.runtime ? $.configure.runtime : {} : j.tableRuntimes && j.tableRuntimes[z.uuid] && (z = JSON.parse(j.tableRuntimes[z.uuid].configure), V.value = z.runtime ? z.runtime : {});
|
|
16
|
+
const G = O(j.code, j.version, z.uuid), H = j.entity.data, L = z.code ? z.code : G, U = k(j), B = V && V.events ? V.events : [], q = t([]), J = j.superGridItems, K = J ? J[z.uuid] : null, Q = V.style, W = V.class, X = $.pageContext.entity ? $.pageContext.entity : {};
|
|
17
|
+
let Y = D($.configure, L), Z = _(j.backendUrl, j.isTest);
|
|
18
18
|
Z || (Z = window.$vueApp.config.globalProperties.baseURL);
|
|
19
19
|
const ee = t(false);
|
|
20
20
|
let te = t(0);
|
|
21
|
-
const ne = (_a =
|
|
21
|
+
const ne = (_a = z.props) == null ? void 0 : _a.dataOrigin.principalLinkage, oe = t({}), le = F;
|
|
22
22
|
oe.value = function() {
|
|
23
23
|
var _a2, _b, _c, _d;
|
|
24
|
-
const e3 = { title: (
|
|
25
|
-
return Q && (e3.tableStyle = Q), W && (e3.tableClass = W),
|
|
26
|
-
const t2 =
|
|
24
|
+
const e3 = { title: (z == null ? void 0 : z.title) || null, isSql: true, subTableData: null, rowKeyProp: ne, extraParam: {}, operations: {}, hiddenColumns: [], pageCode: j.code, pageVersion: j.version, pageContext: j, configureObj: z, showPageArea: false, showRowForm: false, showOverflowTooltip: (_b = (_a2 = z == null ? void 0 : z.props) == null ? void 0 : _a2.otherSettings) == null ? void 0 : _b.showOverflowTooltip, backendUrl: Z, cellStyleRender: He, rowStyleRender: Ge, titleStyleRender: Le, allEditable: (_d = (_c = z.props) == null ? void 0 : _c.base) == null ? void 0 : _d.allEditable };
|
|
25
|
+
return Q && (e3.tableStyle = Q), W && (e3.tableClass = W), z.props && z.props.base && true === z.props.base.subPaging ? e3.showPageArea = true : e3.showPageArea = false, z.props.base.showRowForm && (e3.showRowForm = z.props.base.showRowForm), function(e4) {
|
|
26
|
+
const t2 = z.props ? z.props.dataOrigin : {};
|
|
27
27
|
if (t2.treeTable) {
|
|
28
28
|
let n2;
|
|
29
29
|
const o2 = t2.rowKey;
|
|
@@ -41,19 +41,19 @@ const F = e({ __name: "sub-table-runtime", props: { pageContext: {}, configure:
|
|
|
41
41
|
ie.value && (oe.value.subTableData = null, ie.value.reloadSubTableData(G));
|
|
42
42
|
}
|
|
43
43
|
function ue(e3, t2) {
|
|
44
|
-
if (t2 || (t2 = oe.value), void 0 === e3 && (e3 = re()), t2.isPageInfo = false, t2.isFormSubTable = true, t2.canRrefreshSubtableData = e3, t2.getFormData = se, t2.getGridData = ce, t2.extraParam.subTableListViewCode = G, t2.extraParam.beanName =
|
|
44
|
+
if (t2 || (t2 = oe.value), void 0 === e3 && (e3 = re()), t2.isPageInfo = false, t2.isFormSubTable = true, t2.canRrefreshSubtableData = e3, t2.getFormData = se, t2.getGridData = ce, t2.extraParam.subTableListViewCode = G, t2.extraParam.beanName = j.beanName, t2.extraParam.subtableSetting = z.props && z.props.otherSettings ? JSON.stringify(z.props.otherSettings) : null, t2.extraParam.additionalParamMap = U, t2.extraParam.entityMap = j.entity.data, t2.extraParam.contextMap = j.entity.context, t2.extraParam.taskMap = j.entity.task, !(z.props && z.props.base && z.props.base.showOperation)) {
|
|
45
45
|
let e4 = t2.hiddenColumns;
|
|
46
46
|
e4 ? e4.push("operation") : e4 = ["operation"], t2.hiddenColumns = e4;
|
|
47
47
|
}
|
|
48
|
-
t2.showOperationButton = !(!
|
|
49
|
-
let n2 = C(
|
|
48
|
+
t2.showOperationButton = !(!z.props || !z.props.base) && z.props.base.showOperation, t2.isPdfEditor = false, t2.tableRecordMaxNum = z.props && z.props.otherSettings ? z.props.otherSettings.tableRecordMaxNum : null;
|
|
49
|
+
let n2 = C(j, z);
|
|
50
50
|
n2 && n2.fixHeight && (t2.formSetHeight = n2.fixHeight), n2 && n2.maxHeight && (t2.formSetMaxHeight = n2.maxHeight), t2.validateEitConditions = Ue;
|
|
51
51
|
}
|
|
52
52
|
function re() {
|
|
53
|
-
if (
|
|
54
|
-
if (
|
|
53
|
+
if (z.props && z.props.otherSettings) {
|
|
54
|
+
if (z.props.otherSettings.sourceQueryTableData && z.props.otherSettings.timeToInitializeSubTable && z.props.otherSettings.timeToInitializeSubTable.length > 0) {
|
|
55
55
|
let e3 = false;
|
|
56
|
-
if (-1 !==
|
|
56
|
+
if (-1 !== z.props.otherSettings.timeToInitializeSubTable.indexOf("create") && (e3 = !H.id && !H.ID), -1 !== z.props.otherSettings.timeToInitializeSubTable.indexOf("noData")) {
|
|
57
57
|
const t2 = H[L];
|
|
58
58
|
(!t2 || t2.length <= 0) && (e3 = true);
|
|
59
59
|
}
|
|
@@ -63,7 +63,7 @@ const F = e({ __name: "sub-table-runtime", props: { pageContext: {}, configure:
|
|
|
63
63
|
}
|
|
64
64
|
}
|
|
65
65
|
function se() {
|
|
66
|
-
return
|
|
66
|
+
return j.entity.data;
|
|
67
67
|
}
|
|
68
68
|
function ce() {
|
|
69
69
|
return x(X, Y);
|
|
@@ -77,7 +77,7 @@ const F = e({ __name: "sub-table-runtime", props: { pageContext: {}, configure:
|
|
|
77
77
|
function be(e3) {
|
|
78
78
|
e3 || (e3 = oe.value), function(e4) {
|
|
79
79
|
e4 || (e4 = oe.value);
|
|
80
|
-
const t3 =
|
|
80
|
+
const t3 = j.fieldPermissionMap, n2 = j.actionPermissionMap;
|
|
81
81
|
if (t3 && null != t3) {
|
|
82
82
|
let n3 = t3.get(L);
|
|
83
83
|
if (!n3) {
|
|
@@ -92,7 +92,7 @@ const F = e({ __name: "sub-table-runtime", props: { pageContext: {}, configure:
|
|
|
92
92
|
}
|
|
93
93
|
e4.operations || (e4.operations = {});
|
|
94
94
|
const o2 = function() {
|
|
95
|
-
let e5 = [], t4 = w(
|
|
95
|
+
let e5 = [], t4 = w($.pageContext, z.props.base.showOperationCondition);
|
|
96
96
|
if (t4 && Se(null, null, null, null, null, true, "canAdd")) {
|
|
97
97
|
const t5 = { props: { elementType: "el-button", icon: "Plus", type: "primary", circle: true, size: "mini", permission: "true" }, onClick: Ce, isShow: we, isStandard: true };
|
|
98
98
|
e5.push(t5);
|
|
@@ -101,18 +101,18 @@ const F = e({ __name: "sub-table-runtime", props: { pageContext: {}, configure:
|
|
|
101
101
|
const t5 = { props: { elementType: "el-button", icon: "Minus", type: "danger", circle: true, size: "mini", permission: "true" }, onClick: De, isShow: xe, isStandard: true };
|
|
102
102
|
e5.push(t5);
|
|
103
103
|
}
|
|
104
|
-
return
|
|
104
|
+
return R(j, z, e5, ve), e5;
|
|
105
105
|
}();
|
|
106
106
|
e4.operations.operation = o2, e4.subTableCanAdd = Se(null, null, null, null, null, true, "canAdd"), e4.subTableCanDelete = Se(null, null, null, null, null, true, "canDelete");
|
|
107
|
-
}(e3), c(e3, B,
|
|
108
|
-
const t2 =
|
|
107
|
+
}(e3), c(e3, B, j, z);
|
|
108
|
+
const t2 = j.customEvents;
|
|
109
109
|
t2 && (e3.eventCallBack = t2), ee.value = true, ge();
|
|
110
110
|
}
|
|
111
111
|
function ge() {
|
|
112
|
-
|
|
112
|
+
j.tableUuids || (j.tableUuids = []), j.tableUuids.indexOf(z.uuid) < 0 && j.tableUuids.push(z.uuid);
|
|
113
113
|
}
|
|
114
114
|
n(() => {
|
|
115
|
-
const e3 =
|
|
115
|
+
const e3 = z.uuid, t2 = j.subTableWatchProps;
|
|
116
116
|
P.$on("_refreshSubTable_" + e3, (n2) => {
|
|
117
117
|
const o2 = n2.propName;
|
|
118
118
|
if (t2 && t2[e3] && t2[e3].length > 0) {
|
|
@@ -123,7 +123,7 @@ const F = e({ __name: "sub-table-runtime", props: { pageContext: {}, configure:
|
|
|
123
123
|
}), P.$on("_refreshChildData_" + e3, (e4) => {
|
|
124
124
|
!function(e5) {
|
|
125
125
|
Ve(e5), de = setTimeout(() => {
|
|
126
|
-
ie.value && (ie.value.refreshChildData(G, e5,
|
|
126
|
+
ie.value && (ie.value.refreshChildData(G, e5, z.props && z.props.base && true === z.props.base.subPaging), oe.value.extraParam.entityMap = j.entity.data);
|
|
127
127
|
}, 10);
|
|
128
128
|
}(e4);
|
|
129
129
|
}), P.$on(G + "-pickFileDone", (e4) => {
|
|
@@ -133,7 +133,7 @@ const F = e({ __name: "sub-table-runtime", props: { pageContext: {}, configure:
|
|
|
133
133
|
}), oe.value && oe.value.configureObj.props.base && oe.value.configureObj.props.base.isSafeDelete && le("setSafeDeleteTableCode", oe.value.extraParam.tableName);
|
|
134
134
|
}), o(() => {
|
|
135
135
|
pe && clearTimeout(pe), de && clearTimeout(de);
|
|
136
|
-
const e3 =
|
|
136
|
+
const e3 = z.uuid;
|
|
137
137
|
P.$off("_refreshSubTable_" + e3), P.$off("_refreshSubTableHandle_" + e3), P.$off("_refreshChildData_" + e3), P.$off(G + "-pickFileDone"), P.$off(G + "-scanDone");
|
|
138
138
|
});
|
|
139
139
|
const me = t({});
|
|
@@ -142,13 +142,13 @@ const F = e({ __name: "sub-table-runtime", props: { pageContext: {}, configure:
|
|
|
142
142
|
return me.value[e3.uuid] = e3, he;
|
|
143
143
|
}
|
|
144
144
|
function he(e3, t2, n2, o2, l2, i2) {
|
|
145
|
-
const a2 = { originalValue: e3, formatValue: t2, row: n2, column: o2, rowIndex: l2, button: i2, id: n2.ID ? n2.ID : n2.id }, u2 = me.value[i2.sourceButton.uuid], r2 =
|
|
146
|
-
u2.props.base.tableUuid = r2.uuid, S(null,
|
|
145
|
+
const a2 = { originalValue: e3, formatValue: t2, row: n2, column: o2, rowIndex: l2, button: i2, id: n2.ID ? n2.ID : n2.id }, u2 = me.value[i2.sourceButton.uuid], r2 = z;
|
|
146
|
+
u2.props.base.tableUuid = r2.uuid, S(null, j, u2, "click", a2);
|
|
147
147
|
}
|
|
148
148
|
function Se(e3, t2, n2, o2, l2, i2, a2) {
|
|
149
149
|
a2 || (a2 = "canAdd");
|
|
150
|
-
if (!w(
|
|
151
|
-
const u2 =
|
|
150
|
+
if (!w($.pageContext, z.props.base.showOperationCondition)) return false;
|
|
151
|
+
const u2 = j.fieldPermissionMap, r2 = j.actionPermissionMap;
|
|
152
152
|
let s2 = true;
|
|
153
153
|
if (u2 && null !== u2) {
|
|
154
154
|
const e4 = u2.get("all_fields");
|
|
@@ -162,10 +162,10 @@ const F = e({ __name: "sub-table-runtime", props: { pageContext: {}, configure:
|
|
|
162
162
|
}
|
|
163
163
|
function we(e3, t2, n2, o2, l2, i2) {
|
|
164
164
|
let a2 = Se(0, 0, 0, 0, 0, 0, "canAdd");
|
|
165
|
-
return true === a2 && (a2 = w(
|
|
165
|
+
return true === a2 && (a2 = w($.pageContext, z.props.base.showAddBtnCondition, n2)), a2;
|
|
166
166
|
}
|
|
167
167
|
function Te(e3, t2, n2, o2, l2, i2) {
|
|
168
|
-
const a2 =
|
|
168
|
+
const a2 = j.fieldPermissionMap, u2 = j.actionPermissionMap;
|
|
169
169
|
let r2 = true;
|
|
170
170
|
if (a2 && null !== a2) {
|
|
171
171
|
const e4 = a2.get("all_fields");
|
|
@@ -186,7 +186,7 @@ const F = e({ __name: "sub-table-runtime", props: { pageContext: {}, configure:
|
|
|
186
186
|
}
|
|
187
187
|
function xe(e3, t2, n2, o2, l2, i2) {
|
|
188
188
|
let a2 = Te(0, 0, n2, 0, 0, i2);
|
|
189
|
-
return true === a2 && (a2 = w(
|
|
189
|
+
return true === a2 && (a2 = w($.pageContext, z.props.base.showDeleteBtnCondition, n2)), a2;
|
|
190
190
|
}
|
|
191
191
|
function Ce(e3, t2, n2, o2, l2) {
|
|
192
192
|
ie.value.createRow(G, {}, { getDefaultValueFunc: y }, { originalValue: e3, formatValue: t2, row: n2, column: o2, rowIndex: l2 }).then(() => {
|
|
@@ -200,70 +200,70 @@ const F = e({ __name: "sub-table-runtime", props: { pageContext: {}, configure:
|
|
|
200
200
|
T(X, Y, e3);
|
|
201
201
|
}
|
|
202
202
|
function Pe(e3) {
|
|
203
|
-
|
|
203
|
+
j.subTablePageInfo || (j.subTablePageInfo = {}), j.subTablePageInfo[L] || (j.subTablePageInfo[L] = {}), j.subTablePageInfo[L].title = z.title ? z.title : z.code, j.subTablePageInfo[L].pageSize = e3;
|
|
204
204
|
}
|
|
205
|
-
function
|
|
205
|
+
function Ie(e3) {
|
|
206
206
|
const t2 = e3.key, n2 = e3.value;
|
|
207
|
-
|
|
207
|
+
j.selectOptions || (j.selectOptions = {}), j.selectOptions[t2] = n2;
|
|
208
208
|
}
|
|
209
|
-
function
|
|
210
|
-
const t2 =
|
|
209
|
+
function Re(e3) {
|
|
210
|
+
const t2 = j.code + "_";
|
|
211
211
|
P.$emit(t2 + "prohibit-edit", e3);
|
|
212
212
|
}
|
|
213
213
|
function Oe(e3) {
|
|
214
|
-
const t2 =
|
|
214
|
+
const t2 = j.entity.data;
|
|
215
215
|
if (e3) for (const n2 in e3) t2[n2] = e3[n2];
|
|
216
216
|
}
|
|
217
217
|
function _e(e3, t2) {
|
|
218
218
|
if (void 0 !== t2) {
|
|
219
219
|
q.value = e3;
|
|
220
|
-
p(
|
|
220
|
+
p(j, z, { selection: e3, row: t2 });
|
|
221
221
|
}
|
|
222
222
|
}
|
|
223
223
|
function ke(e3) {
|
|
224
224
|
q.value = e3;
|
|
225
|
-
d(
|
|
225
|
+
d(j, z, { selection: e3 });
|
|
226
226
|
}
|
|
227
227
|
function Ae(e3) {
|
|
228
|
-
f(
|
|
228
|
+
f(j, z, { newSelection: e3 });
|
|
229
229
|
}
|
|
230
230
|
function Me(e3, t2, n2, o2) {
|
|
231
|
-
b(
|
|
231
|
+
b(j, z, { row: e3, column: t2, cell: n2, event: o2 });
|
|
232
232
|
}
|
|
233
233
|
function Ee(e3, t2, n2, o2) {
|
|
234
|
-
g(
|
|
234
|
+
g(j, z, { row: e3, column: t2, cell: n2, event: o2 });
|
|
235
235
|
}
|
|
236
|
-
function
|
|
237
|
-
m(
|
|
236
|
+
function Ne(e3, t2, n2) {
|
|
237
|
+
m(j, z, { row: e3, column: t2, event: n2 });
|
|
238
238
|
}
|
|
239
|
-
function
|
|
240
|
-
v(
|
|
239
|
+
function Fe(e3, t2, n2) {
|
|
240
|
+
v(j, z, { row: e3, column: t2, event: n2 });
|
|
241
241
|
}
|
|
242
|
-
function
|
|
243
|
-
h(
|
|
242
|
+
function $e(e3, t2) {
|
|
243
|
+
h(j, z, { column: e3, event: t2 });
|
|
244
244
|
}
|
|
245
|
-
function
|
|
246
|
-
|
|
245
|
+
function je(e3) {
|
|
246
|
+
j.entity.data = e3;
|
|
247
247
|
}
|
|
248
|
-
function
|
|
248
|
+
function ze() {
|
|
249
249
|
return x(X, Y);
|
|
250
250
|
}
|
|
251
251
|
function Ve(e3) {
|
|
252
252
|
return T(X, Y, e3);
|
|
253
253
|
}
|
|
254
254
|
function Ge(e3) {
|
|
255
|
-
return A(e3, null,
|
|
255
|
+
return A(e3, null, $);
|
|
256
256
|
}
|
|
257
257
|
function He(e3) {
|
|
258
|
-
return M(e3, e3.cellStyle,
|
|
258
|
+
return M(e3, e3.cellStyle, $);
|
|
259
259
|
}
|
|
260
260
|
function Le(e3) {
|
|
261
|
-
const t2 = e3.titleStyle, n2 =
|
|
262
|
-
return E(e3, { cellTitleStyle: t2, titleStyle: n2 },
|
|
261
|
+
const t2 = e3.titleStyle, n2 = $.configure.style.titleStyle;
|
|
262
|
+
return E(e3, { cellTitleStyle: t2, titleStyle: n2 }, $);
|
|
263
263
|
}
|
|
264
264
|
function Ue({ row: e3, editConditions: t2 }) {
|
|
265
265
|
let n2 = true;
|
|
266
|
-
return t2 && t2.length > 0 && (n2 = w(
|
|
266
|
+
return t2 && t2.length > 0 && (n2 = w($.pageContext, t2, e3)), n2;
|
|
267
267
|
}
|
|
268
268
|
function Be(e3) {
|
|
269
269
|
var _a2;
|
|
@@ -271,8 +271,8 @@ const F = e({ __name: "sub-table-runtime", props: { pageContext: {}, configure:
|
|
|
271
271
|
}
|
|
272
272
|
return function(e3) {
|
|
273
273
|
const t2 = re();
|
|
274
|
-
t2 ? fe(t2, e3) : (ue(t2, e3), e3.isPageInfo = false, e3.subTableData =
|
|
275
|
-
}(oe.value),
|
|
274
|
+
t2 ? fe(t2, e3) : (ue(t2, e3), e3.isPageInfo = false, e3.subTableData = ze(), be(e3));
|
|
275
|
+
}(oe.value), N2({ createRow: function() {
|
|
276
276
|
return ie.value.createRow(G);
|
|
277
277
|
}, getSelections: function() {
|
|
278
278
|
return q.value;
|
|
@@ -284,10 +284,10 @@ const F = e({ __name: "sub-table-runtime", props: { pageContext: {}, configure:
|
|
|
284
284
|
}, clearSelections: function() {
|
|
285
285
|
q.value = [];
|
|
286
286
|
}, getTableConfigure: function() {
|
|
287
|
-
return
|
|
287
|
+
return z;
|
|
288
288
|
}, validatorSunTableListData: function() {
|
|
289
289
|
return ie.value.validatorSunTableListData();
|
|
290
|
-
}, getValue:
|
|
290
|
+
}, getValue: ze, setValue: Ve, getTableSelectOptions: function() {
|
|
291
291
|
if (ie.value) return ie.value.getTableSelectOptions(G);
|
|
292
292
|
}, dynamicControlTableEdit: function(e3, t2, n2) {
|
|
293
293
|
ie.value && ie.value.dynamicControlTableEdit(e3, t2, n2);
|
|
@@ -317,11 +317,14 @@ const F = e({ __name: "sub-table-runtime", props: { pageContext: {}, configure:
|
|
|
317
317
|
}, getColumns: function() {
|
|
318
318
|
var _a2;
|
|
319
319
|
return (_a2 = ie.value) == null ? void 0 : _a2.getColumns();
|
|
320
|
+
}, scrollToCell: function({ fieldName: e3, rowIndex: t2, pageNum: n2 }) {
|
|
321
|
+
var _a2;
|
|
322
|
+
(_a2 = ie.value) == null ? void 0 : _a2.scrollToCell({ fieldName: e3, rowIndex: t2, pageNum: n2 });
|
|
320
323
|
} }), (e3, t2) => {
|
|
321
324
|
const n2 = l("super-grid");
|
|
322
|
-
return a(), i("div", null, [ee.value ? (a(), u(n2, { key: 0, ref_key: "gridRef", ref: ie, url: s(Z) + "/dsc/commons/sub-table", options: oe.value, code: s(G), settings: s(K), isDialog: s(
|
|
325
|
+
return a(), i("div", null, [ee.value ? (a(), u(n2, { key: 0, ref_key: "gridRef", ref: ie, url: s(Z) + "/dsc/commons/sub-table", options: oe.value, code: s(G), settings: s(K), isDialog: s(j).isDialog, onSelect: _e, onSelectAll: ke, onSelectionChange: Ae, onCellClick: Me, onCellDblclick: Ee, onRowClick: Ne, onRowDblclick: Fe, onHeaderClick: $e, onFnProhibitToEdit: Re, onChangeGridData: ye, onReloadGrid: fe, onRefresMainTableFields: Oe, onSetSelectOptions: Ie, onChangeRowsPerPage: Pe, onNewOpenGridDialog: s(I), onChangeFormData: je }, null, 8, ["url", "options", "code", "settings", "isDialog", "onNewOpenGridDialog"])) : r("", true)]);
|
|
323
326
|
};
|
|
324
327
|
} });
|
|
325
328
|
export {
|
|
326
|
-
|
|
329
|
+
N as default
|
|
327
330
|
};
|
|
@@ -1,84 +1,87 @@
|
|
|
1
|
-
import { defineComponent as e, ref as t, onUnmounted as n, createElementBlock as u, openBlock as
|
|
1
|
+
import { defineComponent as e, ref as t, onUnmounted as n, createElementBlock as u, openBlock as l, createBlock as o, createCommentVNode as a, unref as r } from "vue";
|
|
2
2
|
import i from "./sub-table-runtime.vue.js";
|
|
3
3
|
import c from "./main-table-runtime.vue.js";
|
|
4
4
|
const f = e({ __name: "table-runtime", props: { pageContext: {}, configure: {} }, setup(e2, { expose: f2 }) {
|
|
5
|
-
const s = e2, g = s.pageContext.pageType, d = t(null), v = s.configure.uuid,
|
|
6
|
-
d.value =
|
|
5
|
+
const s = e2, g = s.pageContext.pageType, d = t(null), v = s.configure.uuid, p = s.pageContext.superGridItems, S = p ? p[v] : null;
|
|
6
|
+
d.value = S ? S.configure ? JSON.parse(S.configure) : null : s.configure;
|
|
7
7
|
const T = s.configure.runtime ? s.configure.runtime : {};
|
|
8
8
|
T.style, T.class;
|
|
9
|
-
const C = t(true),
|
|
10
|
-
let
|
|
11
|
-
function
|
|
9
|
+
const C = t(true), m = t(null);
|
|
10
|
+
let b = null;
|
|
11
|
+
function x(e3) {
|
|
12
12
|
s.pageContext.entity.data._SAFE_DELETE_TABLE_NAMES ? s.pageContext.entity.data._SAFE_DELETE_TABLE_NAMES.push(e3) : s.pageContext.entity.data._SAFE_DELETE_TABLE_NAMES = [e3];
|
|
13
13
|
}
|
|
14
14
|
return n(() => {
|
|
15
|
-
|
|
15
|
+
b && clearTimeout(b);
|
|
16
16
|
}), f2({ refresh: function(e3, t2, n2, u2) {
|
|
17
|
-
if (g && "list" === g) return
|
|
17
|
+
if (g && "list" === g) return m.value.refresh(e3, t2, n2, u2);
|
|
18
18
|
}, createRow: function() {
|
|
19
|
-
return
|
|
19
|
+
return m.value.createRow();
|
|
20
20
|
}, clearSelections: function() {
|
|
21
|
-
return
|
|
21
|
+
return m.value.clearSelections();
|
|
22
22
|
}, getSelections: function() {
|
|
23
|
-
return
|
|
23
|
+
return m.value.getSelections();
|
|
24
24
|
}, getSelectionIds: function() {
|
|
25
|
-
return
|
|
25
|
+
return m.value.getSelectionIds();
|
|
26
26
|
}, getTableConfigure: function() {
|
|
27
|
-
return
|
|
27
|
+
return m.value.getTableConfigure();
|
|
28
28
|
}, isDeleteChange: function(e3) {
|
|
29
|
-
g && "list" === g &&
|
|
29
|
+
g && "list" === g && m.value.isDeleteChange(e3);
|
|
30
30
|
}, validatorSunTableListData: function() {
|
|
31
|
-
if (g && "form" === g) return
|
|
31
|
+
if (g && "form" === g) return m.value.validatorSunTableListData();
|
|
32
32
|
}, showMobileSearch: function() {
|
|
33
|
-
|
|
33
|
+
m.value.showMobileSearch();
|
|
34
34
|
}, getTableSelectOptions: function() {
|
|
35
|
-
if (
|
|
35
|
+
if (m.value) return m.value.getTableSelectOptions();
|
|
36
36
|
}, dynamicControlTableEdit: function(e3, t2, n2) {
|
|
37
|
-
|
|
37
|
+
m.value && m.value.dynamicControlTableEdit(e3, t2, n2);
|
|
38
38
|
}, getTableUuid: function() {
|
|
39
39
|
return s.configure.uuid;
|
|
40
40
|
}, doLayout: function(e3) {
|
|
41
|
-
|
|
41
|
+
m.value && m.value.doLayout(e3);
|
|
42
42
|
}, changeOperationAddState: function(e3) {
|
|
43
|
-
|
|
43
|
+
m.value && m.value.changeOperationAddState(e3);
|
|
44
44
|
}, scrollTo: function(e3, t2) {
|
|
45
45
|
var _a;
|
|
46
|
-
(_a =
|
|
46
|
+
(_a = m.value) == null ? void 0 : _a.scrollTo(e3, t2);
|
|
47
47
|
}, setScrollTop: function(e3) {
|
|
48
48
|
var _a;
|
|
49
|
-
(_a =
|
|
49
|
+
(_a = m.value) == null ? void 0 : _a.setScrollTop(e3);
|
|
50
50
|
}, setScrollLeft: function(e3) {
|
|
51
51
|
var _a;
|
|
52
|
-
(_a =
|
|
52
|
+
(_a = m.value) == null ? void 0 : _a.setScrollLeft(e3);
|
|
53
53
|
}, getSuperGridRef: function() {
|
|
54
54
|
var _a;
|
|
55
|
-
return (_a =
|
|
55
|
+
return (_a = m.value) == null ? void 0 : _a.getSuperGridRef();
|
|
56
56
|
}, getSuperGridTableRef: function() {
|
|
57
57
|
var _a;
|
|
58
|
-
return (_a =
|
|
58
|
+
return (_a = m.value) == null ? void 0 : _a.getSuperGridTableRef();
|
|
59
59
|
}, setCurrentRowIndex: function(e3) {
|
|
60
60
|
var _a;
|
|
61
|
-
(_a =
|
|
61
|
+
(_a = m.value) == null ? void 0 : _a.setCurrentRowIndex(e3);
|
|
62
62
|
}, setScrollTopByRowIndex: function(e3) {
|
|
63
63
|
var _a;
|
|
64
|
-
(_a =
|
|
64
|
+
(_a = m.value) == null ? void 0 : _a.setScrollTopByRowIndex(e3);
|
|
65
65
|
}, reloadSubTable: function() {
|
|
66
|
-
C.value = false,
|
|
66
|
+
C.value = false, b = setTimeout(() => {
|
|
67
67
|
C.value = true;
|
|
68
68
|
}, 10);
|
|
69
69
|
}, getTableData: function() {
|
|
70
70
|
var _a;
|
|
71
|
-
return (_a =
|
|
71
|
+
return (_a = m.value) == null ? void 0 : _a.getTableData();
|
|
72
72
|
}, addRequiredClass: function(e3, t2, n2) {
|
|
73
73
|
var _a;
|
|
74
|
-
(_a =
|
|
74
|
+
(_a = m.value) == null ? void 0 : _a.addRequiredClass(e3, t2, n2);
|
|
75
75
|
}, handleSearch: function(e3, t2) {
|
|
76
76
|
var _a;
|
|
77
|
-
(_a =
|
|
77
|
+
(_a = m.value) == null ? void 0 : _a.handleSearch(e3, t2);
|
|
78
78
|
}, getColumns: function() {
|
|
79
79
|
var _a;
|
|
80
|
-
return (_a =
|
|
81
|
-
}
|
|
80
|
+
return (_a = m.value) == null ? void 0 : _a.getColumns();
|
|
81
|
+
}, scrollToCell: function({ fieldName: e3, rowIndex: t2, pageNum: n2 }) {
|
|
82
|
+
var _a;
|
|
83
|
+
(_a = m.value) == null ? void 0 : _a.scrollToCell({ fieldName: e3, rowIndex: t2, pageNum: n2 });
|
|
84
|
+
} }), (e3, t2) => (l(), u("div", null, [r(g) && "form" === r(g) && C.value ? (l(), o(i, { key: 0, ref_key: "gridRef", ref: m, pageContext: e3.pageContext, configure: d.value, onSetSafeDeleteTableCode: x }, null, 8, ["pageContext", "configure"])) : r(g) && "form" === r(g) ? a("", true) : (l(), o(c, { key: 1, ref_key: "gridRef", ref: m, pageContext: e3.pageContext, configure: d.value, onSetSafeDeleteTableCode: x }, null, 8, ["pageContext", "configure"]))]));
|
|
82
85
|
} });
|
|
83
86
|
export {
|
|
84
87
|
f as default
|