super-page-runtime 2.3.40-sit1 → 2.3.40
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 +34 -33
- package/dist/es/components/runtime/utils/events/standard-event.d.ts +8 -1
- package/dist/es/components/runtime/utils/events/standard-event.js +104 -104
- package/dist/es/components/runtime/utils/events/validator-util.js +72 -69
- package/dist/es/components/runtime/utils/page-helper-util.d.ts +7 -0
- package/dist/es/components/runtime/utils/page-helper-util.js +4 -0
- package/dist/es/components/runtime/utils/page-init-util.js +28 -26
- package/dist/es/components/runtime/utils/page-store.js +9 -9
- 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 +100 -95
- 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/common/task-informition-dialog.vue.js +7 -7
- 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.vue2.js +3 -3
- 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.vue2.js +16 -16
- package/dist/es/components/runtime/views/assemblys/form/checkbox/checkbox-runtime.vue2.js +39 -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 +6 -6
- package/dist/es/components/runtime/views/assemblys/form/date-picker/datepicker-runtime.vue2.js +33 -33
- 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 +7 -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 +7 -5
- package/dist/es/components/runtime/views/assemblys/form/link/link-runtime.vue2.js +6 -4
- package/dist/es/components/runtime/views/assemblys/form/radio/radio-runtime.vue2.js +49 -47
- 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.vue.js +1 -1
- package/dist/es/components/runtime/views/assemblys/form/select/select-runtime.vue2.js +90 -89
- 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 -8
- 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 +1 -1
- 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 +1 -0
- package/dist/es/components/runtime/views/super-page.vue.js +1 -1
- package/dist/es/components/runtime/views/super-page.vue2.js +115 -114
- package/dist/es/i18n/langs/cn.js +1 -1
- package/dist/es/i18n/langs/en.js +1 -1
- package/dist/es/style.css +87 -87
- package/package.json +2 -2
|
@@ -1,20 +1,20 @@
|
|
|
1
|
-
import { defineComponent as e, ref as o, createBlock as n, openBlock as
|
|
2
|
-
import { getRuntimeComponentByName as
|
|
3
|
-
import
|
|
4
|
-
const
|
|
5
|
-
const
|
|
6
|
-
|
|
1
|
+
import { defineComponent as e, ref as o, createBlock as n, openBlock as r, resolveDynamicComponent as t, mergeProps as l, nextTick as u, markRaw as a } from "vue";
|
|
2
|
+
import { getRuntimeComponentByName as c } from "../../../utils/assemblys-config.js";
|
|
3
|
+
import s from "../error-render.vue.js";
|
|
4
|
+
const m = e({ __name: "event-call-component", setup(e2, { expose: m2 }) {
|
|
5
|
+
const p = o(null), v = o({}), f = () => {
|
|
6
|
+
p.value = null, v.value = {};
|
|
7
7
|
};
|
|
8
|
-
return
|
|
8
|
+
return m2({ renderComponent: async function(e3, o2) {
|
|
9
9
|
try {
|
|
10
|
-
|
|
11
|
-
const n2 =
|
|
12
|
-
|
|
10
|
+
p.value = null, v.value = o2 || {}, await u();
|
|
11
|
+
const n2 = c(e3);
|
|
12
|
+
p.value = !n2 || "object" != typeof n2 && "function" != typeof n2 ? s : a(n2);
|
|
13
13
|
} catch (e4) {
|
|
14
|
-
|
|
14
|
+
console.error("event-call-component renderedComponent error", e4), p.value = s;
|
|
15
15
|
}
|
|
16
|
-
} }), (e3, o2) => (
|
|
16
|
+
} }), (e3, o2) => (r(), n(t(p.value), l(v.value, { onDestroy: f }), null, 16));
|
|
17
17
|
} });
|
|
18
18
|
export {
|
|
19
|
-
|
|
19
|
+
m as default
|
|
20
20
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as e, ref as t, onMounted as a, resolveComponent as l, createBlock as o, openBlock as u, withCtx as
|
|
1
|
+
import { defineComponent as e, ref as t, onMounted as a, resolveComponent as l, createBlock as o, openBlock as u, withCtx as n, createVNode as i, createTextVNode as p, toDisplayString as r } from "vue";
|
|
2
2
|
import { packageTemplateFiles as s } from "../../../utils/common-util.js";
|
|
3
3
|
import { ElMessage as m } from "element-plus";
|
|
4
4
|
const c = "${", d = "}", g = e({ __name: "export-form-report-dialog", props: { configure: { type: Object, required: true }, pageContext: { type: Object, required: true } }, emits: ["export", "close"], setup(e2, { emit: g2 }) {
|
|
@@ -7,7 +7,7 @@ const c = "${", d = "}", g = e({ __name: "export-form-report-dialog", props: { c
|
|
|
7
7
|
function w(e3) {
|
|
8
8
|
let t2, a2, l2 = e3;
|
|
9
9
|
const o2 = l2.indexOf(c), u2 = l2.indexOf(d);
|
|
10
|
-
return -1 !== o2 && -1 !== u2 ? (o2 > u2 ? l2 = l2.substring(0, u2) + l2.substring(u2 + 1) : (t2 = l2.substring(o2 + 2, u2), a2 = l2.substring(o2, u2 + 1), h.value.push(t2), l2 = l2.replace(a2, "")), w(l2)) : h.value;
|
|
10
|
+
return -1 !== o2 && -1 !== u2 ? (o2 > u2 ? l2 = l2.substring(0, u2) + l2.substring(u2 + 1) : (t2 = l2.substring(o2 + 2, u2), a2 = l2.substring(o2, u2 + 1), h.value.push(t2), h.value, l2 = l2.replace(a2, "")), w(l2)) : h.value;
|
|
11
11
|
}
|
|
12
12
|
function N(e3) {
|
|
13
13
|
x("export", f.configure, e3);
|
|
@@ -17,16 +17,18 @@ const c = "${", d = "}", g = e({ __name: "export-form-report-dialog", props: { c
|
|
|
17
17
|
}
|
|
18
18
|
return a(() => {
|
|
19
19
|
C.templateFiles && C.templateFiles.length > 0 ? b.value = s(C.templateFiles, f.pageContext, f.configure) : C.templateUuid && C.templateName && b.value.push({ templateUuid: C.templateUuid, templateName: C.templateName }), b.value.forEach((e3) => {
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
20
|
+
e3 && e3.templateName && (e3.templateName = function(e4) {
|
|
21
|
+
const t2 = w(e4);
|
|
22
|
+
return t2.forEach((t3) => {
|
|
23
|
+
const a2 = c + t3 + d;
|
|
24
|
+
let l2;
|
|
25
|
+
-1 !== e4.indexOf(a2) && Object.prototype.hasOwnProperty.call(y, t3) && (l2 = y[t3] ? y[t3] : "", e4 = e4.replace(a2, l2));
|
|
26
|
+
}), e4;
|
|
27
|
+
}(e3.templateName));
|
|
26
28
|
}), b.value && 0 !== b.value.length || (m({ message: "无符合条件可导出的模板!", type: "warning" }), x("close")), 1 === (b == null ? void 0 : b.value.length) ? (N(b.value[0]), x("close")) : v.value = true;
|
|
27
29
|
}), (e3, t2) => {
|
|
28
30
|
const a2 = l("el-table-column"), s2 = l("el-button"), m2 = l("el-table"), c2 = l("el-dialog");
|
|
29
|
-
return u(), o(c2, { modelValue: v.value, "onUpdate:modelValue": t2[0] || (t2[0] = (e4) => v.value = e4), "show-close": true, "append-to-body": true, title: e3.$t("superPageRuntimeMessage.selectTemplate"), onClose: O }, { default:
|
|
31
|
+
return u(), o(c2, { modelValue: v.value, "onUpdate:modelValue": t2[0] || (t2[0] = (e4) => v.value = e4), "show-close": true, "append-to-body": true, title: e3.$t("superPageRuntimeMessage.selectTemplate"), onClose: O }, { default: n(() => [i(m2, { data: b.value, style: { width: "100%" } }, { default: n(() => [i(a2, { label: e3.$t("superPageRuntimeMessage.temlpate"), prop: "templateShowPath" }, { default: n((e4) => [p(r(e4.row.templateName), 1)]), _: 1 }, 8, ["label"]), i(a2, { label: e3.$t("superPageRuntimeMessage.operating"), width: "200", fixed: "right" }, { default: n((t3) => [i(s2, { type: "text", size: "small", onClick: (e4) => N(t3.row), loading: void 0 !== f.pageContext.canClick && void 0 !== f.pageContext.clickUuid && !f.pageContext.canClick && f.pageContext.clickUuid === f.configure.uuid }, { default: n(() => [p(r(e3.$t("superPageRuntimeMessage.export")), 1)]), _: 1 }, 8, ["onClick", "loading"])]), _: 1 }, 8, ["label"])]), _: 1 }, 8, ["data"])]), _: 1 }, 8, ["modelValue", "title"]);
|
|
30
32
|
};
|
|
31
33
|
} });
|
|
32
34
|
export {
|
package/dist/es/components/runtime/views/assemblys/common/save-chart-condition-dialog.vue.js
CHANGED
|
@@ -27,7 +27,7 @@ const f = { class: "dialog-footer" }, v = e({ __name: "save-chart-condition-dial
|
|
|
27
27
|
p({ showClose: true, type: "success", message: C("superPageRuntimeMessage.successfulDelete") }), $();
|
|
28
28
|
});
|
|
29
29
|
var l3;
|
|
30
|
-
} }, { default: u(() => [s(y2)]), _:
|
|
30
|
+
} }, { default: u(() => [s(y2)]), _: 1 }, 8, ["onClick"])]), _: 1 }, 8, ["label"])]), _: 1 }, 8, ["data"])]), _: 1 }, 8, ["title"])]);
|
|
31
31
|
};
|
|
32
32
|
} });
|
|
33
33
|
export {
|
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
import { defineComponent as e, ref as l, resolveComponent as t, createElementBlock as a, openBlock as o, createVNode as n, withCtx as s, createTextVNode as u, toDisplayString as
|
|
1
|
+
import { defineComponent as e, ref as l, resolveComponent as t, createElementBlock as a, openBlock as o, createVNode as n, withCtx as s, createTextVNode as u, toDisplayString as i, createElementVNode as d } from "vue";
|
|
2
2
|
import { ElMessage as r } from "element-plus";
|
|
3
|
-
import { useI18n as
|
|
4
|
-
const
|
|
5
|
-
const { t: f } =
|
|
3
|
+
import { useI18n as m } from "vue-i18n";
|
|
4
|
+
const p = { class: "dialog-footer" }, c = e({ __name: "task-informition-dialog", props: { taskInformitions: { type: Array, default: null } }, emits: ["open", "opend", "close", "closed", "result"], setup(e2, { emit: c2 }) {
|
|
5
|
+
const { t: f } = m(), g = e2, b = c2, v = l(null), h = l();
|
|
6
6
|
function y() {
|
|
7
7
|
v.value ? b("result", v.value) : r({ showClose: true, type: "warning", message: f("superPageRuntimeMessage.pleaseSelectNode") });
|
|
8
8
|
}
|
|
9
|
-
function
|
|
9
|
+
function _(e3) {
|
|
10
10
|
v.value = g.taskInformitions[e3];
|
|
11
11
|
}
|
|
12
12
|
return (l2, r2) => {
|
|
13
|
-
const
|
|
14
|
-
return o(), a("div", null, [n(v2, { "model-value": "", title: l2.$t("superPageRuntimeMessage.selectNode"), "close-on-click-modal": false, "append-to-body": "", width: "50%", "max-height": "400", onOpen: r2[2] || (r2[2] = (e3) => b("open")), onOpend: r2[3] || (r2[3] = (e3) => b("opend")), onClose: r2[4] || (r2[4] = (e3) => b("close")), onClosed: r2[5] || (r2[5] = (e3) => b("closed")) }, { footer: s(() => [
|
|
13
|
+
const m2 = t("el-radio"), c3 = t("el-table-column"), f2 = t("el-table"), g2 = t("el-button"), v2 = t("el-dialog");
|
|
14
|
+
return o(), a("div", null, [n(v2, { "model-value": "", title: l2.$t("superPageRuntimeMessage.selectNode"), "close-on-click-modal": false, "append-to-body": "", width: "50%", "max-height": "400", onOpen: r2[2] || (r2[2] = (e3) => b("open")), onOpend: r2[3] || (r2[3] = (e3) => b("opend")), onClose: r2[4] || (r2[4] = (e3) => b("close")), onClosed: r2[5] || (r2[5] = (e3) => b("closed")) }, { footer: s(() => [d("div", p, [n(g2, { type: "primary", onClick: y }, { default: s(() => [u(i(l2.$t("superPageRuntimeMessage.sure")), 1)]), _: 1 }), n(g2, { type: "default", onClick: r2[1] || (r2[1] = (e3) => b("close")) }, { default: s(() => [u(i(l2.$t("superPageRuntimeMessage.cancel")), 1)]), _: 1 })])]), default: s(() => [n(f2, { data: e2.taskInformitions, border: "", style: { width: "100%" } }, { default: s(() => [n(c3, { fixed: "", width: "60" }, { default: s((e3) => [n(m2, { modelValue: h.value, "onUpdate:modelValue": r2[0] || (r2[0] = (e4) => h.value = e4), label: e3.$index, onChange: _ }, { default: s(() => [u(i(e3.$index + 1), 1)]), _: 2 }, 1032, ["modelValue", "label"])]), _: 1 }), n(c3, { prop: "nodeName", label: l2.$t("superPageRuntimeMessage.nodeName"), width: "180" }, null, 8, ["label"]), n(c3, { prop: "transactorNames", label: l2.$t("superPageRuntimeMessage.transactorNames") }, null, 8, ["label"])]), _: 1 }, 8, ["data"])]), _: 1 }, 8, ["title"])]);
|
|
15
15
|
};
|
|
16
16
|
} });
|
|
17
17
|
export {
|
|
@@ -26,9 +26,9 @@ const _ = e({ __name: "card-runtime", props: { pageContext: {}, configure: {} },
|
|
|
26
26
|
});
|
|
27
27
|
}), _2({ test: function() {
|
|
28
28
|
R.configure.props.title = "teee";
|
|
29
|
-
} }), (
|
|
30
|
-
const
|
|
31
|
-
return s(), l(a(b), { ref_key: "thisRef", ref: E, style: p(a(B)), "data-collapse": String(q.value), class: u(["yx-card-box-view-main", a(F)]) }, c({ default: f(() => [g("div", { class: "yx-card-box-view-context", style: p(a(H)) }, [(s(true), m(y, null, d(
|
|
29
|
+
} }), (o2, t2) => {
|
|
30
|
+
const i2 = r("el-link");
|
|
31
|
+
return s(), l(a(b), { ref_key: "thisRef", ref: E, style: p(a(B)), "data-collapse": String(q.value), class: u(["yx-card-box-view-main", a(F)]) }, c({ default: f(() => [g("div", { class: "yx-card-box-view-context", style: p(a(H)) }, [(s(true), m(y, null, d(e2.configure.items, (o3, t3) => (s(), l(w, { key: o3.uuid, pageContext: e2.pageContext, configure: o3 }, null, 8, ["pageContext", "configure"]))), 128))], 4)]), _: 2 }, [e2.configure.props.base.tittleShow ? { name: "header", fn: f(() => [g("div", { class: "yx-card-box-view-header", onClick: I }, [g("div", { class: "yx-card-box-view-title", style: p(a(G)) }, [e2.configure.props.iconType && e2.configure.props.iconValue ? (s(), l(a(h), { key: 0, iconType: e2.configure.props.iconType, iconValue: e2.configure.props.iconValue, style: { "margin-right": "2px" } }, null, 8, ["iconType", "iconValue"])) : x("", true), v(" " + C(z.value), 1)], 4), D.value ? (s(), l(i2, { key: 0, underline: false, icon: q.value ? a(k) : a(T), style: { margin: "-15px 0", "z-index": "1" } }, null, 8, ["icon"])) : x("", true)])]), key: "0" } : void 0]), 1032, ["style", "data-collapse", "class"]);
|
|
32
32
|
};
|
|
33
33
|
} });
|
|
34
34
|
export {
|
package/dist/es/components/runtime/views/assemblys/container/collapse/collapse-runtime.vue2.js
CHANGED
|
@@ -11,9 +11,9 @@ const _ = e({ __name: "collapse-runtime", props: { pageContext: {}, configure: {
|
|
|
11
11
|
o(() => {
|
|
12
12
|
j(null, _2.pageContext, _2.configure, { componentRef: b.value, entity: _2.pageContext.entity.data, pageData: _2.pageContext.entity.page });
|
|
13
13
|
});
|
|
14
|
-
}), (
|
|
15
|
-
const
|
|
16
|
-
return u(), i(
|
|
14
|
+
}), (t2, n2) => {
|
|
15
|
+
const o2 = l("SuperIcon"), j2 = l("el-collapse-item"), _3 = l("el-collapse");
|
|
16
|
+
return u(), i(_3, { ref_key: "thisRef", ref: b, modelValue: a(h), "onUpdate:modelValue": n2[0] || (n2[0] = (e3) => s(h) ? h.value = e3 : null), style: p(a(O)), accordion: a(T), class: r(a(R)) }, { default: c(() => [(u(true), f(g, null, m(e2.configure.items, (t3, n3) => (u(), i(j2, { name: t3.index }, { title: c(() => [d("div", { style: p([a(S), { width: "100%" }]) }, [t3.iconType && t3.iconValue ? (u(), i(o2, { key: 0, iconType: t3.iconType, iconValue: t3.iconValue, style: { "margin-right": "2px" } }, null, 8, ["iconType", "iconValue"])) : y("", true), x(" " + v(a(V)(t3.label)), 1)], 4)]), default: c(() => [d("div", null, [(u(true), f(g, null, m(t3.items, (t4, n4) => (u(), i(C, { key: t4.uuid, configure: t4, pageContext: e2.pageContext }, null, 8, ["configure", "pageContext"]))), 128))])]), _: 2 }, 1032, ["name"]))), 256))]), _: 1 }, 8, ["modelValue", "style", "accordion", "class"]);
|
|
17
17
|
};
|
|
18
18
|
} });
|
|
19
19
|
export {
|
package/dist/es/components/runtime/views/assemblys/container/container/container-runtime.vue2.js
CHANGED
|
@@ -8,9 +8,9 @@ const C = e({ __name: "container-runtime", props: { pageContext: {}, configure:
|
|
|
8
8
|
o(() => {
|
|
9
9
|
d(null, C2.pageContext, C2.configure, { componentRef: _.value, entity: C2.pageContext.entity.data, pageData: C2.pageContext.entity.page });
|
|
10
10
|
});
|
|
11
|
-
}), (
|
|
12
|
-
const
|
|
13
|
-
return i(), l(
|
|
11
|
+
}), (t2, n2) => {
|
|
12
|
+
const o2 = u("el-aside"), d2 = u("el-main"), C3 = u("el-container");
|
|
13
|
+
return i(), l(C3, { ref_key: "thisRef", ref: _ }, { default: r(() => [e2.configure.props.useLeft ? (i(), l(o2, { key: 0, style: g(f(v)) }, { default: r(() => [(i(true), p(c, null, y(e2.configure.leftAslides, (t3, n3) => (i(), l(x, { key: t3.uuid, pageContext: e2.pageContext, configure: t3 }, null, 8, ["pageContext", "configure"]))), 128))]), _: 1 }, 8, ["style"])) : s("", true), a(d2, { style: g(f(j)), class: m(f(R)) }, { default: r(() => [(i(true), p(c, null, y(e2.configure.items, (t3, n3) => (i(), l(x, { key: t3.uuid, pageContext: e2.pageContext, configure: t3 }, null, 8, ["pageContext", "configure"]))), 128))]), _: 1 }, 8, ["style", "class"]), e2.configure.props.useRight ? (i(), l(o2, { key: 1, style: g(f(h)) }, { default: r(() => [(i(true), p(c, null, y(e2.configure.rightAslides, (t3, n3) => (i(), l(x, { key: t3.uuid, pageContext: e2.pageContext, configure: t3 }, null, 8, ["pageContext", "configure"]))), 128))]), _: 1 }, 8, ["style"])) : s("", true)]), _: 1 }, 512);
|
|
14
14
|
};
|
|
15
15
|
} });
|
|
16
16
|
export {
|
|
@@ -19,6 +19,7 @@ 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);
|
|
22
23
|
}
|
|
23
24
|
}, R = (e3, t2) => {
|
|
24
25
|
var _a;
|
|
@@ -55,6 +56,7 @@ const p = e({ __name: "YxAffix", props: { offset: { type: Number, default: 0 },
|
|
|
55
56
|
})();
|
|
56
57
|
b.value = e3, T.value = e3[0], b.value.forEach((e4) => e4.addEventListener("scroll", z)), window.addEventListener("resize", L), S();
|
|
57
58
|
} catch (e3) {
|
|
59
|
+
console.error(e3);
|
|
58
60
|
}
|
|
59
61
|
});
|
|
60
62
|
}, 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
|
+
}), (t2, n2) => {
|
|
19
|
+
const s2 = l("el-col"), C2 = l("el-row");
|
|
20
|
+
return o(), i(C2, { 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(e2.configure.items, (t3, n3) => c((o(), i(s2, { key: t3.uuid, style: u(t3.itemStyle), span: t3.flexSpan }, { default: f(() => [y(d, { pageContext: e2.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
|
+
}), (t2, i2) => {
|
|
19
|
+
const o2 = s("el-form");
|
|
20
|
+
return l(), n("div", null, [r(o2, { 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(e2.configure.items, (t3, i3) => (l(), y(v, { key: t3.uuid, pageContext: e2.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 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
|
|
@@ -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
|
+
} }), (n2, t2) => {
|
|
90
|
+
const o2 = i("el-button");
|
|
91
|
+
return l(), c(u(x), { ref_key: "thisRef", ref: P, modelValue: A.value, "onUpdate:modelValue": t2[0] || (t2[0] = (e3) => A.value = e3), type: e2.configure.props.cardType, "tab-position": e2.configure.props.tabPosition, style: s(u(R)), class: r([u(B), "runtime-page-container-tabs-view"]), closable: e2.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: !!e2.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(() => [(e2.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: e2.pageContext, configure: n4 }, null, 8, ["pageContext", "configure"]))), 128)) : g("", true)]), _: 2 }, 1032, ["label", "name", "lazy"]))), 128)), e2.configure.props.resetable ? (l(), c(u(C), { key: 0, disabled: "", name: "-1" }, { label: p(() => [e2.configure.props.resetable ? (l(), c(o2, { key: 0, type: "text", circle: "", onClick: v(H, ["stop"]) }, { default: p(() => [h(y(e2.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 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 {
|
|
@@ -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, window.addEventListener("message", Fe), H.$on(de + "-close-component-page-dialog", function({ jumpInfo: e4, popEntity: t2, popPageCode: n2 }) {
|
|
287
|
+
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 }) {
|
|
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");
|
|
@@ -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
|
+
} }), (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"]))]));
|
|
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) }), (t2, a2) => {
|
|
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 n2 = d("el-input"), l2 = d("el-button"), o2 = d("SuperIcon"), V2 = d("el-tree");
|
|
110
|
+
return i(), u("div", { class: s(["amb-tree-runtime-main", r(ee)]) }, [ae.value.filter ? (i(), c(n2, { key: 0, modelValue: ue.value, "onUpdate:modelValue": a2[0] || (a2[0] = (e3) => ue.value = e3), style: { width: "100%" }, placeholder: "请输入查询条件" }, null, 8, ["modelValue"])) : p("", true), le.value ? (i(), c(V2, { 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: t3, data: d2 }) => [d2.nodeId === se.value ? (i(), u("div", P, [m(n2, { modelValue: ce.value, "onUpdate:modelValue": a2[1] || (a2[1] = (e3) => ce.value = e3), size: "small" }, null, 8, ["modelValue"]), h("div", null, [m(l2, { type: "primary", link: "", onClick: (e3) => ((e4) => {
|
|
111
|
+
"" !== ce.value ? (e4.data.name = ce.value, re.value && e4.data.nodeId === re.value ? w(e4, X.configure, X.pageContext).then((t4) => {
|
|
112
|
+
ye(e4, t4.currentNode), Ce(), z.success("保存成功!");
|
|
113
|
+
}) : E(e4, X.configure, X.pageContext).then((t4) => {
|
|
114
|
+
ye(e4, t4.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
|
+
})(t3) }, { default: g(() => [...a2[2] || (a2[2] = [y(" 保存 ", -1)])]), _: 1 }, 8, ["onClick"]), m(l2, { style: { "margin-left": "4px" }, type: "primary", link: "", onClick: (a3) => ((e3) => {
|
|
117
|
+
re.value && e3.data.nodeId === re.value && te.value.remove(e3), Ce();
|
|
118
|
+
})(t3, e2.configure, e2.pageContext) }, { default: g(() => [...a2[3] || (a2[3] = [y(" 撤销 ", -1)])]), _: 1 }, 8, ["onClick"])])])) : (i(), u("span", { key: 1, title: t3.label, class: "ellipsis" }, [d2.iconValue ? (i(), c(o2, { key: 0, iconType: d2.iconType, iconValue: d2.iconValue }, null, 8, ["iconType", "iconValue"])) : ae.value.iconValue ? (i(), c(o2, { 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, [a2[5] || (a2[5] = h("img", { src: I, class: "file" }, null, -1)), h("span", null, x(d2.name), 1)])) : (i(), u("div", R, [h("div", D, [a2[4] || (a2[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, (e3, t3) => (i(), u("li", { key: t3, tabindex: "-1", class: "menu__item", onClick: (t4) => ((e4) => {
|
|
119
|
+
if (ge.value && "standard" === e4.type && e4.standardEvent) if ("edit" === e4.standardEvent) se.value = ge.value.data.nodeId, ce.value = ge.value.data.name;
|
|
120
|
+
else if ("delete" === e4.standardEvent) ge.value.childNodes && ge.value.childNodes.length > 0 && e4.deleteParentNodeTip ? (e4.deleteParentNodeTipMessage || (e4.deleteParentNodeTipMessage = "当前节点下有子节点,确认删除?"), S.confirm(e4.deleteParentNodeTipMessage, { confirmButtonText: "确定", cancelButtonText: "取消", type: "error" }).then(() => {
|
|
121
|
+
ke(e4);
|
|
122
122
|
}).catch(() => {
|
|
123
123
|
ge.value = null;
|
|
124
|
-
})) : ke(
|
|
124
|
+
})) : ke(e4);
|
|
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" === e4.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" === e4.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
|
+
})(e3) }, [h("span", null, x(e3.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 {
|
|
@@ -1,64 +1,66 @@
|
|
|
1
|
-
import { defineComponent as e, ref as t, computed as l, onMounted as o, nextTick as n, resolveComponent as a, createBlock as u, openBlock as i, normalizeStyle as r, normalizeClass as s, unref as
|
|
2
|
-
import { setVariableValue as b, getVariableValue as x, getOptionDatasFromPage as C,
|
|
3
|
-
import { getFormModelFields as
|
|
4
|
-
import { handleFormEvent as
|
|
5
|
-
import { $t as
|
|
6
|
-
import { addRequiredClassUtil as
|
|
7
|
-
const
|
|
8
|
-
const
|
|
9
|
-
let
|
|
10
|
-
const
|
|
11
|
-
let e3 = x(
|
|
1
|
+
import { defineComponent as e, ref as t, computed as l, onMounted as o, nextTick as n, resolveComponent as a, createBlock as u, openBlock as i, normalizeStyle as r, normalizeClass as s, unref as c, createSlots as p, withCtx as f, createVNode as g, createElementBlock as v, Fragment as d, renderList as m, createElementVNode as h, toDisplayString as y } from "vue";
|
|
2
|
+
import { setVariableValue as b, getVariableValue as x, getOptionDatasFromPage as C, putToOptionSourceMap as k, monitorFieldChange as S, autoSetAfterSelect as j, queryOptionDatasources as R } from "../../../../utils/page-helper-util.js";
|
|
3
|
+
import { getFormModelFields as _ } from "../../../../utils/page-init-util.js";
|
|
4
|
+
import { handleFormEvent as I, handleAfterInitEvent as q } from "../../../../utils/events/event-util.js";
|
|
5
|
+
import { $t as V } from "../../../../utils/i18n-util.js";
|
|
6
|
+
import { addRequiredClassUtil as w } from "../../../../utils/common-util.js";
|
|
7
|
+
const z = e({ __name: "checkbox-runtime", props: { pageContext: {}, configure: {} }, setup(e2, { expose: z2 }) {
|
|
8
|
+
const D = e2, E = t(null), O = D.pageContext.entity ? D.pageContext.entity : {};
|
|
9
|
+
let A = _(D.pageContext, D.configure);
|
|
10
|
+
const M = l({ get() {
|
|
11
|
+
let e3 = x(O, A);
|
|
12
12
|
return e3 && "string" == typeof e3 && (e3 = e3.split(",")), e3;
|
|
13
13
|
}, set(e3) {
|
|
14
|
-
e3 && e3.length > 0 && (e3 = e3.join(",")), b(
|
|
15
|
-
} }),
|
|
16
|
-
|
|
17
|
-
const
|
|
18
|
-
let
|
|
19
|
-
if (
|
|
20
|
-
|
|
21
|
-
|
|
14
|
+
e3 && e3.length > 0 && (e3 = e3.join(",")), b(O, A, e3), null != e3 && (E.value = "");
|
|
15
|
+
} }), P = D.configure.runtime ? D.configure.runtime : {}, T = P.style, F = P.class, U = P.headerStyle, W = P.titleExceedStyle, B = t(P.props ? P.props : {}), G = t(B.value.options ? B.value.options : []), H = C(D.pageContext, D.configure);
|
|
16
|
+
H.length > 0 && (G.value = H);
|
|
17
|
+
const J = D.configure.props && D.configure.props.dataOrigin ? D.configure.props.dataOrigin : {}, K = J.optionValueSetType;
|
|
18
|
+
let L = [];
|
|
19
|
+
if ("dynamicData" == K || "dynamicData" == K || "service" == K) {
|
|
20
|
+
if (J.autoSets) for (let e3 of J.autoSets) e3.source && L.push(e3);
|
|
21
|
+
} else "static" == K && k(D.pageContext, D.configure.uuid, G.value);
|
|
22
|
+
D.configure && D.configure.props && D.configure.props.base && D.configure.props.base.optionProp && L.push({ source: "label", target: D.configure.props.base.optionProp }), B.value.changeMethod = function(e3) {
|
|
23
|
+
if (L.length > -1) {
|
|
22
24
|
let t2 = null;
|
|
23
|
-
|
|
25
|
+
G.value && null != e3 && null != e3 && (t2 = G.value.filter((t3) => Array.isArray(e3) ? e3.includes(t3.value) : e3 === t3.value)), j(D.configure, D.pageContext, L, t2);
|
|
24
26
|
}
|
|
25
|
-
|
|
27
|
+
I(e3, D.pageContext, D.configure, "change");
|
|
26
28
|
};
|
|
27
|
-
const
|
|
28
|
-
const
|
|
29
|
-
|
|
30
|
-
|
|
29
|
+
const N = B.value.optionconfigInfo ? B.value.optionconfigInfo : {};
|
|
30
|
+
const Q = B.value.monitorFields;
|
|
31
|
+
S(D.pageContext, Q, function() {
|
|
32
|
+
R(D.pageContext, N, void 0).then((e3) => {
|
|
31
33
|
});
|
|
32
34
|
});
|
|
33
|
-
const
|
|
35
|
+
const X = t(null), Y = t(null), Z = t(null);
|
|
34
36
|
return o(() => {
|
|
35
37
|
n(() => {
|
|
36
|
-
const e3 =
|
|
37
|
-
|
|
38
|
+
const e3 = M.value;
|
|
39
|
+
q(e3, D.pageContext, D.configure, { formItemRef: X.value, componentRef: Y.value, titleRef: Z.value, value: e3, entity: D.pageContext.entity.data, pageData: D.pageContext.entity.page });
|
|
38
40
|
});
|
|
39
|
-
}),
|
|
40
|
-
|
|
41
|
+
}), z2({ updateOptions: function(e3) {
|
|
42
|
+
G.value = e3 || [];
|
|
41
43
|
}, addRequiredClass: function() {
|
|
42
|
-
|
|
44
|
+
E.value = w();
|
|
43
45
|
}, getSelectItemsTitle: function() {
|
|
44
46
|
const e3 = function() {
|
|
45
|
-
let e4 = x(
|
|
47
|
+
let e4 = x(O, A);
|
|
46
48
|
return null != e4 && (e4 = String(e4)), e4;
|
|
47
49
|
}();
|
|
48
50
|
if (null != e3 && "" !== e3 && e3.length > 0) {
|
|
49
51
|
let t2 = "";
|
|
50
52
|
const l2 = e3.split(",");
|
|
51
|
-
return
|
|
53
|
+
return G.value.length > 0 ? (G.value.forEach((e4) => {
|
|
52
54
|
l2.forEach((l3) => {
|
|
53
55
|
e4.value === l3 && (t2 = t2 + e4.label + ",");
|
|
54
56
|
});
|
|
55
57
|
}), t2 = t2.slice(0, t2.length - 1)) : t2 = e3.join(","), t2;
|
|
56
58
|
}
|
|
57
|
-
} }), (
|
|
58
|
-
const
|
|
59
|
-
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"]);
|
|
60
62
|
};
|
|
61
63
|
} });
|
|
62
64
|
export {
|
|
63
|
-
|
|
65
|
+
z as default
|
|
64
66
|
};
|
|
@@ -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 {
|