super-page-designer 2.3.12-sit1-design2 → 2.3.13-rc1-design1
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/design/utils/assemblys-config.js +54 -53
- package/dist/es/components/design/utils/chart-design-util.js +27 -27
- package/dist/es/components/design/utils/page-event-util.js +1 -0
- package/dist/es/components/design/utils/page-i18n-util.js +6 -5
- package/dist/es/components/design/utils/page-table-util.d.ts +1 -9
- package/dist/es/components/design/utils/page-table-util.js +13 -13
- package/dist/es/components/design/views/assemblys/button/button/button-attr-advanced.vue.js +1 -1
- package/dist/es/components/design/views/assemblys/button/button/button-design.vue2.js +18 -18
- package/dist/es/components/design/views/assemblys/button/dropdown/dropdown-design.vue2.js +2 -2
- package/dist/es/components/design/views/assemblys/button/export-pdf/exportpdf-design.vue2.js +18 -18
- package/dist/es/components/design/views/assemblys/button/print-label/printlabel-design.vue2.js +18 -18
- package/dist/es/components/design/views/assemblys/chart/column-line/column-line-design.vue2.js +35 -33
- package/dist/es/components/design/views/assemblys/chart/column-line/series/column-line-series-attr-base.vue.js +5 -4
- package/dist/es/components/design/views/assemblys/chart/statistical-table/statisticalTable-attr-advanced.vue.js +7 -6
- package/dist/es/components/design/views/assemblys/chart/statistical-table/statisticalTable-design.vue2.js +17 -17
- package/dist/es/components/design/views/assemblys/common/common-icon-bind.vue2.js +27 -24
- package/dist/es/components/design/views/assemblys/common/common-style-background.vue.js +3 -2
- package/dist/es/components/design/views/assemblys/common/common-variable-bind.vue.js +1 -1
- package/dist/es/components/design/views/assemblys/common/common-variable-bind.vue2.js +13 -13
- package/dist/es/components/design/views/assemblys/common/page-permission-select.vue.js +4 -4
- package/dist/es/components/design/views/assemblys/container/tabs/tabs-attr.vue2.js +3 -2
- package/dist/es/components/design/views/assemblys/container/tools/tools-design.vue2.js +22 -22
- package/dist/es/components/design/views/assemblys/data/bar-code/barcode-design.vue2.js +3 -3
- package/dist/es/components/design/views/assemblys/data/component/composite-header.vue2.js +1 -1
- package/dist/es/components/design/views/assemblys/data/component/import-header.vue.js +2 -2
- package/dist/es/components/design/views/assemblys/data/table/table-attr-advanced.vue.js +54 -55
- package/dist/es/components/design/views/assemblys/data/table/table-attr-base.vue.js +10 -10
- package/dist/es/components/design/views/assemblys/data/table/table-design.vue2.js +2 -2
- package/dist/es/components/design/views/assemblys/data/table/tablecolumn-attr-base.vue.js +1 -1
- package/dist/es/components/design/views/assemblys/data/table/tablecolumn-attr-base.vue2.js +1 -1
- package/dist/es/components/design/views/assemblys/data/tree/tree-attr-base.vue.js +4 -4
- package/dist/es/components/design/views/assemblys/data/tree/tree-design.vue2.js +3 -3
- package/dist/es/components/design/views/assemblys/form/checkbox/checkbox-design.vue2.js +2 -2
- package/dist/es/components/design/views/assemblys/form/common/icon-set-dialog.vue2.js +1 -1
- package/dist/es/components/design/views/assemblys/form/common/suffixmodule.vue.js +43 -43
- package/dist/es/components/design/views/assemblys/form/date-picker/datepicker-design.vue2.js +12 -12
- package/dist/es/components/design/views/assemblys/form/dept-tree/depttree-design.vue2.js +2 -2
- package/dist/es/components/design/views/assemblys/form/file-upload/fileupload-design.vue2.js +5 -5
- package/dist/es/components/design/views/assemblys/form/input-number/input-number-design.vue2.js +18 -18
- package/dist/es/components/design/views/assemblys/form/input-text/inputtext-design.vue2.js +6 -6
- package/dist/es/components/design/views/assemblys/form/label/label-design.vue2.js +11 -11
- package/dist/es/components/design/views/assemblys/form/link/link-design.vue2.js +12 -12
- package/dist/es/components/design/views/assemblys/form/radio/radio-design.vue2.js +2 -2
- package/dist/es/components/design/views/assemblys/form/rich-text/richtext-design.vue2.js +14 -13
- package/dist/es/components/design/views/assemblys/form/textarea/textarea-design.vue2.js +5 -5
- package/dist/es/components/design/views/assemblys/page/component/setting-form-rule-base-input.vue.js +2 -2
- package/dist/es/components/design/views/assemblys/page/page-attr-advanced.vue.js +1 -1
- package/dist/es/components/design/views/assemblys/page/page-attr-base.vue.js +52 -52
- package/dist/es/components/design/views/assemblys/workflow/picture-flow/pictureflow-design.vue2.js +1 -1
- package/dist/es/components/design/views/assemblys/workflow/workflow-button/workflowbutton-attr-base.vue.js +12 -10
- package/dist/es/components/design/views/assemblys/workflow/workflow-node/workflownode-design.vue2.js +3 -3
- package/dist/es/components/design/views/design/page-design.vue2.js +1 -1
- package/dist/es/components/design/views/design/page-event/{config.vue2.js → config.vue.js} +1 -1
- package/dist/es/components/design/views/design/page-event/config.vue3.js +18 -17
- package/dist/es/components/design/views/design/page-event/page-event-content.vue.js +1 -1
- package/dist/es/components/design/views/design/view/components/quick-add-dialog.vue.js +1 -0
- package/dist/es/components/design/views/design/view/page-switch.vue2.js +3 -2
- package/dist/es/components/design/views/design/view/view-design-display.vue.js +1 -1
- package/dist/es/stores/undo-redo-store.js +1 -1
- package/dist/es/style.css +2 -2
- package/package.json +5 -5
|
@@ -3,7 +3,7 @@ import { ElMessage as x } from "element-plus";
|
|
|
3
3
|
import { Close as S, Check as j, Search as O, Plus as P, CircleClose as T } from "@element-plus/icons-vue";
|
|
4
4
|
import { EnableStates as A } from "../../../utils/interfaces/page-design-types.js";
|
|
5
5
|
import N from "agilebuilder-ui/src/utils/request";
|
|
6
|
-
const D = { key: 0 }, U = { class: "amb-component-popover-left-menu-main" },
|
|
6
|
+
const D = { key: 0 }, U = { class: "amb-component-popover-left-menu-main" }, $ = ["onClick"], E = { style: { height: "230px", padding: "0 10px" } }, I = ["title"], L = ["title"], R = e({ __name: "page-permission-select", props: { rowObj: Object, pageDesign: Object, size: { type: String, default: "medium" }, showLabel: { type: Boolean, default: false }, onlyService: { type: Boolean, default: false } }, emits: ["update:modelValue"], setup(e2, { emit: R2 }) {
|
|
7
7
|
var _a, _b;
|
|
8
8
|
const B = R2, F = e2, X = l(false), q = l(null), G = l(), H = l(null), J = l(false), K = l(""), M = l();
|
|
9
9
|
a(() => {
|
|
@@ -17,7 +17,7 @@ const D = { key: 0 }, U = { class: "amb-component-popover-left-menu-main" }, E =
|
|
|
17
17
|
if (H.value && (l2 = H.value.$el.parentNode), !e3.target || !l2) return;
|
|
18
18
|
if (e3.target === Q) return;
|
|
19
19
|
const a2 = q.value ? q.value.input : null;
|
|
20
|
-
a2 && (e3.target === a2 || a2.contains(e3.target)) || (e3.target === l2 || l2.contains(e3.target) ? Q = e3.target : (H.value.$el, J.value && Y()));
|
|
20
|
+
a2 && (e3.target === a2 || a2.contains(e3.target)) || (e3.target === l2 || l2.contains(e3.target) ? Q = e3.target : (H.value.$el && H.value.$el.contains(e3.target), J.value && Y()));
|
|
21
21
|
}
|
|
22
22
|
function Y(e3) {
|
|
23
23
|
J.value = false;
|
|
@@ -97,9 +97,9 @@ const D = { key: 0 }, U = { class: "amb-component-popover-left-menu-main" }, E =
|
|
|
97
97
|
function be(e3) {
|
|
98
98
|
return e3 ? `${F.rowObj.name}:${e3}` : null;
|
|
99
99
|
}
|
|
100
|
-
return (l2, a2) => {
|
|
100
|
+
return F.value, F.type, (l2, a2) => {
|
|
101
101
|
const t2 = r("el-icon"), o2 = r("el-input"), n2 = r("el-button"), u2 = r("el-tooltip"), z2 = r("el-col"), x2 = r("el-empty"), A2 = r("el-option"), N2 = r("el-select"), R3 = r("el-row"), F2 = r("el-text"), Q2 = r("el-table-column"), W2 = r("el-table"), re2 = r("el-pagination"), ie2 = r("el-popover");
|
|
102
|
-
return e2.showLabel ? (p(), i("span", D, c(e2.rowObj.name ? e2.rowObj.name : e2.rowObj.simpleCode), 1)) : (p(), s(ie2, { key: 1, modelValue: X.value, "onUpdate:modelValue": a2[6] || (a2[6] = (e3) => X.value = e3), ref_key: "popoverRef", ref: G, "popper-class": "amb-component-popover-main", visible: J.value, width: 400 }, { reference: d(() => [m(o2, { ref_key: "inputRef", ref: q, readonly: "", size: "small", onClick: he, title: e2.rowObj.name + "(" + e2.rowObj.simpleCode + ")", formatter: be, modelValue: te.value, "onUpdate:modelValue": a2[0] || (a2[0] = (e3) => te.value = e3), placeholder: "请选择" }, { suffix: d(() => [w(m(t2, { style: { cursor: "pointer" }, onClick: _(ge, ["stop"]) }, { default: d(() => [m(f(T))]), _: 1 }, 512), [[V, ae.value]])]), _: 1 }, 8, ["title", "modelValue"])]), default: d(() => [m(R3, { ref_key: "contentRef", ref: H }, { default: d(() => [m(u2, { effect: "dark", content: "关闭", placement: "top-end" }, { default: d(() => [m(n2, { type: "text", class: "amb-component-popover-close-btn", icon: f(S), onClick: fe }, null, 8, ["icon"])]), _: 1 }), e2.onlyService ? v("", true) : (p(), s(z2, { key: 0, span: 8 }, { default: d(() => [g("div", U, [(p(), i(y, null, h(Z, (e3) => g("div", { class: b(["amb-popover-menu-item", e3.value == le.value ? "is-active" : ""]), onClick: (l3) => ve(e3.value) }, [m(t2, null, { default: d(() => [w(m(f(j), null, null, 512), [[V, e3.value == l2.iconType]])]), _: 2 }, 1024), g("span", null, c(e3.label), 1)], 10,
|
|
102
|
+
return e2.showLabel ? (p(), i("span", D, c(e2.rowObj.name ? e2.rowObj.name : e2.rowObj.simpleCode), 1)) : (p(), s(ie2, { key: 1, modelValue: X.value, "onUpdate:modelValue": a2[6] || (a2[6] = (e3) => X.value = e3), ref_key: "popoverRef", ref: G, "popper-class": "amb-component-popover-main", visible: J.value, width: 400 }, { reference: d(() => [m(o2, { ref_key: "inputRef", ref: q, readonly: "", size: "small", onClick: he, title: e2.rowObj.name + "(" + e2.rowObj.simpleCode + ")", formatter: be, modelValue: te.value, "onUpdate:modelValue": a2[0] || (a2[0] = (e3) => te.value = e3), placeholder: "请选择" }, { suffix: d(() => [w(m(t2, { style: { cursor: "pointer" }, onClick: _(ge, ["stop"]) }, { default: d(() => [m(f(T))]), _: 1 }, 512), [[V, ae.value]])]), _: 1 }, 8, ["title", "modelValue"])]), default: d(() => [m(R3, { ref_key: "contentRef", ref: H }, { default: d(() => [m(u2, { effect: "dark", content: "关闭", placement: "top-end" }, { default: d(() => [m(n2, { type: "text", class: "amb-component-popover-close-btn", icon: f(S), onClick: fe }, null, 8, ["icon"])]), _: 1 }), e2.onlyService ? v("", true) : (p(), s(z2, { key: 0, span: 8 }, { default: d(() => [g("div", U, [(p(), i(y, null, h(Z, (e3) => g("div", { class: b(["amb-popover-menu-item", e3.value == le.value ? "is-active" : ""]), onClick: (l3) => ve(e3.value) }, [m(t2, null, { default: d(() => [w(m(f(j), null, null, 512), [[V, e3.value == l2.iconType]])]), _: 2 }, 1024), g("span", null, c(e3.label), 1)], 10, $)), 64))])]), _: 1 })), le.value ? (p(), s(z2, { key: 2, span: e2.onlyService ? 24 : 16, style: { "padding-left": "10px" } }, { default: d(() => [m(R3, null, { default: d(() => [w(m(N2, { modelValue: oe.systemCode, "onUpdate:modelValue": a2[1] || (a2[1] = (e3) => oe.systemCode = e3), placeholder: "当前应用", clearable: "", style: { width: "100px" } }, { default: d(() => [(p(true), i(y, null, h(ne.value, (e3) => (p(), s(A2, { key: e3.value, label: e3.label, value: e3.value }, null, 8, ["label", "value"]))), 128))]), _: 1 }, 8, ["modelValue"]), [[V, "service" == le.value]]), w(m(o2, { size: "small", modelValue: oe.searchValue, "onUpdate:modelValue": a2[2] || (a2[2] = (e3) => oe.searchValue = e3), placeholder: "搜索", "suffix-icon": f(O), style: C([{ "margin-left": "6px" }, { width: e2.onlyService ? "250px" : "130px" }]) }, null, 8, ["modelValue", "suffix-icon", "style"]), [[V, "service" == le.value]]), w(m(o2, { size: "small", modelValue: K.value, "onUpdate:modelValue": a2[3] || (a2[3] = (e3) => K.value = e3), placeholder: "请输入", style: { "margin-left": "6px", width: "200px" } }, null, 8, ["modelValue"]), [[V, "custom" == le.value]]), w(m(n2, { style: { "margin-left": "4px" }, onClick: ye, size: "small", type: "primary", icon: f(P), circle: "" }, null, 8, ["icon"]), [[V, "custom" == le.value]])]), _: 1 }), w(g("div", E, [m(F2, { type: "primary" }, { default: d(() => a2[7] || (a2[7] = [k("请输入自定义Controller中Permission注解中的code后点击添加图标.")])), _: 1 })], 512), [[V, "service" != le.value]]), w(m(W2, { ref_key: "tableRef", ref: M, height: me.value, "show-header": false, size: "small", "current-row-key": "code", "row-key": "code", "highlight-current-row": true, onSortChange: ce, data: ue.value }, { default: d(() => [m(Q2, { width: "65" }, { default: d((e3) => [m(n2, { type: "default", size: "small", onClick: (l3) => {
|
|
103
103
|
return a3 = e3.row, ae.value = a3.code, B("update:modelValue", le.value, ae.value, a3.name, a3.id), void Y();
|
|
104
104
|
var a3;
|
|
105
105
|
} }, { default: d(() => a2[8] || (a2[8] = [k(" 选择 ")])), _: 2 }, 1032, ["onClick"])]), _: 1 }), m(Q2, { label: "名称", prop: "name", width: "120", sortable: "custom" }, { default: d((e3) => [g("span", { style: { "text-align": "left" }, title: e3.row.name }, c(e3.row.name), 9, I)]), _: 1 }), m(Q2, { label: "编码", sortable: "custom" }, { default: d((e3) => [g("span", { style: { "text-align": "left" }, title: e3.row.code }, c(e3.row.code), 9, L)]), _: 1 })]), _: 1 }, 8, ["height", "data"]), [[V, "service" == le.value]]), w(m(re2, { style: { "margin-top": "10px", "justify-content": "center" }, "current-page": ee.currentPage, "onUpdate:currentPage": a2[4] || (a2[4] = (e3) => ee.currentPage = e3), "page-size": ee.pageSize, "onUpdate:pageSize": a2[5] || (a2[5] = (e3) => ee.pageSize = e3), size: l2.small, "pager-count": 3, layout: "pager,total", total: ee.total, onCurrentChange: se }, null, 8, ["current-page", "page-size", "size", "total"]), [[V, "service" == le.value]])]), _: 1 }, 8, ["span"])) : (p(), s(z2, { key: 1, span: 16 }, { default: d(() => [m(x2, { description: "请选择类型", "image-size": 40 })]), _: 1 }))]), _: 1 }, 512)]), _: 1 }, 8, ["modelValue", "visible"]));
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as e, ref as t, watch as n, resolveComponent as s, createElementBlock as a, openBlock as l, createElementVNode as r, normalizeClass as c, isRef as i, unref as o, createTextVNode as u, createBlock as
|
|
1
|
+
import { defineComponent as e, ref as t, watch as n, resolveComponent as s, createElementBlock as a, openBlock as l, createElementVNode as r, normalizeClass as c, isRef as i, unref as o, createTextVNode as u, createBlock as g, createCommentVNode as d, withDirectives as v, createVNode as f, vShow as b } from "vue";
|
|
2
2
|
import p from "./tabs-attr-base.vue.js";
|
|
3
3
|
import m from "./tabs-attr-style.vue.js";
|
|
4
4
|
import y from "./tabs-attr-event.vue.js";
|
|
@@ -6,6 +6,7 @@ import j from "./tabs-attr-advanced.vue.js";
|
|
|
6
6
|
const C = { class: "amb-design-attr-content" }, k = { class: "amb-design-attr-header" }, D = { class: "amb-design-attr-header-type" }, h = { class: "amb-design-attr-list" }, O = e({ __name: "tabs-attr", props: { configure: { type: Object, required: true }, pageDesign: { type: Object, default: () => {
|
|
7
7
|
} } }, emits: [], setup(e2, { emit: O2 }) {
|
|
8
8
|
const _ = e2;
|
|
9
|
+
_.configure;
|
|
9
10
|
let q = t("base");
|
|
10
11
|
_.configure.props = { isFullyRendered: true, isContentEmbedded: true, ..._.configure.props ?? {} }, null == _.configure.events && (_.configure.events = []);
|
|
11
12
|
const x = t(0);
|
|
@@ -17,7 +18,7 @@ const C = { class: "amb-design-attr-content" }, k = { class: "amb-design-attr-he
|
|
|
17
18
|
E();
|
|
18
19
|
}), (t2, n2) => {
|
|
19
20
|
const O3 = s("el-badge");
|
|
20
|
-
return l(), a("div", C, [r("div", k, [r("div", D, [r("label", { class: c({ selected: "base" == o(q) }), onClick: n2[0] || (n2[0] = (e3) => i(q) ? q.value = "base" : q = "base") }, "属性", 2), r("label", { class: c({ selected: "style" == o(q) }), onClick: n2[1] || (n2[1] = (e3) => i(q) ? q.value = "style" : q = "style") }, "样式", 2), r("label", { class: c({ selected: "event" == o(q) }), onClick: n2[2] || (n2[2] = (e3) => i(q) ? q.value = "event" : q = "event") }, [n2[4] || (n2[4] = u(" 事件 ")), x.value > 0 ? (l(),
|
|
21
|
+
return l(), a("div", C, [r("div", k, [r("div", D, [r("label", { class: c({ selected: "base" == o(q) }), onClick: n2[0] || (n2[0] = (e3) => i(q) ? q.value = "base" : q = "base") }, "属性", 2), r("label", { class: c({ selected: "style" == o(q) }), onClick: n2[1] || (n2[1] = (e3) => i(q) ? q.value = "style" : q = "style") }, "样式", 2), r("label", { class: c({ selected: "event" == o(q) }), onClick: n2[2] || (n2[2] = (e3) => i(q) ? q.value = "event" : q = "event") }, [n2[4] || (n2[4] = u(" 事件 ")), x.value > 0 ? (l(), g(O3, { key: 0, value: x.value }, null, 8, ["value"])) : d("", true)], 2), r("label", { class: c({ selected: "advanced" == o(q) }), onClick: n2[3] || (n2[3] = (e3) => i(q) ? q.value = "advanced" : q = "advanced") }, "高级", 2)])]), r("div", h, [v(f(p, { configure: e2.configure, pageDesign: e2.pageDesign }, null, 8, ["configure", "pageDesign"]), [[b, "base" == o(q)]]), v(f(m, { configure: e2.configure }, null, 8, ["configure"]), [[b, "style" == o(q)]]), v(f(y, { configure: e2.configure }, null, 8, ["configure"]), [[b, "event" == o(q)]]), v(f(j, { configure: e2.configure }, null, 8, ["configure"]), [[b, "advanced" == o(q)]])])]);
|
|
21
22
|
};
|
|
22
23
|
} });
|
|
23
24
|
export {
|
|
@@ -2,52 +2,52 @@ import { defineComponent as e, ref as t, computed as n, watch as i, onMounted as
|
|
|
2
2
|
import { useDraggable as d } from "vue-draggable-plus";
|
|
3
3
|
import v from "../../object-design.vue.js";
|
|
4
4
|
import { deepCopy as b, getUuidv4 as y } from "../../../../utils/common-util.js";
|
|
5
|
-
import { caculateComponentStyle as
|
|
5
|
+
import { caculateComponentStyle as h } from "../../../../utils/container-design-util.js";
|
|
6
6
|
import "element-plus";
|
|
7
|
-
import { copyHandleEvents as
|
|
7
|
+
import { copyHandleEvents as j, deleteDesignItem as x } from "../../../../utils/page-design-util.js";
|
|
8
8
|
import { getInputTypeComponentNames as O } from "../../../../utils/assemblys-config.js";
|
|
9
9
|
const W = { class: "amb-widget-tools-parent amb-design-item-default" }, D = e({ __name: "tools-design", props: { pageDesign: {}, configure: {}, indexObj: {}, selectWidget: {} }, emits: ["onSelectWidget", "onCustomAttrWidget"], setup(e2, { emit: D2 }) {
|
|
10
10
|
const C = e2;
|
|
11
11
|
C.configure.items || (C.configure.items = []), null == C.configure.style && (C.configure.style = {}), C.configure.props = { isAffix: true, position: "top", ...C.configure.props ?? {} }, C.configure.runtime || (C.configure.runtime = {});
|
|
12
|
-
const
|
|
12
|
+
const R = t({}), w = t(""), A = n(() => {
|
|
13
13
|
const { gap: e3 } = C.configure.props ?? {};
|
|
14
|
-
return { ...e3 ? { gap: `${e3}px` } : {}, ...
|
|
14
|
+
return { ...e3 ? { gap: `${e3}px` } : {}, ...R.value ?? {} };
|
|
15
15
|
});
|
|
16
16
|
i(C.configure.style, () => {
|
|
17
|
-
|
|
17
|
+
N();
|
|
18
18
|
}), i(C.configure.props, () => {
|
|
19
|
-
|
|
19
|
+
N();
|
|
20
20
|
});
|
|
21
|
-
const
|
|
22
|
-
function
|
|
21
|
+
const k = O(), I = n(() => [...C.configure.items]);
|
|
22
|
+
function S(e3) {
|
|
23
23
|
e3.forEach((e4) => {
|
|
24
24
|
var _a, _b, _c, _d;
|
|
25
|
-
if (e4.items && e4.items.length > 0 &&
|
|
25
|
+
if (e4.items && e4.items.length > 0 && S(e4.items), k.includes(e4.name)) {
|
|
26
26
|
const t2 = { uuid: e4.uuid, defaultValue: (_b = (_a = e4.runtime) == null ? void 0 : _a.props) == null ? void 0 : _b.defaultValue, prop: (_d = (_c = e4.runtime) == null ? void 0 : _c.props) == null ? void 0 : _d.prop };
|
|
27
27
|
C.pageDesign.toolsInputComponents.push(t2);
|
|
28
28
|
}
|
|
29
29
|
});
|
|
30
30
|
}
|
|
31
|
-
i(
|
|
32
|
-
e3.length > t2.length && z(-1, e3[e3.length - 1]), "list" === C.pageDesign.pageType && (C.pageDesign.toolsInputComponents = [],
|
|
31
|
+
i(I, (e3, t2) => {
|
|
32
|
+
e3.length > t2.length && z(-1, e3[e3.length - 1]), "list" === C.pageDesign.pageType && (C.pageDesign.toolsInputComponents = [], S(e3));
|
|
33
33
|
}, { important: true, deep: true });
|
|
34
|
-
const
|
|
35
|
-
function
|
|
36
|
-
|
|
34
|
+
const _ = t(null);
|
|
35
|
+
function N() {
|
|
36
|
+
h(C.configure, R, w, null);
|
|
37
37
|
const e3 = C.configure.props;
|
|
38
|
-
"flex-end" == e3.align ?
|
|
38
|
+
"flex-end" == e3.align ? R.value["justify-content"] = "right" : "center" == e3.align && (R.value["justify-content"] = "center"), C.configure.runtime.style = R.value, C.configure.runtime.class = w.value;
|
|
39
39
|
}
|
|
40
|
-
d(
|
|
40
|
+
d(_, C.configure.items, { group: "amb-assembly-item", animation: 300, ghostClass: "amb-item-ghost", forceFallback: true, onAdd: function(e3) {
|
|
41
41
|
if (C.configure && C.configure.items) {
|
|
42
42
|
const t2 = e3.newIndex, n2 = C.configure.items[t2];
|
|
43
43
|
n2.style || (n2.style = {});
|
|
44
44
|
}
|
|
45
45
|
} }), o(() => {
|
|
46
|
-
if (
|
|
46
|
+
if (N(), _.value.parentNode) {
|
|
47
47
|
new ResizeObserver((e3) => {
|
|
48
|
-
for (let t2 of e3) ;
|
|
49
|
-
|
|
50
|
-
}).observe(
|
|
48
|
+
for (let t2 of e3) t2.target, t2.contentRect, t2.contentRect.width, t2.contentRect.height, t2.contentRect.top, t2.contentRect.left;
|
|
49
|
+
N();
|
|
50
|
+
}).observe(_.value.parentNode);
|
|
51
51
|
}
|
|
52
52
|
}), s(() => {
|
|
53
53
|
});
|
|
@@ -63,13 +63,13 @@ const W = { class: "amb-widget-tools-parent amb-design-item-default" }, D = e({
|
|
|
63
63
|
const n2 = t2.indexOf(e3);
|
|
64
64
|
if (-1 == n2) return void alert("无可复制对象!");
|
|
65
65
|
const i2 = a(b(e3));
|
|
66
|
-
i2.uuid = y(),
|
|
66
|
+
i2.uuid = y(), j(i2, C.pageDesign), t2.splice(n2 + 1, 0, i2);
|
|
67
67
|
}
|
|
68
68
|
function T(e3) {
|
|
69
69
|
let t2 = C.configure.items;
|
|
70
70
|
x(t2, e3, e3.items && e3.items.length > 0, true);
|
|
71
71
|
}
|
|
72
|
-
return (e3, t2) => (r(), u("div", W, [l("div", { class: c(["amb-widget-tools", w.value]), style: g(
|
|
72
|
+
return (e3, t2) => (r(), u("div", W, [l("div", { class: c(["amb-widget-tools", w.value]), style: g(A.value), ref_key: "thisRef", ref: _ }, [(r(true), u(f, null, p(e3.configure.items, (t3, n2) => (r(), m(v, { key: t3, pageDesign: e3.pageDesign, configure: t3, selectWidget: e3.selectWidget, indexObj: e3.indexObj, onOnSelectWidget: z, onOnCustomAttrWidget: E, onOnCopy: F, onOnDelete: T }, null, 8, ["pageDesign", "configure", "selectWidget", "indexObj"]))), 128))], 6)]));
|
|
73
73
|
} });
|
|
74
74
|
export {
|
|
75
75
|
D as default
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as e, ref as r, onMounted as o, watch as a, createElementBlock as t, openBlock as u, normalizeStyle as s, normalizeClass as l, withDirectives as n, createElementVNode as
|
|
1
|
+
import { defineComponent as e, ref as r, onMounted as o, watch as a, createElementBlock as t, openBlock as u, normalizeStyle as s, normalizeClass as l, withDirectives as n, createElementVNode as c, vShow as i } from "vue";
|
|
2
2
|
import p from "qrcode";
|
|
3
3
|
import f from "jsbarcode";
|
|
4
4
|
import { caculateDetailComponentStyle as b, caculateComponentProps as d } from "../../../../utils/form-design-util.js";
|
|
@@ -11,7 +11,7 @@ const m = ["src"], v = e({ __name: "barcode-design", props: { configure: Object
|
|
|
11
11
|
let e3 = {};
|
|
12
12
|
const r2 = {};
|
|
13
13
|
if (v2.configure.props.preSuffix && (e3 = v2.configure.props), e3.base.bindProp && (g.value = e3.base.bindProp), e3.base && "br-code" === e3.base.type && C(), e3.base && "QR-code" === e3.base.type && p.toDataURL(g.value, (e4, r3) => {
|
|
14
|
-
e4
|
|
14
|
+
e4 ? console.error(e4) : y.value = r3;
|
|
15
15
|
}), r2.type = e3.base.type, r2.brCodeFormat = e3.base.brCodeFormat, r2.generateRuleType = e3.base.generateRuleType, r2.generateRule = e3.base.generateRule, r2 != {}) for (const e4 in r2) O.value[e4] = r2[e4];
|
|
16
16
|
}
|
|
17
17
|
o(() => {
|
|
@@ -22,7 +22,7 @@ const m = ["src"], v = e({ __name: "barcode-design", props: { configure: Object
|
|
|
22
22
|
b(v2.configure, x, D, F);
|
|
23
23
|
}, { immediate: true }), a(v2.configure.props, () => {
|
|
24
24
|
d(v2.configure, O), _(), v2.configure.runtime.props = O.value;
|
|
25
|
-
}, { immediate: true }), (e3, r2) => (u(), t("div", { class: l(D.value), style: s(x.value) }, [n(
|
|
25
|
+
}, { immediate: true }), (e3, r2) => (u(), t("div", { class: l(D.value), style: s(x.value) }, [n(c("canvas", { ref_key: "barcode", ref: R }, null, 512), [[i, "br-code" === O.value.type]]), n(c("img", { src: y.value }, null, 8, m), [[i, "QR-code" === O.value.type]])], 6));
|
|
26
26
|
} });
|
|
27
27
|
export {
|
|
28
28
|
v as default
|
|
@@ -38,7 +38,7 @@ const E = { key: 0 }, L = { style: { display: "flex", margin: "8px 0" } }, G = {
|
|
|
38
38
|
q.value.validate((e3) => {
|
|
39
39
|
if (e3) {
|
|
40
40
|
let e4;
|
|
41
|
-
P.value.uuid ? (e4 = ge(P.value.uuid), e4.titleText = P.value.titleText, e4.displayOrder = P.value.displayOrder, void 0 !== P.value.displayOrder && null !== P.value.displayOrder || V(P.value.parentUuid, e4, Z.value), B.value = false) : (P.value.uuid = k(), void 0 !== P.value.displayOrder && null !== P.value.displayOrder || V(P.value.parentUuid, P.value, Z.value), Z.value.push(P.value), B.value = false), ie(), P.value.parentUuid ? ee.value.append(P.value, K.value) : z.value = C(Z.value), Q.value && he();
|
|
41
|
+
P.value.uuid ? (e4 = ge(P.value.uuid), e4.titleText = P.value.titleText, e4.displayOrder = P.value.displayOrder, void 0 !== P.value.displayOrder && null !== P.value.displayOrder || V(P.value.parentUuid, e4, Z.value), B.value = false) : (P.value.uuid = k(), void 0 !== P.value.displayOrder && null !== P.value.displayOrder || V(P.value.parentUuid, P.value, Z.value), Z.value.push(P.value), B.value = false), ie(), P.value.parentUuid ? ee.value.append(P.value, K.value) : z.value = C(Z.value), Q.value && he(), M2.configure;
|
|
42
42
|
}
|
|
43
43
|
});
|
|
44
44
|
}
|
|
@@ -17,10 +17,10 @@ const C = { style: { "text-align": "center", margin: "0px -8px", "padding-top":
|
|
|
17
17
|
const k3 = o("Top"), _ = o("el-icon"), V = o("Bottom"), x = o("el-table-column"), y = o("el-option"), P = o("el-select"), F = o("el-switch"), z = o("el-table");
|
|
18
18
|
return i(), t(z, { ref_key: "tableRef", ref: b, data: w.value, style: { width: "100%" } }, { default: n(() => [r(x, { width: "50", align: "center" }, { default: n((e4) => [u("div", C, [r(_, { size: "14", style: { cursor: "pointer" }, onClick: (l3) => function(e5) {
|
|
19
19
|
let l4 = h(e5);
|
|
20
|
-
l4 < 1 || c(() => {
|
|
20
|
+
l4 < 1 || (c(() => {
|
|
21
21
|
const e6 = w.value;
|
|
22
22
|
[e6[l4 - 1], e6[l4]] = [e6[l4], e6[l4 - 1]];
|
|
23
|
-
});
|
|
23
|
+
}), w.value);
|
|
24
24
|
}(e4.row) }, { default: n(() => [r(k3)]), _: 2 }, 1032, ["onClick"]), r(_, { size: "14", style: { "margin-left": "2px", cursor: "pointer" }, onClick: (l3) => function(e5) {
|
|
25
25
|
let l4 = h(e5);
|
|
26
26
|
if (-1 == l4 || w.value.length == l4 + 1) return;
|
|
@@ -1,82 +1,81 @@
|
|
|
1
|
-
import { defineComponent as e, ref as l,
|
|
2
|
-
import { Codemirror as
|
|
3
|
-
import { Plus as
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
import
|
|
7
|
-
import { querySublist as
|
|
8
|
-
import
|
|
9
|
-
import
|
|
10
|
-
import { Search as
|
|
1
|
+
import { defineComponent as e, ref as l, onMounted as a, resolveComponent as t, createBlock as o, openBlock as i, withCtx as r, createVNode as u, createCommentVNode as n, createElementVNode as d, createElementBlock as s, Fragment as p, renderList as g, createTextVNode as c, unref as m } from "vue";
|
|
2
|
+
import { Codemirror as f } from "vue-codemirror";
|
|
3
|
+
import { Plus as b, Remove as V, Delete as h } from "@element-plus/icons-vue";
|
|
4
|
+
import _ from "../component/variate-select.vue.js";
|
|
5
|
+
import v from "../component/composite-header.vue.js";
|
|
6
|
+
import S from "../component/import-header.vue.js";
|
|
7
|
+
import { querySublist as y, queryTableFields as x, changeFeieldToMap as D } from "../../../../utils/page-table-util.js";
|
|
8
|
+
import T from "../../workflow/component/combination.vue.js";
|
|
9
|
+
import C from "../../common/common-select-table.vue.js";
|
|
10
|
+
import { Search as w, Close as O } from "@element-plus/icons";
|
|
11
11
|
import k from "../../common/state-button.vue.js";
|
|
12
12
|
import "super-page-runtime";
|
|
13
|
-
const
|
|
13
|
+
const U = { style: { padding: "8px 0px 0px 0px" } }, N = { style: { padding: "8px 0px 0px 0px" } }, z = { style: { padding: "8px 0px 0px 0px" } }, L = { style: { padding: "8px 0px 0px 0px" } }, P = { style: { padding: "8px 0px 0px 0px" } }, j = { style: { padding: "8px 0px 0px 0px" } }, F = { style: { padding: "8px 0px 0px 0px" } }, $ = { key: 0 }, Q = { key: 1 }, E = { style: { display: "flex", width: "100%" } }, K = { style: { padding: "8px 0px 0px 0px" } }, M = e({ __name: "table-attr-advanced", props: { configure: { type: Object, default: () => ({ props: {} }) }, pageDesign: { type: Object, default: () => {
|
|
14
14
|
} } }, setup(e2) {
|
|
15
|
-
|
|
15
|
+
var _a, _b, _c;
|
|
16
|
+
const M2 = e2, R = l(false), W = { tabSize: 4, lineNumbers: true, mode: "HTML", theme: "default", line: true, styleActiveLine: true, matchBrackets: true }, I = l(["compositeHeader", "initialConfig", "otherSettings"]);
|
|
16
17
|
l([]);
|
|
17
|
-
const
|
|
18
|
-
function
|
|
19
|
-
|
|
18
|
+
const J = l([]), A = l(null), G = l(false), H = l([]), q = l({});
|
|
19
|
+
function B() {
|
|
20
|
+
A.value.openDialog();
|
|
20
21
|
}
|
|
21
|
-
function
|
|
22
|
-
|
|
22
|
+
function X() {
|
|
23
|
+
M2.configure.props.otherSettings.sourceDataTable = "", M2.configure.props.otherSettings.alias = "", H.value = [], q.value = {};
|
|
23
24
|
}
|
|
24
|
-
function
|
|
25
|
-
let l2 =
|
|
26
|
-
l2 += "_", l2 +=
|
|
25
|
+
function Y(e3) {
|
|
26
|
+
let l2 = M2.configure.tableSysCode ? M2.configure.tableSysCode : "";
|
|
27
|
+
l2 += "_", l2 += M2.configure.tableSysVersion ? M2.configure.tableSysVersion : "", l2 += "_", l2 += M2.configure.tableName ? M2.configure.tableName : "";
|
|
27
28
|
let a2 = e3.systemCode ? e3.systemCode : "";
|
|
28
29
|
if (a2 += "_", a2 += e3.systemVersion ? e3.systemVersion : "", a2 += "_", a2 += e3.name ? e3.name : "", a2 != l2) {
|
|
29
|
-
|
|
30
|
-
|
|
30
|
+
M2.configure.props.otherSettings.tableSysCode = e3.systemCode, M2.configure.props.otherSettings.tableSysVersion = e3.systemVersion, M2.configure.props.otherSettings.sourceDataTable = e3.name, M2.configure.props.otherSettings.alias = e3.alias;
|
|
31
|
+
Z(e3.systemCode ? e3.systemCode : M2.pageDesign.systemCode, e3.systemVersion ? e3.systemVersion : M2.pageDesign.version, e3.name);
|
|
31
32
|
}
|
|
32
33
|
}
|
|
33
|
-
function
|
|
34
|
-
|
|
35
|
-
|
|
34
|
+
function Z(e3, l2, a2) {
|
|
35
|
+
x(e3, l2, a2).then((e4) => {
|
|
36
|
+
H.value = e4, q.value = D(q.value, e4);
|
|
36
37
|
});
|
|
37
38
|
}
|
|
38
|
-
function
|
|
39
|
-
|
|
39
|
+
function ee() {
|
|
40
|
+
M2.configure.props.deleteLogicSetting.push({ secondTable: "" });
|
|
40
41
|
}
|
|
41
|
-
function
|
|
42
|
-
|
|
42
|
+
function le(e3) {
|
|
43
|
+
M2.configure.props.otherSettings.sourceQueryTableData = JSON.stringify(e3), ae();
|
|
43
44
|
}
|
|
44
|
-
function
|
|
45
|
-
const e3 =
|
|
45
|
+
function ae() {
|
|
46
|
+
const e3 = M2.configure.props.otherSettings.sourceQueryTableData ? JSON.parse(M2.configure.props.otherSettings.sourceQueryTableData) : [];
|
|
46
47
|
let l2 = null;
|
|
47
|
-
|
|
48
|
+
M2.configure.props.otherSettings.isRealTimeChange && e3 && e3.length > 0 && (l2 = [], e3.forEach((e4) => {
|
|
48
49
|
e4 && e4.propValue && (e4.propValue.indexOf("${data.") >= 0 || e4.propValue.indexOf("${page.") >= 0) && l2.push(e4.propValue);
|
|
49
|
-
})),
|
|
50
|
+
})), M2.pageDesign.subTableWatchProps || (M2.pageDesign.subTableWatchProps = {}), M2.pageDesign.subTableWatchProps[M2.configure.uuid] = l2;
|
|
50
51
|
}
|
|
51
|
-
function
|
|
52
|
-
|
|
52
|
+
function te() {
|
|
53
|
+
G.value = false;
|
|
53
54
|
}
|
|
54
|
-
return
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
const e3 = R2.configure.props.otherSettings;
|
|
62
|
-
e3.tableSysCode && e3.sourceDataTable && ee(e3.tableSysCode, e3.tableSysVersion, e3.sourceDataTable);
|
|
55
|
+
return y((_c = (_b = (_a = M2.configure) == null ? void 0 : _a.props) == null ? void 0 : _b.dataOrigin) == null ? void 0 : _c.tableName).then((e3) => {
|
|
56
|
+
J.value = e3;
|
|
57
|
+
}), a(() => {
|
|
58
|
+
var _a2;
|
|
59
|
+
if ("otherDataTable" === ((_a2 = M2.configure.props.otherSettings) == null ? void 0 : _a2.dataSources)) {
|
|
60
|
+
const e3 = M2.configure.props.otherSettings;
|
|
61
|
+
e3.tableSysCode && e3.sourceDataTable && Z(e3.tableSysCode, e3.tableSysVersion, e3.sourceDataTable);
|
|
63
62
|
} else {
|
|
64
|
-
|
|
63
|
+
Z(M2.pageDesign.systemCode, M2.pageDesign.systemVersion, M2.configure.props.dataOrigin.tableName);
|
|
65
64
|
}
|
|
66
|
-
}),
|
|
67
|
-
const
|
|
68
|
-
return
|
|
69
|
-
return a3 = e3.$index, void (1 ===
|
|
65
|
+
}), M2.configure.props.otherSettings.fillTableData || (M2.configure.props.otherSettings.fillTableData = [{}]), M2.configure.props.otherSettings.fixedValueTableData || (M2.configure.props.otherSettings.fixedValueTableData = [{}]), (l2, a2) => {
|
|
66
|
+
const y2 = t("el-collapse-item"), x2 = t("el-form-item"), D2 = t("el-option"), Z2 = t("el-select"), oe = t("el-button"), ie = t("el-radio"), re = t("el-radio-group"), ue = t("el-input"), ne = t("el-icon"), de = t("el-table-column"), se = t("el-table"), pe = t("el-col"), ge = t("el-row"), ce = t("el-checkbox"), me = t("el-checkbox-group"), fe = t("el-divider"), be = t("el-input-number"), Ve = t("el-collapse"), he = t("el-dialog"), _e = t("el-form");
|
|
67
|
+
return i(), o(_e, { "label-width": "80px", size: "small" }, { default: r(() => [u(Ve, { modelValue: I.value, "onUpdate:modelValue": a2[23] || (a2[23] = (e3) => I.value = e3), style: { "margin-top": "6px" } }, { default: r(() => [u(y2, { title: "组合表头", name: "compositeHeader", class: "amb-design-attr-group-header" }, { default: r(() => [d("div", U, [u(v, { configure: e2.configure }, null, 8, ["configure"])])]), _: 1 }), u(y2, { title: "合并设置", name: "amalgamated", class: "amb-design-attr-group-header" }, { default: r(() => [d("div", N, [u(x2, { label: "相同值时合并字段", class: "amb-design-attr-item-linefeed-two" }, { default: r(() => [u(_, { modelValue: e2.configure.props.highOrder.mergeFields, "onUpdate:modelValue": a2[0] || (a2[0] = (l3) => e2.configure.props.highOrder.mergeFields = l3), multiple: true, tableConfigure: e2.configure }, null, 8, ["modelValue", "tableConfigure"])]), _: 1 }), u(x2, { label: "自定义合并", class: "amb-design-attr-item" }, { default: r(() => [u(Z2, { modelValue: e2.configure.props.highOrder.mergeDefined, "onUpdate:modelValue": a2[1] || (a2[1] = (l3) => e2.configure.props.highOrder.mergeDefined = l3), placeholder: "请选择" }, { default: r(() => [(i(true), s(p, null, g(e2.configure.events, (e3, l3) => (i(), o(D2, { key: l3, label: e3.label, value: e3.name }, null, 8, ["label", "value"]))), 128))]), _: 1 }, 8, ["modelValue"])]), _: 1 })])]), _: 1 }), u(y2, { title: "展开行内容", name: "unfoldConent", class: "amb-design-attr-group-header" }, { default: r(() => [d("div", z, [u(x2, { label: "展开内容", class: "amb-design-attr-item" }, { default: r(() => [u(oe, { type: "primary", onClick: a2[2] || (a2[2] = (e3) => R.value = true) }, { default: r(() => a2[26] || (a2[26] = [c("全屏编辑")])), _: 1 })]), _: 1 }), u(m(f), { modelValue: e2.configure.props.dataOrigin.unfoldConent, "onUpdate:modelValue": a2[3] || (a2[3] = (l3) => e2.configure.props.dataOrigin.unfoldConent = l3), options: W, placeholder: "请输入" }, null, 8, ["modelValue"]), u(x2, { label: "默认展开", class: "amb-design-attr-item" }, { default: r(() => [u(re, { modelValue: e2.configure.props.dataOrigin.defaultExpand, "onUpdate:modelValue": a2[4] || (a2[4] = (l3) => e2.configure.props.dataOrigin.defaultExpand = l3), class: "ml-4" }, { default: r(() => [u(ie, { value: true }, { default: r(() => a2[27] || (a2[27] = [c("是")])), _: 1 }), u(ie, { value: false }, { default: r(() => a2[28] || (a2[28] = [c("否")])), _: 1 })]), _: 1 }, 8, ["modelValue"])]), _: 1 })])]), _: 1 }), u(y2, { title: "树表格", name: "treeTable", class: "amb-design-attr-group-header" }, { default: r(() => [d("div", L, [u(x2, { label: "启用树表格", class: "amb-design-attr-item" }, { default: r(() => [u(re, { modelValue: e2.configure.props.dataOrigin.treeTable, "onUpdate:modelValue": a2[5] || (a2[5] = (l3) => e2.configure.props.dataOrigin.treeTable = l3), class: "ml-4" }, { default: r(() => [u(ie, { value: true }, { default: r(() => a2[29] || (a2[29] = [c("是")])), _: 1 }), u(ie, { value: false }, { default: r(() => a2[30] || (a2[30] = [c("否")])), _: 1 })]), _: 1 }, 8, ["modelValue"])]), _: 1 }), u(x2, { required: "", label: "父级字段", class: "amb-design-attr-item" }, { default: r(() => [u(_, { modelValue: e2.configure.props.dataOrigin.rowKey, "onUpdate:modelValue": a2[6] || (a2[6] = (l3) => e2.configure.props.dataOrigin.rowKey = l3), tableConfigure: e2.configure }, null, 8, ["modelValue", "tableConfigure"])]), _: 1 }), e2.configure.props.dataOrigin.rowKey ? (i(), o(x2, { key: 0, label: "懒加载", class: "amb-design-attr-item" }, { default: r(() => [u(re, { modelValue: e2.configure.props.dataOrigin.lazy, "onUpdate:modelValue": a2[7] || (a2[7] = (l3) => e2.configure.props.dataOrigin.lazy = l3), class: "ml-4" }, { default: r(() => [u(ie, { value: true }, { default: r(() => a2[31] || (a2[31] = [c("是")])), _: 1 }), u(ie, { value: false }, { default: r(() => a2[32] || (a2[32] = [c("否")])), _: 1 })]), _: 1 }, 8, ["modelValue"])]), _: 1 })) : n("", true), e2.configure.props.dataOrigin.rowKey && !e2.configure.props.dataOrigin.lazy ? (i(), o(x2, { key: 1, label: "展开子节点", class: "amb-design-attr-item" }, { default: r(() => [u(re, { modelValue: e2.configure.props.dataOrigin.defaultExpandAll, "onUpdate:modelValue": a2[8] || (a2[8] = (l3) => e2.configure.props.dataOrigin.defaultExpandAll = l3), class: "ml-4" }, { default: r(() => [u(ie, { value: true }, { default: r(() => a2[33] || (a2[33] = [c("是")])), _: 1 }), u(ie, { value: false }, { default: r(() => a2[34] || (a2[34] = [c("否")])), _: 1 })]), _: 1 }, 8, ["modelValue"])]), _: 1 })) : n("", true), e2.configure.props.dataOrigin.rowKey ? (i(), o(x2, { key: 2, label: "树节点缩减", class: "amb-design-attr-item" }, { default: r(() => [u(ue, { modelValue: e2.configure.props.dataOrigin.indent, "onUpdate:modelValue": a2[9] || (a2[9] = (l3) => e2.configure.props.dataOrigin.indent = l3) }, null, 8, ["modelValue"])]), _: 1 })) : n("", true), e2.configure.props.dataOrigin.treeTable ? (i(), o(x2, { key: 3, label: "关联父子节点选中状态", class: "amb-design-attr-item" }, { default: r(() => [u(re, { modelValue: e2.configure.props.dataOrigin.checkStrictly, "onUpdate:modelValue": a2[10] || (a2[10] = (l3) => e2.configure.props.dataOrigin.checkStrictly = l3), class: "ml-4" }, { default: r(() => [u(ie, { value: true }, { default: r(() => a2[35] || (a2[35] = [c("是")])), _: 1 }), u(ie, { value: false }, { default: r(() => a2[36] || (a2[36] = [c("否")])), _: 1 })]), _: 1 }, 8, ["modelValue"])]), _: 1 })) : n("", true)])]), _: 1 }), u(y2, { title: "删除逻辑控制", name: "deleteLogic", class: "amb-design-attr-group-header" }, { default: r(() => [d("div", P, [a2[39] || (a2[39] = d("span", null, "以下子表有记录时不能执行删除", -1)), u(se, { data: e2.configure.props.deleteLogicSetting, border: "", fit: "", "highlight-current-row": "" }, { default: r(() => [u(de, { label: "操作", align: "center", width: "50" }, { default: r((e3) => [u(ne, { onClick: ee }, { default: r(() => [u(m(b))]), _: 1 }), u(ne, { style: { "margin-left": "5px" }, onClick: (l3) => {
|
|
68
|
+
return a3 = e3.$index, void (1 === M2.configure.props.deleteLogicSetting.length ? M2.configure.props.deleteLogicSetting[0].secondTable = "" : M2.configure.props.deleteLogicSetting = M2.configure.props.deleteLogicSetting.filter((e4, l4) => l4 != a3));
|
|
70
69
|
var a3;
|
|
71
|
-
} }, { default:
|
|
72
|
-
return e3.row, a3 = e3.$index, void (1 ==
|
|
70
|
+
} }, { default: r(() => [u(m(V))]), _: 2 }, 1032, ["onClick"])]), _: 1 }), u(de, { label: "子表配置" }, { default: r((e3) => [u(Z2, { modelValue: e3.row.secondTable, "onUpdate:modelValue": (l3) => e3.row.secondTable = l3, clearable: "", size: "default" }, { default: r(() => [(i(true), s(p, null, g(J.value, (e4) => (i(), o(D2, { key: e4, label: e4, value: e4 }, null, 8, ["label", "value"]))), 128))]), _: 2 }, 1032, ["modelValue", "onUpdate:modelValue"])]), _: 1 })]), _: 1 }, 8, ["data"]), u(x2, { label: "逻辑删除", title: "是否逻辑删除", class: "amb-design-attr-item" }, { default: r(() => [u(re, { modelValue: e2.configure.props.base.isSafeDelete, "onUpdate:modelValue": a2[11] || (a2[11] = (l3) => e2.configure.props.base.isSafeDelete = l3), class: "ml-4" }, { default: r(() => [u(ie, { value: true }, { default: r(() => a2[37] || (a2[37] = [c("是")])), _: 1 }), u(ie, { value: false }, { default: r(() => a2[38] || (a2[38] = [c("否")])), _: 1 })]), _: 1 }, 8, ["modelValue"])]), _: 1 })])]), _: 1 }), u(y2, { title: "导入配置", name: "importSetting", class: "amb-design-attr-group-header" }, { default: r(() => [d("div", j, [u(x2, { label: "重复处理", class: "amb-design-attr-item" }, { default: r(() => [u(re, { modelValue: e2.configure.props.importSetting.listViewImportDuplicate, "onUpdate:modelValue": a2[12] || (a2[12] = (l3) => e2.configure.props.importSetting.listViewImportDuplicate = l3), class: "ml-4" }, { default: r(() => [u(ge, null, { default: r(() => [u(pe, { span: 12 }, { default: r(() => [u(ie, { value: "update" }, { default: r(() => a2[40] || (a2[40] = [c("更新数据")])), _: 1 })]), _: 1 }), u(pe, { span: 12 }, { default: r(() => [u(ie, { value: "skip" }, { default: r(() => a2[41] || (a2[41] = [c("跳过")])), _: 1 })]), _: 1 }), u(pe, { span: 12 }, { default: r(() => [u(ie, { value: "termination" }, { default: r(() => a2[42] || (a2[42] = [c("中止导入")])), _: 1 })]), _: 1 })]), _: 1 })]), _: 1 }, 8, ["modelValue"])]), _: 1 }), u(S, { configure: e2.configure }, null, 8, ["configure"])])]), _: 1 }), u(y2, { title: "初始化配置", name: "initialConfig", class: "amb-design-attr-group-header" }, { default: r(() => [d("div", F, [u(x2, { label: "初始化子表", title: "初始化子表", class: "amb-design-attr-item" }, { default: r(() => [u(me, { modelValue: e2.configure.props.otherSettings.timeToInitializeSubTable, "onUpdate:modelValue": a2[13] || (a2[13] = (l3) => e2.configure.props.otherSettings.timeToInitializeSubTable = l3) }, { default: r(() => [u(ce, { label: "新建表单时", value: "create" }), u(ce, { label: "子表无项目时", value: "noData" })]), _: 1 }, 8, ["modelValue"])]), _: 1 }), u(x2, { label: "移动端标题", title: "移动端行标题", class: "amb-design-attr-item" }, { default: r(() => [u(ue, { modelValue: e2.configure.props.otherSettings.mobileLineTitle, "onUpdate:modelValue": a2[14] || (a2[14] = (l3) => e2.configure.props.otherSettings.mobileLineTitle = l3) }, null, 8, ["modelValue"])]), _: 1 }), u(x2, { label: "数据来源", title: "子表内容数据来源", class: "amb-design-attr-item" }, { default: r(() => [u(Z2, { modelValue: e2.configure.props.otherSettings.dataSources, "onUpdate:modelValue": a2[15] || (a2[15] = (l3) => e2.configure.props.otherSettings.dataSources = l3), clearable: "" }, { default: r(() => [u(D2, { label: "子表内容从其他数据表填充", value: "otherDataTable" }), u(D2, { label: "固定值", value: "fixedValue" })]), _: 1 }, 8, ["modelValue"])]), _: 1 }), "fixedValue" === e2.configure.props.otherSettings.dataSources ? (i(), s("div", $, [u(fe, null, { default: r(() => a2[43] || (a2[43] = [c(" 固定值 ")])), _: 1 }), u(se, { data: e2.configure.props.otherSettings.fixedValueTableData, style: { width: "100%" } }, { default: r(() => [u(de, { width: "60", align: "center" }, { default: r((e3) => [u(ne, { size: "14", style: { color: "#5893ef", cursor: "pointer", "font-weight": "bold", "margin-right": "8px" }, onClick: (l3) => (e3.row, e3.$index, void M2.configure.props.otherSettings.fixedValueTableData.push({})) }, { default: r(() => [u(m(b))]), _: 2 }, 1032, ["onClick"]), u(ne, { size: "14", style: { color: "#5893ef", cursor: "pointer" }, onClick: (l3) => {
|
|
71
|
+
return e3.row, a3 = e3.$index, void (1 == M2.configure.props.otherSettings.fixedValueTableData.length ? (M2.configure.props.otherSettings.fixedValueTableData[0].sourcePropName = "", M2.configure.props.otherSettings.fixedValueTableData[0].optionGroupCode = "", M2.configure.props.otherSettings.fixedValueTableData[0].fixedValue = "") : M2.configure.props.otherSettings.fixedValueTableData.splice(a3, 1));
|
|
73
72
|
var a3;
|
|
74
|
-
} }, { default:
|
|
75
|
-
return e3.row, a3 = e3.$index, void (1 ==
|
|
73
|
+
} }, { default: r(() => [u(m(h))]), _: 2 }, 1032, ["onClick"])]), _: 1 }), u(de, { prop: "label", label: "子表字段", width: "90", align: "center" }, { default: r((l3) => [u(Z2, { modelValue: l3.row.sourcePropName, "onUpdate:modelValue": (e3) => l3.row.sourcePropName = e3, placeholder: "请选择" }, { default: r(() => [(i(true), s(p, null, g(e2.configure.modelFields, (e3, l4) => (i(), o(D2, { key: l4, label: e3.alias, value: e3.dbColumnName }, null, 8, ["label", "value"]))), 128))]), _: 2 }, 1032, ["modelValue", "onUpdate:modelValue"])]), _: 1 }), u(de, { prop: "value", label: "选项组编码", width: "90", align: "center" }, { default: r((e3) => [u(ue, { modelValue: e3.row.optionGroupCode, "onUpdate:modelValue": (l3) => e3.row.optionGroupCode = l3, size: "small" }, null, 8, ["modelValue", "onUpdate:modelValue"])]), _: 1 }), u(de, { prop: "value", label: "固定值", width: "90", align: "center" }, { default: r((e3) => [u(ue, { modelValue: e3.row.fixedValue, "onUpdate:modelValue": (l3) => e3.row.fixedValue = l3 }, null, 8, ["modelValue", "onUpdate:modelValue"])]), _: 1 })]), _: 1 }, 8, ["data"])])) : (i(), s("div", Q, [u(fe, null, { default: r(() => a2[44] || (a2[44] = [c(" 来源 ")])), _: 1 }), u(x2, { label: "数据表", title: "数据表", class: "amb-design-attr-item" }, { default: r(() => [u(ue, { modelValue: e2.configure.props.otherSettings.sourceDataTable, "onUpdate:modelValue": a2[16] || (a2[16] = (l3) => e2.configure.props.otherSettings.sourceDataTable = l3), title: e2.configure.props.otherSettings.sourceDataTable, clearable: "", onDblclick: B, readonly: "true" }, { append: r(() => [u(oe, { type: "default", icon: m(w), onClick: B, size: "small" }, null, 8, ["icon"]), u(oe, { type: "default", icon: m(O), onClick: X, title: "Clear", size: "small" }, null, 8, ["icon"])]), _: 1 }, 8, ["modelValue", "title"])]), _: 1 }), u(x2, { label: "排序", title: "排序", class: "amb-design-attr-item" }, { default: r(() => [d("div", E, [u(Z2, { modelValue: e2.configure.props.otherSettings.sourceDataTableSortColumn, "onUpdate:modelValue": a2[17] || (a2[17] = (l3) => e2.configure.props.otherSettings.sourceDataTableSortColumn = l3), clearable: "", filterable: "" }, { default: r(() => [(i(true), s(p, null, g(H.value, (e3) => (i(), o(D2, { key: e3, label: e3.alias, value: e3.dbColumnName }, null, 8, ["label", "value"]))), 128))]), _: 1 }, 8, ["modelValue"]), u(Z2, { modelValue: e2.configure.props.otherSettings.sourceDataTableSortOrder, "onUpdate:modelValue": a2[18] || (a2[18] = (l3) => e2.configure.props.otherSettings.sourceDataTableSortOrder = l3), style: { width: "120px", "margin-left": "10px" }, clearable: "" }, { default: r(() => [u(D2, { label: "升序", value: "asc" }), u(D2, { label: "降序", value: "desc" })]), _: 1 }, 8, ["modelValue"])])]), _: 1 }), u(x2, { label: "条件", class: "amb-design-attr-item" }, { default: r(() => [u(k, { onClick: a2[19] || (a2[19] = (e3) => G.value = true), conditionData: JSON.parse(e2.configure.props.otherSettings.sourceQueryTableData) }, null, 8, ["conditionData"])]), _: 1 }), u(fe, null, { default: r(() => a2[45] || (a2[45] = [c(" 填充至 ")])), _: 1 }), u(x2, { label: "来源过滤", title: "来源过滤条件中对象变化时加载", class: "amb-design-attr-item" }, { default: r(() => [u(re, { modelValue: e2.configure.props.otherSettings.isRealTimeChange, "onUpdate:modelValue": a2[20] || (a2[20] = (l3) => e2.configure.props.otherSettings.isRealTimeChange = l3), class: "ml-4", onChange: ae }, { default: r(() => [u(ie, { value: true }, { default: r(() => a2[46] || (a2[46] = [c("是")])), _: 1 }), u(ie, { value: false }, { default: r(() => a2[47] || (a2[47] = [c("否")])), _: 1 })]), _: 1 }, 8, ["modelValue"])]), _: 1 }), u(se, { data: e2.configure.props.otherSettings.fillTableData, style: { width: "100%" } }, { default: r(() => [u(de, { width: "60", align: "center" }, { default: r((e3) => [u(ne, { size: "14", style: { color: "#5893ef", cursor: "pointer", "font-weight": "bold", "margin-right": "8px" }, onClick: (l3) => (e3.row, e3.$index, void M2.configure.props.otherSettings.fillTableData.push({})) }, { default: r(() => [u(m(b))]), _: 2 }, 1032, ["onClick"]), u(ne, { size: "14", style: { color: "#5893ef", cursor: "pointer" }, onClick: (l3) => {
|
|
74
|
+
return e3.row, a3 = e3.$index, void (1 == M2.configure.props.otherSettings.fillTableData.length ? (M2.configure.props.otherSettings.fillTableData[0].sourcePropName = "", M2.configure.props.otherSettings.fillTableData[0].childPropName = "", M2.configure.props.otherSettings.fillTableData[0].defaultValue = "") : M2.configure.props.otherSettings.fillTableData.splice(a3, 1));
|
|
76
75
|
var a3;
|
|
77
|
-
} }, { default:
|
|
76
|
+
} }, { default: r(() => [u(m(h))]), _: 2 }, 1032, ["onClick"])]), _: 1 }), u(de, { prop: "label", label: "来源字段", width: "90", align: "center" }, { default: r((e3) => [u(Z2, { modelValue: e3.row.sourcePropName, "onUpdate:modelValue": (l3) => e3.row.sourcePropName = l3, clearable: "", filterable: "" }, { default: r(() => [(i(true), s(p, null, g(H.value, (e4) => (i(), o(D2, { key: e4, label: e4.alias, value: e4.dbColumnName }, null, 8, ["label", "value"]))), 128))]), _: 2 }, 1032, ["modelValue", "onUpdate:modelValue"])]), _: 1 }), u(de, { prop: "value", label: "子表字段", width: "90", align: "center" }, { default: r((l3) => [u(Z2, { modelValue: l3.row.childPropName, "onUpdate:modelValue": (e3) => l3.row.childPropName = e3, placeholder: "请选择" }, { default: r(() => [(i(true), s(p, null, g(e2.configure.modelFields, (e3, l4) => (i(), o(D2, { key: l4, label: e3.alias, value: e3.dbColumnName }, null, 8, ["label", "value"]))), 128))]), _: 2 }, 1032, ["modelValue", "onUpdate:modelValue"])]), _: 1 }), u(de, { prop: "value", label: "默认值", width: "90", align: "center" }, { default: r((e3) => [u(ue, { modelValue: e3.row.defaultValue, "onUpdate:modelValue": (l3) => e3.row.defaultValue = l3, size: "small" }, null, 8, ["modelValue", "onUpdate:modelValue"])]), _: 1 })]), _: 1 }, 8, ["data"])]))])]), _: 1 }), u(y2, { title: "其他", name: "otherSettings", class: "amb-design-attr-group-header" }, { default: r(() => [d("div", K, [u(x2, { label: "数据权限", title: "数据权限限制", class: "amb-design-attr-item" }, { default: r(() => [u(re, { modelValue: e2.configure.props.otherSettings.isWithDataPermission, "onUpdate:modelValue": a2[21] || (a2[21] = (l3) => e2.configure.props.otherSettings.isWithDataPermission = l3), class: "ml-4" }, { default: r(() => [u(ie, { value: true }, { default: r(() => a2[48] || (a2[48] = [c("是")])), _: 1 }), u(ie, { value: false }, { default: r(() => a2[49] || (a2[49] = [c("否")])), _: 1 })]), _: 1 }, 8, ["modelValue"])]), _: 1 }), u(x2, { label: "记录最大数", title: "表格记录最大数量", class: "amb-design-attr-item" }, { default: r(() => [u(be, { modelValue: e2.configure.props.otherSettings.tableRecordMaxNum, "onUpdate:modelValue": a2[22] || (a2[22] = (l3) => e2.configure.props.otherSettings.tableRecordMaxNum = l3) }, null, 8, ["modelValue"])]), _: 1 })])]), _: 1 }), u(C, { ref_key: "selectTableDialog", ref: A, onSelectTable: Y, systemCode: e2.pageDesign.systemCode, systemVersion: e2.pageDesign.systemVersion }, null, 8, ["systemCode", "systemVersion"]), G.value ? (i(), o(T, { key: 0, list: e2.configure.props.otherSettings.sourceQueryTableData ? JSON.parse(e2.configure.props.otherSettings.sourceQueryTableData) : null, fieldNameList: H.value, fieldMap: q.value, dataFieldNameList: e2.pageDesign.modelFields, paramTypes: ["data", "page", "task", "context", "system", "request", "fixed"], onSave: le, onClose: te }, null, 8, ["list", "fieldNameList", "fieldMap", "dataFieldNameList"])) : n("", true)]), _: 1 }, 8, ["modelValue"]), u(he, { "append-to-body": "", modelValue: R.value, "onUpdate:modelValue": a2[25] || (a2[25] = (e3) => R.value = e3), fullscreen: "" }, { default: r(() => [u(m(f), { modelValue: e2.configure.props.dataOrigin.unfoldConent, "onUpdate:modelValue": a2[24] || (a2[24] = (l3) => e2.configure.props.dataOrigin.unfoldConent = l3), options: W, placeholder: "请输入" }, null, 8, ["modelValue"])]), _: 1 }, 8, ["modelValue"])]), _: 1 });
|
|
78
77
|
};
|
|
79
78
|
} });
|
|
80
79
|
export {
|
|
81
|
-
|
|
80
|
+
M as default
|
|
82
81
|
};
|