super-page-runtime 2.3.42 → 2.3.43-sit2
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 +136 -136
- package/dist/es/components/runtime/utils/events/event-util.js +122 -122
- package/dist/es/components/runtime/utils/events/print-label.js +33 -34
- package/dist/es/components/runtime/utils/events/standard-event.js +22 -22
- package/dist/es/components/runtime/utils/events/validator-util.js +204 -164
- package/dist/es/components/runtime/utils/page-init-util.js +38 -41
- 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/common/home-chart-condition-render.vue.js +8 -8
- 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 -100
- 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.vue.js +1 -1
- package/dist/es/components/runtime/views/assemblys/container/card/card-runtime.vue2.js +24 -25
- 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.vue.js +4 -1
- package/dist/es/components/runtime/views/assemblys/container/container/container-runtime.vue2.js +20 -11
- 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 +3 -3
- 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 +52 -52
- package/dist/es/components/runtime/views/assemblys/data/table/table-runtime.vue2.js +1 -1
- 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 +3 -3
- 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 +6 -6
- package/dist/es/components/runtime/views/assemblys/form/date-picker/datepicker-runtime.vue2.js +22 -22
- package/dist/es/components/runtime/views/assemblys/form/dept-tree/depttree-runtime.vue2.js +3 -3
- 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 +6 -7
- package/dist/es/components/runtime/views/assemblys/form/image-upload/imageupload-runtime.vue2.js +5 -6
- package/dist/es/components/runtime/views/assemblys/form/input-number/input-number-runtime.vue2.js +3 -3
- package/dist/es/components/runtime/views/assemblys/form/input-text/inputtext-runtime.vue2.js +47 -48
- package/dist/es/components/runtime/views/assemblys/form/label/label-runtime.vue2.js +4 -6
- package/dist/es/components/runtime/views/assemblys/form/link/link-runtime.vue2.js +7 -9
- package/dist/es/components/runtime/views/assemblys/form/radio/radio-runtime.vue2.js +3 -3
- package/dist/es/components/runtime/views/assemblys/form/rich-text/richtext-runtime.vue2.js +2 -2
- package/dist/es/components/runtime/views/assemblys/form/select/select-runtime.vue2.js +8 -9
- 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 +3 -3
- 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.vue2.js +3 -3
- 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 +10 -13
- package/dist/es/components/runtime/views/assemblys/page-bottom.vue.js +2 -2
- package/dist/es/components/runtime/views/assemblys/workflow/component/workflow-opinion-box.vue2.js +3 -3
- 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.vue2.js +1 -1
- 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.vue2.js +3 -4
- package/dist/es/i18n/langs/cn.js +1 -1
- package/dist/es/i18n/langs/en.js +1 -1
- package/dist/es/style.css +34 -15
- package/package.json +2 -2
package/dist/es/components/runtime/views/assemblys/container/container/container-runtime.vue2.js
CHANGED
|
@@ -1,18 +1,27 @@
|
|
|
1
|
-
import { defineComponent as e, ref as t, onMounted as n, nextTick as
|
|
2
|
-
import x from "
|
|
1
|
+
import { defineComponent as e, ref as t, onMounted as n, nextTick as l, resolveComponent as o, createBlock as u, openBlock as i, withCtx as s, withDirectives as a, createCommentVNode as r, createElementBlock as f, createVNode as c, normalizeStyle as p, unref as g, Fragment as d, renderList as y, vShow as m, normalizeClass as v } from "vue";
|
|
2
|
+
import { ArrowLeft as x, ArrowRight as C } from "@element-plus/icons-vue";
|
|
3
|
+
import k from "../../object-render.vue.js";
|
|
3
4
|
import "../../../../utils/global-refs.js";
|
|
4
|
-
import { handleAfterInitEvent as
|
|
5
|
-
const
|
|
6
|
-
const
|
|
5
|
+
import { handleAfterInitEvent as _ } from "../../../../utils/events/event-util.js";
|
|
6
|
+
const h = e({ __name: "container-runtime", props: { pageContext: {}, configure: {} }, setup(e2, { expose: h2 }) {
|
|
7
|
+
const A = e2, L = t(null), R = A.configure.runtime ? A.configure.runtime : {}, b = R.leftStyle, j = R.rightStyle, S = R.style, w = R.class, D = t(true), I = t(true);
|
|
7
8
|
return n(() => {
|
|
8
|
-
|
|
9
|
-
|
|
9
|
+
l(() => {
|
|
10
|
+
_(null, A.pageContext, A.configure, { componentRef: L.value, entity: A.pageContext.entity.data, pageData: A.pageContext.entity.page });
|
|
10
11
|
});
|
|
11
|
-
}), (
|
|
12
|
-
|
|
13
|
-
|
|
12
|
+
}), h2({ closeLeftAside: function() {
|
|
13
|
+
D.value = false;
|
|
14
|
+
}, openLeftAside: function() {
|
|
15
|
+
D.value = true;
|
|
16
|
+
}, closeRightAside: function() {
|
|
17
|
+
I.value = false;
|
|
18
|
+
}, openRightAside: function() {
|
|
19
|
+
I.value = true;
|
|
20
|
+
} }), (e3, t2) => {
|
|
21
|
+
const n2 = o("el-aside"), l2 = o("el-icon"), _2 = o("el-main"), h3 = o("el-container");
|
|
22
|
+
return i(), u(h3, { ref_key: "thisRef", ref: L }, { default: s(() => [e3.configure.props.useLeft ? a((i(), u(n2, { key: 0, style: p(g(b)) }, { default: s(() => [(i(true), f(d, null, y(e3.configure.leftAslides, (t3, n3) => (i(), u(k, { key: t3.uuid, pageContext: e3.pageContext, configure: t3 }, null, 8, ["pageContext", "configure"]))), 128))]), _: 1 }, 8, ["style"])), [[m, D.value]]) : r("", true), e3.configure.props.useLeft && e3.configure.props.showLeftAsideCollapseIcon ? (i(), f("div", { key: 1, class: "aside-collapse-btn aside-collapse-btn--left", onClick: t2[0] || (t2[0] = (e4) => D.value = !D.value) }, [c(l2, null, { default: s(() => [D.value ? (i(), u(g(x), { key: 0 })) : (i(), u(g(C), { key: 1 }))]), _: 1 })])) : r("", true), c(_2, { style: p(g(S)), class: v(g(w)) }, { default: s(() => [(i(true), f(d, null, y(e3.configure.items, (t3, n3) => (i(), u(k, { key: t3.uuid, pageContext: e3.pageContext, configure: t3 }, null, 8, ["pageContext", "configure"]))), 128))]), _: 1 }, 8, ["style", "class"]), e3.configure.props.useRight ? a((i(), u(n2, { key: 2, style: p(g(j)) }, { default: s(() => [(i(true), f(d, null, y(e3.configure.rightAslides, (t3, n3) => (i(), u(k, { key: t3.uuid, pageContext: e3.pageContext, configure: t3 }, null, 8, ["pageContext", "configure"]))), 128))]), _: 1 }, 8, ["style"])), [[m, I.value]]) : r("", true)]), _: 1 }, 512);
|
|
14
23
|
};
|
|
15
24
|
} });
|
|
16
25
|
export {
|
|
17
|
-
|
|
26
|
+
h as default
|
|
18
27
|
};
|
|
@@ -19,7 +19,6 @@ const p = e({ __name: "YxAffix", props: { offset: { type: Number, default: 0 },
|
|
|
19
19
|
B.value = l2 ?? 0, R(n2 || i2 || false, e3);
|
|
20
20
|
}
|
|
21
21
|
} catch (e3) {
|
|
22
|
-
console.error(e3);
|
|
23
22
|
}
|
|
24
23
|
}, R = (e3, t2) => {
|
|
25
24
|
var _a;
|
|
@@ -56,7 +55,6 @@ const p = e({ __name: "YxAffix", props: { offset: { type: Number, default: 0 },
|
|
|
56
55
|
})();
|
|
57
56
|
b.value = e3, T.value = e3[0], b.value.forEach((e4) => e4.addEventListener("scroll", z)), window.addEventListener("resize", L), S();
|
|
58
57
|
} catch (e3) {
|
|
59
|
-
console.error(e3);
|
|
60
58
|
}
|
|
61
59
|
});
|
|
62
60
|
}, 100);
|
|
@@ -15,9 +15,9 @@ const _ = e({ __name: "flex-runtime", props: { pageContext: {}, configure: {} },
|
|
|
15
15
|
s(() => {
|
|
16
16
|
v(null, _2.pageContext, _2.configure, { componentRef: j.value, entity: _2.pageContext.entity.data, pageData: _2.pageContext.entity.page });
|
|
17
17
|
});
|
|
18
|
-
}), (
|
|
19
|
-
const
|
|
20
|
-
return o(), i(
|
|
18
|
+
}), (e3, t2) => {
|
|
19
|
+
const n2 = l("el-col"), s2 = l("el-row");
|
|
20
|
+
return o(), i(s2, { ref_key: "thisRef", ref: j, justify: b.value.flexJustify, gutter: b.value.flexGutter, align: b.value.alignItems, style: u([{ display: "flex" }, r(h)]), class: a(r(w)) }, { default: f(() => [(o(true), p(g, null, m(e3.configure.items, (t3, s3) => c((o(), i(n2, { key: t3.uuid, style: u(t3.itemStyle), span: t3.flexSpan }, { default: f(() => [y(d, { pageContext: e3.pageContext, configure: t3 }, null, 8, ["pageContext", "configure"])]), _: 2 }, 1032, ["style", "span"])), [[x, t3._dynamicShowFlag]])), 128))]), _: 1 }, 8, ["justify", "gutter", "align", "style", "class"]);
|
|
21
21
|
};
|
|
22
22
|
} });
|
|
23
23
|
export {
|
|
@@ -15,9 +15,9 @@ const P = e({ __name: "form-runtime", props: { pageContext: {}, configure: {} },
|
|
|
15
15
|
o(() => {
|
|
16
16
|
C(null, P2.pageContext, P2.configure, "afterFormLoad", { componentRef: R.value, entity: P2.pageContext.entity.data, pageData: P2.pageContext.entity.page });
|
|
17
17
|
});
|
|
18
|
-
}), (
|
|
19
|
-
const
|
|
20
|
-
return l(), n("div", null, [r(
|
|
18
|
+
}), (e3, t2) => {
|
|
19
|
+
const i2 = s("el-form");
|
|
20
|
+
return l(), n("div", null, [r(i2, { ref_key: "thisRef", ref: R, "label-width": p(S).labelWidth, "label-position": O.value, size: p(S).componentSize, "require-asterisk-position": h.value, style: u(_.value), class: a(p(w)) }, { default: f(() => [p(S).formTitle ? (l(), n("div", { key: 0, class: "amb-widget-form-title", style: u(z.value) }, g(p(S).formTitle), 5)) : m("", true), (l(true), n(c, null, d(e3.configure.items, (t3, i3) => (l(), y(v, { key: t3.uuid, pageContext: e3.pageContext, configure: t3 }, null, 8, ["pageContext", "configure"]))), 128))]), _: 1 }, 8, ["label-width", "label-position", "size", "require-asterisk-position", "style", "class"])]);
|
|
21
21
|
};
|
|
22
22
|
} });
|
|
23
23
|
export {
|
|
@@ -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 V = e({ __name: "tabs-runtime", props: { pageContext: {}, configure: {} },
|
|
|
86
86
|
_.configure.items.forEach((t2) => {
|
|
87
87
|
e3.includes(t2.code) && n2.push(t2.code);
|
|
88
88
|
}), I.value = [...new Set(n2)];
|
|
89
|
-
} }), (
|
|
90
|
-
const
|
|
91
|
-
return l(), c(u(x), { ref_key: "thisRef", ref: P, modelValue: A.value, "onUpdate:modelValue":
|
|
89
|
+
} }), (e3, n2) => {
|
|
90
|
+
const t2 = i("el-button");
|
|
91
|
+
return l(), c(u(x), { ref_key: "thisRef", ref: P, modelValue: A.value, "onUpdate:modelValue": n2[0] || (n2[0] = (e4) => A.value = e4), type: e3.configure.props.cardType, "tab-position": e3.configure.props.tabPosition, style: s(u(R)), class: r([u(B), "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(() => [(l(true), f(d, null, m(_.configure.items, (n3, t3) => (l(), c(u(C), { key: t3, label: n3.label, name: n3.code, lazy: !!e3.configure.props.lazy }, { label: p(() => [n3.iconType && n3.iconValue ? (l(), c(u(k), { key: 0, iconType: n3.iconType, iconValue: n3.iconValue, style: { "margin-right": "2px" } }, null, 8, ["iconType", "iconValue"])) : g("", true), b("span", { style: s(u(z)) }, y(u(O)(n3.label)), 5)]), default: p(() => [(e3.configure.props.isFullyRendered ?? 1) || n3.code === A.value ? (l(true), f(d, { key: 0 }, m(n3.items, (n4) => (l(), c(T, { key: n4.uuid, pageContext: e3.pageContext, configure: n4 }, null, 8, ["pageContext", "configure"]))), 128)) : g("", true)]), _: 2 }, 1032, ["label", "name", "lazy"]))), 128)), e3.configure.props.resetable ? (l(), c(u(C), { key: 0, disabled: "", name: "-1" }, { label: p(() => [e3.configure.props.resetable ? (l(), c(t2, { 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 {
|
|
@@ -285,7 +285,7 @@ const W = ["id"], q = e({ __name: "main-table-runtime", props: { pageContext: {}
|
|
|
285
285
|
}
|
|
286
286
|
n(() => {
|
|
287
287
|
const e3 = Xe();
|
|
288
|
-
se.value && e3 && e3.distanceToBottom && (se.value.tableHeight = e3.distanceToBottom - 110), Y.pageContext.pageRuntimeStyle
|
|
288
|
+
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 }) {
|
|
289
289
|
se.value.closePageDialog({ entity: t2, pageCode: n2, jumpInfo: e4 });
|
|
290
290
|
}), H.$on(de + "_close-dialog-get-entity", () => {
|
|
291
291
|
H.$emit(de + "_close-super-dialog");
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { defineComponent as e, ref as t, onMounted as n, onUnmounted as o, resolveComponent as l, createElementBlock as i, openBlock as a, createBlock as u, createCommentVNode as r, unref as s } from "vue";
|
|
2
2
|
import { setTableEvents as c, gridSelectRecord as p, gridSelectAllRecords as d, gridSelectionChange as f, cellClick as b, cellDblClick as g, rowClick as m, rowDblClick as v, headerClick as h, getHandleEvent as S } from "../../../../utils/events/event-util.js";
|
|
3
|
-
import { caculateShowCondition as w, setVariableValue as T, getVariableValue as
|
|
4
|
-
import { getModelFields as
|
|
3
|
+
import { caculateShowCondition as w, setVariableValue as T, getVariableValue as C, getSizeConfig as x } from "../../../../utils/page-helper-util.js";
|
|
4
|
+
import { getModelFields as y, getDefaultValue as D } from "../../../../utils/page-init-util.js";
|
|
5
5
|
import P from "../../../../utils/eventBus.js";
|
|
6
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";
|
|
@@ -11,17 +11,17 @@ const N = e({ __name: "sub-table-runtime", props: { pageContext: {}, configure:
|
|
|
11
11
|
var _a;
|
|
12
12
|
const $ = e2, j = $.pageContext;
|
|
13
13
|
let z = $.configure;
|
|
14
|
-
const
|
|
15
|
-
j.isTest ?
|
|
16
|
-
const
|
|
17
|
-
let Y =
|
|
14
|
+
const B = $.configure.runtime ? $.configure.runtime : {};
|
|
15
|
+
j.isTest ? B.value = $.configure.runtime ? $.configure.runtime : {} : j.tableRuntimes && j.tableRuntimes[z.uuid] && (z = JSON.parse(j.tableRuntimes[z.uuid].configure), B.value = z.runtime ? z.runtime : {});
|
|
16
|
+
const V = O(j.code, j.version, z.uuid), G = j.entity.data, H = z.code ? z.code : V, L = k(j), U = B && B.events ? B.events : [], q = t([]), J = j.superGridItems, K = J ? J[z.uuid] : null, Q = B.style, W = B.class, X = $.pageContext.entity ? $.pageContext.entity : {};
|
|
17
|
+
let Y = y($.configure, H), 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
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: (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:
|
|
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
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
26
|
const t2 = z.props ? z.props.dataOrigin : {};
|
|
27
27
|
if (t2.treeTable) {
|
|
@@ -38,23 +38,23 @@ const N = e({ __name: "sub-table-runtime", props: { pageContext: {}, configure:
|
|
|
38
38
|
}();
|
|
39
39
|
const ie = t(null);
|
|
40
40
|
function ae() {
|
|
41
|
-
ie.value && (oe.value.subTableData = null, ie.value.reloadSubTableData(
|
|
41
|
+
ie.value && (oe.value.subTableData = null, ie.value.reloadSubTableData(V));
|
|
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 =
|
|
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 = V, t2.extraParam.beanName = j.beanName, t2.extraParam.subtableSetting = z.props && z.props.otherSettings ? JSON.stringify(z.props.otherSettings) : null, t2.extraParam.additionalParamMap = L, 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
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 =
|
|
50
|
-
n2 && n2.fixHeight && (t2.formSetHeight = n2.fixHeight), n2 && n2.maxHeight && (t2.formSetMaxHeight = n2.maxHeight), t2.validateEitConditions =
|
|
49
|
+
let n2 = x(j, z);
|
|
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
53
|
if (z.props && z.props.otherSettings) {
|
|
54
54
|
if (z.props.otherSettings.sourceQueryTableData && z.props.otherSettings.timeToInitializeSubTable && z.props.otherSettings.timeToInitializeSubTable.length > 0) {
|
|
55
55
|
let e3 = false;
|
|
56
|
-
if (-1 !== z.props.otherSettings.timeToInitializeSubTable.indexOf("create") && (e3 = !
|
|
57
|
-
const t2 = H
|
|
56
|
+
if (-1 !== z.props.otherSettings.timeToInitializeSubTable.indexOf("create") && (e3 = !G.id && !G.ID), -1 !== z.props.otherSettings.timeToInitializeSubTable.indexOf("noData")) {
|
|
57
|
+
const t2 = G[H];
|
|
58
58
|
(!t2 || t2.length <= 0) && (e3 = true);
|
|
59
59
|
}
|
|
60
60
|
return e3;
|
|
@@ -66,7 +66,7 @@ const N = e({ __name: "sub-table-runtime", props: { pageContext: {}, configure:
|
|
|
66
66
|
return j.entity.data;
|
|
67
67
|
}
|
|
68
68
|
function ce() {
|
|
69
|
-
return
|
|
69
|
+
return C(X, Y);
|
|
70
70
|
}
|
|
71
71
|
let pe, de;
|
|
72
72
|
function fe(e3, t2) {
|
|
@@ -76,11 +76,11 @@ const N = e({ __name: "sub-table-runtime", props: { pageContext: {}, configure:
|
|
|
76
76
|
}
|
|
77
77
|
function be(e3) {
|
|
78
78
|
e3 || (e3 = oe.value), function(e4) {
|
|
79
|
-
var _a2;
|
|
79
|
+
var _a2, _b;
|
|
80
80
|
e4 || (e4 = oe.value);
|
|
81
81
|
const t3 = j.fieldPermissionMap, n2 = j.actionPermissionMap;
|
|
82
82
|
if (t3 && null != t3) {
|
|
83
|
-
let n3 = t3.get(
|
|
83
|
+
let n3 = t3.get(H);
|
|
84
84
|
if (!n3) {
|
|
85
85
|
const e5 = t3.get("all_fields");
|
|
86
86
|
e5 && (n3 = [e5]);
|
|
@@ -88,25 +88,25 @@ const N = e({ __name: "sub-table-runtime", props: { pageContext: {}, configure:
|
|
|
88
88
|
e4.validateRules = n3 || null;
|
|
89
89
|
}
|
|
90
90
|
if (n2 && null != n2) {
|
|
91
|
-
let t4 = n2.get(
|
|
91
|
+
let t4 = n2.get(H);
|
|
92
92
|
t4 || (t4 = n2.get("all_sub_tables")), e4.actionPermission = t4;
|
|
93
93
|
}
|
|
94
94
|
e4.operations || (e4.operations = {});
|
|
95
95
|
const o2 = function() {
|
|
96
96
|
let e5 = [];
|
|
97
97
|
if (we(null, null, null, null, null, true, "canAdd")) {
|
|
98
|
-
const t4 = { props: { elementType: "el-button", icon: "Plus", type: "primary", circle: true, size: "mini", permission: "true" }, onClick:
|
|
98
|
+
const t4 = { props: { elementType: "el-button", icon: "Plus", type: "primary", circle: true, size: "mini", permission: "true" }, onClick: ye, isShow: Te, isStandard: true };
|
|
99
99
|
e5.push(t4);
|
|
100
100
|
}
|
|
101
|
-
if (
|
|
102
|
-
const t4 = { props: { elementType: "el-button", icon: "Minus", type: "danger", circle: true, size: "mini", permission: "true" }, onClick:
|
|
101
|
+
if (Ce(null, null, null, null, null, true)) {
|
|
102
|
+
const t4 = { props: { elementType: "el-button", icon: "Minus", type: "danger", circle: true, size: "mini", permission: "true" }, onClick: De, isShow: xe, isStandard: true };
|
|
103
103
|
e5.push(t4);
|
|
104
104
|
}
|
|
105
105
|
return R(j, z, e5, he), e5;
|
|
106
106
|
}();
|
|
107
107
|
((_a2 = z.props.base.showOperationCondition) == null ? void 0 : _a2.length) > 0 && (e4.operations.showOperationFunc = me);
|
|
108
|
-
e4.operations.operation = o2, e4.subTableCanAdd = we(null, null, null, null, null, true, "canAdd"), e4.subTableCanDelete = we(null, null, null, null, null, true, "canDelete");
|
|
109
|
-
}(e3), c(e3,
|
|
108
|
+
e4.operations.operation = o2, e4.subTableCanAdd = we(null, null, null, null, null, true, "canAdd"), e4.subTableCanDelete = we(null, null, null, null, null, true, "canDelete"), ((_b = z.props.base.showCopyBtnCondition) == null ? void 0 : _b.length) > 0 ? e4.subTableCanCopy = w($.pageContext, $.configure.props.base.showCopyBtnCondition) : e4.subTableCanCopy = true;
|
|
109
|
+
}(e3), c(e3, U, j, z);
|
|
110
110
|
const t2 = j.customEvents;
|
|
111
111
|
t2 && (e3.eventCallBack = t2), ee.value = true, ge();
|
|
112
112
|
}
|
|
@@ -127,19 +127,19 @@ const N = e({ __name: "sub-table-runtime", props: { pageContext: {}, configure:
|
|
|
127
127
|
ae();
|
|
128
128
|
}), P.$on("_refreshChildData_" + e3, (e4) => {
|
|
129
129
|
!function(e5) {
|
|
130
|
-
|
|
131
|
-
ie.value && (ie.value.refreshChildData(
|
|
130
|
+
Ve(e5), de = setTimeout(() => {
|
|
131
|
+
ie.value && (ie.value.refreshChildData(V, e5, z.props && z.props.base && true === z.props.base.subPaging), oe.value.extraParam.entityMap = j.entity.data);
|
|
132
132
|
}, 10);
|
|
133
133
|
}(e4);
|
|
134
|
-
}), P.$on(
|
|
134
|
+
}), P.$on(V + "-pickFileDone", (e4) => {
|
|
135
135
|
ie.value.pickFileDone(e4);
|
|
136
|
-
}), P.$on(
|
|
136
|
+
}), P.$on(V + "-scanDone", (e4) => {
|
|
137
137
|
ie.value.scanDone(e4);
|
|
138
138
|
}), oe.value && oe.value.configureObj.props.base && oe.value.configureObj.props.base.isSafeDelete && le("setSafeDeleteTableCode", oe.value.extraParam.tableName);
|
|
139
139
|
}), o(() => {
|
|
140
140
|
pe && clearTimeout(pe), de && clearTimeout(de);
|
|
141
141
|
const e3 = z.uuid;
|
|
142
|
-
P.$off("_refreshSubTable_" + e3), P.$off("_refreshSubTableHandle_" + e3), P.$off("_refreshChildData_" + e3), P.$off(
|
|
142
|
+
P.$off("_refreshSubTable_" + e3), P.$off("_refreshSubTableHandle_" + e3), P.$off("_refreshChildData_" + e3), P.$off(V + "-pickFileDone"), P.$off(V + "-scanDone");
|
|
143
143
|
});
|
|
144
144
|
const ve = t({});
|
|
145
145
|
function he(e3) {
|
|
@@ -159,8 +159,8 @@ const N = e({ __name: "sub-table-runtime", props: { pageContext: {}, configure:
|
|
|
159
159
|
const e4 = u2.get("all_fields");
|
|
160
160
|
void 0 === e4 || false !== e4.canEdit || void 0 !== e4.rowIndexes && null !== e4.rowIndexes && 0 !== e4.rowIndexes.length || (s2 = false);
|
|
161
161
|
}
|
|
162
|
-
if (true === s2 &&
|
|
163
|
-
let e4 = r2.get(
|
|
162
|
+
if (true === s2 && H && r2 && null !== r2) {
|
|
163
|
+
let e4 = r2.get(H);
|
|
164
164
|
e4 || (e4 = r2.get("all_sub_tables")), e4 && void 0 !== e4[a2] && false === e4[a2] && (s2 = false);
|
|
165
165
|
}
|
|
166
166
|
return s2;
|
|
@@ -169,15 +169,15 @@ const N = e({ __name: "sub-table-runtime", props: { pageContext: {}, configure:
|
|
|
169
169
|
let a2 = we(0, 0, 0, 0, 0, 0, "canAdd");
|
|
170
170
|
return true === a2 && (a2 = w($.pageContext, z.props.base.showAddBtnCondition, n2)), a2;
|
|
171
171
|
}
|
|
172
|
-
function
|
|
172
|
+
function Ce(e3, t2, n2, o2, l2, i2) {
|
|
173
173
|
const a2 = j.fieldPermissionMap, u2 = j.actionPermissionMap;
|
|
174
174
|
let r2 = true;
|
|
175
175
|
if (a2 && null !== a2) {
|
|
176
176
|
const e4 = a2.get("all_fields");
|
|
177
177
|
void 0 === e4 || false !== e4.canEdit || void 0 !== e4.rowIndexes && null !== e4.rowIndexes && 0 !== e4.rowIndexes.length || (r2 = false);
|
|
178
178
|
}
|
|
179
|
-
if (true === r2 &&
|
|
180
|
-
let e4 = u2.get(
|
|
179
|
+
if (true === r2 && H && u2 && null !== u2) {
|
|
180
|
+
let e4 = u2.get(H);
|
|
181
181
|
if (e4 || (e4 = u2.get("all_sub_tables")), e4 && void 0 !== e4.canDelete && false === e4.canDelete && (r2 = false), e4 && void 0 !== e4.canDelete && true === e4.canDelete && e4.deleteRowIndexes) if (e4.deleteRowIndexes.length > 0) if (i2) r2 = true;
|
|
182
182
|
else {
|
|
183
183
|
const t3 = function(e5) {
|
|
@@ -189,23 +189,23 @@ const N = e({ __name: "sub-table-runtime", props: { pageContext: {}, configure:
|
|
|
189
189
|
}
|
|
190
190
|
return r2;
|
|
191
191
|
}
|
|
192
|
-
function
|
|
193
|
-
let a2 =
|
|
192
|
+
function xe(e3, t2, n2, o2, l2, i2) {
|
|
193
|
+
let a2 = Ce(0, 0, n2, 0, 0, i2);
|
|
194
194
|
return true === a2 && (a2 = w($.pageContext, z.props.base.showDeleteBtnCondition, n2)), a2;
|
|
195
195
|
}
|
|
196
|
-
function
|
|
197
|
-
ie.value.createRow(
|
|
196
|
+
function ye(e3, t2, n2, o2, l2) {
|
|
197
|
+
ie.value.createRow(V, {}, { getDefaultValueFunc: D }, { originalValue: e3, formatValue: t2, row: n2, column: o2, rowIndex: l2 }).then(() => {
|
|
198
198
|
qe(l2);
|
|
199
199
|
});
|
|
200
200
|
}
|
|
201
|
-
function
|
|
202
|
-
ie.value.deleteRow(l2,
|
|
201
|
+
function De(e3, t2, n2, o2, l2, i2, a2, u2) {
|
|
202
|
+
ie.value.deleteRow(l2, V, false, a2, u2, n2);
|
|
203
203
|
}
|
|
204
204
|
function Pe(e3) {
|
|
205
205
|
T(X, Y, e3);
|
|
206
206
|
}
|
|
207
207
|
function Ie(e3) {
|
|
208
|
-
j.subTablePageInfo || (j.subTablePageInfo = {}), j.subTablePageInfo[
|
|
208
|
+
j.subTablePageInfo || (j.subTablePageInfo = {}), j.subTablePageInfo[H] || (j.subTablePageInfo[H] = {}), j.subTablePageInfo[H].title = z.title ? z.title : z.code, j.subTablePageInfo[H].pageSize = e3;
|
|
209
209
|
}
|
|
210
210
|
function Re(e3) {
|
|
211
211
|
const t2 = e3.key, n2 = e3.value;
|
|
@@ -250,23 +250,23 @@ const N = e({ __name: "sub-table-runtime", props: { pageContext: {}, configure:
|
|
|
250
250
|
function ze(e3) {
|
|
251
251
|
j.entity.data = e3;
|
|
252
252
|
}
|
|
253
|
-
function
|
|
254
|
-
return
|
|
253
|
+
function Be() {
|
|
254
|
+
return C(X, Y);
|
|
255
255
|
}
|
|
256
|
-
function
|
|
256
|
+
function Ve(e3) {
|
|
257
257
|
return T(X, Y, e3);
|
|
258
258
|
}
|
|
259
|
-
function
|
|
259
|
+
function Ge(e3) {
|
|
260
260
|
return A(e3, null, $);
|
|
261
261
|
}
|
|
262
|
-
function
|
|
262
|
+
function He(e3) {
|
|
263
263
|
return M(e3, e3.cellStyle, $);
|
|
264
264
|
}
|
|
265
|
-
function
|
|
265
|
+
function Le(e3) {
|
|
266
266
|
const t2 = e3.titleStyle, n2 = $.configure.style.titleStyle;
|
|
267
267
|
return E(e3, { cellTitleStyle: t2, titleStyle: n2 }, $);
|
|
268
268
|
}
|
|
269
|
-
function
|
|
269
|
+
function Ue({ row: e3, editConditions: t2 }) {
|
|
270
270
|
let n2 = true;
|
|
271
271
|
return t2 && t2.length > 0 && (n2 = w($.pageContext, t2, e3)), n2;
|
|
272
272
|
}
|
|
@@ -276,9 +276,9 @@ const N = e({ __name: "sub-table-runtime", props: { pageContext: {}, configure:
|
|
|
276
276
|
}
|
|
277
277
|
return function(e3) {
|
|
278
278
|
const t2 = re();
|
|
279
|
-
t2 ? fe(t2, e3) : (ue(t2, e3), e3.isPageInfo = false, e3.subTableData =
|
|
279
|
+
t2 ? fe(t2, e3) : (ue(t2, e3), e3.isPageInfo = false, e3.subTableData = Be(), be(e3));
|
|
280
280
|
}(oe.value), N2({ createRow: function() {
|
|
281
|
-
return ie.value.createRow(
|
|
281
|
+
return ie.value.createRow(V);
|
|
282
282
|
}, getSelections: function() {
|
|
283
283
|
return q.value;
|
|
284
284
|
}, getSelectionIds: function() {
|
|
@@ -292,8 +292,8 @@ const N = e({ __name: "sub-table-runtime", props: { pageContext: {}, configure:
|
|
|
292
292
|
return z;
|
|
293
293
|
}, validatorSunTableListData: function() {
|
|
294
294
|
return ie.value.validatorSunTableListData();
|
|
295
|
-
}, getValue:
|
|
296
|
-
if (ie.value) return ie.value.getTableSelectOptions(
|
|
295
|
+
}, getValue: Be, setValue: Ve, getTableSelectOptions: function() {
|
|
296
|
+
if (ie.value) return ie.value.getTableSelectOptions(V);
|
|
297
297
|
}, dynamicControlTableEdit: function(e3, t2, n2) {
|
|
298
298
|
ie.value && ie.value.dynamicControlTableEdit(e3, t2, n2);
|
|
299
299
|
}, doLayout: function(e3) {
|
|
@@ -318,7 +318,7 @@ const N = e({ __name: "sub-table-runtime", props: { pageContext: {}, configure:
|
|
|
318
318
|
return (_a2 = ie.value) == null ? void 0 : _a2.getTableData();
|
|
319
319
|
}, addRequiredClass: function(e3, t2, n2) {
|
|
320
320
|
var _a2;
|
|
321
|
-
(_a2 = ie.value) == null ? void 0 : _a2.addRequiredClass(e3,
|
|
321
|
+
(_a2 = ie.value) == null ? void 0 : _a2.addRequiredClass(e3, V, t2, n2);
|
|
322
322
|
}, getColumns: function() {
|
|
323
323
|
var _a2;
|
|
324
324
|
return (_a2 = ie.value) == null ? void 0 : _a2.getColumns();
|
|
@@ -327,7 +327,7 @@ const N = e({ __name: "sub-table-runtime", props: { pageContext: {}, configure:
|
|
|
327
327
|
(_a2 = ie.value) == null ? void 0 : _a2.scrollToCell({ fieldName: e3, rowIndex: t2, pageNum: n2 });
|
|
328
328
|
} }), (e3, t2) => {
|
|
329
329
|
const n2 = l("super-grid");
|
|
330
|
-
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(
|
|
330
|
+
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(V), settings: s(K), isDialog: s(j).isDialog, onSelect: ke, onSelectAll: Ae, onSelectionChange: Me, onCellClick: Ee, onCellDblclick: Ne, onRowClick: Fe, onRowDblclick: $e, onHeaderClick: je, onFnProhibitToEdit: Oe, onChangeGridData: Pe, onReloadGrid: fe, onRefresMainTableFields: _e, onSetSelectOptions: Re, onChangeRowsPerPage: Ie, onNewOpenGridDialog: s(I), onChangeFormData: ze }, null, 8, ["url", "options", "code", "settings", "isDialog", "onNewOpenGridDialog"])) : r("", true)]);
|
|
331
331
|
};
|
|
332
332
|
} });
|
|
333
333
|
export {
|
|
@@ -81,7 +81,7 @@ const f = e({ __name: "table-runtime", props: { pageContext: {}, configure: {} }
|
|
|
81
81
|
}, scrollToCell: function({ fieldName: e3, rowIndex: t2, pageNum: n2 }) {
|
|
82
82
|
var _a;
|
|
83
83
|
(_a = m.value) == null ? void 0 : _a.scrollToCell({ fieldName: e3, rowIndex: t2, pageNum: n2 });
|
|
84
|
-
} }), (
|
|
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"]))]));
|
|
85
85
|
} });
|
|
86
86
|
export {
|
|
87
87
|
f as default
|
|
@@ -104,29 +104,29 @@ const P = { key: 0, class: "custom-tree-node" }, W = ["title"], R = { key: 0, cl
|
|
|
104
104
|
te.value.setCheckedKeys(e3, t2);
|
|
105
105
|
}, setChecked: (e3, t2, a2) => {
|
|
106
106
|
te.value.setChecked(e3, t2, a2);
|
|
107
|
-
}, getCurrentKey: () => te.value.getCurrentKey(), getCurrentNode: () => te.value.getCurrentNode(), setCurrentKey: (e3, t2 = true) => te.value.setCurrentKey(e3, t2), setCurrentNode: (e3, t2 = true) => te.value.setCurrentNode(e3, t2) }), (
|
|
107
|
+
}, getCurrentKey: () => te.value.getCurrentKey(), getCurrentNode: () => te.value.getCurrentNode(), setCurrentKey: (e3, t2 = true) => te.value.setCurrentKey(e3, t2), setCurrentNode: (e3, t2 = true) => te.value.setCurrentNode(e3, t2) }), (e3, t2) => {
|
|
108
108
|
var _a2;
|
|
109
|
-
const
|
|
110
|
-
return i(), u("div", { class: s(["amb-tree-runtime-main", r(ee)]) }, [ae.value.filter ? (i(), c(
|
|
111
|
-
"" !== ce.value ? (
|
|
112
|
-
ye(
|
|
113
|
-
}) : E(
|
|
114
|
-
ye(
|
|
109
|
+
const a2 = d("el-input"), n2 = d("el-button"), l2 = d("SuperIcon"), o2 = d("el-tree");
|
|
110
|
+
return i(), u("div", { class: s(["amb-tree-runtime-main", r(ee)]) }, [ae.value.filter ? (i(), c(a2, { key: 0, modelValue: ue.value, "onUpdate:modelValue": t2[0] || (t2[0] = (e4) => ue.value = e4), style: { width: "100%" }, placeholder: "请输入查询条件" }, null, 8, ["modelValue"])) : p("", true), le.value ? (i(), c(o2, { key: 1, ref_key: "menuTreeRef", ref: te, style: f(r(Z)), load: fe, data: oe.value, "node-key": "nodeId", props: ne.value, "default-expand-all": ae.value.defaultExpandAll, "expand-on-click-node": ae.value.expandOnClickNode, indent: ae.value.retractWidth ? ae.value.retractWidth : 18, accordion: ae.value.accordion, "show-checkbox": !!ae.value.showCheckbox, "highlight-current": "", lazy: J.value, "filter-node-method": pe, onNodeClick: ve, onNodeContextmenu: me }, { default: g(({ node: o3, data: d2 }) => [d2.nodeId === se.value ? (i(), u("div", P, [m(a2, { modelValue: ce.value, "onUpdate:modelValue": t2[1] || (t2[1] = (e4) => ce.value = e4), size: "small" }, null, 8, ["modelValue"]), h("div", null, [m(n2, { type: "primary", link: "", onClick: (e4) => ((e5) => {
|
|
111
|
+
"" !== ce.value ? (e5.data.name = ce.value, re.value && e5.data.nodeId === re.value ? w(e5, X.configure, X.pageContext).then((t3) => {
|
|
112
|
+
ye(e5, t3.currentNode), Ce(), z.success("保存成功!");
|
|
113
|
+
}) : E(e5, X.configure, X.pageContext).then((t3) => {
|
|
114
|
+
ye(e5, t3.currentNode), Ce(), z.success("保存成功!");
|
|
115
115
|
})) : z.warning("请输入节点名称");
|
|
116
|
-
})(
|
|
117
|
-
re.value &&
|
|
118
|
-
})(
|
|
119
|
-
if (ge.value && "standard" ===
|
|
120
|
-
else if ("delete" ===
|
|
121
|
-
ke(
|
|
116
|
+
})(o3) }, { default: g(() => t2[2] || (t2[2] = [y(" 保存 ")])), _: 2 }, 1032, ["onClick"]), m(n2, { style: { "margin-left": "4px" }, type: "primary", link: "", onClick: (t3) => ((e4) => {
|
|
117
|
+
re.value && e4.data.nodeId === re.value && te.value.remove(e4), Ce();
|
|
118
|
+
})(o3, e3.configure, e3.pageContext) }, { default: g(() => t2[3] || (t2[3] = [y(" 撤销 ")])), _: 2 }, 1032, ["onClick"])])])) : (i(), u("span", { key: 1, title: o3.label, class: "ellipsis" }, [d2.iconValue ? (i(), c(l2, { key: 0, iconType: d2.iconType, iconValue: d2.iconValue }, null, 8, ["iconType", "iconValue"])) : ae.value.iconValue ? (i(), c(l2, { key: 1, iconType: ae.value.iconType, iconValue: ae.value.iconValue }, null, 8, ["iconType", "iconValue"])) : (i(), u(C, { key: 2 }, [d2.isLeaf ? (i(), u("div", H, [t2[5] || (t2[5] = h("img", { src: I, class: "file" }, null, -1)), h("span", null, x(d2.name), 1)])) : (i(), u("div", R, [h("div", D, [t2[4] || (t2[4] = h("img", { src: T, class: "file" }, null, -1)), h("span", null, x(d2.name), 1)])]))], 64))], 8, W))]), _: 1 }, 8, ["style", "data", "props", "default-expand-all", "expand-on-click-node", "indent", "accordion", "show-checkbox", "lazy"])) : p("", true), v(h("div", null, [h("ul", { ref_key: "contxtMenuRef", ref: $, class: "context-menu" }, [(i(true), u(C, null, k(q.value, (e4, t3) => (i(), u("li", { key: t3, tabindex: "-1", class: "menu__item", onClick: (t4) => ((e5) => {
|
|
119
|
+
if (ge.value && "standard" === e5.type && e5.standardEvent) if ("edit" === e5.standardEvent) se.value = ge.value.data.nodeId, ce.value = ge.value.data.name;
|
|
120
|
+
else if ("delete" === e5.standardEvent) ge.value.childNodes && ge.value.childNodes.length > 0 && e5.deleteParentNodeTip ? (e5.deleteParentNodeTipMessage || (e5.deleteParentNodeTipMessage = "当前节点下有子节点,确认删除?"), S.confirm(e5.deleteParentNodeTipMessage, { confirmButtonText: "确定", cancelButtonText: "取消", type: "error" }).then(() => {
|
|
121
|
+
ke(e5);
|
|
122
122
|
}).catch(() => {
|
|
123
123
|
ge.value = null;
|
|
124
|
-
})) : ke(
|
|
124
|
+
})) : ke(e5);
|
|
125
125
|
else {
|
|
126
126
|
const t5 = xe();
|
|
127
|
-
se.value = t5.nodeId, re.value = t5.nodeId, ce.value = t5.name, "addSiblingNode" ===
|
|
127
|
+
se.value = t5.nodeId, re.value = t5.nodeId, ce.value = t5.name, "addSiblingNode" === e5.standardEvent ? (t5.isLeaf = ge.value.data.isLeaf, ge.value.parent && ge.value.parent.level > 0 ? te.value.append(t5, ge.value.parent) : oe.value.push(t5)) : "addChildNode" === e5.standardEvent && (t5.isLeaf = true, ge.value.data.isLeaf = false, te.value.append(t5, ge.value), te.value.setCurrentKey(t5.nodeId, true));
|
|
128
128
|
}
|
|
129
|
-
})(
|
|
129
|
+
})(e4) }, [h("span", null, x(e4.name), 1)], 8, O))), 128))], 512)], 512), [[N, A.value && ((_a2 = q.value) == null ? void 0 : _a2.length) > 0]])], 2);
|
|
130
130
|
};
|
|
131
131
|
} });
|
|
132
132
|
export {
|
|
@@ -56,9 +56,9 @@ const z = e({ __name: "checkbox-runtime", props: { pageContext: {}, configure: {
|
|
|
56
56
|
});
|
|
57
57
|
}), t2 = t2.slice(0, t2.length - 1)) : t2 = e3.join(","), t2;
|
|
58
58
|
}
|
|
59
|
-
} }), (
|
|
60
|
-
const
|
|
61
|
-
return i(), u(
|
|
59
|
+
} }), (e3, t2) => {
|
|
60
|
+
const l2 = a("el-checkbox"), o2 = a("el-checkbox-group"), n2 = a("el-form-item");
|
|
61
|
+
return i(), u(n2, { ref_key: "formItemRef", ref: X, class: s(c(F) + (E.value ? " " + E.value : "")), required: !!B.value.required, "label-width": B.value.labelWidth, style: r(c(T)) }, p({ default: f(() => [g(o2, { ref_key: "componentRef", ref: Y, disabled: "disabled" === B.value.state, size: B.value.size, onChange: B.value.changeMethod, modelValue: M.value, "onUpdate:modelValue": t2[0] || (t2[0] = (e4) => M.value = e4) }, { default: f(() => [(i(true), v(d, null, m(G.value, (t3) => (i(), u(l2, { key: t3.value, value: t3.value, label: t3.label, onClick: (l3) => c(I)(t3.value, e3.pageContext, e3.configure, "click", { values: M.value }) }, null, 8, ["value", "label", "onClick"]))), 128))]), _: 1 }, 8, ["disabled", "size", "onChange", "modelValue"])]), _: 2 }, [B.value.tittleShow ? { name: "label", fn: f(() => [h("div", { ref_key: "titleRef", ref: Z, style: r({ ...c(U), ...c(W) }), class: "amb-form-item-label" }, y(c(V)(B.value.title)), 5)]), key: "0" } : void 0]), 1032, ["class", "required", "label-width", "style"]);
|
|
62
62
|
};
|
|
63
63
|
} });
|
|
64
64
|
export {
|