super-page-runtime 2.3.47-sit1 → 2.3.47
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 +121 -121
- package/dist/es/components/runtime/utils/events/print-label.js +34 -33
- package/dist/es/components/runtime/utils/events/standard-event.js +22 -22
- package/dist/es/components/runtime/utils/events/validator-util.js +209 -206
- package/dist/es/components/runtime/utils/page-init-util.js +47 -45
- 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 +10 -6
- package/dist/es/components/runtime/views/assemblys/chart/common/common-chart-header.vue.js +8 -6
- 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 +104 -99
- package/dist/es/components/runtime/views/assemblys/chart/table/table-runtime.vue2.js +3 -2
- 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 +11 -9
- 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 +2 -0
- 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.vue.js +1 -1
- package/dist/es/components/runtime/views/assemblys/container/tabs/tabs-runtime.vue2.js +42 -42
- package/dist/es/components/runtime/views/assemblys/data/bar-code/barcode-runtime.vue2.js +11 -9
- 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/table-runtime.vue2.js +1 -1
- 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 +94 -93
- 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 +26 -26
- 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 +8 -6
- package/dist/es/components/runtime/views/assemblys/form/image-upload/imageupload-runtime.vue2.js +6 -5
- 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 +43 -42
- package/dist/es/components/runtime/views/assemblys/form/label/label-runtime.vue2.js +6 -4
- package/dist/es/components/runtime/views/assemblys/form/link/link-runtime.vue2.js +9 -7
- 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.vue.js +1 -1
- package/dist/es/components/runtime/views/assemblys/form/rich-text/richtext-runtime.vue2.js +124 -124
- 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 +9 -8
- 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.vue.js +1 -1
- 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 +11 -9
- 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.vue.js +2 -2
- package/dist/es/components/runtime/views/assemblys/workflow/component/workflow-opinion-box.vue2.js +35 -34
- package/dist/es/components/runtime/views/assemblys/workflow/extract-workflow/extract-workflow-runtime-dialog.vue.js +1 -1
- package/dist/es/components/runtime/views/assemblys/workflow/extract-workflow/extract-workflow-runtime-dialog.vue2.js +19 -18
- package/dist/es/components/runtime/views/assemblys/workflow/extract-workflow/extract-workflow-runtime.vue.js +1 -1
- package/dist/es/components/runtime/views/assemblys/workflow/extract-workflow/extract-workflow-runtime.vue2.js +27 -27
- 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 +18 -16
- package/dist/es/components/runtime/views/super-page.vue2.js +99 -98
- package/dist/es/i18n/langs/cn.js +1 -1
- package/dist/es/i18n/langs/en.js +1 -1
- package/dist/es/style.css +85 -85
- 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 r, openBlock as i, normalizeStyle as a, normalizeClass as s, unref as l } from "vue";
|
|
2
|
+
import { handleAfterInitEvent as c } 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
|
-
n2(e4);
|
|
29
|
+
console.error("Failed to load page for iframe:", e4), 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
|
+
c(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) => (i(), r("iframe", { ref_key: "thisRef", ref: m, src: h.value, class: s(["amb-widget-container-iframe", l(w)]), style: a(l(y)) }, null, 14, f));
|
|
43
43
|
} });
|
|
44
44
|
export {
|
|
45
45
|
g as default
|
|
@@ -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-5141e37d"]]);
|
|
5
5
|
export {
|
|
6
6
|
r as default
|
|
7
7
|
};
|
|
@@ -1,96 +1,96 @@
|
|
|
1
|
-
import { defineComponent as e, ref as n, watch as t, onMounted as o, nextTick as a, resolveComponent as i, createBlock as c, openBlock as
|
|
1
|
+
import { defineComponent as e, ref as n, watch as t, onMounted as o, nextTick as a, resolveComponent as i, createBlock as c, openBlock as u, unref as l, normalizeClass as r, normalizeStyle as s, withCtx as p, createElementBlock as f, createCommentVNode as g, Fragment as d, renderList as m, createElementVNode as b, toDisplayString as y, withModifiers as v, createTextVNode as h } from "vue";
|
|
2
2
|
import { ElTabs as x, ElTabPane as C } from "element-plus";
|
|
3
3
|
import T from "../../object-render.vue.js";
|
|
4
4
|
import { SuperIcon as k } from "agilebuilder-ui";
|
|
5
5
|
import { handleAfterInitEvent as w, handleEvent as E } from "../../../../utils/events/event-util.js";
|
|
6
6
|
import { $t as O } from "../../../../utils/i18n-util.js";
|
|
7
7
|
import { isPromise as N } from "../../../../utils/page-helper-util.js";
|
|
8
|
-
const
|
|
9
|
-
const
|
|
10
|
-
|
|
8
|
+
const P = e({ __name: "tabs-runtime", props: { pageContext: {}, configure: {} }, setup(e2, { expose: P2 }) {
|
|
9
|
+
const V = e2, _ = n(""), A = n([]);
|
|
10
|
+
V.configure.items.forEach((e3) => {
|
|
11
11
|
e3.code || (e3.code = e3.index);
|
|
12
|
-
}),
|
|
13
|
-
const
|
|
12
|
+
}), _.value = V.configure.props.defaultOpen ? V.configure.props.defaultOpen : 1;
|
|
13
|
+
const I = n(null), R = V.configure.runtime ? V.configure.runtime : {}, j = R.style, B = R.class, z = R.headerStyle;
|
|
14
14
|
function S(e3, n2) {
|
|
15
|
-
return E(e3,
|
|
15
|
+
return E(e3, V.pageContext, V.configure, "before-leave", { activeName: e3, oldActiveName: n2 }) ?? true;
|
|
16
16
|
}
|
|
17
17
|
function D(e3, n2) {
|
|
18
18
|
const t2 = { pane: e3, ev: n2 }, o2 = e3.paneName;
|
|
19
|
-
return
|
|
19
|
+
return V.pageContext.activeTab = o2, V.pageContext.activeLabel = t2.label, V.pageContext.workflowOpinion && V.pageContext.workflowOpinion.boxInstance && (o2 === V.configure.items[0].code ? V.pageContext.workflowOpinion.boxInstance.show() : V.pageContext.workflowOpinion.boxInstance.hide()), E(o2, V.pageContext, V.configure, "tab-click", t2);
|
|
20
20
|
}
|
|
21
21
|
function F(e3) {
|
|
22
22
|
const n2 = { paneName: e3 };
|
|
23
|
-
return
|
|
23
|
+
return V.pageContext.activeTab = e3, E(e3, V.pageContext, V.configure, "tab-change", n2);
|
|
24
24
|
}
|
|
25
25
|
function L(e3) {
|
|
26
|
-
const n2 = { paneName: e3 }, t2 = E(e3,
|
|
26
|
+
const n2 = { paneName: e3 }, t2 = E(e3, V.pageContext, V.configure, "tab-remove", n2);
|
|
27
27
|
N(t2) ? t2.then((n3) => {
|
|
28
|
-
false !== n3 &&
|
|
29
|
-
}) : false !== t2 &&
|
|
28
|
+
false !== n3 && M(e3);
|
|
29
|
+
}) : false !== t2 && M(e3);
|
|
30
30
|
}
|
|
31
|
-
function
|
|
32
|
-
|
|
31
|
+
function M(e3) {
|
|
32
|
+
_.value === e3 && V.configure.items.forEach((n2, t2) => {
|
|
33
33
|
if (n2.code === e3) {
|
|
34
|
-
const e4 =
|
|
35
|
-
e4 && void 0 !== e4.code && (
|
|
34
|
+
const e4 = V.configure.items[t2 + 1] || V.configure.items[t2 - 1];
|
|
35
|
+
e4 && void 0 !== e4.code && (_.value = e4.code);
|
|
36
36
|
}
|
|
37
|
-
}),
|
|
37
|
+
}), A.value.includes(e3) || A.value.push(e3);
|
|
38
38
|
}
|
|
39
|
-
function
|
|
40
|
-
return E(null,
|
|
39
|
+
function U() {
|
|
40
|
+
return E(null, V.pageContext, V.configure, "tab-add");
|
|
41
41
|
}
|
|
42
|
-
function
|
|
42
|
+
function q(e3, n2) {
|
|
43
43
|
const t2 = { paneName: e3, action: n2 };
|
|
44
|
-
return E(e3,
|
|
44
|
+
return E(e3, V.pageContext, V.configure, "edit", t2);
|
|
45
45
|
}
|
|
46
|
-
function
|
|
47
|
-
const e3 = E(
|
|
46
|
+
function G() {
|
|
47
|
+
const e3 = E(V.configure.items, V.pageContext, V.configure, "tab-reset");
|
|
48
48
|
N(e3) ? e3.then((e4) => {
|
|
49
|
-
|
|
50
|
-
}) : false !== e3 && (
|
|
49
|
+
A.value = [];
|
|
50
|
+
}) : false !== e3 && (A.value = []);
|
|
51
51
|
}
|
|
52
|
-
return t(
|
|
52
|
+
return t(A, (e3) => {
|
|
53
53
|
e3 && e3.length > 0 ? e3.forEach((e4) => {
|
|
54
54
|
const n2 = document.getElementById("tab-" + e4);
|
|
55
55
|
n2 && (n2.style.display = "none");
|
|
56
|
-
}) :
|
|
56
|
+
}) : V.configure.items.forEach((e4) => {
|
|
57
57
|
const n2 = document.getElementById("tab-" + e4.code);
|
|
58
58
|
n2 && (n2.style.display = "");
|
|
59
59
|
});
|
|
60
60
|
}, { deep: true }), o(() => {
|
|
61
61
|
a(() => {
|
|
62
62
|
let e3 = [];
|
|
63
|
-
|
|
63
|
+
V.configure.items.forEach((n2) => {
|
|
64
64
|
n2.code && e3.push(document.getElementById("tab-" + n2.code));
|
|
65
|
-
}), w(null,
|
|
65
|
+
}), w(null, V.pageContext, V.configure, { componentRef: I.value, tabsDom: e3, entity: V.pageContext.entity.data, pageData: V.pageContext.entity.page });
|
|
66
66
|
});
|
|
67
|
-
}),
|
|
67
|
+
}), P2({ thisRef: I, activeName: _, hiddenPanes: A, resetTab: G, hiddenTabPanes: function(e3) {
|
|
68
68
|
if (Array.isArray(e3)) {
|
|
69
69
|
const n2 = [];
|
|
70
70
|
e3.forEach((e4) => {
|
|
71
|
-
|
|
72
|
-
}), n2.length > 0 &&
|
|
71
|
+
A.value.includes(e4) || n2.push(e4);
|
|
72
|
+
}), n2.length > 0 && A.value.push(...n2);
|
|
73
73
|
}
|
|
74
74
|
}, showTabPanes: function(e3) {
|
|
75
75
|
Array.isArray(e3) && e3.forEach((e4) => {
|
|
76
|
-
const n2 =
|
|
77
|
-
n2 > -1 &&
|
|
76
|
+
const n2 = A.value.indexOf(e4);
|
|
77
|
+
n2 > -1 && A.value.splice(n2, 1);
|
|
78
78
|
});
|
|
79
79
|
}, showTabPanesOnly: function(e3) {
|
|
80
80
|
const n2 = [];
|
|
81
|
-
|
|
81
|
+
V.configure.items.forEach((t2) => {
|
|
82
82
|
e3.includes(t2.code) || n2.push(t2.code);
|
|
83
|
-
}),
|
|
83
|
+
}), A.value = [...new Set(n2)];
|
|
84
84
|
}, hiddenTabPanesOnly: function(e3) {
|
|
85
85
|
const n2 = [];
|
|
86
|
-
|
|
86
|
+
V.configure.items.forEach((t2) => {
|
|
87
87
|
e3.includes(t2.code) && n2.push(t2.code);
|
|
88
|
-
}),
|
|
89
|
-
} }), (
|
|
90
|
-
const
|
|
91
|
-
return
|
|
88
|
+
}), A.value = [...new Set(n2)];
|
|
89
|
+
} }), (n2, t2) => {
|
|
90
|
+
const o2 = i("el-button");
|
|
91
|
+
return u(), c(l(x), { ref_key: "thisRef", ref: I, modelValue: _.value, "onUpdate:modelValue": t2[0] || (t2[0] = (e3) => _.value = e3), type: e2.configure.props.cardType, "tab-position": e2.configure.props.tabPosition, style: s(l(j)), class: r([l(B), "runtime-page-container-tabs-view"]), closable: e2.configure.props.closable, "before-leave": S, onTabClick: D, onTabChange: F, onTabRemove: L, onTabAdd: U, onEdit: q }, { default: p(() => [(u(true), f(d, null, m(V.configure.items, (n3, t3) => (u(), c(l(C), { key: t3, label: n3.label, name: n3.code, lazy: !!e2.configure.props.lazy }, { label: p(() => [n3.iconType && n3.iconValue ? (u(), c(l(k), { key: 0, iconType: n3.iconType, iconValue: n3.iconValue, style: { "margin-right": "2px" } }, null, 8, ["iconType", "iconValue"])) : g("", true), b("span", { style: s(l(z)) }, y(l(O)(n3.label)), 5)]), default: p(() => [(e2.configure.props.isFullyRendered ?? 1) || n3.code === _.value ? (u(true), f(d, { key: 0 }, m(n3.items, (n4) => (u(), c(T, { key: n4.uuid, pageContext: e2.pageContext, configure: n4 }, null, 8, ["pageContext", "configure"]))), 128)) : g("", true)]), _: 2 }, 1032, ["label", "name", "lazy"]))), 128)), e2.configure.props.resetable ? (u(), c(l(C), { key: 0, disabled: "", name: "-1" }, { label: p(() => [e2.configure.props.resetable ? (u(), c(o2, { key: 0, type: "text", circle: "", onClick: v(G, ["stop"]) }, { default: p(() => [h(y(e2.configure.props.resetButtonName || l(O)("superPageRuntimeMessage.reset")), 1)]), _: 1 })) : g("", true)]), _: 1 })) : g("", true)]), _: 1 }, 8, ["modelValue", "type", "tab-position", "style", "class", "closable"]);
|
|
92
92
|
};
|
|
93
93
|
} });
|
|
94
94
|
export {
|
|
95
|
-
|
|
95
|
+
P as default
|
|
96
96
|
};
|
|
@@ -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,15 +22,16 @@ 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() {
|
|
@@ -38,15 +39,15 @@ const j = ["src"], D = e({ __name: "barcode-runtime", props: { pageContext: {},
|
|
|
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 + "/component/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), o(() => q.pageContext.entity.data[e4.propDbName], (e5,
|
|
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 {
|
|
@@ -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, window.addEventListener("message", Fe), H.$on(de + "-close-component-page-dialog", function({ jumpInfo: e4, popEntity: t2, popPageCode: n2 }) {
|
|
288
|
+
se.value && e3 && e3.distanceToBottom && (se.value.tableHeight = e3.distanceToBottom - 110), Y.pageContext.pageRuntimeStyle && Y.pageContext.pageRuntimeStyle.height, 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");
|
|
@@ -83,7 +83,7 @@ const f = e({ __name: "table-runtime", props: { pageContext: {}, configure: {} }
|
|
|
83
83
|
}, scrollToCell: function({ fieldName: e3, rowIndex: t2, pageNum: n2 }) {
|
|
84
84
|
var _a;
|
|
85
85
|
(_a = m.value) == null ? void 0 : _a.scrollToCell({ fieldName: e3, rowIndex: t2, pageNum: n2 });
|
|
86
|
-
} }), (
|
|
86
|
+
} }), (t2, n2) => (l(), u("div", null, [r(g) && "form" === r(g) && C.value ? (l(), o(i, { key: 0, ref_key: "gridRef", ref: m, pageContext: e2.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: e2.pageContext, configure: d.value, onSetSafeDeleteTableCode: x }, null, 8, ["pageContext", "configure"]))]));
|
|
87
87
|
} });
|
|
88
88
|
export {
|
|
89
89
|
f as default
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import e from "./tree-runtime.vue2.js";
|
|
2
2
|
/* empty css */
|
|
3
3
|
import r from "../../../../../../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
-
const t = r(e, [["__scopeId", "data-v-
|
|
4
|
+
const t = r(e, [["__scopeId", "data-v-60cfad06"]]);
|
|
5
5
|
export {
|
|
6
6
|
t as default
|
|
7
7
|
};
|
|
@@ -1,134 +1,135 @@
|
|
|
1
|
-
import { defineComponent as e, ref as
|
|
2
|
-
import
|
|
1
|
+
import { defineComponent as e, ref as a, computed as t, onMounted as n, nextTick as l, watch as u, resolveComponent as o, createElementBlock as s, openBlock as d, normalizeClass as i, unref as r, createBlock as c, createCommentVNode as p, withDirectives as v, normalizeStyle as g, withCtx as f, createVNode as m, createElementVNode as h, createTextVNode as y, toDisplayString as C, Fragment as x, renderList as k, vShow as N } from "vue";
|
|
2
|
+
import M from "../../../../../../assets/folder.png.js";
|
|
3
3
|
import I from "../../../../../../assets/file.png.js";
|
|
4
|
-
import { getFormModelFields as
|
|
5
|
-
import { setVariableValue as
|
|
6
|
-
import { getMenuTreeData as
|
|
7
|
-
import { handleAfterInitEvent as
|
|
8
|
-
import { ElMessageBox as S, ElMessage as
|
|
9
|
-
import { checkPermission as
|
|
10
|
-
|
|
4
|
+
import { getFormModelFields as T } from "../../../../utils/page-init-util.js";
|
|
5
|
+
import { setVariableValue as P, getVariableValue as R } from "../../../../utils/page-helper-util.js";
|
|
6
|
+
import { getMenuTreeData as V, createTreeNode as b, updateTreeNode as L, deleteNode as w } from "../../../../utils/tree-utils.js";
|
|
7
|
+
import { handleAfterInitEvent as E, handleFormEvent as K } from "../../../../utils/events/event-util.js";
|
|
8
|
+
import { ElMessageBox as S, ElMessage as _ } from "element-plus";
|
|
9
|
+
import { checkPermission as j } from "agilebuilder-ui/src/utils/permission";
|
|
10
|
+
import { $t as D } from "../../../../utils/i18n-util.js";
|
|
11
|
+
const W = { key: 0, class: "custom-tree-node" }, z = ["title"], B = { key: 0, class: "item-row" }, H = { class: "item-side" }, O = { key: 1, class: "item-side", style: { display: "flex", "align-items": "center" } }, U = ["onClick"], $ = e({ __name: "tree-runtime", props: { pageContext: {}, configure: {} }, setup(e2, { expose: $2 }) {
|
|
11
12
|
var _a, _b, _c;
|
|
12
|
-
const
|
|
13
|
+
const A = a(), F = a(false), X = e2, Y = X.pageContext.entity ? X.pageContext.entity : {}, q = a([]);
|
|
13
14
|
((_a = X.configure.props) == null ? void 0 : _a.contextMenus) && (X.pageContext && X.configure && !X.pageContext.isTest ? X.configure.props.contextMenus.forEach((e3) => {
|
|
14
|
-
if (e3.functionCodes && e3.functionCodes.length > 0) for (let
|
|
15
|
-
const
|
|
16
|
-
if (
|
|
15
|
+
if (e3.functionCodes && e3.functionCodes.length > 0) for (let a2 = 0; a2 < e3.functionCodes.length; a2++) {
|
|
16
|
+
const t2 = e3.functionCodes[a2];
|
|
17
|
+
if (j(t2, X.pageContext.systemCode)) return void q.value.push(e3);
|
|
17
18
|
}
|
|
18
19
|
else q.value.push(e3);
|
|
19
20
|
}) : q.value = X.configure.props.contextMenus);
|
|
20
|
-
let
|
|
21
|
-
const
|
|
22
|
-
|
|
23
|
-
} }),
|
|
21
|
+
let G = T(X.pageContext, X.configure);
|
|
22
|
+
const J = t({ get: () => R(Y, G), set(e3) {
|
|
23
|
+
P(Y, G, e3);
|
|
24
|
+
} }), Q = a(!!((_c = (_b = X.configure.props) == null ? void 0 : _b.base) == null ? void 0 : _c.lazy)), Z = X.configure.runtime ? X.configure.runtime : {}, ee = Z.style, ae = Z.class, te = a(), ne = a(Z.props ? Z.props : {}), le = a({ id: "nodeId", label: "name", children: "children", isLeaf: "leaf", disabled: "disabled", nodeType: "nodeType", iconType: "iconType", iconValue: "iconValue" }), ue = a(false), oe = a([]), se = a(null), de = a(""), ie = a(false), re = a(""), ce = a(""), pe = a("");
|
|
24
25
|
n(() => {
|
|
25
26
|
l(() => {
|
|
26
|
-
const e3 =
|
|
27
|
-
|
|
27
|
+
const e3 = J.value;
|
|
28
|
+
E(e3, X.pageContext, X.configure, { componentRef: te.value, value: e3, entity: X.pageContext.entity.data, pageData: X.pageContext.entity.page });
|
|
28
29
|
});
|
|
29
|
-
}),
|
|
30
|
-
oe.value = e3,
|
|
31
|
-
}),
|
|
30
|
+
}), Q.value ? ue.value = true : V(X.pageContext, X.configure).then((e3) => {
|
|
31
|
+
oe.value = e3, ue.value = true;
|
|
32
|
+
}), u(de, (e3) => {
|
|
32
33
|
ie.value = true, te.value.filter(e3);
|
|
33
34
|
});
|
|
34
|
-
const
|
|
35
|
-
function
|
|
36
|
-
|
|
35
|
+
const ve = (e3, a2) => !e3 || a2.name.includes(e3);
|
|
36
|
+
function ge(e3, a2, t2) {
|
|
37
|
+
se.value = a2, K(null, X.pageContext, X.configure, "node-click", { data: e3, node: a2, nodeTree: t2 });
|
|
37
38
|
}
|
|
38
|
-
function fe(e3,
|
|
39
|
-
let
|
|
40
|
-
|
|
41
|
-
const n2 = { parentNodeId: e4, data:
|
|
42
|
-
|
|
43
|
-
if (ie.value = false,
|
|
44
|
-
!function(e5,
|
|
45
|
-
const
|
|
46
|
-
|
|
47
|
-
ie.value = false, te.value.updateKeyChildren(e5,
|
|
39
|
+
function fe(e3, a2) {
|
|
40
|
+
let t2 = "0";
|
|
41
|
+
t2 = 0 === e3.level ? "0" : e3.data.nodeId, function(e4, a3, t3) {
|
|
42
|
+
const n2 = { parentNodeId: e4, data: a3.data, searchValue: de, isSearch: ie.value };
|
|
43
|
+
V(X.pageContext, X.configure, e4, a3, n2).then((n3) => {
|
|
44
|
+
if (ie.value = false, t3(n3), "0" === e4) {
|
|
45
|
+
!function(e5, a4) {
|
|
46
|
+
const t4 = { parentNodeId: e5, data: a4.data, searchValue: de, isSearch: ie.value };
|
|
47
|
+
V(X.pageContext, X.configure, e5, a4, t4).then((a5) => {
|
|
48
|
+
ie.value = false, te.value.updateKeyChildren(e5, a5), te.value.store.nodesMap[e5] && (te.value.store.nodesMap[e5].expanded = true);
|
|
48
49
|
});
|
|
49
|
-
}(n3[0].nodeId,
|
|
50
|
+
}(n3[0].nodeId, a3);
|
|
50
51
|
}
|
|
51
52
|
});
|
|
52
|
-
}(
|
|
53
|
+
}(t2, e3, a2);
|
|
53
54
|
}
|
|
54
|
-
const
|
|
55
|
-
if (
|
|
56
|
-
document.removeEventListener("click",
|
|
57
|
-
const { clientX: l2, clientY:
|
|
58
|
-
if (
|
|
59
|
-
const { innerWidth: e4, innerHeight:
|
|
60
|
-
|
|
55
|
+
const me = a({}), he = (e3, a2, t2, n2) => {
|
|
56
|
+
if (re.value) return void _.warning(D("superPageRuntimeMessage.pleaseSaveCurrentNodeFirst"));
|
|
57
|
+
document.removeEventListener("click", ye), me.value = t2, F.value = true;
|
|
58
|
+
const { clientX: l2, clientY: u2 } = e3, o2 = A.value;
|
|
59
|
+
if (o2) {
|
|
60
|
+
const { innerWidth: e4, innerHeight: a3 } = window, { offsetWidth: t3, offsetHeight: n3 } = o2, s2 = l2 + t3 > e4 ? l2 - t3 : l2, d2 = u2 + n3 > a3 ? u2 - n3 : u2;
|
|
61
|
+
o2.style.left = `${s2}px`, o2.style.top = `${d2}px`, o2.style.display = "block";
|
|
61
62
|
}
|
|
62
|
-
document.addEventListener("click",
|
|
63
|
-
},
|
|
64
|
-
|
|
65
|
-
},
|
|
63
|
+
document.addEventListener("click", ye);
|
|
64
|
+
}, ye = () => {
|
|
65
|
+
F.value = false, document.removeEventListener("click", ye);
|
|
66
|
+
}, Ce = (e3, a2) => {
|
|
66
67
|
if (e3.parent && e3.parent.level > 0) {
|
|
67
|
-
const
|
|
68
|
-
e3.parent.data.children[
|
|
68
|
+
const t2 = e3.parent.data.children.findIndex((a3) => a3.nodeId === e3.data.nodeId);
|
|
69
|
+
e3.parent.data.children[t2] = a2, e3.data = a2;
|
|
69
70
|
} else {
|
|
70
|
-
const
|
|
71
|
-
e3.parent.data[
|
|
71
|
+
const t2 = e3.parent.data.findIndex((a3) => a3.nodeId === e3.data.nodeId);
|
|
72
|
+
e3.parent.data[t2] = a2, e3.data = a2;
|
|
72
73
|
}
|
|
73
|
-
},
|
|
74
|
-
|
|
75
|
-
},
|
|
76
|
-
function
|
|
77
|
-
e3.tipMessage ? S.confirm(e3.tipMessage, { confirmButtonText: "
|
|
78
|
-
|
|
79
|
-
|
|
74
|
+
}, xe = () => {
|
|
75
|
+
re.value = "", pe.value = "", ce.value = "";
|
|
76
|
+
}, ke = () => ({ nodeId: "primary" + (/* @__PURE__ */ new Date()).getTime(), name: D("superPageRuntimeMessage.addNode"), disabled: false, iconType: "custom", isLeaf: true });
|
|
77
|
+
function Ne(e3) {
|
|
78
|
+
e3.tipMessage ? S.confirm(e3.tipMessage, { confirmButtonText: D("superPageRuntimeMessage.sure"), cancelButtonText: D("superPageRuntimeMessage.cancel"), type: "error" }).then(() => {
|
|
79
|
+
w(me.value, X.configure, X.pageContext).then(() => {
|
|
80
|
+
_.success(D("superPageRuntimeMessage.successfulDelete")), Me(), me.value = null;
|
|
80
81
|
});
|
|
81
82
|
}).catch(() => {
|
|
82
|
-
|
|
83
|
-
}) :
|
|
84
|
-
|
|
83
|
+
me.value = null;
|
|
84
|
+
}) : w(me.value, X.configure, X.pageContext).then(() => {
|
|
85
|
+
_.success(D("superPageRuntimeMessage.successfulDelete")), Me(), me.value = null;
|
|
85
86
|
});
|
|
86
87
|
}
|
|
87
|
-
const
|
|
88
|
-
const e3 =
|
|
89
|
-
te.value.remove(
|
|
88
|
+
const Me = () => {
|
|
89
|
+
const e3 = me.value.parent;
|
|
90
|
+
te.value.remove(me.value), e3.childNodes && 0 === e3.childNodes.length && (e3.data.isLeaf = true), e3.data.children && e3.data.children.length > 0 && (e3.data.children = e3.data.children.filter((e4) => e4.nodeId !== me.value.data.nodeId));
|
|
90
91
|
};
|
|
91
|
-
return
|
|
92
|
-
return
|
|
92
|
+
return $2({ getSelectNode: function() {
|
|
93
|
+
return se.value;
|
|
93
94
|
}, expandNode: function(e3) {
|
|
94
95
|
e3.loaded = false, e3.expand();
|
|
95
96
|
}, loadTreeNodes: function() {
|
|
96
|
-
|
|
97
|
+
V(X.pageContext, X.configure).then((e3) => {
|
|
97
98
|
ie.value = false, oe.value = e3;
|
|
98
99
|
});
|
|
99
100
|
}, getNode: function(e3) {
|
|
100
101
|
te.value.getNode(e3);
|
|
101
|
-
}, getCheckedNodes: (e3,
|
|
102
|
+
}, getCheckedNodes: (e3, a2) => te.value.getCheckedNodes(e3, a2), setCheckedNodes: (e3) => {
|
|
102
103
|
te.value.setCheckedNodes(e3);
|
|
103
|
-
}, getCheckedKeys: (e3) => te.value.getCheckedKeysleafOnly(), setCheckedKeys: (e3,
|
|
104
|
-
te.value.setCheckedKeys(e3,
|
|
105
|
-
}, setChecked: (e3,
|
|
106
|
-
te.value.setChecked(e3,
|
|
107
|
-
}, getCurrentKey: () => te.value.getCurrentKey(), getCurrentNode: () => te.value.getCurrentNode(), setCurrentKey: (e3,
|
|
104
|
+
}, getCheckedKeys: (e3) => te.value.getCheckedKeysleafOnly(), setCheckedKeys: (e3, a2) => {
|
|
105
|
+
te.value.setCheckedKeys(e3, a2);
|
|
106
|
+
}, setChecked: (e3, a2, t2) => {
|
|
107
|
+
te.value.setChecked(e3, a2, t2);
|
|
108
|
+
}, getCurrentKey: () => te.value.getCurrentKey(), getCurrentNode: () => te.value.getCurrentNode(), setCurrentKey: (e3, a2 = true) => te.value.setCurrentKey(e3, a2), setCurrentNode: (e3, a2 = true) => te.value.setCurrentNode(e3, a2) }), (a2, t2) => {
|
|
108
109
|
var _a2;
|
|
109
|
-
const
|
|
110
|
-
return
|
|
111
|
-
"" !==
|
|
112
|
-
|
|
113
|
-
}) :
|
|
114
|
-
|
|
115
|
-
})) :
|
|
116
|
-
})(
|
|
117
|
-
|
|
118
|
-
})(
|
|
119
|
-
if (
|
|
120
|
-
else if ("delete" ===
|
|
121
|
-
|
|
110
|
+
const n2 = o("el-input"), l2 = o("el-button"), u2 = o("SuperIcon"), T2 = o("el-tree");
|
|
111
|
+
return d(), s("div", { class: i(["amb-tree-runtime-main", r(ae)]) }, [ne.value.filter ? (d(), c(n2, { key: 0, modelValue: de.value, "onUpdate:modelValue": t2[0] || (t2[0] = (e3) => de.value = e3), style: { width: "100%" }, placeholder: r(D)("superPageRuntimeMessage.pleaseInputSearchCondition") }, null, 8, ["modelValue", "placeholder"])) : p("", true), ue.value ? (d(), c(T2, { key: 1, ref_key: "menuTreeRef", ref: te, style: g(r(ee)), load: fe, data: oe.value, "node-key": "nodeId", props: le.value, "default-expand-all": ne.value.defaultExpandAll, "expand-on-click-node": ne.value.expandOnClickNode, indent: ne.value.retractWidth ? ne.value.retractWidth : 18, accordion: ne.value.accordion, "show-checkbox": !!ne.value.showCheckbox, "highlight-current": "", lazy: Q.value, "filter-node-method": ve, onNodeClick: ge, onNodeContextmenu: he }, { default: f(({ node: a3, data: o2 }) => [o2.nodeId === re.value ? (d(), s("div", W, [m(n2, { modelValue: pe.value, "onUpdate:modelValue": t2[1] || (t2[1] = (e3) => pe.value = e3), size: "small" }, null, 8, ["modelValue"]), h("div", null, [m(l2, { type: "primary", link: "", onClick: (e3) => ((e4) => {
|
|
112
|
+
"" !== pe.value ? (e4.data.name = pe.value, ce.value && e4.data.nodeId === ce.value ? b(e4, X.configure, X.pageContext).then((a4) => {
|
|
113
|
+
Ce(e4, a4.currentNode), xe(), _.success(D("superPageRuntimeMessage.successfulSave"));
|
|
114
|
+
}) : L(e4, X.configure, X.pageContext).then((a4) => {
|
|
115
|
+
Ce(e4, a4.currentNode), xe(), _.success(D("superPageRuntimeMessage.successfulSave"));
|
|
116
|
+
})) : _.warning(D("superPageRuntimeMessage.pleaseInputNodeName"));
|
|
117
|
+
})(a3) }, { default: f(() => [y(C(r(D)("superPageRuntimeMessage.save")), 1)]), _: 1 }, 8, ["onClick"]), m(l2, { style: { "margin-left": "4px" }, type: "primary", link: "", onClick: (t3) => ((e3) => {
|
|
118
|
+
ce.value && e3.data.nodeId === ce.value && te.value.remove(e3), xe();
|
|
119
|
+
})(a3, e2.configure, e2.pageContext) }, { default: f(() => [y(C(r(D)("superPageRuntimeMessage.undo")), 1)]), _: 1 }, 8, ["onClick"])])])) : (d(), s("span", { key: 1, title: a3.label, class: "ellipsis" }, [o2.iconValue ? (d(), c(u2, { key: 0, iconType: o2.iconType, iconValue: o2.iconValue }, null, 8, ["iconType", "iconValue"])) : ne.value.iconValue ? (d(), c(u2, { key: 1, iconType: ne.value.iconType, iconValue: ne.value.iconValue }, null, 8, ["iconType", "iconValue"])) : (d(), s(x, { key: 2 }, [o2.isLeaf ? (d(), s("div", O, [t2[3] || (t2[3] = h("img", { src: I, class: "file" }, null, -1)), h("span", null, C(o2.name), 1)])) : (d(), s("div", B, [h("div", H, [t2[2] || (t2[2] = h("img", { src: M, class: "file" }, null, -1)), h("span", null, C(o2.name), 1)])]))], 64))], 8, z))]), _: 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: A, class: "context-menu" }, [(d(true), s(x, null, k(q.value, (e3, a3) => (d(), s("li", { key: a3, tabindex: "-1", class: "menu__item", onClick: (a4) => ((e4) => {
|
|
120
|
+
if (me.value && "standard" === e4.type && e4.standardEvent) if ("edit" === e4.standardEvent) re.value = me.value.data.nodeId, pe.value = me.value.data.name;
|
|
121
|
+
else if ("delete" === e4.standardEvent) me.value.childNodes && me.value.childNodes.length > 0 && e4.deleteParentNodeTip ? (e4.deleteParentNodeTipMessage || (e4.deleteParentNodeTipMessage = D("superPageRuntimeMessage.confirmDeleteNodeWithChildren")), S.confirm(e4.deleteParentNodeTipMessage, { confirmButtonText: D("superPageRuntimeMessage.sure"), cancelButtonText: D("superPageRuntimeMessage.cancel"), type: "error" }).then(() => {
|
|
122
|
+
Ne(e4);
|
|
122
123
|
}).catch(() => {
|
|
123
|
-
|
|
124
|
-
})) :
|
|
124
|
+
me.value = null;
|
|
125
|
+
})) : Ne(e4);
|
|
125
126
|
else {
|
|
126
|
-
const
|
|
127
|
-
|
|
127
|
+
const a5 = ke();
|
|
128
|
+
re.value = a5.nodeId, ce.value = a5.nodeId, pe.value = a5.name, "addSiblingNode" === e4.standardEvent ? (a5.isLeaf = me.value.data.isLeaf, me.value.parent && me.value.parent.level > 0 ? te.value.append(a5, me.value.parent) : oe.value.push(a5)) : "addChildNode" === e4.standardEvent && (a5.isLeaf = true, me.value.data.isLeaf = false, te.value.append(a5, me.value), te.value.setCurrentKey(a5.nodeId, true));
|
|
128
129
|
}
|
|
129
|
-
})(
|
|
130
|
+
})(e3) }, [h("span", null, C(e3.name), 1)], 8, U))), 128))], 512)], 512), [[N, F.value && ((_a2 = q.value) == null ? void 0 : _a2.length) > 0]])], 2);
|
|
130
131
|
};
|
|
131
132
|
} });
|
|
132
133
|
export {
|
|
133
|
-
|
|
134
|
+
$ as default
|
|
134
135
|
};
|
|
@@ -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
|
+
} }), (t2, l2) => {
|
|
60
|
+
const o2 = a("el-checkbox"), n2 = a("el-checkbox-group"), b2 = a("el-form-item");
|
|
61
|
+
return i(), u(b2, { 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(n2, { ref_key: "componentRef", ref: Y, disabled: "disabled" === B.value.state, size: B.value.size, onChange: B.value.changeMethod, modelValue: M.value, "onUpdate:modelValue": l2[0] || (l2[0] = (e3) => M.value = e3) }, { default: f(() => [(i(true), v(d, null, m(G.value, (t3) => (i(), u(o2, { key: t3.value, value: t3.value, label: t3.label, onClick: (l3) => c(I)(t3.value, e2.pageContext, e2.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 {
|
|
@@ -28,9 +28,9 @@ const x = e({ __name: "title-suffix-element", props: { pageContext: {}, property
|
|
|
28
28
|
const r2 = l2.indexOf(h);
|
|
29
29
|
e3 ? -1 == r2 && l2.push(h) : r2 > -1 && l2.splice(r2, 1), y(c, d, l2);
|
|
30
30
|
} else y(c, d, e3);
|
|
31
|
-
} })), (
|
|
32
|
-
const
|
|
33
|
-
return p(), t(o, null, ["radio" ===
|
|
31
|
+
} })), (l2, s2) => {
|
|
32
|
+
const y2 = r("el-radio"), f2 = r("el-checkbox");
|
|
33
|
+
return p(), t(o, null, ["radio" === e2.property.prefixType ? (p(), u(y2, { key: 0, value: e2.property.prefixValue, label: e2.property.title, modelValue: i(b), "onUpdate:modelValue": s2[0] || (s2[0] = (e3) => n(b) ? b.value = e3 : b = e3) }, null, 8, ["value", "label", "modelValue"])) : a("", true), "checkbox" === e2.property.prefixType ? (p(), u(f2, { key: 1, label: e2.property.title, value: e2.property.prefixValue, modelValue: i(b), "onUpdate:modelValue": s2[1] || (s2[1] = (e3) => n(b) ? b.value = e3 : b = e3) }, null, 8, ["label", "value", "modelValue"])) : a("", true)], 64);
|
|
34
34
|
};
|
|
35
35
|
} });
|
|
36
36
|
export {
|