super-page-designer 2.2.61 → 2.2.67
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 +2 -2
- package/dist/es/components/design/utils/common-util.js +3 -0
- package/dist/es/components/design/utils/form-design-util.d.ts +1 -1
- package/dist/es/components/design/utils/form-design-util.js +7 -4
- package/dist/es/components/design/utils/page-table-util.d.ts +1 -1
- package/dist/es/components/design/utils/page-table-util.js +4 -4
- package/dist/es/components/design/views/assemblys/button/button/button-attr-advanced.vue.js +39 -39
- package/dist/es/components/design/views/assemblys/button/button/button-attr-base.vue.js +1 -1
- package/dist/es/components/design/views/assemblys/button/component/combination.vue.js +1 -1
- package/dist/es/components/design/views/assemblys/button/component/journal-set-dialog.vue2.js +1 -1
- package/dist/es/components/design/views/assemblys/button/component/set-dialog.vue.js +22 -22
- package/dist/es/components/design/views/assemblys/button/dropdown/dropdown-attr-base.vue.js +1 -1
- package/dist/es/components/design/views/assemblys/chart/common/common-attr-clickset.vue.js +1 -1
- package/dist/es/components/design/views/assemblys/chart/common/common-attr-data.vue.js +1 -1
- package/dist/es/components/design/views/assemblys/chart/common/common-attr-groupby.vue.js +1 -1
- package/dist/es/components/design/views/assemblys/chart/common/common-attr-sortby.vue.js +1 -1
- package/dist/es/components/design/views/assemblys/chart/common/common-home-chart.vue2.js +1 -1
- package/dist/es/components/design/views/assemblys/chart/statistical-table/component/data-origin.vue2.js +1 -1
- package/dist/es/components/design/views/assemblys/chart/statistical-table/component/table-pageination.vue.js +1 -1
- package/dist/es/components/design/views/assemblys/chart/statistical-table/component/table-showcondition.vue.js +12 -12
- package/dist/es/components/design/views/assemblys/common/common-advanced-basic-showcondition.vue.js +1 -1
- package/dist/es/components/design/views/assemblys/common/common-select-table.vue.js +10 -10
- package/dist/es/components/design/views/assemblys/common/common-variable-bind.vue.js +7 -0
- package/dist/es/components/design/views/assemblys/common/common-variable-bind.vue2.js +137 -5
- package/dist/es/components/design/views/assemblys/container/tabs/tabs-design.vue.js +4 -1
- package/dist/es/components/design/views/assemblys/container/tabs/tabs-design.vue2.js +9 -9
- package/dist/es/components/design/views/assemblys/container/tools/tools-design.vue2.js +6 -6
- package/dist/es/components/design/views/assemblys/data/bar-code/barcode-attr-base.vue.js +1 -1
- package/dist/es/components/design/views/assemblys/data/component/data-origin-tree.vue.js +1 -1
- package/dist/es/components/design/views/assemblys/data/component/data-origin-tree.vue2.js +55 -55
- package/dist/es/components/design/views/assemblys/data/table/table-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 +32 -16
- package/dist/es/components/design/views/assemblys/data/tree/tree-attr-context-menu.vue.js +37 -0
- package/dist/es/components/design/views/assemblys/data/tree/tree-attr-context-menu.vue2.js +4 -0
- package/dist/es/components/design/views/assemblys/data/tree/tree-design.vue2.js +4 -4
- package/dist/es/components/design/views/assemblys/form/checkbox/checkbox-attr-base.vue.js +1 -1
- package/dist/es/components/design/views/assemblys/form/common/bar-code-rule.vue.js +1 -1
- package/dist/es/components/design/views/assemblys/form/common/condition.vue.js +1 -1
- package/dist/es/components/design/views/assemblys/form/common/data-format.vue.js +1 -1
- package/dist/es/components/design/views/assemblys/form/common/data-linkage.vue.js +1 -1
- package/dist/es/components/design/views/assemblys/form/common/data-origin-autoset.vue.js +1 -1
- package/dist/es/components/design/views/assemblys/form/common/data-origin-service-in.vue.js +1 -1
- package/dist/es/components/design/views/assemblys/form/common/linkpage-page-callback.vue.js +1 -1
- package/dist/es/components/design/views/assemblys/form/common/parameter-table.vue.js +1 -1
- package/dist/es/components/design/views/assemblys/form/common/suffixmodule.vue.js +1 -1
- package/dist/es/components/design/views/assemblys/form/common/title-suffix.vue.js +1 -1
- package/dist/es/components/design/views/assemblys/form/date-picker/datepicker-attr-base.vue.js +1 -1
- package/dist/es/components/design/views/assemblys/form/dept-tree/depttree-attr-base.vue.js +1 -1
- package/dist/es/components/design/views/assemblys/form/dept-tree/depttree-autoset.vue.js +1 -1
- package/dist/es/components/design/views/assemblys/form/divider/divider-attr-base.vue.js +1 -1
- package/dist/es/components/design/views/assemblys/form/file-upload/fileupload-attr-base.vue.js +1 -1
- package/dist/es/components/design/views/assemblys/form/input-number/input-number-attr-base.vue.js +1 -1
- package/dist/es/components/design/views/assemblys/form/input-text/inputtext-attr-base.vue.js +1 -1
- package/dist/es/components/design/views/assemblys/form/label/label-attr-base.vue.js +1 -1
- package/dist/es/components/design/views/assemblys/form/link/link-attr-base.vue.js +1 -1
- package/dist/es/components/design/views/assemblys/form/radio/radio-attr-base.vue.js +1 -1
- package/dist/es/components/design/views/assemblys/form/rich-text/richtext-attr-base.vue.js +1 -1
- package/dist/es/components/design/views/assemblys/form/select/select-attr-base.vue.js +1 -1
- package/dist/es/components/design/views/assemblys/form/switch/switch-attr-base.vue.js +1 -1
- package/dist/es/components/design/views/assemblys/form/tag/tag-attr-base.vue.js +1 -1
- package/dist/es/components/design/views/assemblys/form/textarea/textarea-attr-base.vue.js +1 -1
- package/dist/es/components/design/views/assemblys/workflow/component/combination.vue.js +1 -1
- package/dist/es/components/design/views/design/page-design.vue2.js +1 -1
- package/dist/es/components/design/views/design/page-design.vue3.js +1 -1
- package/dist/es/components/design/views/design/page-event/page-event-content.vue.js +1 -1
- package/dist/es/components/design/views/design/view/assemblys-container.vue.js +13 -20
- package/dist/es/components/design/views/design/view/attr-container.vue.js +22 -29
- package/dist/es/components/design/views/design/view/components/quick-add-dialog.vue.js +1 -1
- package/dist/es/components/design/views/design/view/components/quick-add-fields.vue.js +1 -1
- package/dist/es/components/design/views/design/view/page-switch.vue.js +1 -1
- package/dist/es/components/design/views/design/view/page-switch.vue2.js +8 -8
- package/dist/es/components/design/views/design/view/view-design-display.vue.js +5 -154
- package/dist/es/components/design/views/design/view/view-design-display.vue2.js +148 -2
- package/dist/es/components/design/views/design/view/view-design-preview.vue.js +5 -20
- package/dist/es/components/design/views/design/view/view-design-preview.vue2.js +20 -2
- package/dist/es/style.css +1051 -821
- package/package.json +4 -4
- package/dist/es/components/design/views/assemblys/common/common-variable-bind.vue3.js +0 -139
|
@@ -6,12 +6,12 @@ import { caculateComponentStyle as j } from "../../../../utils/container-design-
|
|
|
6
6
|
import "element-plus";
|
|
7
7
|
import { copyHandleEvents as x, deleteDesignItem as h } from "../../../../utils/page-design-util.js";
|
|
8
8
|
import { getInputTypeComponentNames as O } from "../../../../utils/assemblys-config.js";
|
|
9
|
-
const W = { class: "amb-widget-tools-parent amb-design-item-default"
|
|
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 A = t({}), w = t(""), k = n(() => {
|
|
13
13
|
const { gap: e3 } = C.configure.props ?? {};
|
|
14
|
-
return { ...e3 ? { gap: `${e3}px` } : {}, ...
|
|
14
|
+
return { ...e3 ? { gap: `${e3}px` } : {}, ...A.value ?? {} };
|
|
15
15
|
});
|
|
16
16
|
i(C.configure.style, () => {
|
|
17
17
|
R();
|
|
@@ -33,9 +33,9 @@ const W = { class: "amb-widget-tools-parent amb-design-item-default", style: { w
|
|
|
33
33
|
}, { important: true, deep: true });
|
|
34
34
|
const N = t(null);
|
|
35
35
|
function R() {
|
|
36
|
-
j(C.configure,
|
|
36
|
+
j(C.configure, A, w, null);
|
|
37
37
|
const e3 = C.configure.props;
|
|
38
|
-
"flex-end" == e3.align ?
|
|
38
|
+
"flex-end" == e3.align ? A.value["justify-content"] = "right" : "center" == e3.align && (A.value["justify-content"] = "center"), C.configure.runtime.style = A.value, C.configure.runtime.class = w.value;
|
|
39
39
|
}
|
|
40
40
|
d(N, 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) {
|
|
@@ -69,7 +69,7 @@ const W = { class: "amb-widget-tools-parent amb-design-item-default", style: { w
|
|
|
69
69
|
let t2 = C.configure.items;
|
|
70
70
|
h(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",
|
|
72
|
+
return (e3, t2) => (r(), u("div", W, [l("div", { class: c(["amb-widget-tools", w.value]), style: g([k.value, { display: "flex" }]), ref_key: "thisRef", ref: N }, [(r(true), u(f, null, p(e3.configure.items, (t3, n2) => (r(), m(b, { 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
|
|
@@ -2,7 +2,7 @@ import { defineComponent as e, ref as l, onMounted as a, resolveComponent as o,
|
|
|
2
2
|
import { getFormComponentOptions as f } from "../../../../utils/assemblys-config.js";
|
|
3
3
|
import g from "../../common/common-attr-size.vue.js";
|
|
4
4
|
import "@element-plus/icons-vue";
|
|
5
|
-
import v from "../../common/common-variable-bind.
|
|
5
|
+
import v from "../../common/common-variable-bind.vue.js";
|
|
6
6
|
import V from "agilebuilder-ui/src/utils/request";
|
|
7
7
|
const _ = { style: { padding: "8px 0px 0px 0px" } }, y = e({ __name: "barcode-attr-base", props: { configure: Object, default: () => ({ props: {} }) }, setup(e2) {
|
|
8
8
|
const y2 = e2, C = l([]);
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import e from "./data-origin-tree.vue2.js";
|
|
2
2
|
/* empty css */
|
|
3
3
|
import r from "../../../../../../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
-
const t = r(e, [["__scopeId", "data-v-
|
|
4
|
+
const t = r(e, [["__scopeId", "data-v-c07fe584"]]);
|
|
5
5
|
export {
|
|
6
6
|
t as default
|
|
7
7
|
};
|
|
@@ -1,80 +1,80 @@
|
|
|
1
|
-
import { defineComponent as e, ref as a, onMounted as l, resolveComponent as t, createBlock as o, openBlock as i, withCtx as n, createElementVNode as r, createVNode as u,
|
|
2
|
-
import
|
|
1
|
+
import { defineComponent as e, ref as a, onMounted as l, resolveComponent as t, createBlock as o, openBlock as i, withCtx as n, createElementVNode as r, createVNode as u, renderSlot as d, createCommentVNode as s, withDirectives as p, createTextVNode as m, vShow as c, unref as g, createElementBlock as f, Fragment as b, renderList as y, normalizeClass as V } from "vue";
|
|
2
|
+
import v from "../../form/common/condition.vue.js";
|
|
3
3
|
import "@element-plus/icons-vue";
|
|
4
4
|
import "uuid";
|
|
5
|
-
import { usePageContextStore as
|
|
6
|
-
import
|
|
7
|
-
import
|
|
8
|
-
import { queryTableFields as
|
|
9
|
-
import
|
|
10
|
-
import { Search as
|
|
11
|
-
import
|
|
12
|
-
import
|
|
13
|
-
import { Codemirror as
|
|
14
|
-
const
|
|
15
|
-
const
|
|
16
|
-
|
|
17
|
-
const
|
|
18
|
-
|
|
19
|
-
const
|
|
20
|
-
|
|
21
|
-
const
|
|
22
|
-
function
|
|
5
|
+
import { usePageContextStore as O } from "../../../../../../stores/page-store.js";
|
|
6
|
+
import S from "../../form/common/data-origin-autoset.vue.js";
|
|
7
|
+
import _ from "../../form/common/data-origin-service-in.vue.js";
|
|
8
|
+
import { queryTableFields as T } from "../../../../utils/page-table-util.js";
|
|
9
|
+
import C from "../../common/common-select-table.vue.js";
|
|
10
|
+
import { Search as h, Close as F } from "@element-plus/icons";
|
|
11
|
+
import k from "agilebuilder-ui/src/utils/request";
|
|
12
|
+
import N from "../../common/page-permission-select.vue.js";
|
|
13
|
+
import { Codemirror as D } from "vue-codemirror";
|
|
14
|
+
const U = { style: { padding: "8px 0px 0px 0px" } }, j = ["onClick"], x = e({ __name: "data-origin-tree", props: { configure: { type: Object, default: {} }, remote: { type: Boolean, default: true } }, setup(e2) {
|
|
15
|
+
const x2 = e2, w = O(), L = w.pageContext, A = { tabSize: 4, lineNumbers: true, mode: "application/json", theme: "default", line: true, styleActiveLine: true, matchBrackets: true };
|
|
16
|
+
x2.configure.props.dataOrigin || (x2.configure.props.dataOrigin = {});
|
|
17
|
+
const q = x2.configure.props.dataOrigin;
|
|
18
|
+
q.service || (q.service = {}), q.filterList || (q.filterList = []);
|
|
19
|
+
const z = a(null), R = a(null), $ = a(""), B = a(null);
|
|
20
|
+
x2.configure.props.dataOrigin.optionValueSetType && 0 !== x2.configure.props.dataOrigin.optionValueSetType.length || (x2.configure.props.dataOrigin.optionValueSetType = "static");
|
|
21
|
+
const I = a(false), E = a([]);
|
|
22
|
+
function G(e3) {
|
|
23
23
|
if (e3) {
|
|
24
|
-
|
|
24
|
+
I.value = true;
|
|
25
25
|
const a2 = { query: e3 };
|
|
26
|
-
|
|
27
|
-
|
|
26
|
+
k.post("/component/dynamic-options/query", a2).then((e4) => {
|
|
27
|
+
I.value = false, E.value = e4;
|
|
28
28
|
}).catch((e4) => {
|
|
29
|
-
|
|
29
|
+
I.value = false;
|
|
30
30
|
});
|
|
31
|
-
} else
|
|
32
|
-
}
|
|
33
|
-
function G(e3) {
|
|
34
|
-
const a2 = I.value.find((a3) => a3.code === e3);
|
|
35
|
-
A.dynamicDataSourceFields = a2 ? a2.outFields : [], H();
|
|
31
|
+
} else E.value = [], I.value = false;
|
|
36
32
|
}
|
|
37
|
-
function H() {
|
|
38
|
-
const
|
|
39
|
-
|
|
33
|
+
function H(e3) {
|
|
34
|
+
const a2 = E.value.find((a3) => a3.code === e3);
|
|
35
|
+
q.dynamicDataSourceFields = a2 ? a2.outFields : [], J();
|
|
40
36
|
}
|
|
41
37
|
function J() {
|
|
42
|
-
|
|
38
|
+
const e3 = q.optionValueSetType;
|
|
39
|
+
B.value && ("dynamicData" == e3 ? B.value.updateSourceFields(q.dynamicDataSourceFields) : "dataTable" == e3 && (B.value.updateSourceFields(Q.value), z.value.changeTableFields(Q.value)));
|
|
43
40
|
}
|
|
44
41
|
function K() {
|
|
45
|
-
|
|
42
|
+
R.value.openDialog();
|
|
43
|
+
}
|
|
44
|
+
function M() {
|
|
45
|
+
q.tableName = "", q.tableAlias = "", q.tableSysCode = null, q.tableSysVersion = null, Q.value = [];
|
|
46
46
|
}
|
|
47
|
-
function
|
|
48
|
-
let a2 =
|
|
49
|
-
a2 += "_", a2 +=
|
|
47
|
+
function P(e3) {
|
|
48
|
+
let a2 = q.tableSysCode ? q.tableSysCode : "";
|
|
49
|
+
a2 += "_", a2 += q.tableSysVersion ? q.tableSysVersion : "", a2 += "_", a2 += q.tableName ? q.tableName : "";
|
|
50
50
|
let l2 = e3.systemCode ? e3.systemCode : "";
|
|
51
|
-
l2 += "_", l2 += e3.systemVersion ? e3.systemVersion : "", l2 += "_", l2 += e3.name ? e3.name : "", l2 != a2 && (
|
|
51
|
+
l2 += "_", l2 += e3.systemVersion ? e3.systemVersion : "", l2 += "_", l2 += e3.name ? e3.name : "", l2 != a2 && (q.tableSysCode = e3.systemCode, q.tableSysVersion = e3.systemVersion, q.tableName = e3.name, q.tableAlias = e3.alias, W());
|
|
52
52
|
}
|
|
53
|
-
let
|
|
54
|
-
function
|
|
55
|
-
const e3 =
|
|
56
|
-
l2 &&
|
|
57
|
-
|
|
53
|
+
let Q = a([]);
|
|
54
|
+
function W() {
|
|
55
|
+
const e3 = q.tableSysCode ? q.tableSysCode : w.pageContext.systemCode, a2 = q.tableSysVersion ? q.tableSysVersion : w.pageContext.systemVersion, l2 = q.tableName;
|
|
56
|
+
l2 && T(e3, a2, l2).then((e4) => {
|
|
57
|
+
Q.value = e4, J();
|
|
58
58
|
}).catch((e4) => {
|
|
59
59
|
});
|
|
60
60
|
}
|
|
61
|
-
function W() {
|
|
62
|
-
A.sortFields || (A.sortFields = []), A.sortFields.push({ name: "", type: "" }), R.value = "";
|
|
63
|
-
}
|
|
64
61
|
function X() {
|
|
65
|
-
|
|
62
|
+
q.sortFields || (q.sortFields = []), q.sortFields.push({ name: "", type: "" }), $.value = "";
|
|
63
|
+
}
|
|
64
|
+
function Y() {
|
|
65
|
+
q.sortFields.length > 0 && q.sortFields.splice(q.sortFields.length - 1, 1);
|
|
66
66
|
}
|
|
67
67
|
return l(() => {
|
|
68
|
-
|
|
68
|
+
J(), W();
|
|
69
69
|
}), (a2, l2) => {
|
|
70
|
-
const
|
|
71
|
-
return i(), o(
|
|
72
|
-
|
|
73
|
-
}(a3), style: { "margin-top": "6px" }, class:
|
|
74
|
-
|
|
75
|
-
}(0, a3, l3)) }, null, 8, ["pageDesign", "rowObj"])]), _: 1 }, 512), [[
|
|
70
|
+
const O2 = t("el-radio"), T2 = t("el-radio-group"), k2 = t("el-form-item"), x3 = t("el-radio-button"), w2 = t("el-option"), W2 = t("el-select"), Z = t("el-button"), ee = t("el-input"), ae = t("el-collapse-item");
|
|
71
|
+
return i(), o(ae, { title: "数据源", name: "dataOrigin", class: "amb-design-attr-group-header" }, { default: n(() => [r("div", U, [u(k2, { label: "数据来源", class: "amb-design-attr-item" }, { default: n(() => [u(T2, { modelValue: e2.configure.props.dataOrigin.optionValueSetType, "onUpdate:modelValue": l2[0] || (l2[0] = (a3) => e2.configure.props.dataOrigin.optionValueSetType = a3), onChange: J }, { default: n(() => [u(O2, { value: "static" }, { default: n(() => l2[12] || (l2[12] = [m("静态数据")])), _: 1 }), u(O2, { value: "beanName" }, { default: n(() => l2[13] || (l2[13] = [m("后台bean")])), _: 1 }), u(O2, { value: "dynamicData" }, { default: n(() => l2[14] || (l2[14] = [m("动态数据源")])), _: 1 }), u(O2, { value: "dataTable" }, { default: n(() => l2[15] || (l2[15] = [m("数据表/视图")])), _: 1 }), u(O2, { value: "service" }, { default: n(() => l2[16] || (l2[16] = [m("服务")])), _: 1 })]), _: 1 }, 8, ["modelValue"])]), _: 1 }), "beanName" === e2.configure.props.dataOrigin.optionValueSetType ? d(a2.$slots, "beanName", { key: 0 }, void 0, true) : s("", true), p(u(k2, { label: "可搜索", class: "amb-design-attr-item" }, { default: n(() => [u(T2, { modelValue: e2.configure.props.dataOrigin.filterType, "onUpdate:modelValue": l2[1] || (l2[1] = (a3) => e2.configure.props.dataOrigin.filterType = a3), class: "ml-4" }, { default: n(() => [u(x3, { value: "normal" }, { default: n(() => l2[17] || (l2[17] = [m("普通")])), _: 1 }), p(u(x3, { value: "remote" }, { default: n(() => l2[18] || (l2[18] = [m("远程")])), _: 1 }, 512), [[c, "dataTable" == e2.configure.props.dataOrigin.optionValueSetType || "dynamicData" == e2.configure.props.dataOrigin.optionValueSetType || "service" == e2.configure.props.dataOrigin.optionValueSetType]]), u(x3, { value: "none" }, { default: n(() => l2[19] || (l2[19] = [m("否")])), _: 1 })]), _: 1 }, 8, ["modelValue"])]), _: 1 }, 512), [[c, "select" == e2.configure.name]]), "static" === e2.configure.props.dataOrigin.optionValueSetType ? (i(), o(g(D), { key: 1, modelValue: e2.configure.props.dataOrigin.staticData, "onUpdate:modelValue": l2[2] || (l2[2] = (a3) => e2.configure.props.dataOrigin.staticData = a3), options: A, placeholder: "请输入" }, null, 8, ["modelValue"])) : s("", true), "dynamicData" === e2.configure.props.dataOrigin.optionValueSetType ? (i(), o(k2, { key: 2, label: "动态数据源", class: "amb-design-attr-item" }, { default: n(() => [u(W2, { modelValue: e2.configure.props.dataOrigin.dynamicDataSourceCode, "onUpdate:modelValue": l2[3] || (l2[3] = (a3) => e2.configure.props.dataOrigin.dynamicDataSourceCode = a3), filterable: "", remote: "", "reserve-keyword": "", clearable: "", placeholder: "请选择", "remote-show-suffix": "", "remote-method": G, loading: I.value, onChange: H }, { default: n(() => [(i(true), f(b, null, y(E.value, (e3) => (i(), o(w2, { key: e3.code, label: e3.name + "(" + e3.code + ")", value: e3.code }, null, 8, ["label", "value"]))), 128))]), _: 1 }, 8, ["modelValue", "loading"])]), _: 1 })) : s("", true), p(u(k2, { label: "数据表视图", class: "amb-design-attr-item" }, { default: n(() => [u(ee, { modelValue: e2.configure.props.dataOrigin.tableName, "onUpdate:modelValue": l2[4] || (l2[4] = (a3) => e2.configure.props.dataOrigin.tableName = a3), title: e2.configure.props.dataOrigin.tableName, clearable: "", readonly: "true" }, { append: n(() => [u(Z, { icon: g(h), onClick: K, size: "small" }, null, 8, ["icon"]), u(Z, { icon: g(F), onClick: M, title: "Clear", size: "small" }, null, 8, ["icon"])]), _: 1 }, 8, ["modelValue", "title"])]), _: 1 }, 512), [[c, "dataTable" === e2.configure.props.dataOrigin.optionValueSetType]]), p(u(k2, { label: "主键字段", class: "amb-design-attr-item" }, { default: n(() => [u(W2, { modelValue: e2.configure.props.dataOrigin.principalField, "onUpdate:modelValue": l2[5] || (l2[5] = (a3) => e2.configure.props.dataOrigin.principalField = a3), "allow-create": "", filterable: "", "reserve-keyword": "", clearable: "", placeholder: "请选择", "remote-show-suffix": "" }, { default: n(() => [(i(true), f(b, null, y(g(Q), (e3) => (i(), o(w2, { key: e3.dbColumnName, label: e3.alias + "(" + e3.dbColumnName + ")", value: "${obj." + e3.dbColumnName + "}" }, null, 8, ["label", "value"]))), 128))]), _: 1 }, 8, ["modelValue"])]), _: 1 }, 512), [[c, "dataTable" === e2.configure.props.dataOrigin.optionValueSetType]]), p(u(k2, { label: "父级字段", class: "amb-design-attr-item" }, { default: n(() => [u(W2, { modelValue: e2.configure.props.dataOrigin.parentField, "onUpdate:modelValue": l2[6] || (l2[6] = (a3) => e2.configure.props.dataOrigin.parentField = a3), "allow-create": "", filterable: "", "reserve-keyword": "", clearable: "", placeholder: "请选择", "remote-show-suffix": "" }, { default: n(() => [(i(true), f(b, null, y(g(Q), (e3) => (i(), o(w2, { key: e3.dbColumnName, label: e3.alias + "(" + e3.dbColumnName + ")", value: "${obj." + e3.dbColumnName + "}" }, null, 8, ["label", "value"]))), 128))]), _: 1 }, 8, ["modelValue"])]), _: 1 }, 512), [[c, "dataTable" === e2.configure.props.dataOrigin.optionValueSetType]]), "dataTable" === e2.configure.props.dataOrigin.optionValueSetType ? (i(), o(k2, { key: 3, label: "排序", class: "amb-design-attr-item" }, { default: n(() => [u(Z, { type: "primary", onClick: X }, { default: n(() => l2[20] || (l2[20] = [m("添加")])), _: 1 }), u(Z, { onClick: Y }, { default: n(() => l2[21] || (l2[21] = [m("删除")])), _: 1 }), (i(true), f(b, null, y(g(q).sortFields, (e3, a3) => (i(), f("div", { key: a3, onClick: (e4) => function(e5) {
|
|
72
|
+
$.value = e5;
|
|
73
|
+
}(a3), style: { "margin-top": "6px" }, class: V($.value === a3 ? "amb-design-attr-item-inline seleteSort" : "amb-design-attr-item-inline") }, [u(W2, { modelValue: e3.name, "onUpdate:modelValue": (a4) => e3.name = a4, filterable: "", clearable: "", placeholder: "请选择" }, { default: n(() => [(i(true), f(b, null, y(g(Q), (e4, a4) => (i(), o(w2, { key: a4, label: e4.alias + "(" + e4.dbColumnName + ")", value: e4.dbColumnName }, null, 8, ["label", "value"]))), 128))]), _: 2 }, 1032, ["modelValue", "onUpdate:modelValue"]), u(W2, { modelValue: e3.type, "onUpdate:modelValue": (a4) => e3.type = a4, style: { "margin-left": "10px" }, placeholder: "请选择" }, { default: n(() => [u(w2, { label: "升序", value: "asc" }), u(w2, { label: "降序", value: "desc" })]), _: 2 }, 1032, ["modelValue", "onUpdate:modelValue"])], 10, j))), 128))]), _: 1 })) : s("", true), p(u(k2, { label: "同级节点数", class: "amb-design-attr-item" }, { default: n(() => [u(ee, { modelValue: e2.configure.props.dataOrigin.nodeNumber, "onUpdate:modelValue": l2[7] || (l2[7] = (a3) => e2.configure.props.dataOrigin.nodeNumber = a3), placeholder: "请输入" }, null, 8, ["modelValue"])]), _: 1 }, 512), [[c, "dataTable" === e2.configure.props.dataOrigin.optionValueSetType]]), p(u(k2, { label: "过滤条件", class: "amb-design-attr-item" }, { default: n(() => [u(v, { title: "过滤条件", list: e2.configure.props.dataOrigin.filterList, ref_key: "conditionRef", ref: z }, null, 8, ["list"])]), _: 1 }, 512), [[c, "dataTable" === e2.configure.props.dataOrigin.optionValueSetType]]), p(u(k2, { label: "服务名", class: "amb-design-attr-item" }, { default: n(() => [u(N, { pageDesign: g(L), rowObj: g(q).service, onlyService: "", "onUpdate:modelValue": l2[8] || (l2[8] = (e3, a3, l3) => function(e4, a4, l4) {
|
|
74
|
+
q.service.simpleCode = a4, q.service.name = l4;
|
|
75
|
+
}(0, a3, l3)) }, null, 8, ["pageDesign", "rowObj"])]), _: 1 }, 512), [[c, "service" === e2.configure.props.dataOrigin.optionValueSetType]]), p(u(k2, { label: "数据集字段", class: "amb-design-attr-item" }, { default: n(() => [u(W2, { modelValue: g(q).serviceDataSetField, "onUpdate:modelValue": l2[9] || (l2[9] = (e3) => g(q).serviceDataSetField = e3), placeholder: "请选择" }, { default: n(() => [u(w2, { label: "1", value: "1" })]), _: 1 }, 8, ["modelValue"])]), _: 1 }, 512), [[c, "service" == g(q).optionValueSetType]]), p(u(k2, { label: "选项值字段", class: "amb-design-attr-item" }, { default: n(() => [u(W2, { modelValue: g(q).serviceValueField, "onUpdate:modelValue": l2[10] || (l2[10] = (e3) => g(q).serviceValueField = e3), placeholder: "请选择" }, { default: n(() => [u(w2, { label: "1", value: "1" })]), _: 1 }, 8, ["modelValue"])]), _: 1 }, 512), [[c, "service" == g(q).optionValueSetType]]), p(u(k2, { label: "选项名字段", class: "amb-design-attr-item" }, { default: n(() => [u(W2, { modelValue: g(q).serviceLabelField, "onUpdate:modelValue": l2[11] || (l2[11] = (e3) => g(q).serviceLabelField = e3), placeholder: "请选择" }, { default: n(() => [u(w2, { label: "1", value: "1" })]), _: 1 }, 8, ["modelValue"])]), _: 1 }, 512), [[c, "service" == g(q).optionValueSetType]]), p(u(_, { ref: "dataOriginServiceInRef", dataOrigin: g(q) }, null, 8, ["dataOrigin"]), [[c, "service" == e2.configure.props.dataOrigin.optionValueSetType]]), p(u(S, { ref_key: "dataOriginAutosetRef", ref: B, dataOrigin: g(q) }, null, 8, ["dataOrigin"]), [[c, "dataTable" == e2.configure.props.dataOrigin.optionValueSetType || "dynamicData" == e2.configure.props.dataOrigin.optionValueSetType || "service" == e2.configure.props.dataOrigin.optionValueSetType]])]), u(C, { ref_key: "selectTableDialog", ref: R, onSelectTable: P, systemCode: e2.configure.systemCode, systemVersion: e2.configure.systemVersion }, null, 8, ["systemCode", "systemVersion"])]), _: 3 });
|
|
76
76
|
};
|
|
77
77
|
} });
|
|
78
78
|
export {
|
|
79
|
-
|
|
79
|
+
x as default
|
|
80
80
|
};
|
|
@@ -9,7 +9,7 @@ import "uuid";
|
|
|
9
9
|
import "../../../../../../stores/page-store.js";
|
|
10
10
|
import "../../../../../../stores/table-store.js";
|
|
11
11
|
import "../../../../../../stores/statistics-table-store.js";
|
|
12
|
-
/* empty css
|
|
12
|
+
/* empty css */
|
|
13
13
|
import "../../../../utils/eventBus.js";
|
|
14
14
|
import U from "../../common/common-function-code.vue.js";
|
|
15
15
|
import y from "../../chart/statistical-table/component/table-showcondition.vue.js";
|
|
@@ -3,7 +3,7 @@ import { Setting as y, Search as V } from "@element-plus/icons-vue";
|
|
|
3
3
|
import { getListComponentOptions as v } from "../../../../utils/assemblys-config.js";
|
|
4
4
|
import C from "../component/querySetting.vue.js";
|
|
5
5
|
import _ from "../../form/common/data-origin.vue.js";
|
|
6
|
-
import h from "../../common/common-variable-bind.
|
|
6
|
+
import h from "../../common/common-variable-bind.vue.js";
|
|
7
7
|
import { setGroupHeaderDataDisplayOrder as D, deleteGroupHeaderByColumnUuid as x } from "../../../../utils/data-table-util.js";
|
|
8
8
|
import { getUuidv4 as U } from "../../../../utils/common-util.js";
|
|
9
9
|
import k from "../../../../utils/eventBus.js";
|
|
@@ -1,24 +1,40 @@
|
|
|
1
|
-
import { defineComponent as e, ref as l, resolveComponent as a, createBlock as o, openBlock as t, withCtx as u, createVNode as r,
|
|
2
|
-
import { getFormComponentOptions as
|
|
3
|
-
import
|
|
4
|
-
import
|
|
1
|
+
import { defineComponent as e, ref as l, resolveComponent as a, createBlock as o, openBlock as t, withCtx as u, createVNode as r, createElementVNode as n, createCommentVNode as s, createElementBlock as i, Fragment as m, renderList as p, unref as d, createTextVNode as c } from "vue";
|
|
2
|
+
import { getFormComponentOptions as f } from "../../../../utils/assemblys-config.js";
|
|
3
|
+
import b from "../component/data-origin-tree.vue.js";
|
|
4
|
+
import g from "../../form/common/data-linkage.vue.js";
|
|
5
5
|
import y from "../../common/common-attr-size.vue.js";
|
|
6
|
-
import V from "../../common/common-variable-bind.
|
|
7
|
-
import
|
|
8
|
-
|
|
6
|
+
import V from "../../common/common-variable-bind.vue.js";
|
|
7
|
+
import _ from "../../common/common-icon-bind.vue.js";
|
|
8
|
+
import v from "./tree-attr-context-menu.vue.js";
|
|
9
|
+
import { Search as h, Close as k, InfoFilled as x } from "@element-plus/icons-vue";
|
|
10
|
+
import C from "../../common/common-select-table.vue.js";
|
|
11
|
+
import { queryTableFields as U } from "../../../../utils/page-table-util.js";
|
|
12
|
+
const N = { style: { padding: "8px 0px 0px 0px" } }, T = { style: { padding: "8px 0px 0px 0px" } }, D = { style: { padding: "8px 0px 0px 0px" } }, H = e({ __name: "tree-attr-base", props: { configure: { type: Object, default: () => {
|
|
9
13
|
} }, pageDesign: { type: Object, default: () => {
|
|
10
14
|
} } }, setup(e2) {
|
|
11
|
-
const
|
|
12
|
-
function
|
|
13
|
-
|
|
15
|
+
const H2 = e2, S = l(), w = l([]), z = l([]);
|
|
16
|
+
function j(e3) {
|
|
17
|
+
H2.configure.props.base.prop = e3;
|
|
14
18
|
}
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
}(e3, l3)) }, null, 8, ["iconType", "iconValue"])]), _: 1 }), r(D, { label: "节点内容", class: "amb-design-attr-item" }, { default: u(() => [r(T, { modelValue: e2.configure.props.format.contentLogic, "onUpdate:modelValue": H[12] || (H[12] = (l3) => e2.configure.props.format.contentLogic = l3), filterable: "", placeholder: "请选择" }, { default: u(() => [(t(true), m(p, null, s(e2.pageDesign.customEvents, (e3) => (t(), o(S, { label: e3.eventName, value: e3.uuid }, null, 8, ["label", "value"]))), 256))]), _: 1 }, 8, ["modelValue"])]), _: 1 }), r(D, { label: "状态", class: "amb-design-attr-item" }, { default: u(() => [r(N, { modelValue: e2.configure.props.base.state, "onUpdate:modelValue": H[13] || (H[13] = (l3) => e2.configure.props.base.state = l3), class: "ml-4" }, { default: u(() => [r(z, { value: "default" }, { default: u(() => H[49] || (H[49] = [f("普通")])), _: 1 }), r(z, { value: "hidden" }, { default: u(() => H[50] || (H[50] = [f("隐藏")])), _: 1 })]), _: 1 }, 8, ["modelValue"])]), _: 1 })])]), _: 1 }), (t(), o(g, { key: e2.configure.uuid, configure: e2.configure }, null, 8, ["configure"])), l2.operationColumn ? n("", true) : (t(), o(j, { key: 0, title: "格式设置", name: "formatting", class: "amb-design-attr-group-header" }, { default: u(() => [i("div", h, [r(D, { label: "格式化分类", class: "amb-design-attr-item" }, { default: u(() => [r(T, { modelValue: e2.configure.props.format.type, "onUpdate:modelValue": H[14] || (H[14] = (l3) => e2.configure.props.format.type = l3), placeholder: "请选择" }, { default: u(() => [r(S, { label: "数值", value: "number" }), r(S, { label: "货币", value: "currency" }), r(S, { label: "日期", value: "date" }), r(S, { label: "时间", value: "time" }), r(S, { label: "百分比", value: "percent" }), r(S, { label: "自定义控件", value: "customControl" }), r(S, { label: "超链接", value: "hyperlinks" }), r(S, { label: "图标/标签", value: "icon" }), r(S, { label: "附件控件", value: "files" }), r(S, { label: "富文本", value: "richEditor" }), r(S, { label: "脱敏组件", value: "secretInfo" }), r(S, { label: "自定义方法", value: "custom" })]), _: 1 }, 8, ["modelValue"])]), _: 1 }), "number" === e2.configure.props.format.type || "currency" === e2.configure.props.format.type || "percent" === e2.configure.props.format.type ? (t(), o(D, { key: 0, label: "小数位数", class: "amb-design-attr-item" }, { default: u(() => [r(w, { modelValue: e2.configure.props.format.decimalDigit, "onUpdate:modelValue": H[15] || (H[15] = (l3) => e2.configure.props.format.decimalDigit = l3) }, null, 8, ["modelValue"])]), _: 1 })) : n("", true), "number" === e2.configure.props.format.type ? (t(), o(D, { key: 1, label: "科学计数", class: "amb-design-attr-item" }, { default: u(() => [r(A, { modelValue: e2.configure.props.format.scientific, "onUpdate:modelValue": H[16] || (H[16] = (l3) => e2.configure.props.format.scientific = l3), "active-text": "使用", "inactive-text": "不使用" }, null, 8, ["modelValue"])]), _: 1 })) : n("", true), "number" === e2.configure.props.format.type && e2.configure.props.format.scientific ? (t(), o(D, { key: 2, label: "计数位数", class: "amb-design-attr-item" }, { default: u(() => [r(w, { modelValue: e2.configure.props.format.scientificNum, "onUpdate:modelValue": H[17] || (H[17] = (l3) => e2.configure.props.format.scientificNum = l3) }, null, 8, ["modelValue"])]), _: 1 })) : n("", true), "number" === e2.configure.props.format.type ? (t(), o(D, { key: 3, label: "千位分隔符", class: "amb-design-attr-item" }, { default: u(() => [r(A, { modelValue: e2.configure.props.format.thousandsSeparator, "onUpdate:modelValue": H[18] || (H[18] = (l3) => e2.configure.props.format.thousandsSeparator = l3), "active-text": "使用", "inactive-text": "不使用" }, null, 8, ["modelValue"])]), _: 1 })) : n("", true), "number" === e2.configure.props.format.type ? (t(), o(D, { key: 4, label: "数值符号", class: "amb-design-attr-item" }, { default: u(() => [r(w, { modelValue: e2.configure.props.format.symbol, "onUpdate:modelValue": H[19] || (H[19] = (l3) => e2.configure.props.format.symbol = l3) }, null, 8, ["modelValue"])]), _: 1 })) : n("", true), "currency" === e2.configure.props.format.type ? (t(), o(D, { key: 5, label: "货币符号", class: "amb-design-attr-item" }, { default: u(() => [r(T, { modelValue: e2.configure.props.format.currencySymbol, "onUpdate:modelValue": H[20] || (H[20] = (l3) => e2.configure.props.format.currencySymbol = l3), placeholder: "Select" }, { default: u(() => [r(S, { label: "$", value: "$" }), r(S, { label: "¥", value: "¥" })]), _: 1 }, 8, ["modelValue"])]), _: 1 })) : n("", true), "date" === e2.configure.props.format.type ? (t(), o(D, { key: 6, label: "日期类型", class: "amb-design-attr-item" }, { default: u(() => [r(T, { modelValue: e2.configure.props.format.dataType, "onUpdate:modelValue": H[21] || (H[21] = (l3) => e2.configure.props.format.dataType = l3), placeholder: "Select" }, { default: u(() => [r(S, { label: "yyyy-m-d", value: "yyyy-m-d" }), r(S, { label: "yyyy-m-d hh:mm:ss", value: "yyyy-m-d hh:mm:ss" }), r(S, { label: "yyyy-m", value: "yyyy-m" }), r(S, { label: "m-d", value: "m-d" }), r(S, { label: "yyyy", value: "yyyy" }), r(S, { label: "yyyy年m月d日", value: "yyyy年m月d日" }), r(S, { label: "yyyy年m月d日hh时mm分ss秒", value: "yyyy年m月d日hh时mm分ss秒" }), r(S, { label: "yyyy年m月", value: "yyyy年m月" }), r(S, { label: "m月d日", value: "m月d日" })]), _: 1 }, 8, ["modelValue"])]), _: 1 })) : n("", true), "time" === e2.configure.props.format.type ? (t(), o(D, { key: 7, label: "时间类型", class: "amb-design-attr-item" }, { default: u(() => [r(T, { modelValue: e2.configure.props.format.timeType, "onUpdate:modelValue": H[22] || (H[22] = (l3) => e2.configure.props.format.timeType = l3), placeholder: "Select" }, { default: u(() => [r(S, { label: "HH:mm", value: "HH:mm" }), r(S, { label: "HH:mm:ss", value: "HH:mm:ss" }), r(S, { label: "HH时mm分", value: "HH时mm分" }), r(S, { label: "HH时mm分ss秒", value: "HH时mm分ss秒" }), r(S, { label: "hh:mm", value: "hh:mm" }), r(S, { label: "hh:mm:ss", value: "hh:mm:ss" }), r(S, { label: "hh时mm分", value: "hh时mm分" }), r(S, { label: "hh时mm分ss秒", value: "hh时mm分ss秒" })]), _: 1 }, 8, ["modelValue"])]), _: 1 })) : n("", true), "customControl" === e2.configure.props.format.type ? (t(), o(D, { key: 8, label: "自定义控件", class: "amb-design-attr-item" }, { default: u(() => [r(w, { modelValue: e2.configure.props.format.customControl, "onUpdate:modelValue": H[23] || (H[23] = (l3) => e2.configure.props.format.customControl = l3) }, null, 8, ["modelValue"])]), _: 1 })) : n("", true), "hyperlinks" === e2.configure.props.format.type ? (t(), o(E, { key: 9, pageDesign: e2.pageDesign, configure: e2.configure }, null, 8, ["pageDesign", "configure"])) : n("", true), "icon" === e2.configure.props.format.type ? (t(), o(D, { key: 10, label: "图标", class: "amb-design-attr-item" }, { default: u(() => [r(O, { modelValue: e2.configure.props.format.icon, "onUpdate:modelValue": H[24] || (H[24] = (l3) => e2.configure.props.format.icon = l3) }, null, 8, ["modelValue"])]), _: 1 })) : n("", true), "icon" === e2.configure.props.format.type ? (t(), o(D, { key: 11, label: "图标位置", class: "amb-design-attr-item" }, { default: u(() => [r(A, { modelValue: e2.configure.props.format.position, "onUpdate:modelValue": H[25] || (H[25] = (l3) => e2.configure.props.format.position = l3), "active-text": "后缀", "inactive-text": "前缀", "active-value": "suf", "inactive-value": "pre" }, null, 8, ["modelValue"])]), _: 1 })) : n("", true), "icon" === e2.configure.props.format.type ? (t(), o(D, { key: 12, label: "回调事件", class: "amb-design-attr-item" }, { default: u(() => [r(w, { modelValue: e2.configure.props.format.event, "onUpdate:modelValue": H[26] || (H[26] = (l3) => e2.configure.props.format.event = l3) }, null, 8, ["modelValue"])]), _: 1 })) : n("", true), "custom" === e2.configure.props.format.type ? (t(), o(D, { key: 13, label: "自定义方法", class: "amb-design-attr-item" }, { default: u(() => [r(w, { modelValue: e2.configure.props.format.customControl, "onUpdate:modelValue": H[27] || (H[27] = (l3) => e2.configure.props.format.customControl = l3) }, null, 8, ["modelValue"])]), _: 1 })) : n("", true), "files" === e2.configure.props.format.type ? (t(), o(D, { key: 14, label: "是否多选", class: "amb-design-attr-item" }, { default: u(() => [r(A, { modelValue: e2.configure.props.format.multiple, "onUpdate:modelValue": H[28] || (H[28] = (l3) => e2.configure.props.format.multiple = l3) }, null, 8, ["modelValue"])]), _: 1 })) : n("", true), "files" === e2.configure.props.format.type ? (t(), o(D, { key: 15, label: "文件类型", class: "amb-design-attr-item" }, { default: u(() => [r(w, { modelValue: e2.configure.props.format.accept, "onUpdate:modelValue": H[29] || (H[29] = (l3) => e2.configure.props.format.accept = l3) }, null, 8, ["modelValue"])]), _: 1 })) : n("", true), "files" === e2.configure.props.format.type ? (t(), o(D, { key: 16, label: "文件限制(M)", class: "amb-design-attr-item" }, { default: u(() => [r(q, { modelValue: e2.configure.props.format.limitFileSize, "onUpdate:modelValue": H[30] || (H[30] = (l3) => e2.configure.props.format.limitFileSize = l3), min: 1 }, null, 8, ["modelValue"])]), _: 1 })) : n("", true), "files" === e2.configure.props.format.type && e2.configure.props.format.multiple ? (t(), o(D, { key: 17, label: "选择数据表" }, { default: u(() => [r(w, { modelValue: e2.configure.props.format.childAnnexDataTableCode, "onUpdate:modelValue": H[31] || (H[31] = (l3) => e2.configure.props.format.childAnnexDataTableCode = l3), onClick: l2.openSelectDataTable, clearable: "" }, { append: u(() => [r(F, { icon: l2.Search, onClick: l2.openSelectDataTable }, null, 8, ["icon", "onClick"])]), _: 1 }, 8, ["modelValue", "onClick"])]), _: 1 })) : n("", true), "files" === e2.configure.props.format.type ? (t(), o(D, { key: 18, label: "展示名字段", class: "amb-design-attr-item" }, { default: u(() => [r(G, { prop: e2.configure.props.format.showName, "onUpdate:prop": H[32] || (H[32] = (l3) => e2.configure.props.format.showName = l3), tableConfigure: l2.tableConfigure }, null, 8, ["prop", "tableConfigure"])]), _: 1 })) : n("", true), "files" === e2.configure.props.format.type ? (t(), o(D, { key: 19, label: "服务器字段", class: "amb-design-attr-item" }, { default: u(() => [r(G, { prop: e2.configure.props.format.serverName, "onUpdate:prop": H[33] || (H[33] = (l3) => e2.configure.props.format.serverName = l3), tableConfigure: l2.tableConfigure }, null, 8, ["prop", "tableConfigure"])]), _: 1 })) : n("", true)])]), _: 1 })), (t(), o(b, { key: e2.configure.uuid, configureProps: e2.configure.props }, null, 8, ["configureProps"])), (t(), o(j, { title: "校验", name: "verification", key: e2.configure.uuid, class: "amb-design-attr-group-header" }, { default: u(() => [i("div", k, [r(D, { class: "amb-design-attr-item", "label-width": "0" }, { default: u(() => [r(I, { modelValue: e2.configure.props.verification.required, "onUpdate:modelValue": H[34] || (H[34] = (l3) => e2.configure.props.verification.required = l3), label: "必填" }, null, 8, ["modelValue"])]), _: 1 }), r(D, { class: "amb-design-attr-item", "label-width": "0" }, { default: u(() => [r(L, { span: 8 }, { default: u(() => [r(I, { label: "自定义", value: "custom" })]), _: 1 }), r(L, { span: 14 }, { default: u(() => [r(F, null, { default: u(() => H[51] || (H[51] = [f("自定义逻辑")])), _: 1 }), r(F, { icon: l2.Search, circle: "" }, null, 8, ["icon"])]), _: 1 })]), _: 1 })])]), _: 1 })), (t(), o(y, { key: e2.configure.uuid, size: e2.configure.props.size, showCalcHeight: true }, null, 8, ["size"]))]), _: 1 }, 8, ["modelValue"])]), _: 1 });
|
|
19
|
+
function O() {
|
|
20
|
+
S.value.openDialog();
|
|
21
|
+
}
|
|
22
|
+
function A() {
|
|
23
|
+
H2.configure.props.base.treeTableName = null;
|
|
24
|
+
}
|
|
25
|
+
function P(e3) {
|
|
26
|
+
H2.configure.props.base.treeTableName = e3.name, H2.configure.props.base.treeTableAlias = e3.alias, U(e3.systemCode, e3.systemVersion, e3.name).then((e4) => {
|
|
27
|
+
z.value = e4;
|
|
28
|
+
}).catch((e4) => {
|
|
29
|
+
});
|
|
30
|
+
}
|
|
31
|
+
return null == H2.configure.props.base.showCheckbox && (H2.configure.props.base.showCheckbox = "no"), null == H2.configure.props.base.defaultExpandAll && (H2.configure.props.base.defaultExpandAll = false), null == H2.configure.props.base.expandOnClickNode && (H2.configure.props.base.expandOnClickNode = true), null == H2.configure.props.base.accordion && (H2.configure.props.base.accordion = false), null == H2.configure.props.base.lazy && (H2.configure.props.base.lazy = false), H2.configure.props.format || (H2.configure.props.format = {}), (l2, U2) => {
|
|
32
|
+
const E = a("el-option"), I = a("el-select"), L = a("el-form-item"), q = a("el-input"), F = a("el-switch"), G = a("el-radio"), $ = a("el-radio-group"), M = a("el-button"), B = a("el-col"), J = a("el-icon"), K = a("el-tooltip"), Q = a("el-collapse-item"), R = a("Suffixmodule"), W = a("IconSetDialog"), X = a("el-input-number"), Y = a("VariateSelect"), Z = a("el-checkbox"), ee = a("el-collapse"), le = a("el-form");
|
|
33
|
+
return t(), o(le, { "label-width": "80px", size: "small" }, { default: u(() => [r(ee, { modelValue: w.value, "onUpdate:modelValue": U2[38] || (U2[38] = (e3) => w.value = e3), style: { "margin-top": "6px" } }, { default: u(() => [r(Q, { title: "基本", name: "base", class: "amb-design-attr-group-header" }, { default: u(() => [n("div", N, [r(L, { label: "组件类型", class: "amb-design-attr-item" }, { default: u(() => [r(I, { modelValue: e2.configure.name, "onUpdate:modelValue": U2[0] || (U2[0] = (l3) => e2.configure.name = l3), disabled: "", placeholder: "请选择" }, { default: u(() => [(t(true), i(m, null, p(d(f)(), (e3) => (t(), o(E, { key: e3.name, label: e3.label, value: e3.name }, null, 8, ["label", "value"]))), 128))]), _: 1 }, 8, ["modelValue"])]), _: 1 }), r(L, { label: "唯一编码", class: "amb-design-attr-item" }, { default: u(() => [r(q, { modelValue: e2.configure.uuid, "onUpdate:modelValue": U2[1] || (U2[1] = (l3) => e2.configure.uuid = l3), readonly: "", title: e2.configure.uuid }, null, 8, ["modelValue", "title"])]), _: 1 }), r(L, { label: "绑定变量", class: "amb-design-attr-item" }, { default: u(() => [(t(), o(V, { key: e2.configure.uuid, modelValue: e2.configure.props.base.prop, paramTypes: ["data", "page"], "onUpdate:modelValue": j }, null, 8, ["modelValue"]))]), _: 1 }), r(L, { label: "自定义编码", class: "amb-design-attr-item" }, { default: u(() => [r(q, { modelValue: e2.configure.code, "onUpdate:modelValue": U2[2] || (U2[2] = (l3) => e2.configure.code = l3), placeholder: "请输入" }, null, 8, ["modelValue"])]), _: 1 }), r(L, { label: "可选择", class: "amb-design-attr-item" }, { default: u(() => [r(F, { modelValue: e2.configure.props.base.showCheckbox, "onUpdate:modelValue": U2[3] || (U2[3] = (l3) => e2.configure.props.base.showCheckbox = l3), "active-text": "是", "inactive-text": "否" }, null, 8, ["modelValue"])]), _: 1 }), r(L, { label: "默认展开", class: "amb-design-attr-item" }, { default: u(() => [r($, { modelValue: e2.configure.props.base.defaultExpandAll, "onUpdate:modelValue": U2[4] || (U2[4] = (l3) => e2.configure.props.base.defaultExpandAll = l3), class: "ml-4" }, { default: u(() => [r(G, { value: true }, { default: u(() => U2[39] || (U2[39] = [c("是")])), _: 1 }), r(G, { value: false }, { default: u(() => U2[40] || (U2[40] = [c("否")])), _: 1 })]), _: 1 }, 8, ["modelValue"])]), _: 1 }), e2.configure.props.base.defaultExpandAll ? (t(), o(L, { key: 0, label: "展开级数", class: "amb-design-attr-item" }, { default: u(() => [r(q, { modelValue: e2.configure.props.base.unfoldGrade, "onUpdate:modelValue": U2[5] || (U2[5] = (l3) => e2.configure.props.base.unfoldGrade = l3) }, null, 8, ["modelValue"])]), _: 1 })) : s("", true), r(L, { label: "节点可点击", title: "点击节点时展开或收缩节点", class: "amb-design-attr-item" }, { default: u(() => [r($, { modelValue: e2.configure.props.base.expandOnClickNode, "onUpdate:modelValue": U2[6] || (U2[6] = (l3) => e2.configure.props.base.expandOnClickNode = l3), class: "ml-4" }, { default: u(() => [r(G, { value: true }, { default: u(() => U2[41] || (U2[41] = [c("是")])), _: 1 }), r(G, { value: false }, { default: u(() => U2[42] || (U2[42] = [c("否")])), _: 1 })]), _: 1 }, 8, ["modelValue"])]), _: 1 }), r(L, { label: "手风琴模式", title: "每次只打开一个同级树节点", class: "amb-design-attr-item" }, { default: u(() => [r($, { modelValue: e2.configure.props.base.accordion, "onUpdate:modelValue": U2[7] || (U2[7] = (l3) => e2.configure.props.base.accordion = l3), class: "ml-4" }, { default: u(() => [r(G, { value: true }, { default: u(() => U2[43] || (U2[43] = [c("是")])), _: 1 }), r(G, { value: false }, { default: u(() => U2[44] || (U2[44] = [c("否")])), _: 1 })]), _: 1 }, 8, ["modelValue"])]), _: 1 }), r(L, { label: "是否懒加载", class: "amb-design-attr-item" }, { default: u(() => [r($, { modelValue: e2.configure.props.base.lazy, "onUpdate:modelValue": U2[8] || (U2[8] = (l3) => e2.configure.props.base.lazy = l3), class: "ml-4" }, { default: u(() => [r(G, { value: true }, { default: u(() => U2[45] || (U2[45] = [c("是")])), _: 1 }), r(G, { value: false }, { default: u(() => U2[46] || (U2[46] = [c("否")])), _: 1 })]), _: 1 }, 8, ["modelValue"])]), _: 1 }), r(L, { label: "是否过滤", class: "amb-design-attr-item" }, { default: u(() => [r($, { modelValue: e2.configure.props.base.filter, "onUpdate:modelValue": U2[9] || (U2[9] = (l3) => e2.configure.props.base.filter = l3), class: "ml-4" }, { default: u(() => [r(G, { value: true }, { default: u(() => U2[47] || (U2[47] = [c("是")])), _: 1 }), r(G, { value: false }, { default: u(() => U2[48] || (U2[48] = [c("否")])), _: 1 })]), _: 1 }, 8, ["modelValue"])]), _: 1 }), r(L, { label: "节点图标", class: "amb-design-attr-item" }, { default: u(() => [r(_, { iconType: e2.configure.props.base.iconType, iconValue: e2.configure.props.base.icon, "onUpdate:modelValue": U2[10] || (U2[10] = (e3, l3) => function(e4, l4) {
|
|
34
|
+
H2.configure.props.base.iconType = e4, H2.configure.props.base.iconValue = l4;
|
|
35
|
+
}(e3, l3)) }, null, 8, ["iconType", "iconValue"])]), _: 1 }), r(L, { label: "节点内容", class: "amb-design-attr-item" }, { default: u(() => [r(I, { modelValue: e2.configure.props.format.contentLogic, "onUpdate:modelValue": U2[11] || (U2[11] = (l3) => e2.configure.props.format.contentLogic = l3), filterable: "", placeholder: "请选择" }, { default: u(() => [(t(true), i(m, null, p(e2.pageDesign.customEvents, (e3) => (t(), o(E, { label: e3.eventName, value: e3.uuid }, null, 8, ["label", "value"]))), 256))]), _: 1 }, 8, ["modelValue"])]), _: 1 }), r(L, { label: "状态", class: "amb-design-attr-item" }, { default: u(() => [r($, { modelValue: e2.configure.props.base.state, "onUpdate:modelValue": U2[12] || (U2[12] = (l3) => e2.configure.props.base.state = l3), class: "ml-4" }, { default: u(() => [r(G, { value: "default" }, { default: u(() => U2[49] || (U2[49] = [c("普通")])), _: 1 }), r(G, { value: "hidden" }, { default: u(() => U2[50] || (U2[50] = [c("隐藏")])), _: 1 })]), _: 1 }, 8, ["modelValue"])]), _: 1 }), r(L, { label: "对应数据表", class: "amb-design-attr-item" }, { default: u(() => [r(B, { span: 20 }, { default: u(() => [r(q, { modelValue: e2.configure.props.base.treeTableName, "onUpdate:modelValue": U2[13] || (U2[13] = (l3) => e2.configure.props.base.treeTableName = l3), title: e2.configure.props.base.treeTableName, clearable: "", readonly: "true", onClick: O, placeholder: "请选择数据表" }, { append: u(() => [r(M, { icon: d(h), onClick: O, size: "small" }, null, 8, ["icon"]), r(M, { icon: d(k), onClick: A, title: "Clear", size: "small" }, null, 8, ["icon"])]), _: 1 }, 8, ["modelValue", "title"])]), _: 1 }), r(K, { class: "box-item", content: "使用右键菜单编辑保存时需要配置" }, { default: u(() => [r(J, null, { default: u(() => [r(d(x))]), _: 1 })]), _: 1 })]), _: 1 }), r(L, { label: "父节点关联属性", class: "amb-design-attr-item" }, { default: u(() => [r(B, { span: 20 }, { default: u(() => [r(I, { modelValue: e2.configure.props.base.treeParentIdProp, "onUpdate:modelValue": U2[14] || (U2[14] = (l3) => e2.configure.props.base.treeParentIdProp = l3), clearable: "", filterable: "", "allow-create": "", placeholder: "请选择" }, { default: u(() => [(t(true), i(m, null, p(z.value, (e3) => (t(), o(E, { key: e3.dbColumnName, label: e3.alias, value: e3.dbColumnName }, null, 8, ["label", "value"]))), 128))]), _: 1 }, 8, ["modelValue"])]), _: 1 }), r(K, { class: "box-item", content: "树节点nodeId对应数据表的父节点属性字段名" }, { default: u(() => [r(J, null, { default: u(() => [r(d(x))]), _: 1 })]), _: 1 })]), _: 1 }), r(L, { label: "标签属性", class: "amb-design-attr-item" }, { default: u(() => [r(B, { span: 20 }, { default: u(() => [r(I, { modelValue: e2.configure.props.base.treeLabelProp, "onUpdate:modelValue": U2[15] || (U2[15] = (l3) => e2.configure.props.base.treeLabelProp = l3), clearable: "", filterable: "", "allow-create": "", placeholder: "请选择" }, { default: u(() => [(t(true), i(m, null, p(z.value, (e3) => (t(), o(E, { key: e3.dbColumnName, label: e3.alias, value: e3.dbColumnName }, null, 8, ["label", "value"]))), 128))]), _: 1 }, 8, ["modelValue"])]), _: 1 }), r(K, { class: "box-item", content: "树节点Label对应数据表的属性字段名" }, { default: u(() => [r(J, null, { default: u(() => [r(d(x))]), _: 1 })]), _: 1 })]), _: 1 })])]), _: 1 }), r(Q, { title: "右键菜单", name: "nodeContextmenu", class: "amb-design-attr-group-header" }, { default: u(() => [r(v, { configure: e2.configure, pageDesign: e2.pageDesign }, null, 8, ["configure", "pageDesign"])]), _: 1 }), (t(), o(b, { key: e2.configure.uuid, configure: e2.configure }, { beanName: u(() => [r(L, { label: "", class: "amb-design-attr-item" }, { default: u(() => [e2.configure.props.dataOrigin ? (t(), o(B, { key: 0, span: 20 }, { default: u(() => [r(q, { modelValue: e2.configure.props.dataOrigin.beanName, "onUpdate:modelValue": U2[16] || (U2[16] = (l3) => e2.configure.props.dataOrigin.beanName = l3), placeholder: "beanName" }, null, 8, ["modelValue"])]), _: 1 })) : s("", true), r(K, { class: "box-item", content: "为空时默认使用页面配置的自定义bean" }, { default: u(() => [r(J, null, { default: u(() => [r(d(x))]), _: 1 })]), _: 1 })]), _: 1 })]), _: 1 }, 8, ["configure"])), r(Q, { title: "格式设置", name: "formatting", class: "amb-design-attr-group-header" }, { default: u(() => [n("div", T, [r(L, { label: "格式化分类", class: "amb-design-attr-item" }, { default: u(() => [r(I, { modelValue: e2.configure.props.format.type, "onUpdate:modelValue": U2[17] || (U2[17] = (l3) => e2.configure.props.format.type = l3), placeholder: "请选择" }, { default: u(() => [r(E, { label: "数值", value: "number" }), r(E, { label: "货币", value: "currency" }), r(E, { label: "日期", value: "date" }), r(E, { label: "时间", value: "time" }), r(E, { label: "百分比", value: "percent" }), r(E, { label: "自定义控件", value: "customControl" }), r(E, { label: "超链接", value: "hyperlinks" }), r(E, { label: "图标/标签", value: "icon" }), r(E, { label: "附件控件", value: "files" }), r(E, { label: "富文本", value: "richEditor" }), r(E, { label: "脱敏组件", value: "secretInfo" }), r(E, { label: "自定义方法", value: "custom" })]), _: 1 }, 8, ["modelValue"])]), _: 1 }), "number" === e2.configure.props.format.type || "currency" === e2.configure.props.format.type || "percent" === e2.configure.props.format.type ? (t(), o(L, { key: 0, label: "小数位数", class: "amb-design-attr-item" }, { default: u(() => [r(q, { modelValue: e2.configure.props.format.decimalDigit, "onUpdate:modelValue": U2[18] || (U2[18] = (l3) => e2.configure.props.format.decimalDigit = l3) }, null, 8, ["modelValue"])]), _: 1 })) : s("", true), "number" === e2.configure.props.format.type ? (t(), o(L, { key: 1, label: "科学计数", class: "amb-design-attr-item" }, { default: u(() => [r(F, { modelValue: e2.configure.props.format.scientific, "onUpdate:modelValue": U2[19] || (U2[19] = (l3) => e2.configure.props.format.scientific = l3), "active-text": "使用", "inactive-text": "不使用" }, null, 8, ["modelValue"])]), _: 1 })) : s("", true), "number" === e2.configure.props.format.type && e2.configure.props.format.scientific ? (t(), o(L, { key: 2, label: "计数位数", class: "amb-design-attr-item" }, { default: u(() => [r(q, { modelValue: e2.configure.props.format.scientificNum, "onUpdate:modelValue": U2[20] || (U2[20] = (l3) => e2.configure.props.format.scientificNum = l3) }, null, 8, ["modelValue"])]), _: 1 })) : s("", true), "number" === e2.configure.props.format.type ? (t(), o(L, { key: 3, label: "千位分隔符", class: "amb-design-attr-item" }, { default: u(() => [r(F, { modelValue: e2.configure.props.format.thousandsSeparator, "onUpdate:modelValue": U2[21] || (U2[21] = (l3) => e2.configure.props.format.thousandsSeparator = l3), "active-text": "使用", "inactive-text": "不使用" }, null, 8, ["modelValue"])]), _: 1 })) : s("", true), "number" === e2.configure.props.format.type ? (t(), o(L, { key: 4, label: "数值符号", class: "amb-design-attr-item" }, { default: u(() => [r(q, { modelValue: e2.configure.props.format.symbol, "onUpdate:modelValue": U2[22] || (U2[22] = (l3) => e2.configure.props.format.symbol = l3) }, null, 8, ["modelValue"])]), _: 1 })) : s("", true), "currency" === e2.configure.props.format.type ? (t(), o(L, { key: 5, label: "货币符号", class: "amb-design-attr-item" }, { default: u(() => [r(I, { modelValue: e2.configure.props.format.currencySymbol, "onUpdate:modelValue": U2[23] || (U2[23] = (l3) => e2.configure.props.format.currencySymbol = l3), placeholder: "Select" }, { default: u(() => [r(E, { label: "$", value: "$" }), r(E, { label: "¥", value: "¥" })]), _: 1 }, 8, ["modelValue"])]), _: 1 })) : s("", true), "date" === e2.configure.props.format.type ? (t(), o(L, { key: 6, label: "日期类型", class: "amb-design-attr-item" }, { default: u(() => [r(I, { modelValue: e2.configure.props.format.dataType, "onUpdate:modelValue": U2[24] || (U2[24] = (l3) => e2.configure.props.format.dataType = l3), placeholder: "Select" }, { default: u(() => [r(E, { label: "yyyy-m-d", value: "yyyy-m-d" }), r(E, { label: "yyyy-m-d hh:mm:ss", value: "yyyy-m-d hh:mm:ss" }), r(E, { label: "yyyy-m", value: "yyyy-m" }), r(E, { label: "m-d", value: "m-d" }), r(E, { label: "yyyy", value: "yyyy" }), r(E, { label: "yyyy年m月d日", value: "yyyy年m月d日" }), r(E, { label: "yyyy年m月d日hh时mm分ss秒", value: "yyyy年m月d日hh时mm分ss秒" }), r(E, { label: "yyyy年m月", value: "yyyy年m月" }), r(E, { label: "m月d日", value: "m月d日" })]), _: 1 }, 8, ["modelValue"])]), _: 1 })) : s("", true), "time" === e2.configure.props.format.type ? (t(), o(L, { key: 7, label: "时间类型", class: "amb-design-attr-item" }, { default: u(() => [r(I, { modelValue: e2.configure.props.format.timeType, "onUpdate:modelValue": U2[25] || (U2[25] = (l3) => e2.configure.props.format.timeType = l3), placeholder: "Select" }, { default: u(() => [r(E, { label: "HH:mm", value: "HH:mm" }), r(E, { label: "HH:mm:ss", value: "HH:mm:ss" }), r(E, { label: "HH时mm分", value: "HH时mm分" }), r(E, { label: "HH时mm分ss秒", value: "HH时mm分ss秒" }), r(E, { label: "hh:mm", value: "hh:mm" }), r(E, { label: "hh:mm:ss", value: "hh:mm:ss" }), r(E, { label: "hh时mm分", value: "hh时mm分" }), r(E, { label: "hh时mm分ss秒", value: "hh时mm分ss秒" })]), _: 1 }, 8, ["modelValue"])]), _: 1 })) : s("", true), "customControl" === e2.configure.props.format.type ? (t(), o(L, { key: 8, label: "自定义控件", class: "amb-design-attr-item" }, { default: u(() => [r(q, { modelValue: e2.configure.props.format.customControl, "onUpdate:modelValue": U2[26] || (U2[26] = (l3) => e2.configure.props.format.customControl = l3) }, null, 8, ["modelValue"])]), _: 1 })) : s("", true), "hyperlinks" === e2.configure.props.format.type ? (t(), o(R, { key: 9, pageDesign: e2.pageDesign, configure: e2.configure }, null, 8, ["pageDesign", "configure"])) : s("", true), "icon" === e2.configure.props.format.type ? (t(), o(L, { key: 10, label: "图标", class: "amb-design-attr-item" }, { default: u(() => [r(W, { modelValue: e2.configure.props.format.icon, "onUpdate:modelValue": U2[27] || (U2[27] = (l3) => e2.configure.props.format.icon = l3) }, null, 8, ["modelValue"])]), _: 1 })) : s("", true), "icon" === e2.configure.props.format.type ? (t(), o(L, { key: 11, label: "图标位置", class: "amb-design-attr-item" }, { default: u(() => [r(F, { modelValue: e2.configure.props.format.position, "onUpdate:modelValue": U2[28] || (U2[28] = (l3) => e2.configure.props.format.position = l3), "active-text": "后缀", "inactive-text": "前缀", "active-value": "suf", "inactive-value": "pre" }, null, 8, ["modelValue"])]), _: 1 })) : s("", true), "icon" === e2.configure.props.format.type ? (t(), o(L, { key: 12, label: "回调事件", class: "amb-design-attr-item" }, { default: u(() => [r(q, { modelValue: e2.configure.props.format.event, "onUpdate:modelValue": U2[29] || (U2[29] = (l3) => e2.configure.props.format.event = l3) }, null, 8, ["modelValue"])]), _: 1 })) : s("", true), "custom" === e2.configure.props.format.type ? (t(), o(L, { key: 13, label: "自定义方法", class: "amb-design-attr-item" }, { default: u(() => [r(q, { modelValue: e2.configure.props.format.customControl, "onUpdate:modelValue": U2[30] || (U2[30] = (l3) => e2.configure.props.format.customControl = l3) }, null, 8, ["modelValue"])]), _: 1 })) : s("", true), "files" === e2.configure.props.format.type ? (t(), o(L, { key: 14, label: "是否多选", class: "amb-design-attr-item" }, { default: u(() => [r(F, { modelValue: e2.configure.props.format.multiple, "onUpdate:modelValue": U2[31] || (U2[31] = (l3) => e2.configure.props.format.multiple = l3) }, null, 8, ["modelValue"])]), _: 1 })) : s("", true), "files" === e2.configure.props.format.type ? (t(), o(L, { key: 15, label: "文件类型", class: "amb-design-attr-item" }, { default: u(() => [r(q, { modelValue: e2.configure.props.format.accept, "onUpdate:modelValue": U2[32] || (U2[32] = (l3) => e2.configure.props.format.accept = l3) }, null, 8, ["modelValue"])]), _: 1 })) : s("", true), "files" === e2.configure.props.format.type ? (t(), o(L, { key: 16, label: "文件限制(M)", class: "amb-design-attr-item" }, { default: u(() => [r(X, { modelValue: e2.configure.props.format.limitFileSize, "onUpdate:modelValue": U2[33] || (U2[33] = (l3) => e2.configure.props.format.limitFileSize = l3), min: 1 }, null, 8, ["modelValue"])]), _: 1 })) : s("", true), "files" === e2.configure.props.format.type && e2.configure.props.format.multiple ? (t(), o(L, { key: 17, label: "选择数据表" }, { default: u(() => [r(q, { modelValue: e2.configure.props.format.childAnnexDataTableCode, "onUpdate:modelValue": U2[34] || (U2[34] = (l3) => e2.configure.props.format.childAnnexDataTableCode = l3), onClick: l2.openSelectDataTable, clearable: "" }, { append: u(() => [r(M, { icon: d(h), onClick: l2.openSelectDataTable }, null, 8, ["icon", "onClick"])]), _: 1 }, 8, ["modelValue", "onClick"])]), _: 1 })) : s("", true), "files" === e2.configure.props.format.type ? (t(), o(L, { key: 18, label: "展示名字段", class: "amb-design-attr-item" }, { default: u(() => [r(Y, { prop: e2.configure.props.format.showName, "onUpdate:prop": U2[35] || (U2[35] = (l3) => e2.configure.props.format.showName = l3), tableConfigure: l2.tableConfigure }, null, 8, ["prop", "tableConfigure"])]), _: 1 })) : s("", true), "files" === e2.configure.props.format.type ? (t(), o(L, { key: 19, label: "服务器字段", class: "amb-design-attr-item" }, { default: u(() => [r(Y, { prop: e2.configure.props.format.serverName, "onUpdate:prop": U2[36] || (U2[36] = (l3) => e2.configure.props.format.serverName = l3), tableConfigure: l2.tableConfigure }, null, 8, ["prop", "tableConfigure"])]), _: 1 })) : s("", true)])]), _: 1 }), (t(), o(g, { key: e2.configure.uuid, configureProps: e2.configure.props }, null, 8, ["configureProps"])), (t(), o(Q, { title: "校验", name: "verification", key: e2.configure.uuid, class: "amb-design-attr-group-header" }, { default: u(() => [n("div", D, [r(L, { class: "amb-design-attr-item", "label-width": "0" }, { default: u(() => [r(Z, { modelValue: e2.configure.props.verification.required, "onUpdate:modelValue": U2[37] || (U2[37] = (l3) => e2.configure.props.verification.required = l3), label: "必填" }, null, 8, ["modelValue"])]), _: 1 }), r(L, { class: "amb-design-attr-item", "label-width": "0" }, { default: u(() => [r(B, { span: 8 }, { default: u(() => [r(Z, { label: "自定义", value: "custom" })]), _: 1 }), r(B, { span: 14 }, { default: u(() => [r(M, null, { default: u(() => U2[51] || (U2[51] = [c("自定义逻辑")])), _: 1 }), r(M, { icon: d(h), circle: "" }, null, 8, ["icon"])]), _: 1 })]), _: 1 })])]), _: 1 })), (t(), o(y, { key: e2.configure.uuid, size: e2.configure.props.size, showCalcHeight: true }, null, 8, ["size"]))]), _: 1 }, 8, ["modelValue"]), r(C, { ref_key: "selectTableDialog", ref: S, onSelectTable: P, systemCode: e2.pageDesign.systemCode, systemVersion: e2.pageDesign.systemVersion }, null, 8, ["systemCode", "systemVersion"])]), _: 1 });
|
|
20
36
|
};
|
|
21
37
|
} });
|
|
22
38
|
export {
|
|
23
|
-
|
|
39
|
+
H as default
|
|
24
40
|
};
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import { defineComponent as e, ref as l, resolveComponent as a, createElementBlock as t, openBlock as o, createVNode as u, withCtx as n, createTextVNode as d, Fragment as s, renderList as m, createBlock as i, createCommentVNode as p, withModifiers as r, unref as c } from "vue";
|
|
2
|
+
import { Search as g, Close as v, Top as f, Bottom as V, Delete as y } from "@element-plus/icons-vue";
|
|
3
|
+
import C from "../../common/common-function-code.vue.js";
|
|
4
|
+
import k from "../../common/common-select-page.vue.js";
|
|
5
|
+
const _ = { style: { padding: "8px 0px" } }, b = e({ __name: "tree-attr-context-menu", props: { configure: { type: Object, default: () => ({}) }, pageDesign: { type: Object, default: () => {
|
|
6
|
+
} } }, setup(e2) {
|
|
7
|
+
const b2 = e2, U = l([]);
|
|
8
|
+
b2.configure.props.contextMenus || (b2.configure.props.contextMenus = []);
|
|
9
|
+
const P = l(b2.configure.props.contextMenus), h = l(), N = l(-1), j = () => {
|
|
10
|
+
P.value.push({ name: "菜单名称" + (1 + P.value.length), icon: "el-icon-menu", type: "standard" }), U.value.push(P.value.length - 1);
|
|
11
|
+
}, z = (e3) => {
|
|
12
|
+
h.value.openDialog(), N.value = e3;
|
|
13
|
+
}, x = (e3) => {
|
|
14
|
+
const l2 = N.value;
|
|
15
|
+
l2 >= 0 && l2 < P.value.length && (P.value[l2].jumpPageName = e3.pageName, P.value[l2].jumpPageCode = e3.pageCode), N.value = -1;
|
|
16
|
+
};
|
|
17
|
+
return (l2, b3) => {
|
|
18
|
+
const N2 = a("el-button"), T = a("el-icon"), M = a("el-input"), D = a("el-tooltip"), E = a("el-radio"), O = a("el-radio-group"), S = a("el-form-item"), w = a("el-option"), R = a("el-select"), q = a("el-switch"), A = a("el-collapse-item"), B = a("el-collapse");
|
|
19
|
+
return o(), t("div", _, [u(N2, { style: { "margin-bottom": "8px" }, type: "primary", size: "small", onClick: j }, { default: n(() => b3[2] || (b3[2] = [d(" 新增菜单 ")])), _: 1 }), u(B, { modelValue: U.value, "onUpdate:modelValue": b3[1] || (b3[1] = (e3) => U.value = e3) }, { default: n(() => [(o(true), t(s, null, m(P.value, (e3, l3) => (o(), i(A, { key: l3, name: l3 }, { title: n(() => [u(T, { size: "14", style: { cursor: "pointer" }, onClick: r((e4) => ((e5) => {
|
|
20
|
+
if (0 === e5) return;
|
|
21
|
+
const l4 = P.value[e5 - 1];
|
|
22
|
+
P.value[e5 - 1] = P.value[e5], P.value[e5] = l4;
|
|
23
|
+
})(l3), ["stop"]) }, { default: n(() => [u(c(f))]), _: 2 }, 1032, ["onClick"]), u(T, { size: "14", style: { cursor: "pointer" }, onClick: r((e4) => ((e5) => {
|
|
24
|
+
if (e5 === P.value.length - 1) return;
|
|
25
|
+
const l4 = P.value[e5 + 1];
|
|
26
|
+
P.value[e5 + 1] = P.value[e5], P.value[e5] = l4;
|
|
27
|
+
})(l3), ["stop"]) }, { default: n(() => [u(c(V))]), _: 2 }, 1032, ["onClick"]), u(M, { modelValue: e3.name, "onUpdate:modelValue": (l4) => e3.name = l4, onClick: b3[0] || (b3[0] = r(() => {
|
|
28
|
+
}, ["stop"])), placeholder: "请输入菜单名称", size: "small", style: { "margin-right": "20px" } }, null, 8, ["modelValue", "onUpdate:modelValue"]), u(D, { content: "删除" }, { default: n(() => [u(T, { size: "14", color: "red", style: { cursor: "pointer", "margin-right": "20px" }, onClick: r((e4) => ((e5) => {
|
|
29
|
+
P.value.splice(e5, 1), U.value = U.value.filter((l4) => l4 !== e5);
|
|
30
|
+
})(l3), ["stop"]) }, { default: n(() => [u(c(y))]), _: 2 }, 1032, ["onClick"])]), _: 2 }, 1024)]), default: n(() => [u(S, { label: "点击事件", class: "amb-design-attr-item" }, { default: n(() => [u(O, { modelValue: e3.type, "onUpdate:modelValue": (l4) => e3.type = l4, size: "small" }, { default: n(() => [u(E, { value: "standard" }, { default: n(() => b3[3] || (b3[3] = [d("标准事件")])), _: 1 })]), _: 2 }, 1032, ["modelValue", "onUpdate:modelValue"])]), _: 2 }, 1024), "standard" === e3.type ? (o(), t(s, { key: 0 }, [u(S, { label: "", class: "amb-design-attr-item" }, { default: n(() => [u(R, { modelValue: e3.standardEvent, "onUpdate:modelValue": (l4) => e3.standardEvent = l4, placeholder: "请选择事件", size: "small" }, { default: n(() => [u(w, { label: "新增同级节点", value: "addSiblingNode" }), u(w, { label: "新增子节点", value: "addChildNode" }), u(w, { label: "编辑", value: "edit" }), u(w, { label: "删除", value: "delete" })]), _: 2 }, 1032, ["modelValue", "onUpdate:modelValue"])]), _: 2 }, 1024), "delete" === e3.standardEvent ? (o(), t(s, { key: 0 }, [u(S, { label: "提示信息", class: "amb-design-attr-item" }, { default: n(() => [u(M, { modelValue: e3.tipMessage, "onUpdate:modelValue": (l4) => e3.tipMessage = l4, placeholder: "请选择事件", size: "small" }, null, 8, ["modelValue", "onUpdate:modelValue"])]), _: 2 }, 1024), u(S, { label: "", class: "amb-design-attr-item" }, { default: n(() => [u(q, { modelValue: e3.deleteParentNodeTip, "onUpdate:modelValue": (l4) => e3.deleteParentNodeTip = l4 }, null, 8, ["modelValue", "onUpdate:modelValue"]), b3[4] || (b3[4] = d(" 删除父节点是否提示 "))]), _: 2 }, 1024), e3.deleteParentNodeTip ? (o(), i(S, { key: 0, label: "", class: "amb-design-attr-item" }, { default: n(() => [u(M, { modelValue: e3.deleteParentNodeTipMessage, "onUpdate:modelValue": (l4) => e3.deleteParentNodeTipMessage = l4, placeholder: "删除父节点提示信息" }, null, 8, ["modelValue", "onUpdate:modelValue"])]), _: 2 }, 1024)) : p("", true)], 64)) : p("", true)], 64)) : "custom" === e3.type ? (o(), i(S, { key: 1, label: "", class: "amb-design-attr-item" }, { default: n(() => [u(O, { modelValue: e3.customClickType, "onUpdate:modelValue": (l4) => e3.customClickType = l4, size: "small" }, { default: n(() => [u(E, { value: "event" }, { default: n(() => b3[5] || (b3[5] = [d("触发事件")])), _: 1 }), u(E, { value: "openPage" }, { default: n(() => b3[6] || (b3[6] = [d("打开页面")])), _: 1 })]), _: 2 }, 1032, ["modelValue", "onUpdate:modelValue"]), "openPage" === e3.customClickType ? (o(), i(M, { key: 0, modelValue: e3.jumpPageName, "onUpdate:modelValue": (l4) => e3.jumpPageName = l4, title: e3.jumpPageCode, onClick: r((e4) => z(l3), ["stop"]), readonly: "true" }, { append: n(() => [u(N2, { icon: c(g), onClick: (e4) => z(l3), size: "small" }, null, 8, ["icon", "onClick"]), u(N2, { icon: c(v), onClick: (l4) => ((e4) => {
|
|
31
|
+
e4.jumpPageName = null, e4.jumpPageCode = null;
|
|
32
|
+
})(e3), title: "Clear", size: "small" }, null, 8, ["icon", "onClick"])]), _: 2 }, 1032, ["modelValue", "onUpdate:modelValue", "title", "onClick"])) : p("", true)]), _: 2 }, 1024)) : p("", true), u(S, { label: "绑定权限", class: "amb-design-attr-item" }, { default: n(() => [(o(), i(C, { key: l3 + "p", configure: e3 }, null, 8, ["configure"]))]), _: 2 }, 1024)]), _: 2 }, 1032, ["name"]))), 128))]), _: 1 }, 8, ["modelValue"]), u(k, { ref_key: "selectPageDialogRef", ref: h, onSelectPage: x, systemCode: e2.pageDesign.systemCode, systemVersion: e2.pageDesign.systemVersion }, null, 8, ["systemCode", "systemVersion"])]);
|
|
33
|
+
};
|
|
34
|
+
} });
|
|
35
|
+
export {
|
|
36
|
+
b as default
|
|
37
|
+
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as e, ref as a, watch as t, resolveComponent as
|
|
1
|
+
import { defineComponent as e, ref as a, watch as t, resolveComponent as i, createElementBlock as n, openBlock as o, normalizeClass as l, createVNode as c, normalizeStyle as r } from "vue";
|
|
2
2
|
import { caculateDetailComponentStyle as d, caculateComponentProps as s } from "../../../../utils/form-design-util.js";
|
|
3
3
|
const u = e({ __name: "tree-design", props: { configure: Object }, emits: ["handleSelect"], setup(e2, { emit: u2 }) {
|
|
4
4
|
const f = e2;
|
|
@@ -10,7 +10,7 @@ const u = e({ __name: "tree-design", props: { configure: Object }, emits: ["hand
|
|
|
10
10
|
s(f.configure, g), function() {
|
|
11
11
|
let e3 = {};
|
|
12
12
|
const a2 = {};
|
|
13
|
-
f.configure.props.preSuffix && (e3 = f.configure.props), e3.base.showCheckbox &&
|
|
13
|
+
f.configure.props.preSuffix && (e3 = f.configure.props), e3.base.showCheckbox && (a2.showCheckbox = e3.base.showCheckbox), e3.base.defaultExpandAll && (a2.defaultExpandAll = e3.base.defaultExpandAll), e3.base.expandOnClickNode && (a2.expandOnClickNode = e3.base.expandOnClickNode), e3.base.accordion && (a2.accordion = e3.base.accordion), e3.base.retractWidth && (a2.retractWidth = e3.base.retractWidth), e3.base.filter && (a2.filter = e3.base.filter);
|
|
14
14
|
try {
|
|
15
15
|
if (e3.dataOrigin.staticData) {
|
|
16
16
|
let t2 = e3.dataOrigin.staticData.replace(/[\r\n\t\f\v ]+/g, "");
|
|
@@ -21,8 +21,8 @@ const u = e({ __name: "tree-design", props: { configure: Object }, emits: ["hand
|
|
|
21
21
|
if (a2 != {}) for (const e4 in a2) g.value[e4] = a2[e4];
|
|
22
22
|
}(), f.configure.runtime.props = g.value;
|
|
23
23
|
}, { immediate: true }), (e3, a2) => {
|
|
24
|
-
const t2 =
|
|
25
|
-
return o(),
|
|
24
|
+
const t2 = i("el-tree");
|
|
25
|
+
return o(), n("div", { class: l(b.value) }, [c(t2, { style: r([h.value, { width: "fit-content" }]), data: g.value.staticData, "default-expand-all": g.value.defaultExpandAll, "expand-on-click-node": g.value.expandOnClickNode, indent: g.value.retractWidth ? g.value.retractWidth : 18, accordion: g.value.accordion, "show-checkbox": g.value.showCheckbox, props: p }, null, 8, ["style", "data", "default-expand-all", "expand-on-click-node", "indent", "accordion", "show-checkbox"])], 2);
|
|
26
26
|
};
|
|
27
27
|
} });
|
|
28
28
|
export {
|
|
@@ -4,7 +4,7 @@ import { componentNameChange as v } from "../../../../utils/form-design-util.js"
|
|
|
4
4
|
import V from "../../common/common-attr-size.vue.js";
|
|
5
5
|
import _ from "../common/data-origin.vue.js";
|
|
6
6
|
import y from "../common/data-linkage.vue.js";
|
|
7
|
-
import h from "../../common/common-variable-bind.
|
|
7
|
+
import h from "../../common/common-variable-bind.vue.js";
|
|
8
8
|
import k from "../../common/common-function-code.vue.js";
|
|
9
9
|
import x from "../common/verification-custom.vue.js";
|
|
10
10
|
import U from "../../common/common-i18n-key-input.vue.js";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { defineComponent as e, ref as l, onMounted as o, resolveComponent as t, createBlock as a, openBlock as u, withCtx as n, createVNode as i, createCommentVNode as r, unref as d, createTextVNode as s, createElementBlock as c, Fragment as p, renderList as f, toDisplayString as m, createElementVNode as b } from "vue";
|
|
2
2
|
import { Plus as v, Top as y, Bottom as g, Delete as _ } from "@element-plus/icons-vue";
|
|
3
|
-
import h from "../../common/common-variable-bind.
|
|
3
|
+
import h from "../../common/common-variable-bind.vue.js";
|
|
4
4
|
import k from "agilebuilder-ui/src/utils/request";
|
|
5
5
|
import { ElMessage as V } from "element-plus";
|
|
6
6
|
const C = { style: { "font-weight": "bold" } }, L = { class: "dialog-footer" }, w = { class: "dialog-footer" }, x = e({ __name: "bar-code-rule", props: { ruleList: { type: Array, default: [] } }, emits: ["close", "remove"], setup(e2, { emit: x2 }) {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { defineComponent as l, ref as e, resolveComponent as a, createElementBlock as o, openBlock as t, Fragment as u, createElementVNode as r, createVNode as d, withDirectives as n, withCtx as p, createTextVNode as i, toDisplayString as T, vShow as m, unref as c, renderList as b, createBlock as v } from "vue";
|
|
2
2
|
import { Plus as w, Delete as f } from "@element-plus/icons";
|
|
3
|
-
import y from "../../common/common-variable-bind.
|
|
3
|
+
import y from "../../common/common-variable-bind.vue.js";
|
|
4
4
|
import { getUuidv4 as s } from "../../../../utils/common-util.js";
|
|
5
5
|
const V = { class: "dialog-footer" }, h = l({ __name: "condition", props: { list: { type: Array, default: () => [] }, title: String, buttonText: { type: String, default: "编辑" } }, setup(l2, { expose: h2 }) {
|
|
6
6
|
const N = l2, _ = e([]);
|
|
@@ -8,7 +8,7 @@ import Y from "agilebuilder-ui/src/utils/request";
|
|
|
8
8
|
import { usePageContextStore as _ } from "../../../../../../stores/page-store.js";
|
|
9
9
|
import "../../../../../../stores/table-store.js";
|
|
10
10
|
import "../../../../../../stores/statistics-table-store.js";
|
|
11
|
-
/* empty css
|
|
11
|
+
/* empty css */
|
|
12
12
|
import T from "./data-origin-service-in.vue.js";
|
|
13
13
|
import { queryTableFields as h } from "../../../../utils/page-table-util.js";
|
|
14
14
|
import { getCustomFuncs as D } from "../../../../utils/page-event-util.js";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { defineComponent as e, onUnmounted as o, resolveComponent as l, createBlock as i, openBlock as n, withCtx as r, createElementVNode as t, createVNode as a, unref as u } from "vue";
|
|
2
2
|
import { Plus as s, Delete as c } from "@element-plus/icons-vue";
|
|
3
3
|
import { getUuidv4 as p } from "../../../../utils/common-util.js";
|
|
4
|
-
import f from "../../common/common-variable-bind.
|
|
4
|
+
import f from "../../common/common-variable-bind.vue.js";
|
|
5
5
|
const d = { style: { padding: "8px 0px 0px 0px" } }, m = e({ __name: "data-linkage", props: { configureProps: {} }, setup(e2) {
|
|
6
6
|
const m2 = e2;
|
|
7
7
|
function g(e3) {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { defineComponent as e, ref as t, onUnmounted as l, resolveComponent as a, createElementBlock as o, openBlock as i, createVNode as n, withCtx as u, createElementVNode as r, unref as d, Fragment as s, renderList as m, createBlock as c } from "vue";
|
|
2
2
|
import { getUuidv4 as p } from "../../../../utils/common-util.js";
|
|
3
3
|
import { Top as f, Bottom as g, Plus as b, Delete as v } from "@element-plus/icons-vue";
|
|
4
|
-
import w from "../../common/common-variable-bind.
|
|
4
|
+
import w from "../../common/common-variable-bind.vue.js";
|
|
5
5
|
const k = { style: { "text-align": "center", margin: "0px -8px", "padding-top": "4px", "padding-left": "2px" } }, C = e({ __name: "data-origin-autoset", props: { dataOrigin: {}, isTable: {} }, setup(e2, { expose: C2 }) {
|
|
6
6
|
const O = e2;
|
|
7
7
|
O.dataOrigin.autoSets || (O.dataOrigin.autoSets = []), 0 == O.dataOrigin.autoSets.length && _(null);
|