super-page-designer 2.3.16-sit3-design1 → 2.3.17-sit2-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/assets/images/data/file.png.js +4 -0
- package/dist/es/assets/images/data/folder.png.js +4 -0
- package/dist/es/components/design/utils/assemblys-config.js +1 -1
- package/dist/es/components/design/utils/form-design-util.js +4 -1
- package/dist/es/components/design/utils/page-table-util.js +1 -1
- package/dist/es/components/design/utils/ucr-element-filter.d.ts +2 -0
- package/dist/es/components/design/utils/ucr-element-filter.js +11 -0
- package/dist/es/components/design/views/assemblys/button/button/button-attr-advanced.vue.js +7 -7
- package/dist/es/components/design/views/assemblys/button/button/button-attr-base.vue.js +1 -1
- package/dist/es/components/design/views/assemblys/button/button/button-attr-base.vue2.js +11 -11
- package/dist/es/components/design/views/assemblys/common/common-select-page.vue.js +1 -1
- package/dist/es/components/design/views/assemblys/data/table/table-attr-base.vue.js +5 -5
- package/dist/es/components/design/views/assemblys/form/common/condition.vue.js +43 -40
- package/dist/es/components/design/views/assemblys/form/common/data-origin.vue.js +1 -1
- package/dist/es/components/design/views/assemblys/form/common/data-origin.vue2.js +1 -1
- package/dist/es/components/design/views/assemblys/form/label/label-attr-base.vue.js +20 -20
- package/dist/es/components/design/views/assemblys/form/label/label-design.vue.js +4 -1
- package/dist/es/components/design/views/assemblys/form/label/label-design.vue2.js +22 -22
- package/dist/es/components/design/views/assemblys/object-design.vue.js +1 -1
- package/dist/es/components/design/views/assemblys/object-design.vue3.js +66 -66
- package/dist/es/components/design/views/design/page-design.vue.d.ts +9 -0
- package/dist/es/components/design/views/design/page-design.vue2.js +42 -42
- package/dist/es/components/design/views/design/page-event/completion-data.js +1 -1
- package/dist/es/components/design/views/design/page-event/config.vue2.js +1 -1
- package/dist/es/components/design/views/design/page-event/config.vue3.js +52 -45
- package/dist/es/components/design/views/design/page-event/page-event-content.vue.js +11 -10
- package/dist/es/components/design/views/design/page-event/page-event-view.vue.d.ts +16 -2
- package/dist/es/components/design/views/design/page-event/page-event-view.vue.js +8 -8
- package/dist/es/components/design/views/design/view/assemblys-container-list.vue.d.ts +16 -2
- package/dist/es/components/design/views/design/view/assemblys-container-list.vue.js +23 -20
- package/dist/es/components/design/views/design/view/assemblys-container.vue.js +11 -12
- package/dist/es/components/design/views/design/view/components/ucr-report-swtich/index.vue.d.ts +38 -0
- package/dist/es/components/design/views/design/view/components/ucr-report-swtich/index.vue.js +7 -0
- package/dist/es/components/design/views/design/view/components/ucr-report-swtich/index.vue2.js +111 -0
- package/dist/es/components/design/views/design/view/components/ucr-report-swtich/util.d.ts +6 -0
- package/dist/es/components/design/views/design/view/components/ucr-report-swtich/util.js +27 -0
- package/dist/es/components/design/views/design/view/page-switch.vue.d.ts +18 -0
- 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 +34 -30
- package/dist/es/components/design/views/design/view/view-design-display.vue.js +13 -13
- package/dist/es/style.css +186 -65
- package/package.json +5 -5
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as e, ref as a, onMounted as l, resolveComponent as o, createBlock as i, openBlock as
|
|
1
|
+
import { defineComponent as e, ref as a, onMounted as l, resolveComponent as o, createBlock as i, openBlock as s, withCtx as t, createVNode as u, createElementBlock as n, createCommentVNode as r, Fragment as d, createElementVNode as p, renderList as c, unref as m, createTextVNode as g, withDirectives as f, vShow as b } from "vue";
|
|
2
2
|
import { getFormComponentOptions as V } from "../../../../utils/assemblys-config.js";
|
|
3
3
|
import "../../../../../../stores/page-store.js";
|
|
4
4
|
/* empty css */
|
|
@@ -6,14 +6,14 @@ import v from "../../common/common-icon-bind.vue.js";
|
|
|
6
6
|
import _ from "agilebuilder-ui/src/utils/request";
|
|
7
7
|
import y from "../../common/common-function-code.vue.js";
|
|
8
8
|
import "@element-plus/icons";
|
|
9
|
-
import { Close as U, Check as
|
|
9
|
+
import { Close as U, Check as k } from "@element-plus/icons-vue";
|
|
10
10
|
import "uuid";
|
|
11
11
|
import "../../../../../../stores/table-store.js";
|
|
12
12
|
import "../../../../../../stores/statistics-table-store.js";
|
|
13
13
|
/* empty css */
|
|
14
|
-
import { getTableConfigByTableUuid as
|
|
15
|
-
import
|
|
16
|
-
import
|
|
14
|
+
import { getTableConfigByTableUuid as h } from "../../../../utils/page-table-util.js";
|
|
15
|
+
import D from "../../common/common-i18n-key-input.vue.js";
|
|
16
|
+
import x from "../../chart/statistical-table/component/link-table.vue.js";
|
|
17
17
|
import P from "../../common/common-template-select.vue.js";
|
|
18
18
|
const j = { class: "collapse-item-content" }, w = { class: "collapse-item-content" }, T = { class: "collapse-item-content" }, z = { class: "collapse-item-content" }, C = { class: "collapse-item-content" }, E = e({ __name: "button-attr-base", props: { configure: { type: Object, default: () => ({ props: {} }) }, pageDesign: { type: Object, default: () => ({ props: {} }) } }, setup(e2) {
|
|
19
19
|
const E2 = e2, q = a(["base", "appearance", "otherSettings", "linkPage", "templateConfig"]), F = a({}), R = a([]), A = a($()), I = a(false);
|
|
@@ -22,14 +22,14 @@ const j = { class: "collapse-item-content" }, w = { class: "collapse-item-conten
|
|
|
22
22
|
}), void 0 === E2.configure.props.base.isEnableRequired && (E2.configure.props.base.isEnableRequired = true), !E2.configure.props.linkPage || E2.configure.props.linkPage instanceof Array || (E2.configure.props.linkPage = [{ linkPage: E2.configure.props.linkPage }]), I.value = true;
|
|
23
23
|
const S = a([]);
|
|
24
24
|
function $() {
|
|
25
|
-
return
|
|
25
|
+
return h(E2.pageDesign, E2.configure);
|
|
26
26
|
}
|
|
27
27
|
function M(e3) {
|
|
28
28
|
const a2 = $();
|
|
29
29
|
A.value = a2;
|
|
30
30
|
}
|
|
31
31
|
return l(() => {
|
|
32
|
-
|
|
32
|
+
E2.pageDesign.ucrDesign || function() {
|
|
33
33
|
var _a;
|
|
34
34
|
const e3 = (_a = E2.pageDesign) == null ? void 0 : _a.systemVersion;
|
|
35
35
|
_.post(window.$vueApp.config.globalProperties.baseAPI + `/dc/template-management/list/${E2.pageDesign.systemCode}?publishVersion=${e3}`, {}).then((e4) => {
|
|
@@ -37,12 +37,12 @@ const j = { class: "collapse-item-content" }, w = { class: "collapse-item-conten
|
|
|
37
37
|
});
|
|
38
38
|
}(), E2.pageDesign.tableUuids && E2.pageDesign.tableUuids.length > 0 && (S.value = E2.pageDesign.tableUuids);
|
|
39
39
|
}), (a2, l2) => {
|
|
40
|
-
const _2 = o("el-option"),
|
|
41
|
-
return
|
|
40
|
+
const _2 = o("el-option"), h2 = o("el-select"), F2 = o("el-form-item"), R2 = o("el-input"), $2 = o("el-radio"), N = o("el-radio-group"), O = o("el-collapse-item"), B = o("el-radio-button"), G = o("el-switch"), H = o("el-collapse"), J = o("el-form");
|
|
41
|
+
return s(), i(J, { "label-width": "80px", size: "small" }, { default: t(() => [u(H, { modelValue: q.value, "onUpdate:modelValue": l2[26] || (l2[26] = (e3) => q.value = e3), style: { "margin-top": "6px" } }, { default: t(() => [e2.configure.isFlow ? r("", true) : (s(), n(d, { key: 0 }, [u(O, { title: "基本", name: "base", class: "amb-design-attr-group-header" }, { default: t(() => [p("div", j, [u(F2, { label: "组件类型", class: "amb-design-attr-item" }, { default: t(() => [u(h2, { modelValue: e2.configure.name, "onUpdate:modelValue": l2[0] || (l2[0] = (a3) => e2.configure.name = a3), placeholder: "请选择" }, { default: t(() => [(s(true), n(d, null, c(m(V)(), (e3) => (s(), i(_2, { key: e3.name, label: e3.label, value: e3.name }, null, 8, ["label", "value"]))), 128))]), _: 1 }, 8, ["modelValue"])]), _: 1 }), u(F2, { label: "唯一编码", class: "amb-design-attr-item" }, { default: t(() => [u(R2, { modelValue: e2.configure.uuid, "onUpdate:modelValue": l2[1] || (l2[1] = (a3) => e2.configure.uuid = a3), readonly: "", title: e2.configure.uuid }, null, 8, ["modelValue", "title"])]), _: 1 }), u(F2, { label: "自定义编码", class: "amb-design-attr-item" }, { default: t(() => [u(R2, { modelValue: e2.configure.code, "onUpdate:modelValue": l2[2] || (l2[2] = (a3) => e2.configure.code = a3), placeholder: "请输入" }, null, 8, ["modelValue"])]), _: 1 }), u(F2, { label: "绑定权限", class: "amb-design-attr-item" }, { default: t(() => [(s(), i(y, { key: e2.configure.uuid, configure: e2.configure }, null, 8, ["configure"]))]), _: 1 }), u(F2, { label: "标题", class: "amb-design-attr-item" }, { default: t(() => [u(D, { modelValue: e2.configure.props.base.title, "onUpdate:modelValue": l2[3] || (l2[3] = (a3) => e2.configure.props.base.title = a3) }, null, 8, ["modelValue"])]), _: 1 }), u(F2, { label: "尺寸", class: "amb-design-attr-item" }, { default: t(() => [u(N, { modelValue: e2.configure.props.base.size, "onUpdate:modelValue": l2[4] || (l2[4] = (a3) => e2.configure.props.base.size = a3), class: "ml-4" }, { default: t(() => [u($2, { value: "large" }, { default: t(() => l2[27] || (l2[27] = [g("大")])), _: 1 }), u($2, { value: "default" }, { default: t(() => l2[28] || (l2[28] = [g("中")])), _: 1 }), u($2, { value: "small" }, { default: t(() => l2[29] || (l2[29] = [g("小")])), _: 1 })]), _: 1 }, 8, ["modelValue"])]), _: 1 }), u(F2, { label: "状态", class: "amb-design-attr-item" }, { default: t(() => [u(N, { modelValue: e2.configure.props.base.state, "onUpdate:modelValue": l2[5] || (l2[5] = (a3) => e2.configure.props.base.state = a3), class: "ml-4" }, { default: t(() => [u($2, { value: "default" }, { default: t(() => l2[30] || (l2[30] = [g("普通")])), _: 1 }), u($2, { value: "disabled" }, { default: t(() => l2[31] || (l2[31] = [g("禁用")])), _: 1 }), u($2, { value: "hidden" }, { default: t(() => l2[32] || (l2[32] = [g("隐藏")])), _: 1 })]), _: 1 }, 8, ["modelValue"])]), _: 1 })])]), _: 1 }), u(O, { title: "外观", name: "appearance", class: "amb-design-attr-group-header" }, { default: t(() => [p("div", w, [u(F2, { label: "按钮类型", class: "amb-design-attr-item" }, { default: t(() => [u(h2, { modelValue: e2.configure.props.base.type, "onUpdate:modelValue": l2[6] || (l2[6] = (a3) => e2.configure.props.base.type = a3), class: "ml-4", clearable: "" }, { default: t(() => [u(_2, { label: "primary", value: "primary" }), u(_2, { label: "success", value: "success" }), u(_2, { label: "warning", value: "warning" }), u(_2, { label: "danger", value: "danger" }), u(_2, { label: "info", value: "info" }), u(_2, { label: "default", value: "default" })]), _: 1 }, 8, ["modelValue"])]), _: 1 }), u(F2, { label: "图标", class: "amb-design-attr-item" }, { default: t(() => [(s(), i(v, { key: e2.configure.uuid, iconType: e2.configure.props.base.iconType, iconValue: e2.configure.props.base.iconValue, "onUpdate:modelValue": l2[7] || (l2[7] = (e3, a3) => function(e4, a4) {
|
|
42
42
|
E2.configure.props.base.iconType = e4, E2.configure.props.base.iconValue = a4, a4 || (E2.configure.props.base.isTextIcon = false);
|
|
43
|
-
}(e3, a3)) }, null, 8, ["iconType", "iconValue"]))]), _: 1 }),
|
|
43
|
+
}(e3, a3)) }, null, 8, ["iconType", "iconValue"]))]), _: 1 }), f(u(F2, { label: "图标位置", class: "amb-design-attr-item" }, { default: t(() => [u(N, { modelValue: e2.configure.props.base.iconPosition, "onUpdate:modelValue": l2[8] || (l2[8] = (a3) => e2.configure.props.base.iconPosition = a3), class: "ml-4" }, { default: t(() => [u(B, { value: "left" }, { default: t(() => l2[33] || (l2[33] = [g("标题前")])), _: 1 }), u(B, { value: "right" }, { default: t(() => l2[34] || (l2[34] = [g("标题后")])), _: 1 })]), _: 1 }, 8, ["modelValue"])]), _: 1 }, 512), [[b, e2.configure.props.base.iconValue]]), u(F2, { label: "文字按钮", class: "amb-design-attr-item" }, { default: t(() => [u(G, { modelValue: e2.configure.props.base.text, "onUpdate:modelValue": l2[9] || (l2[9] = (a3) => e2.configure.props.base.text = a3), disabled: !!e2.configure.props.base.plain || !!e2.configure.props.base.plain, "inline-prompt": "", "active-icon": m(k), "inactive-icon": m(U) }, null, 8, ["modelValue", "disabled", "active-icon", "inactive-icon"])]), _: 1 }), e2.configure.props.base.text ? (s(), i(F2, { key: 0, label: "图标按钮", class: "amb-design-attr-item" }, { default: t(() => [u(G, { modelValue: e2.configure.props.base.isTextIcon, "onUpdate:modelValue": l2[10] || (l2[10] = (a3) => e2.configure.props.base.isTextIcon = a3), disabled: !e2.configure.props.base.iconValue, "inline-prompt": "", "active-icon": m(k), "inactive-icon": m(U) }, null, 8, ["modelValue", "disabled", "active-icon", "inactive-icon"])]), _: 1 })) : r("", true), u(F2, { label: "朴素按钮", class: "amb-design-attr-item" }, { default: t(() => [u(G, { modelValue: e2.configure.props.base.plain, "onUpdate:modelValue": l2[11] || (l2[11] = (a3) => e2.configure.props.base.plain = a3), disabled: !!e2.configure.props.base.text, "inline-prompt": "", "active-icon": m(k), "inactive-icon": m(U) }, null, 8, ["modelValue", "disabled", "active-icon", "inactive-icon"])]), _: 1 }), u(F2, { label: "圆角按钮", class: "amb-design-attr-item" }, { default: t(() => [u(G, { modelValue: e2.configure.props.base.round, "onUpdate:modelValue": l2[12] || (l2[12] = (a3) => e2.configure.props.base.round = a3), disabled: !!e2.configure.props.base.text, "inline-prompt": "", "active-icon": m(k), "inactive-icon": m(U) }, null, 8, ["modelValue", "disabled", "active-icon", "inactive-icon"])]), _: 1 }), u(F2, { label: "加载状态", class: "amb-design-attr-item" }, { default: t(() => [u(N, { modelValue: e2.configure.props.base.loading, "onUpdate:modelValue": l2[13] || (l2[13] = (a3) => e2.configure.props.base.loading = a3), class: "ml-4" }, { default: t(() => [u($2, { value: true }, { default: t(() => l2[35] || (l2[35] = [g("是")])), _: 1 }), u($2, { value: false }, { default: t(() => l2[36] || (l2[36] = [g("否")])), _: 1 })]), _: 1 }, 8, ["modelValue"])]), _: 1 }), u(F2, { label: "默认聚焦", class: "amb-design-attr-item" }, { default: t(() => [u(N, { modelValue: e2.configure.props.base.focus, "onUpdate:modelValue": l2[14] || (l2[14] = (a3) => e2.configure.props.base.focus = a3), class: "ml-4" }, { default: t(() => [u($2, { value: true }, { default: t(() => l2[37] || (l2[37] = [g("是")])), _: 1 }), u($2, { value: false }, { default: t(() => l2[38] || (l2[38] = [g("否")])), _: 1 })]), _: 1 }, 8, ["modelValue"])]), _: 1 }), u(F2, { label: "原生type", class: "amb-design-attr-item" }, { default: t(() => [u(N, { modelValue: e2.configure.props.base.originalType, "onUpdate:modelValue": l2[15] || (l2[15] = (a3) => e2.configure.props.base.originalType = a3), class: "ml-4", disabled: !!e2.configure.props.base.text }, { default: t(() => [u($2, { value: "button" }, { default: t(() => l2[39] || (l2[39] = [g("button")])), _: 1 }), u($2, { value: "submit" }, { default: t(() => l2[40] || (l2[40] = [g("submit")])), _: 1 }), u($2, { value: "reset" }, { default: t(() => l2[41] || (l2[41] = [g("reset")])), _: 1 })]), _: 1 }, 8, ["modelValue", "disabled"])]), _: 1 })])]), _: 1 }), u(O, { title: "跳转配置", name: "linkPage", class: "amb-design-attr-group-header" }, { default: t(() => [p("div", T, [I.value ? (s(), i(x, { key: 0, pageDesign: e2.pageDesign, paramTypes: ["data", "task", "page", "context", "system", "request", "fixed", "row"], data: e2.configure.props.linkPage, configure: e2.configure, tableConfigure: A.value, onDataChange: l2[16] || (l2[16] = (e3) => function(e4) {
|
|
44
44
|
E2.configure.props.linkPage = e4;
|
|
45
|
-
}(e3)) }, null, 8, ["pageDesign", "data", "configure", "tableConfigure"])) : r("", true)])]), _: 1 }),
|
|
45
|
+
}(e3)) }, null, 8, ["pageDesign", "data", "configure", "tableConfigure"])) : r("", true)])]), _: 1 }), e2.pageDesign.ucrDesign ? r("", true) : (s(), i(O, { key: 0, title: "模板配置", name: "templateConfig", class: "amb-design-attr-group-header" }, { default: t(() => [p("div", z, [u(P, { modelValue: e2.configure.props.base.templateFiles, "onUpdate:modelValue": l2[17] || (l2[17] = (a3) => e2.configure.props.base.templateFiles = a3), pageDesign: e2.pageDesign, tableConfigure: A.value }, null, 8, ["modelValue", "pageDesign", "tableConfigure"])])]), _: 1 }))], 64)), u(O, { title: "其他设置", name: "otherSettings", class: "amb-design-attr-group-header" }, { default: t(() => [p("div", C, [!e2.configure.isFlow ? (s(), n(d, { key: 1 }, [u(F2, { label: "回填赋值", class: "amb-design-attr-item" }, { default: t(() => [u(G, { modelValue: e2.configure.props.base.isNeedValueMapping, "onUpdate:modelValue": l2[19] || (l2[19] = (a3) => e2.configure.props.base.isNeedValueMapping = a3), size: "default" }, null, 8, ["modelValue"])]), _: 1 }), u(F2, { label: "权限保护", class: "amb-design-attr-item" }, { default: t(() => [u(G, { modelValue: e2.configure.props.base.isPermission, "onUpdate:modelValue": l2[20] || (l2[20] = (a3) => e2.configure.props.base.isPermission = a3), size: "default" }, null, 8, ["modelValue"])]), _: 1 }), u(F2, { label: "是否异步", class: "amb-design-attr-item" }, { default: t(() => [u(G, { modelValue: e2.configure.props.base.isAsync, "onUpdate:modelValue": l2[21] || (l2[21] = (a3) => e2.configure.props.base.isAsync = a3), size: "default" }, null, 8, ["modelValue"])]), _: 1 }), u(F2, { label: "必填验证", class: "amb-design-attr-item" }, { default: t(() => [u(G, { modelValue: e2.configure.props.base.isEnableRequired, "onUpdate:modelValue": l2[22] || (l2[22] = (a3) => e2.configure.props.base.isEnableRequired = a3), size: "default" }, null, 8, ["modelValue"])]), _: 1 }), u(F2, { label: "逻辑删除", class: "amb-design-attr-item" }, { default: t(() => [u(G, { modelValue: e2.configure.props.base.isSafeDelete, "onUpdate:modelValue": l2[23] || (l2[23] = (a3) => e2.configure.props.base.isSafeDelete = a3), size: "default" }, null, 8, ["modelValue"])]), _: 1 }), u(F2, { label: "执行条件", class: "amb-design-attr-item" }, { default: t(() => [u(h2, { modelValue: e2.configure.props.base.conditionsForExecution, "onUpdate:modelValue": l2[24] || (l2[24] = (a3) => e2.configure.props.base.conditionsForExecution = a3) }, { default: t(() => [u(_2, { label: "无限制", value: "any" }), u(_2, { label: "选单行", value: "one" }), u(_2, { label: "选多行(包括单行)", value: "more" })]), _: 1 }, 8, ["modelValue"])]), _: 1 }), u(F2, { label: "对应表格", class: "amb-design-attr-item" }, { default: t(() => [u(h2, { modelValue: e2.configure.props.base.tableUuid, "onUpdate:modelValue": l2[25] || (l2[25] = (a3) => e2.configure.props.base.tableUuid = a3), clearable: "", filterable: "", "allow-create": "", onChange: M }, { default: t(() => [(s(true), n(d, null, c(S.value, (e3) => (s(), i(_2, { key: e3, label: e3, value: e3 }, null, 8, ["label", "value"]))), 128))]), _: 1 }, 8, ["modelValue"])]), _: 1 })], 64)) : (s(), i(F2, { key: 0, label: "必填验证", class: "amb-design-attr-item" }, { default: t(() => [u(G, { modelValue: e2.configure.props.base.isEnableRequired, "onUpdate:modelValue": l2[18] || (l2[18] = (a3) => e2.configure.props.base.isEnableRequired = a3), size: "default" }, null, 8, ["modelValue"])]), _: 1 }))])]), _: 1 })]), _: 1 }, 8, ["modelValue"])]), _: 1 });
|
|
46
46
|
};
|
|
47
47
|
} });
|
|
48
48
|
export {
|
|
@@ -21,7 +21,7 @@ const v = { style: { "background-color": "rgba(88, 147, 239, 0.06)", padding: "1
|
|
|
21
21
|
null != B && e3.sorts.push({ prop: B.property, order: "ascending" == B.order ? "asc" : "desc" });
|
|
22
22
|
let l2 = I.systemId;
|
|
23
23
|
I.tableType && I.tableType;
|
|
24
|
-
const t2 = window.$vueApp.config.globalProperties.baseAPI + "/
|
|
24
|
+
const t2 = window.$vueApp.config.globalProperties.baseAPI + "/component/app-pages/listBySystem/" + (l2 || 0);
|
|
25
25
|
let a2 = { searchParam: e3, searchInfo: {} };
|
|
26
26
|
I.searchValue && (a2.searchInfo.name = I.searchValue), f.post(t2, a2).then((e4) => {
|
|
27
27
|
A.value = e4.data, k.currentPage = e4.page, k.pageSize = e4.size, k.total = e4.total;
|
|
@@ -13,15 +13,15 @@ import "../../../../../../stores/statistics-table-store.js";
|
|
|
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";
|
|
16
|
-
const w = { style: { padding: "8px 0px 0px 0px" } }, C = { style: { padding: "8px 0px 0px 0px" } }, k = { style: { padding: "8px 0px 0px 0px" } }, D = { style: { padding: "8px 0px 0px 0px" } },
|
|
16
|
+
const w = { style: { padding: "8px 0px 0px 0px" } }, C = { style: { padding: "8px 0px 0px 0px" } }, k = { style: { padding: "8px 0px 0px 0px" } }, D = { style: { padding: "8px 0px 0px 0px" } }, E = { style: { padding: "8px 0px 0px 0px" } }, S = { style: { padding: "8px 0px 0px 0px" } }, z = { style: { padding: "8px 0px 0px 0px" } }, j = e({ __name: "table-attr-base", props: { pageDesign: { type: Object, default: () => ({ props: {} }) }, configure: { type: Object, default: () => ({ props: {} }) } }, setup(e2) {
|
|
17
17
|
const j2 = e2, O = a(["base", "appearance", "querySetting", "editSetting", "columnSetting", "paging", "dataOrigin", "linkage", "attrSize"]);
|
|
18
18
|
function P(e3) {
|
|
19
19
|
j2.configure.props.base.showOperationCondition = e3.data;
|
|
20
20
|
}
|
|
21
|
-
function
|
|
21
|
+
function T(e3) {
|
|
22
22
|
j2.configure.props.base.showAddBtnCondition = e3.data;
|
|
23
23
|
}
|
|
24
|
-
function
|
|
24
|
+
function B(e3) {
|
|
25
25
|
j2.configure.props.base.showDeleteBtnCondition = e3.data;
|
|
26
26
|
}
|
|
27
27
|
return j2.configure.verification || (j2.configure.verification = {}), void 0 !== j2.configure.props.base.isDragColumn && null !== j2.configure.props.base.isDragColumn || (j2.configure.props.base.isDragColumn = true), l(() => j2.configure.props.base.selection, (e3) => {
|
|
@@ -50,8 +50,8 @@ const w = { style: { padding: "8px 0px 0px 0px" } }, C = { style: { padding: "8p
|
|
|
50
50
|
}), null != e4 && j2.configure.items.splice(e4, 1);
|
|
51
51
|
}
|
|
52
52
|
}), (a2, l2) => {
|
|
53
|
-
const c2 = t("el-option"), b2 = t("el-select"), V2 = t("el-form-item"), j3 = t("el-input"),
|
|
54
|
-
return u(), o(N, { "label-width": "80px", size: "small" }, { default: s(() => [i(M, { modelValue: O.value, "onUpdate:modelValue": l2[43] || (l2[43] = (e3) => O.value = e3), style: { "margin-top": "6px" } }, { default: s(() => [i(q, { title: "基本", name: "base", class: "amb-design-attr-group-header" }, { default: s(() => [d("div", w, [i(V2, { label: "组件类型", class: "amb-design-attr-item" }, { default: s(() => [i(b2, { modelValue: e2.configure.name, "onUpdate:modelValue": l2[0] || (l2[0] = (a3) => e2.configure.name = a3), disabled: "", placeholder: "请选择" }, { default: s(() => [(u(true), n(r, null, p(m(_)(), (e3) => (u(), o(c2, { key: e3.name, label: e3.label, value: e3.name }, null, 8, ["label", "value"]))), 128))]), _: 1 }, 8, ["modelValue"])]), _: 1 }), i(V2, { label: "唯一编码", class: "amb-design-attr-item" }, { default: s(() => [i(j3, { modelValue: e2.configure.uuid, "onUpdate:modelValue": l2[1] || (l2[1] = (a3) => e2.configure.uuid = a3), readonly: "", title: e2.configure.uuid }, null, 8, ["modelValue", "title"])]), _: 1 }), i(V2, { label: "自定义编码", class: "amb-design-attr-item" }, { default: s(() => [i(j3, { modelValue: e2.configure.code, "onUpdate:modelValue": l2[2] || (l2[2] = (a3) => e2.configure.code = a3), placeholder: "请输入" }, null, 8, ["modelValue"])]), _: 1 }), i(V2, { label: "绑定权限", class: "amb-design-attr-item" }, { default: s(() => [(u(), o(U, { key: e2.configure.uuid, configure: e2.configure }, null, 8, ["configure"]))]), _: 1 }), i(V2, { label: "标题", class: "amb-design-attr-item" }, { default: s(() => [i(j3, { modelValue: e2.configure.title, "onUpdate:modelValue": l2[3] || (l2[3] = (a3) => e2.configure.title = a3), title: e2.configure.tittle }, null, 8, ["modelValue", "title"])]), _: 1 }), i(V2, { label: "列表内容Url", class: "amb-design-attr-item" }, { default: s(() => [i(j3, { modelValue: e2.configure.props.base.urlToListData, "onUpdate:modelValue": l2[4] || (l2[4] = (a3) => e2.configure.props.base.urlToListData = a3) }, null, 8, ["modelValue"])]), _: 1 }), i(V2, { label: "备注", class: "amb-design-attr-item" }, { default: s(() => [i(j3, { modelValue: e2.configure.props.base.remark, "onUpdate:modelValue": l2[5] || (l2[5] = (a3) => e2.configure.props.base.remark = a3), rows: 3, type: "textarea" }, null, 8, ["modelValue"])]), _: 1 }), i(V2, { label: "状态", class: "amb-design-attr-item" }, { default: s(() => [i(H, { modelValue: e2.configure.props.base.state, "onUpdate:modelValue": l2[6] || (l2[6] = (a3) => e2.configure.props.base.state = a3), class: "ml-4" }, { default: s(() => [i(T, { value: "default" }, { default: s(() => l2[44] || (l2[44] = [f("普通")])), _: 1 }), i(T, { value: "hidden" }, { default: s(() => l2[45] || (l2[45] = [f("隐藏")])), _: 1 })]), _: 1 }, 8, ["modelValue"])]), _: 1 })])]), _: 1 }), i(v, { title: "数据", pageDesign: e2.pageDesign, configure: e2.configure, remote: false }, { bottom: s((a3) => [i(V2, { label: "行主键字段", class: "amb-design-attr-item" }, { default: s(() => [i(b2, { modelValue: a3.row.principalLinkage, "onUpdate:modelValue": (e3) => a3.row.principalLinkage = e3, clearable: "", placeholder: "Select" }, { default: s(() => [(u(true), n(r, null, p(e2.configure.modelFields, (e3, a4) => (u(), o(c2, { key: a4, label: e3.alias, value: e3.dbColumnName }, null, 8, ["label", "value"]))), 128))]), _: 2 }, 1032, ["modelValue", "onUpdate:modelValue"])]), _: 2 }, 1024)]), _: 1 }, 8, ["pageDesign", "configure"]), i(q, { title: "外观", name: "appearance", class: "amb-design-attr-group-header" }, { default: s(() => [d("div", C, [i(V2, { label: "移动端卡片", class: "amb-design-attr-item" }, { default: s(() => [i(H, { modelValue: e2.configure.props.base.isMobileCard, "onUpdate:modelValue": l2[7] || (l2[7] = (a3) => e2.configure.props.base.isMobileCard = a3), class: "ml-4" }, { default: s(() => [i(T, { value: true }, { default: s(() => l2[46] || (l2[46] = [f("是")])), _: 1 }), i(T, { value: false }, { default: s(() => l2[47] || (l2[47] = [f("否")])), _: 1 })]), _: 1 }, 8, ["modelValue"])]), _: 1 }), i(V2, { label: "支持多选", class: "amb-design-attr-item" }, { default: s(() => [i(H, { modelValue: e2.configure.props.base.selection, "onUpdate:modelValue": l2[8] || (l2[8] = (a3) => e2.configure.props.base.selection = a3), class: "ml-4" }, { default: s(() => [i(T, { value: true }, { default: s(() => l2[48] || (l2[48] = [f("是")])), _: 1 }), i(T, { value: false }, { default: s(() => l2[49] || (l2[49] = [f("否")])), _: 1 })]), _: 1 }, 8, ["modelValue"])]), _: 1 }), i(V2, { label: "显示序号", class: "amb-design-attr-item" }, { default: s(() => [i(H, { modelValue: e2.configure.props.base.showIndex, "onUpdate:modelValue": l2[9] || (l2[9] = (a3) => e2.configure.props.base.showIndex = a3), class: "ml-4" }, { default: s(() => [i(T, { value: true }, { default: s(() => l2[50] || (l2[50] = [f("是")])), _: 1 }), i(T, { value: false }, { default: s(() => l2[51] || (l2[51] = [f("否")])), _: 1 })]), _: 1 }, 8, ["modelValue"])]), _: 1 }), e2.configure.props.base.showIndex ? (u(), o(V2, { key: 0, label: "序号连续", class: "amb-design-attr-item" }, { default: s(() => [i(H, { modelValue: e2.configure.props.base.serialNumberContinuous, "onUpdate:modelValue": l2[10] || (l2[10] = (a3) => e2.configure.props.base.serialNumberContinuous = a3), class: "ml-4" }, { default: s(() => [i(T, { value: true }, { default: s(() => l2[52] || (l2[52] = [f("是")])), _: 1 }), i(T, { value: false }, { default: s(() => l2[53] || (l2[53] = [f("否")])), _: 1 })]), _: 1 }, 8, ["modelValue"])]), _: 1 })) : g("", true), i(V2, { label: "显示操作列", class: "amb-design-attr-item" }, { default: s(() => [i(H, { modelValue: e2.configure.props.base.showOperation, "onUpdate:modelValue": l2[11] || (l2[11] = (a3) => e2.configure.props.base.showOperation = a3), class: "ml-4" }, { default: s(() => [i(T, { value: true }, { default: s(() => l2[54] || (l2[54] = [f("是")])), _: 1 }), i(T, { value: false }, { default: s(() => l2[55] || (l2[55] = [f("否")])), _: 1 })]), _: 1 }, 8, ["modelValue"])]), _: 1 }), e2.configure.props.base.showOperation ? (u(), o(V2, { key: 1, label: "操作条件", class: "amb-design-attr-item" }, { default: s(() => [i(y, { data: e2.configure.props.base.showOperationCondition, pageDesign: e2.pageDesign, tableConfigure: e2.configure, "onUpdate:data": P }, null, 8, ["data", "pageDesign", "tableConfigure"])]), _: 1 })) : g("", true), e2.configure.props.base.showOperation ? (u(), o(V2, { key: 2, label: "新增条件", class: "amb-design-attr-item" }, { default: s(() => [i(y, { data: e2.configure.props.base.showAddBtnCondition, pageDesign: e2.pageDesign, tableConfigure: e2.configure, "onUpdate:data": B }, null, 8, ["data", "pageDesign", "tableConfigure"])]), _: 1 })) : g("", true), e2.configure.props.base.showOperation ? (u(), o(V2, { key: 3, label: "删除条件", class: "amb-design-attr-item" }, { default: s(() => [i(y, { data: e2.configure.props.base.showDeleteBtnCondition, pageDesign: e2.pageDesign, tableConfigure: e2.configure, "onUpdate:data": L }, null, 8, ["data", "pageDesign", "tableConfigure"])]), _: 1 })) : g("", true), i(V2, { label: "显示效果", class: "amb-design-attr-item" }, { default: s(() => [i(H, { modelValue: e2.configure.props.base.displayEffect, "onUpdate:modelValue": l2[12] || (l2[12] = (a3) => e2.configure.props.base.displayEffect = a3), class: "ml-4" }, { default: s(() => [i(T, { value: "default" }, { default: s(() => l2[56] || (l2[56] = [f("默认")])), _: 1 }), i(T, { value: "covered" }, { default: s(() => l2[57] || (l2[57] = [f("铺满")])), _: 1 })]), _: 1 }, 8, ["modelValue"])]), _: 1 }), i(V2, { label: "显示表头", class: "amb-design-attr-item" }, { default: s(() => [i(H, { modelValue: e2.configure.props.base.showHeader, "onUpdate:modelValue": l2[13] || (l2[13] = (a3) => e2.configure.props.base.showHeader = a3), class: "ml-4" }, { default: s(() => [i(T, { value: true }, { default: s(() => l2[58] || (l2[58] = [f("是")])), _: 1 }), i(T, { value: false }, { default: s(() => l2[59] || (l2[59] = [f("否")])), _: 1 })]), _: 1 }, 8, ["modelValue"])]), _: 1 }), i(V2, { label: "标题对齐", class: "amb-design-attr-item" }, { default: s(() => [i(H, { modelValue: e2.configure.props.base.alignTitle, "onUpdate:modelValue": l2[14] || (l2[14] = (a3) => e2.configure.props.base.alignTitle = a3), class: "ml-4" }, { default: s(() => [i(T, { value: "left" }, { default: s(() => l2[60] || (l2[60] = [f("居左")])), _: 1 }), i(T, { value: "center" }, { default: s(() => l2[61] || (l2[61] = [f("居中")])), _: 1 }), i(T, { value: "right" }, { default: s(() => l2[62] || (l2[62] = [f("居右")])), _: 1 })]), _: 1 }, 8, ["modelValue"])]), _: 1 }), i(V2, { label: "内容对齐", class: "amb-design-attr-item" }, { default: s(() => [i(H, { modelValue: e2.configure.props.base.alignContent, "onUpdate:modelValue": l2[15] || (l2[15] = (a3) => e2.configure.props.base.alignContent = a3), class: "ml-4" }, { default: s(() => [i(T, { value: "left" }, { default: s(() => l2[63] || (l2[63] = [f("居左")])), _: 1 }), i(T, { value: "center" }, { default: s(() => l2[64] || (l2[64] = [f("居中")])), _: 1 }), i(T, { value: "right" }, { default: s(() => l2[65] || (l2[65] = [f("居右")])), _: 1 })]), _: 1 }, 8, ["modelValue"])]), _: 1 }), i(V2, { label: "文本溢出", class: "amb-design-attr-item" }, { default: s(() => [i(H, { modelValue: e2.configure.props.base.textOverflow, "onUpdate:modelValue": l2[16] || (l2[16] = (a3) => e2.configure.props.base.textOverflow = a3), class: "ml-4" }, { default: s(() => [i(T, { value: "hidden" }, { default: s(() => l2[66] || (l2[66] = [f("隐藏")])), _: 1 }), i(T, { value: "newline" }, { default: s(() => l2[67] || (l2[67] = [f("换行")])), _: 1 })]), _: 1 }, 8, ["modelValue"])]), _: 1 }), i(V2, { label: "锁住表头", class: "amb-design-attr-item" }, { default: s(() => [i(H, { modelValue: e2.configure.props.base.immobilizationHeader, "onUpdate:modelValue": l2[17] || (l2[17] = (a3) => e2.configure.props.base.immobilizationHeader = a3), class: "ml-4" }, { default: s(() => [i(T, { value: true }, { default: s(() => l2[68] || (l2[68] = [f("是")])), _: 1 }), i(T, { value: false }, { default: s(() => l2[69] || (l2[69] = [f("否")])), _: 1 })]), _: 1 }, 8, ["modelValue"])]), _: 1 }), i(V2, { label: "锁住底部", class: "amb-design-attr-item" }, { default: s(() => [i(H, { modelValue: e2.configure.props.base.immobilizationBottom, "onUpdate:modelValue": l2[18] || (l2[18] = (a3) => e2.configure.props.base.immobilizationBottom = a3), class: "ml-4" }, { default: s(() => [i(T, { value: true }, { default: s(() => l2[70] || (l2[70] = [f("是")])), _: 1 }), i(T, { value: false }, { default: s(() => l2[71] || (l2[71] = [f("否")])), _: 1 })]), _: 1 }, 8, ["modelValue"])]), _: 1 }), i(V2, { label: "纵向边框", class: "amb-design-attr-item" }, { default: s(() => [i(H, { modelValue: e2.configure.props.base.border, "onUpdate:modelValue": l2[19] || (l2[19] = (a3) => e2.configure.props.base.border = a3), class: "ml-4" }, { default: s(() => [i(T, { value: true }, { default: s(() => l2[72] || (l2[72] = [f("是")])), _: 1 }), i(T, { value: false }, { default: s(() => l2[73] || (l2[73] = [f("否")])), _: 1 })]), _: 1 }, 8, ["modelValue"])]), _: 1 }), i(V2, { label: "带斑马纹", class: "amb-design-attr-item" }, { default: s(() => [i(H, { modelValue: e2.configure.props.base.stripe, "onUpdate:modelValue": l2[20] || (l2[20] = (a3) => e2.configure.props.base.stripe = a3), class: "ml-4" }, { default: s(() => [i(T, { value: true }, { default: s(() => l2[74] || (l2[74] = [f("是")])), _: 1 }), i(T, { value: false }, { default: s(() => l2[75] || (l2[75] = [f("否")])), _: 1 })]), _: 1 }, 8, ["modelValue"])]), _: 1 }), i(V2, { label: "列宽自撑开", class: "amb-design-attr-item" }, { default: s(() => [i(H, { modelValue: e2.configure.props.base.fit, "onUpdate:modelValue": l2[21] || (l2[21] = (a3) => e2.configure.props.base.fit = a3), class: "ml-4" }, { default: s(() => [i(T, { value: true }, { default: s(() => l2[76] || (l2[76] = [f("是")])), _: 1 }), i(T, { value: false }, { default: s(() => l2[77] || (l2[77] = [f("否")])), _: 1 })]), _: 1 }, 8, ["modelValue"])]), _: 1 }), i(V2, { label: "高亮当前行", class: "amb-design-attr-item" }, { default: s(() => [i(H, { modelValue: e2.configure.props.base.highlightCurrentRow, "onUpdate:modelValue": l2[22] || (l2[22] = (a3) => e2.configure.props.base.highlightCurrentRow = a3), class: "ml-4" }, { default: s(() => [i(T, { value: true }, { default: s(() => l2[78] || (l2[78] = [f("是")])), _: 1 }), i(T, { value: false }, { default: s(() => l2[79] || (l2[79] = [f("否")])), _: 1 })]), _: 1 }, 8, ["modelValue"])]), _: 1 }), i(V2, { label: "是否换行", class: "amb-design-attr-item" }, { default: s(() => [i(H, { modelValue: e2.configure.props.otherSettings.isBreakLine, "onUpdate:modelValue": l2[23] || (l2[23] = (a3) => e2.configure.props.otherSettings.isBreakLine = a3), class: "ml-4" }, { default: s(() => [i(T, { value: true }, { default: s(() => l2[80] || (l2[80] = [f("是")])), _: 1 }), i(T, { value: false }, { default: s(() => l2[81] || (l2[81] = [f("否")])), _: 1 })]), _: 1 }, 8, ["modelValue"])]), _: 1 }), i(V2, { label: "启用回车", class: "amb-design-attr-item" }, { default: s(() => [i(H, { modelValue: e2.configure.props.otherSettings.isEnableEnterEvent, "onUpdate:modelValue": l2[24] || (l2[24] = (a3) => e2.configure.props.otherSettings.isEnableEnterEvent = a3), class: "ml-4" }, { default: s(() => [i(T, { value: true }, { default: s(() => l2[82] || (l2[82] = [f("是")])), _: 1 }), i(T, { value: false }, { default: s(() => l2[83] || (l2[83] = [f("否")])), _: 1 })]), _: 1 }, 8, ["modelValue"])]), _: 1 }), i(V2, { label: "可自定义", class: "amb-design-attr-item" }, { default: s(() => [i(H, { modelValue: e2.configure.props.base.custom, "onUpdate:modelValue": l2[25] || (l2[25] = (a3) => e2.configure.props.base.custom = a3), class: "ml-4" }, { default: s(() => [i(T, { value: true }, { default: s(() => l2[84] || (l2[84] = [f("是")])), _: 1 }), i(T, { value: false }, { default: s(() => l2[85] || (l2[85] = [f("否")])), _: 1 })]), _: 1 }, 8, ["modelValue"])]), _: 1 }), i(V2, { label: "空数据文本", class: "amb-design-attr-item" }, { default: s(() => [i(j3, { modelValue: e2.configure.props.base.emptyText, "onUpdate:modelValue": l2[26] || (l2[26] = (a3) => e2.configure.props.base.emptyText = a3) }, null, 8, ["modelValue"])]), _: 1 }), i(V2, { label: "合计方式", class: "amb-design-attr-item" }, { default: s(() => [i(H, { modelValue: e2.configure.props.base.totalType, "onUpdate:modelValue": l2[27] || (l2[27] = (a3) => e2.configure.props.base.totalType = a3), class: "ml-4" }, { default: s(() => [i(T, { value: "no" }, { default: s(() => l2[86] || (l2[86] = [f("不合计")])), _: 1 }), i(T, { value: "current" }, { default: s(() => l2[87] || (l2[87] = [f("当前页")])), _: 1 }), i(T, { value: "all" }, { default: s(() => l2[88] || (l2[88] = [f("所有页")])), _: 1 })]), _: 1 }, 8, ["modelValue"])]), _: 1 }), i(V2, { label: "字段配置", class: "amb-design-attr-item" }, { default: s(() => [i(I, { modelValue: e2.configure.props.base.customConfig, "onUpdate:modelValue": l2[28] || (l2[28] = (a3) => e2.configure.props.base.customConfig = a3), "active-text": "使用", "inactive-text": "不使用" }, null, 8, ["modelValue"])]), _: 1 })])]), _: 1 }), i(q, { title: "查询设置", name: "querySetting", class: "amb-design-attr-group-header" }, { default: s(() => [d("div", k, [i(V2, { label: "显示方式", class: "amb-design-attr-item" }, { default: s(() => [i(b2, { modelValue: e2.configure.props.base.popUp, "onUpdate:modelValue": l2[29] || (l2[29] = (a3) => e2.configure.props.base.popUp = a3), clearable: "", style: { width: "100%" } }, { default: s(() => [i(c2, { label: "弹出式", value: true }), i(c2, { label: "嵌入式", value: false })]), _: 1 }, 8, ["modelValue"])]), _: 1 }), i(V2, { label: "Label位置", class: "amb-design-attr-item" }, { default: s(() => [i(b2, { modelValue: e2.configure.props.base.queryLabelPosition, "onUpdate:modelValue": l2[30] || (l2[30] = (a3) => e2.configure.props.base.queryLabelPosition = a3), clearable: "" }, { default: s(() => [i(c2, { label: "左", value: "left" }), i(c2, { label: "右", value: "right" })]), _: 1 }, 8, ["modelValue"])]), _: 1 })])]), _: 1 }), i(q, { title: "行设置", name: "editSetting", class: "amb-design-attr-group-header" }, { default: s(() => [d("div", D, [i(V2, { label: "启用编辑", class: "amb-design-attr-item" }, { default: s(() => [i(I, { modelValue: e2.configure.props.base.editable, "onUpdate:modelValue": l2[31] || (l2[31] = (a3) => e2.configure.props.base.editable = a3), "active-text": "使用", "inactive-text": "不使用", onChange: l2[32] || (l2[32] = (a3) => e2.configure.props.base.columnEditable = false) }, null, 8, ["modelValue"])]), _: 1 }), i(V2, { label: "单元格编辑", class: "amb-design-attr-item" }, { default: s(() => [i(I, { modelValue: e2.configure.props.base.columnEditable, "onUpdate:modelValue": l2[33] || (l2[33] = (a3) => e2.configure.props.base.columnEditable = a3), disabled: !e2.configure.props.base.editable, "active-text": "使用", "inactive-text": "不使用" }, null, 8, ["modelValue", "disabled"])]), _: 1 }), i(V2, { label: "子表展开表单", class: "amb-design-attr-item" }, { default: s(() => [i(I, { modelValue: e2.configure.props.base.showRowForm, "onUpdate:modelValue": l2[34] || (l2[34] = (a3) => e2.configure.props.base.showRowForm = a3), "active-text": "展开", "inactive-text": "不展开" }, null, 8, ["modelValue"])]), _: 1 })])]), _: 1 }), i(q, { title: "列设置", name: "columnSetting", class: "amb-design-attr-group-header" }, { default: s(() => [d("div", S, [i(V2, { label: "是否可以拖拽列", class: "amb-design-attr-item-linefeed-two" }, { default: s(() => [i(I, { modelValue: e2.configure.props.base.isDragColumn, "onUpdate:modelValue": l2[35] || (l2[35] = (a3) => e2.configure.props.base.isDragColumn = a3), "active-text": "是", "inactive-text": "否" }, null, 8, ["modelValue"])]), _: 1 })])]), _: 1 }), i(q, { title: "分页设置", name: "paging", class: "amb-design-attr-group-header" }, { default: s(() => [d("div", z, [i(V2, { label: "支持分页", class: "amb-design-attr-item" }, { default: s(() => [i(H, { modelValue: e2.configure.props.base.subPaging, "onUpdate:modelValue": l2[36] || (l2[36] = (a3) => e2.configure.props.base.subPaging = a3) }, { default: s(() => [i(T, { value: true }, { default: s(() => l2[89] || (l2[89] = [f("是")])), _: 1 }), i(T, { value: false }, { default: s(() => l2[90] || (l2[90] = [f("否")])), _: 1 })]), _: 1 }, 8, ["modelValue"])]), _: 1 }), e2.configure.props.base.subPaging ? (u(), o(V2, { key: 0, label: "默认行数", class: "amb-design-attr-item" }, { default: s(() => [i(j3, { modelValue: e2.configure.props.base.pageSize, "onUpdate:modelValue": l2[37] || (l2[37] = (a3) => e2.configure.props.base.pageSize = a3) }, null, 8, ["modelValue"])]), _: 1 })) : g("", true), e2.configure.props.base.subPaging ? (u(), o(V2, { key: 1, label: "可选行数", class: "amb-design-attr-item" }, { default: s(() => [i(j3, { modelValue: e2.configure.props.base.pageSizes, "onUpdate:modelValue": l2[38] || (l2[38] = (a3) => e2.configure.props.base.pageSizes = a3) }, null, 8, ["modelValue"])]), _: 1 })) : g("", true), e2.configure.props.base.subPaging ? (u(), o(V2, { key: 2, label: "可选项", class: "amb-design-attr-item" }, { default: s(() => [i(F, { modelValue: e2.configure.props.base.layout, "onUpdate:modelValue": l2[39] || (l2[39] = (a3) => e2.configure.props.base.layout = a3) }, { default: s(() => [i(R, { label: "总条数", value: "total" }), i(R, { label: "每页大小选项列表", value: "sizes" }), i(R, { label: "上一页", value: "prev" }), i(R, { label: "跳转页码", value: "pager" }), i(R, { label: "下一页", value: "next" }), i(R, { label: "跳转指定页", value: "jumper" })]), _: 1 }, 8, ["modelValue"])]), _: 1 })) : g("", true), e2.configure.props.base.subPaging ? (u(), o(V2, { key: 3, label: "总页数变量", class: "amb-design-attr-item" }, { default: s(() => [i(j3, { modelValue: e2.configure.props.base.pageCount, "onUpdate:modelValue": l2[40] || (l2[40] = (a3) => e2.configure.props.base.pageCount = a3) }, null, 8, ["modelValue"])]), _: 1 })) : g("", true), e2.configure.props.base.subPaging ? (u(), o(V2, { key: 4, label: "总条数变量", class: "amb-design-attr-item" }, { default: s(() => [i(j3, { modelValue: e2.configure.props.base.total, "onUpdate:modelValue": l2[41] || (l2[41] = (a3) => e2.configure.props.base.total = a3) }, null, 8, ["modelValue"])]), _: 1 })) : g("", true)])]), _: 1 }), i(x, { configureProps: e2.configure.props }, null, 8, ["configureProps"]), i(h, { size: e2.configure.props.size, showMaxHeight: true, showCalcHeight: true, isHeightOffset: "" }, null, 8, ["size"]), i(q, { title: "校验", name: "verification", class: "amb-design-attr-group-header" }, { default: s(() => [d("div", E, [e2.pageDesign.props.activeWorkflow ? g("", true) : (u(), o(V2, { key: 0, class: "amb-design-attr-item", "label-width": "0" }, { default: s(() => [i(R, { modelValue: e2.configure.verification.notEmpty, "onUpdate:modelValue": l2[42] || (l2[42] = (a3) => e2.configure.verification.notEmpty = a3), label: "子表不能为空" }, null, 8, ["modelValue"])]), _: 1 }))])]), _: 1 })]), _: 1 }, 8, ["modelValue"])]), _: 1 });
|
|
53
|
+
const c2 = t("el-option"), b2 = t("el-select"), V2 = t("el-form-item"), j3 = t("el-input"), L = t("el-radio"), H = t("el-radio-group"), q = t("el-collapse-item"), I = t("el-switch"), R = t("el-checkbox"), F = t("el-checkbox-group"), M = t("el-collapse"), N = t("el-form");
|
|
54
|
+
return u(), o(N, { "label-width": "80px", size: "small" }, { default: s(() => [i(M, { modelValue: O.value, "onUpdate:modelValue": l2[44] || (l2[44] = (e3) => O.value = e3), style: { "margin-top": "6px" } }, { default: s(() => [i(q, { title: "基本", name: "base", class: "amb-design-attr-group-header" }, { default: s(() => [d("div", w, [i(V2, { label: "组件类型", class: "amb-design-attr-item" }, { default: s(() => [i(b2, { modelValue: e2.configure.name, "onUpdate:modelValue": l2[0] || (l2[0] = (a3) => e2.configure.name = a3), disabled: "", placeholder: "请选择" }, { default: s(() => [(u(true), n(r, null, p(m(_)(), (e3) => (u(), o(c2, { key: e3.name, label: e3.label, value: e3.name }, null, 8, ["label", "value"]))), 128))]), _: 1 }, 8, ["modelValue"])]), _: 1 }), i(V2, { label: "唯一编码", class: "amb-design-attr-item" }, { default: s(() => [i(j3, { modelValue: e2.configure.uuid, "onUpdate:modelValue": l2[1] || (l2[1] = (a3) => e2.configure.uuid = a3), readonly: "", title: e2.configure.uuid }, null, 8, ["modelValue", "title"])]), _: 1 }), i(V2, { label: "自定义编码", class: "amb-design-attr-item" }, { default: s(() => [i(j3, { modelValue: e2.configure.code, "onUpdate:modelValue": l2[2] || (l2[2] = (a3) => e2.configure.code = a3), placeholder: "请输入" }, null, 8, ["modelValue"])]), _: 1 }), i(V2, { label: "绑定权限", class: "amb-design-attr-item" }, { default: s(() => [(u(), o(U, { key: e2.configure.uuid, configure: e2.configure }, null, 8, ["configure"]))]), _: 1 }), i(V2, { label: "标题", class: "amb-design-attr-item" }, { default: s(() => [i(j3, { modelValue: e2.configure.title, "onUpdate:modelValue": l2[3] || (l2[3] = (a3) => e2.configure.title = a3), title: e2.configure.tittle }, null, 8, ["modelValue", "title"])]), _: 1 }), i(V2, { label: "列表内容Url", class: "amb-design-attr-item" }, { default: s(() => [i(j3, { modelValue: e2.configure.props.base.urlToListData, "onUpdate:modelValue": l2[4] || (l2[4] = (a3) => e2.configure.props.base.urlToListData = a3) }, null, 8, ["modelValue"])]), _: 1 }), i(V2, { label: "备注", class: "amb-design-attr-item" }, { default: s(() => [i(j3, { modelValue: e2.configure.props.base.remark, "onUpdate:modelValue": l2[5] || (l2[5] = (a3) => e2.configure.props.base.remark = a3), rows: 3, type: "textarea" }, null, 8, ["modelValue"])]), _: 1 }), i(V2, { label: "状态", class: "amb-design-attr-item" }, { default: s(() => [i(H, { modelValue: e2.configure.props.base.state, "onUpdate:modelValue": l2[6] || (l2[6] = (a3) => e2.configure.props.base.state = a3), class: "ml-4" }, { default: s(() => [i(L, { value: "default" }, { default: s(() => l2[45] || (l2[45] = [f("普通")])), _: 1 }), i(L, { value: "hidden" }, { default: s(() => l2[46] || (l2[46] = [f("隐藏")])), _: 1 })]), _: 1 }, 8, ["modelValue"])]), _: 1 })])]), _: 1 }), i(v, { title: "数据", pageDesign: e2.pageDesign, configure: e2.configure, remote: false }, { bottom: s((a3) => [i(V2, { label: "行主键字段", class: "amb-design-attr-item" }, { default: s(() => [i(b2, { modelValue: a3.row.principalLinkage, "onUpdate:modelValue": (e3) => a3.row.principalLinkage = e3, clearable: "", placeholder: "Select" }, { default: s(() => [(u(true), n(r, null, p(e2.configure.modelFields, (e3, a4) => (u(), o(c2, { key: a4, label: e3.alias, value: e3.dbColumnName }, null, 8, ["label", "value"]))), 128))]), _: 2 }, 1032, ["modelValue", "onUpdate:modelValue"])]), _: 2 }, 1024)]), _: 1 }, 8, ["pageDesign", "configure"]), i(q, { title: "外观", name: "appearance", class: "amb-design-attr-group-header" }, { default: s(() => [d("div", C, [i(V2, { label: "移动端卡片", class: "amb-design-attr-item" }, { default: s(() => [i(H, { modelValue: e2.configure.props.base.isMobileCard, "onUpdate:modelValue": l2[7] || (l2[7] = (a3) => e2.configure.props.base.isMobileCard = a3), class: "ml-4" }, { default: s(() => [i(L, { value: true }, { default: s(() => l2[47] || (l2[47] = [f("是")])), _: 1 }), i(L, { value: false }, { default: s(() => l2[48] || (l2[48] = [f("否")])), _: 1 })]), _: 1 }, 8, ["modelValue"])]), _: 1 }), i(V2, { label: "支持多选", class: "amb-design-attr-item" }, { default: s(() => [i(H, { modelValue: e2.configure.props.base.selection, "onUpdate:modelValue": l2[8] || (l2[8] = (a3) => e2.configure.props.base.selection = a3), class: "ml-4" }, { default: s(() => [i(L, { value: true }, { default: s(() => l2[49] || (l2[49] = [f("是")])), _: 1 }), i(L, { value: false }, { default: s(() => l2[50] || (l2[50] = [f("否")])), _: 1 })]), _: 1 }, 8, ["modelValue"])]), _: 1 }), i(V2, { label: "显示序号", class: "amb-design-attr-item" }, { default: s(() => [i(H, { modelValue: e2.configure.props.base.showIndex, "onUpdate:modelValue": l2[9] || (l2[9] = (a3) => e2.configure.props.base.showIndex = a3), class: "ml-4" }, { default: s(() => [i(L, { value: true }, { default: s(() => l2[51] || (l2[51] = [f("是")])), _: 1 }), i(L, { value: false }, { default: s(() => l2[52] || (l2[52] = [f("否")])), _: 1 })]), _: 1 }, 8, ["modelValue"])]), _: 1 }), e2.configure.props.base.showIndex ? (u(), o(V2, { key: 0, label: "序号连续", class: "amb-design-attr-item" }, { default: s(() => [i(H, { modelValue: e2.configure.props.base.serialNumberContinuous, "onUpdate:modelValue": l2[10] || (l2[10] = (a3) => e2.configure.props.base.serialNumberContinuous = a3), class: "ml-4" }, { default: s(() => [i(L, { value: true }, { default: s(() => l2[53] || (l2[53] = [f("是")])), _: 1 }), i(L, { value: false }, { default: s(() => l2[54] || (l2[54] = [f("否")])), _: 1 })]), _: 1 }, 8, ["modelValue"])]), _: 1 })) : g("", true), i(V2, { label: "显示操作列", class: "amb-design-attr-item" }, { default: s(() => [i(H, { modelValue: e2.configure.props.base.showOperation, "onUpdate:modelValue": l2[11] || (l2[11] = (a3) => e2.configure.props.base.showOperation = a3), class: "ml-4" }, { default: s(() => [i(L, { value: true }, { default: s(() => l2[55] || (l2[55] = [f("是")])), _: 1 }), i(L, { value: false }, { default: s(() => l2[56] || (l2[56] = [f("否")])), _: 1 })]), _: 1 }, 8, ["modelValue"])]), _: 1 }), e2.configure.props.base.showOperation ? (u(), o(V2, { key: 1, label: "操作条件", class: "amb-design-attr-item" }, { default: s(() => [i(y, { data: e2.configure.props.base.showOperationCondition, pageDesign: e2.pageDesign, tableConfigure: e2.configure, "onUpdate:data": P }, null, 8, ["data", "pageDesign", "tableConfigure"])]), _: 1 })) : g("", true), e2.configure.props.base.showOperation ? (u(), o(V2, { key: 2, label: "新增条件", class: "amb-design-attr-item" }, { default: s(() => [i(y, { data: e2.configure.props.base.showAddBtnCondition, pageDesign: e2.pageDesign, tableConfigure: e2.configure, "onUpdate:data": T }, null, 8, ["data", "pageDesign", "tableConfigure"])]), _: 1 })) : g("", true), e2.configure.props.base.showOperation ? (u(), o(V2, { key: 3, label: "删除条件", class: "amb-design-attr-item" }, { default: s(() => [i(y, { data: e2.configure.props.base.showDeleteBtnCondition, pageDesign: e2.pageDesign, tableConfigure: e2.configure, "onUpdate:data": B }, null, 8, ["data", "pageDesign", "tableConfigure"])]), _: 1 })) : g("", true), i(V2, { label: "显示效果", class: "amb-design-attr-item" }, { default: s(() => [i(H, { modelValue: e2.configure.props.base.displayEffect, "onUpdate:modelValue": l2[12] || (l2[12] = (a3) => e2.configure.props.base.displayEffect = a3), class: "ml-4" }, { default: s(() => [i(L, { value: "default" }, { default: s(() => l2[57] || (l2[57] = [f("默认")])), _: 1 }), i(L, { value: "covered" }, { default: s(() => l2[58] || (l2[58] = [f("铺满")])), _: 1 })]), _: 1 }, 8, ["modelValue"])]), _: 1 }), i(V2, { label: "显示表头", class: "amb-design-attr-item" }, { default: s(() => [i(H, { modelValue: e2.configure.props.base.showHeader, "onUpdate:modelValue": l2[13] || (l2[13] = (a3) => e2.configure.props.base.showHeader = a3), class: "ml-4" }, { default: s(() => [i(L, { value: true }, { default: s(() => l2[59] || (l2[59] = [f("是")])), _: 1 }), i(L, { value: false }, { default: s(() => l2[60] || (l2[60] = [f("否")])), _: 1 })]), _: 1 }, 8, ["modelValue"])]), _: 1 }), i(V2, { label: "标题对齐", class: "amb-design-attr-item" }, { default: s(() => [i(H, { modelValue: e2.configure.props.base.alignTitle, "onUpdate:modelValue": l2[14] || (l2[14] = (a3) => e2.configure.props.base.alignTitle = a3), class: "ml-4" }, { default: s(() => [i(L, { value: "left" }, { default: s(() => l2[61] || (l2[61] = [f("居左")])), _: 1 }), i(L, { value: "center" }, { default: s(() => l2[62] || (l2[62] = [f("居中")])), _: 1 }), i(L, { value: "right" }, { default: s(() => l2[63] || (l2[63] = [f("居右")])), _: 1 })]), _: 1 }, 8, ["modelValue"])]), _: 1 }), i(V2, { label: "内容对齐", class: "amb-design-attr-item" }, { default: s(() => [i(H, { modelValue: e2.configure.props.base.alignContent, "onUpdate:modelValue": l2[15] || (l2[15] = (a3) => e2.configure.props.base.alignContent = a3), class: "ml-4" }, { default: s(() => [i(L, { value: "left" }, { default: s(() => l2[64] || (l2[64] = [f("居左")])), _: 1 }), i(L, { value: "center" }, { default: s(() => l2[65] || (l2[65] = [f("居中")])), _: 1 }), i(L, { value: "right" }, { default: s(() => l2[66] || (l2[66] = [f("居右")])), _: 1 })]), _: 1 }, 8, ["modelValue"])]), _: 1 }), i(V2, { label: "文本溢出", class: "amb-design-attr-item" }, { default: s(() => [i(H, { modelValue: e2.configure.props.base.textOverflow, "onUpdate:modelValue": l2[16] || (l2[16] = (a3) => e2.configure.props.base.textOverflow = a3), class: "ml-4" }, { default: s(() => [i(L, { value: "hidden" }, { default: s(() => l2[67] || (l2[67] = [f("隐藏")])), _: 1 }), i(L, { value: "newline" }, { default: s(() => l2[68] || (l2[68] = [f("换行")])), _: 1 })]), _: 1 }, 8, ["modelValue"])]), _: 1 }), i(V2, { label: "锁住表头", class: "amb-design-attr-item" }, { default: s(() => [i(H, { modelValue: e2.configure.props.base.immobilizationHeader, "onUpdate:modelValue": l2[17] || (l2[17] = (a3) => e2.configure.props.base.immobilizationHeader = a3), class: "ml-4" }, { default: s(() => [i(L, { value: true }, { default: s(() => l2[69] || (l2[69] = [f("是")])), _: 1 }), i(L, { value: false }, { default: s(() => l2[70] || (l2[70] = [f("否")])), _: 1 })]), _: 1 }, 8, ["modelValue"])]), _: 1 }), i(V2, { label: "锁住底部", class: "amb-design-attr-item" }, { default: s(() => [i(H, { modelValue: e2.configure.props.base.immobilizationBottom, "onUpdate:modelValue": l2[18] || (l2[18] = (a3) => e2.configure.props.base.immobilizationBottom = a3), class: "ml-4" }, { default: s(() => [i(L, { value: true }, { default: s(() => l2[71] || (l2[71] = [f("是")])), _: 1 }), i(L, { value: false }, { default: s(() => l2[72] || (l2[72] = [f("否")])), _: 1 })]), _: 1 }, 8, ["modelValue"])]), _: 1 }), i(V2, { label: "纵向边框", class: "amb-design-attr-item" }, { default: s(() => [i(H, { modelValue: e2.configure.props.base.border, "onUpdate:modelValue": l2[19] || (l2[19] = (a3) => e2.configure.props.base.border = a3), class: "ml-4" }, { default: s(() => [i(L, { value: true }, { default: s(() => l2[73] || (l2[73] = [f("是")])), _: 1 }), i(L, { value: false }, { default: s(() => l2[74] || (l2[74] = [f("否")])), _: 1 })]), _: 1 }, 8, ["modelValue"])]), _: 1 }), i(V2, { label: "带斑马纹", class: "amb-design-attr-item" }, { default: s(() => [i(H, { modelValue: e2.configure.props.base.stripe, "onUpdate:modelValue": l2[20] || (l2[20] = (a3) => e2.configure.props.base.stripe = a3), class: "ml-4" }, { default: s(() => [i(L, { value: true }, { default: s(() => l2[75] || (l2[75] = [f("是")])), _: 1 }), i(L, { value: false }, { default: s(() => l2[76] || (l2[76] = [f("否")])), _: 1 })]), _: 1 }, 8, ["modelValue"])]), _: 1 }), i(V2, { label: "列宽自撑开", class: "amb-design-attr-item" }, { default: s(() => [i(H, { modelValue: e2.configure.props.base.fit, "onUpdate:modelValue": l2[21] || (l2[21] = (a3) => e2.configure.props.base.fit = a3), class: "ml-4" }, { default: s(() => [i(L, { value: true }, { default: s(() => l2[77] || (l2[77] = [f("是")])), _: 1 }), i(L, { value: false }, { default: s(() => l2[78] || (l2[78] = [f("否")])), _: 1 })]), _: 1 }, 8, ["modelValue"])]), _: 1 }), i(V2, { label: "高亮当前行", class: "amb-design-attr-item" }, { default: s(() => [i(H, { modelValue: e2.configure.props.base.highlightCurrentRow, "onUpdate:modelValue": l2[22] || (l2[22] = (a3) => e2.configure.props.base.highlightCurrentRow = a3), class: "ml-4" }, { default: s(() => [i(L, { value: true }, { default: s(() => l2[79] || (l2[79] = [f("是")])), _: 1 }), i(L, { value: false }, { default: s(() => l2[80] || (l2[80] = [f("否")])), _: 1 })]), _: 1 }, 8, ["modelValue"])]), _: 1 }), i(V2, { label: "是否换行", class: "amb-design-attr-item" }, { default: s(() => [i(H, { modelValue: e2.configure.props.otherSettings.isBreakLine, "onUpdate:modelValue": l2[23] || (l2[23] = (a3) => e2.configure.props.otherSettings.isBreakLine = a3), class: "ml-4" }, { default: s(() => [i(L, { value: true }, { default: s(() => l2[81] || (l2[81] = [f("是")])), _: 1 }), i(L, { value: false }, { default: s(() => l2[82] || (l2[82] = [f("否")])), _: 1 })]), _: 1 }, 8, ["modelValue"])]), _: 1 }), i(V2, { label: "启用回车", class: "amb-design-attr-item" }, { default: s(() => [i(H, { modelValue: e2.configure.props.otherSettings.isEnableEnterEvent, "onUpdate:modelValue": l2[24] || (l2[24] = (a3) => e2.configure.props.otherSettings.isEnableEnterEvent = a3), class: "ml-4" }, { default: s(() => [i(L, { value: true }, { default: s(() => l2[83] || (l2[83] = [f("是")])), _: 1 }), i(L, { value: false }, { default: s(() => l2[84] || (l2[84] = [f("否")])), _: 1 })]), _: 1 }, 8, ["modelValue"])]), _: 1 }), i(V2, { label: "可自定义", class: "amb-design-attr-item" }, { default: s(() => [i(H, { modelValue: e2.configure.props.base.custom, "onUpdate:modelValue": l2[25] || (l2[25] = (a3) => e2.configure.props.base.custom = a3), class: "ml-4" }, { default: s(() => [i(L, { value: true }, { default: s(() => l2[85] || (l2[85] = [f("是")])), _: 1 }), i(L, { value: false }, { default: s(() => l2[86] || (l2[86] = [f("否")])), _: 1 })]), _: 1 }, 8, ["modelValue"])]), _: 1 }), i(V2, { label: "空数据文本", class: "amb-design-attr-item" }, { default: s(() => [i(j3, { modelValue: e2.configure.props.base.emptyText, "onUpdate:modelValue": l2[26] || (l2[26] = (a3) => e2.configure.props.base.emptyText = a3) }, null, 8, ["modelValue"])]), _: 1 }), i(V2, { label: "合计方式", class: "amb-design-attr-item" }, { default: s(() => [i(H, { modelValue: e2.configure.props.base.totalType, "onUpdate:modelValue": l2[27] || (l2[27] = (a3) => e2.configure.props.base.totalType = a3), class: "ml-4" }, { default: s(() => [i(L, { value: "no" }, { default: s(() => l2[87] || (l2[87] = [f("不合计")])), _: 1 }), i(L, { value: "current" }, { default: s(() => l2[88] || (l2[88] = [f("当前页")])), _: 1 }), i(L, { value: "all" }, { default: s(() => l2[89] || (l2[89] = [f("所有页")])), _: 1 })]), _: 1 }, 8, ["modelValue"])]), _: 1 }), i(V2, { label: "字段配置", class: "amb-design-attr-item" }, { default: s(() => [i(I, { modelValue: e2.configure.props.base.customConfig, "onUpdate:modelValue": l2[28] || (l2[28] = (a3) => e2.configure.props.base.customConfig = a3), "active-text": "使用", "inactive-text": "不使用" }, null, 8, ["modelValue"])]), _: 1 })])]), _: 1 }), i(q, { title: "查询设置", name: "querySetting", class: "amb-design-attr-group-header" }, { default: s(() => [d("div", k, [i(V2, { label: "显示方式", class: "amb-design-attr-item" }, { default: s(() => [i(b2, { modelValue: e2.configure.props.base.popUp, "onUpdate:modelValue": l2[29] || (l2[29] = (a3) => e2.configure.props.base.popUp = a3), clearable: "", style: { width: "100%" } }, { default: s(() => [i(c2, { label: "弹出式", value: true }), i(c2, { label: "嵌入式", value: false })]), _: 1 }, 8, ["modelValue"])]), _: 1 }), i(V2, { label: "Label位置", class: "amb-design-attr-item" }, { default: s(() => [i(b2, { modelValue: e2.configure.props.base.queryLabelPosition, "onUpdate:modelValue": l2[30] || (l2[30] = (a3) => e2.configure.props.base.queryLabelPosition = a3), clearable: "" }, { default: s(() => [i(c2, { label: "左", value: "left" }), i(c2, { label: "右", value: "right" })]), _: 1 }, 8, ["modelValue"])]), _: 1 })])]), _: 1 }), i(q, { title: "行设置", name: "editSetting", class: "amb-design-attr-group-header" }, { default: s(() => [d("div", D, [i(V2, { label: "启用编辑", class: "amb-design-attr-item" }, { default: s(() => [i(I, { modelValue: e2.configure.props.base.editable, "onUpdate:modelValue": l2[31] || (l2[31] = (a3) => e2.configure.props.base.editable = a3), "active-text": "使用", "inactive-text": "不使用", onChange: l2[32] || (l2[32] = (a3) => e2.configure.props.base.columnEditable = false) }, null, 8, ["modelValue"])]), _: 1 }), e2.pageDesign.pageType && "form" === e2.pageDesign.pageType ? (u(), o(V2, { key: 0, label: "所有行默认编辑", class: "amb-design-attr-item" }, { default: s(() => [i(I, { modelValue: e2.configure.props.base.allEditable, "onUpdate:modelValue": l2[33] || (l2[33] = (a3) => e2.configure.props.base.allEditable = a3), "active-text": "使用", "inactive-text": "不使用" }, null, 8, ["modelValue"])]), _: 1 })) : g("", true), i(V2, { label: "单元格编辑", class: "amb-design-attr-item" }, { default: s(() => [i(I, { modelValue: e2.configure.props.base.columnEditable, "onUpdate:modelValue": l2[34] || (l2[34] = (a3) => e2.configure.props.base.columnEditable = a3), disabled: !e2.configure.props.base.editable, "active-text": "使用", "inactive-text": "不使用" }, null, 8, ["modelValue", "disabled"])]), _: 1 }), i(V2, { label: "子表展开表单", class: "amb-design-attr-item" }, { default: s(() => [i(I, { modelValue: e2.configure.props.base.showRowForm, "onUpdate:modelValue": l2[35] || (l2[35] = (a3) => e2.configure.props.base.showRowForm = a3), "active-text": "展开", "inactive-text": "不展开" }, null, 8, ["modelValue"])]), _: 1 })])]), _: 1 }), i(q, { title: "列设置", name: "columnSetting", class: "amb-design-attr-group-header" }, { default: s(() => [d("div", E, [i(V2, { label: "是否可以拖拽列", class: "amb-design-attr-item-linefeed-two" }, { default: s(() => [i(I, { modelValue: e2.configure.props.base.isDragColumn, "onUpdate:modelValue": l2[36] || (l2[36] = (a3) => e2.configure.props.base.isDragColumn = a3), "active-text": "是", "inactive-text": "否" }, null, 8, ["modelValue"])]), _: 1 })])]), _: 1 }), i(q, { title: "分页设置", name: "paging", class: "amb-design-attr-group-header" }, { default: s(() => [d("div", S, [i(V2, { label: "支持分页", class: "amb-design-attr-item" }, { default: s(() => [i(H, { modelValue: e2.configure.props.base.subPaging, "onUpdate:modelValue": l2[37] || (l2[37] = (a3) => e2.configure.props.base.subPaging = a3) }, { default: s(() => [i(L, { value: true }, { default: s(() => l2[90] || (l2[90] = [f("是")])), _: 1 }), i(L, { value: false }, { default: s(() => l2[91] || (l2[91] = [f("否")])), _: 1 })]), _: 1 }, 8, ["modelValue"])]), _: 1 }), e2.configure.props.base.subPaging ? (u(), o(V2, { key: 0, label: "默认行数", class: "amb-design-attr-item" }, { default: s(() => [i(j3, { modelValue: e2.configure.props.base.pageSize, "onUpdate:modelValue": l2[38] || (l2[38] = (a3) => e2.configure.props.base.pageSize = a3) }, null, 8, ["modelValue"])]), _: 1 })) : g("", true), e2.configure.props.base.subPaging ? (u(), o(V2, { key: 1, label: "可选行数", class: "amb-design-attr-item" }, { default: s(() => [i(j3, { modelValue: e2.configure.props.base.pageSizes, "onUpdate:modelValue": l2[39] || (l2[39] = (a3) => e2.configure.props.base.pageSizes = a3) }, null, 8, ["modelValue"])]), _: 1 })) : g("", true), e2.configure.props.base.subPaging ? (u(), o(V2, { key: 2, label: "可选项", class: "amb-design-attr-item" }, { default: s(() => [i(F, { modelValue: e2.configure.props.base.layout, "onUpdate:modelValue": l2[40] || (l2[40] = (a3) => e2.configure.props.base.layout = a3) }, { default: s(() => [i(R, { label: "总条数", value: "total" }), i(R, { label: "每页大小选项列表", value: "sizes" }), i(R, { label: "上一页", value: "prev" }), i(R, { label: "跳转页码", value: "pager" }), i(R, { label: "下一页", value: "next" }), i(R, { label: "跳转指定页", value: "jumper" })]), _: 1 }, 8, ["modelValue"])]), _: 1 })) : g("", true), e2.configure.props.base.subPaging ? (u(), o(V2, { key: 3, label: "总页数变量", class: "amb-design-attr-item" }, { default: s(() => [i(j3, { modelValue: e2.configure.props.base.pageCount, "onUpdate:modelValue": l2[41] || (l2[41] = (a3) => e2.configure.props.base.pageCount = a3) }, null, 8, ["modelValue"])]), _: 1 })) : g("", true), e2.configure.props.base.subPaging ? (u(), o(V2, { key: 4, label: "总条数变量", class: "amb-design-attr-item" }, { default: s(() => [i(j3, { modelValue: e2.configure.props.base.total, "onUpdate:modelValue": l2[42] || (l2[42] = (a3) => e2.configure.props.base.total = a3) }, null, 8, ["modelValue"])]), _: 1 })) : g("", true)])]), _: 1 }), i(x, { configureProps: e2.configure.props }, null, 8, ["configureProps"]), i(h, { size: e2.configure.props.size, showMaxHeight: true, showCalcHeight: true, isHeightOffset: "" }, null, 8, ["size"]), i(q, { title: "校验", name: "verification", class: "amb-design-attr-group-header" }, { default: s(() => [d("div", z, [e2.pageDesign.props.activeWorkflow ? g("", true) : (u(), o(V2, { key: 0, class: "amb-design-attr-item", "label-width": "0" }, { default: s(() => [i(R, { modelValue: e2.configure.verification.notEmpty, "onUpdate:modelValue": l2[43] || (l2[43] = (a3) => e2.configure.verification.notEmpty = a3), label: "子表不能为空" }, null, 8, ["modelValue"])]), _: 1 }))])]), _: 1 })]), _: 1 }, 8, ["modelValue"])]), _: 1 });
|
|
55
55
|
};
|
|
56
56
|
} });
|
|
57
57
|
export {
|
|
@@ -1,41 +1,44 @@
|
|
|
1
1
|
import { defineComponent as e, ref as l, resolveComponent as a, createElementBlock as t, openBlock as o, Fragment as u, createElementVNode as r, createVNode as d, withDirectives as n, withCtx as p, createTextVNode as i, toDisplayString as s, vShow as m, unref as T } from "vue";
|
|
2
|
-
import { Plus as c, Delete as
|
|
3
|
-
import
|
|
2
|
+
import { Plus as c, Delete as b } from "@element-plus/icons";
|
|
3
|
+
import f from "../../common/common-variable-bind.vue.js";
|
|
4
4
|
import { getUuidv4 as v } from "../../../../utils/common-util.js";
|
|
5
5
|
import { usePageContextStore as y } from "../../../../../../stores/page-store.js";
|
|
6
|
-
import { getModelOptionsByFields as w,
|
|
7
|
-
const
|
|
8
|
-
} } }, setup(e2, { expose:
|
|
9
|
-
const _ = y(), E = e2,
|
|
10
|
-
let
|
|
11
|
-
E.list && (
|
|
12
|
-
const
|
|
13
|
-
!
|
|
14
|
-
const k = l(null);
|
|
15
|
-
O && O.length > 0 && (k.value = w(O));
|
|
6
|
+
import { getModelOptionsByFields as w, queryTableFields as g, getTableConfigByTableUuid as h } from "../../../../utils/page-table-util.js";
|
|
7
|
+
const V = { class: "dialog-footer" }, N = e({ __name: "condition", props: { list: { type: Array, default: () => [] }, title: String, buttonText: { type: String, default: "编辑" }, paramTypes: { type: Array, default: () => ["data", "task", "page", "request", "row", "context", "fixed"] }, tableConfigure: { type: Object, default: () => {
|
|
8
|
+
} }, tableName: { type: String, default: null } }, setup(e2, { expose: N2 }) {
|
|
9
|
+
const _ = y(), E = e2, O = l([]);
|
|
10
|
+
let U;
|
|
11
|
+
E.list && (O.value = E.list);
|
|
12
|
+
const L = _.pageContext, k = L ? L.pageType : null;
|
|
13
|
+
!k || "form" !== k && "list" !== k || (U = L.modelFields);
|
|
16
14
|
const C = l(null);
|
|
17
|
-
|
|
18
|
-
|
|
15
|
+
U && U.length > 0 && (C.value = w(U));
|
|
16
|
+
const I = l(null);
|
|
17
|
+
function B(e3) {
|
|
18
|
+
E.tableName ? g(null, null, E.tableName).then((e4) => {
|
|
19
|
+
I.value = w(e4), R.value = e4;
|
|
20
|
+
}).catch((e4) => {
|
|
21
|
+
}) : e3 && (I.value = w(e3.modelFields));
|
|
19
22
|
}
|
|
20
|
-
|
|
21
|
-
const
|
|
22
|
-
function
|
|
23
|
+
B(E.tableConfigure);
|
|
24
|
+
const A = l(false), G = l({});
|
|
25
|
+
function j() {
|
|
23
26
|
var _a;
|
|
24
|
-
|
|
27
|
+
B(h(L, null, E.tableConfigure)), W((_a = E.tableConfigure) == null ? void 0 : _a.modelFields), A.value = true;
|
|
25
28
|
}
|
|
26
|
-
function
|
|
27
|
-
|
|
29
|
+
function x() {
|
|
30
|
+
O.value && O.value.length > 0 && O.value.splice(O.value.length - 1, 1);
|
|
28
31
|
}
|
|
29
|
-
function
|
|
30
|
-
|
|
32
|
+
function F(e3) {
|
|
33
|
+
G.value = e3;
|
|
31
34
|
}
|
|
32
|
-
function
|
|
33
|
-
|
|
35
|
+
function M() {
|
|
36
|
+
O.value.push({ uuid: v(), leftBracket: "", propName: "", operator: "", propValueType: "", rightBracket: "", joinSign: "", dataType: "" });
|
|
34
37
|
}
|
|
35
|
-
function
|
|
38
|
+
function S(e3) {
|
|
36
39
|
let l2 = -1;
|
|
37
40
|
const a2 = E.list.length;
|
|
38
|
-
for (let t2 = 0; t2 < a2; t2++) if (
|
|
41
|
+
for (let t2 = 0; t2 < a2; t2++) if (O.value[t2].uuid == e3.uuid) {
|
|
39
42
|
l2 = t2;
|
|
40
43
|
break;
|
|
41
44
|
}
|
|
@@ -54,31 +57,31 @@ const h = { class: "dialog-footer" }, V = e({ __name: "condition", props: { list
|
|
|
54
57
|
const e4 = _.getModelField(l3);
|
|
55
58
|
a3 = e4 ? e4.dataType : null;
|
|
56
59
|
} else if (l3.startsWith("row.")) {
|
|
57
|
-
const e4 = l3.substring(l3.indexOf(".") + 1), t2 =
|
|
60
|
+
const e4 = l3.substring(l3.indexOf(".") + 1), t2 = R.value.filter((l4) => l4.name === e4 || l4.dbColumnName === e4);
|
|
58
61
|
a3 = t2 && t2.length > 0 ? t2[0].dataType : "TEXT";
|
|
59
62
|
}
|
|
60
63
|
}
|
|
61
64
|
l2.dataType = a3;
|
|
62
65
|
}
|
|
63
66
|
}
|
|
64
|
-
const
|
|
65
|
-
function
|
|
66
|
-
|
|
67
|
+
const R = l([]);
|
|
68
|
+
function W(e3) {
|
|
69
|
+
R.value = e3 || [];
|
|
67
70
|
}
|
|
68
|
-
return
|
|
69
|
-
const y2 = a("el-button"), w2 = a("el-text"), g2 = a("el-row"),
|
|
70
|
-
return o(), t(u, null, [r("div", null, [d(y2, { type: "primary", onClick: v2[0] || (v2[0] = (e3) =>
|
|
71
|
-
let l4 =
|
|
71
|
+
return N2({ changeTableFields: W }), (l2, v2) => {
|
|
72
|
+
const y2 = a("el-button"), w2 = a("el-text"), g2 = a("el-row"), h2 = a("Top"), N3 = a("el-icon"), _2 = a("Bottom"), E2 = a("el-table-column"), U2 = a("el-option"), L2 = a("el-select"), k2 = a("el-table"), B2 = a("el-dialog");
|
|
73
|
+
return o(), t(u, null, [r("div", null, [d(y2, { type: "primary", onClick: v2[0] || (v2[0] = (e3) => j()) }, { default: p(() => [i(s(e2.buttonText), 1)]), _: 1 }), n(d(w2, { type: "success" }, { default: p(() => v2[4] || (v2[4] = [i(" 已设置条件.")])), _: 1 }, 512), [[m, e2.list && e2.list.length > 0]])]), d(B2, { "append-to-body": "", modelValue: A.value, "onUpdate:modelValue": v2[3] || (v2[3] = (e3) => A.value = e3), title: e2.title, width: "840" }, { footer: p(() => [r("div", V, [d(y2, { type: "default", onClick: v2[1] || (v2[1] = (e3) => A.value = false) }, { default: p(() => v2[7] || (v2[7] = [i("取消")])), _: 1 }), d(y2, { type: "primary", onClick: v2[2] || (v2[2] = (e3) => A.value = false) }, { default: p(() => v2[8] || (v2[8] = [i(" 确定 ")])), _: 1 })])]), default: p(() => [d(g2, { style: { "padding-bottom": "8px" } }, { default: p(() => [d(y2, { icon: T(c), plain: "", type: "primary", onClick: M }, { default: p(() => v2[5] || (v2[5] = [i(" 添加 ")])), _: 1 }, 8, ["icon"]), d(y2, { icon: T(b), plain: "", type: "primary", onClick: x }, { default: p(() => v2[6] || (v2[6] = [i(" 删除 ")])), _: 1 }, 8, ["icon"])]), _: 1 }), d(k2, { border: "", "highlight-current-row": "", onCurrentChange: F, data: O.value, style: { width: "100%" } }, { default: p(() => [d(E2, { width: "36" }, { default: p((e3) => [d(N3, { size: "14", style: { cursor: "pointer" }, onClick: (l3) => function(e4) {
|
|
74
|
+
let l4 = S(e4);
|
|
72
75
|
if (l4 < 1) return;
|
|
73
|
-
const a2 =
|
|
76
|
+
const a2 = O.value;
|
|
74
77
|
[a2[l4 - 1], a2[l4]] = [a2[l4], a2[l4 - 1]];
|
|
75
|
-
}(e3.row) }, { default: p(() => [d(
|
|
76
|
-
let l4 =
|
|
77
|
-
const a2 =
|
|
78
|
+
}(e3.row) }, { default: p(() => [d(h2)]), _: 2 }, 1032, ["onClick"]), d(N3, { size: "14", style: { "margin-left": "2px", cursor: "pointer" }, onClick: (l3) => function(e4) {
|
|
79
|
+
let l4 = S(e4);
|
|
80
|
+
const a2 = O.value;
|
|
78
81
|
-1 != l4 && a2.length != l4 + 1 && ([a2[l4], a2[l4 + 1]] = [a2[l4 + 1], a2[l4]]);
|
|
79
|
-
}(e3.row) }, { default: p(() => [d(
|
|
82
|
+
}(e3.row) }, { default: p(() => [d(_2)]), _: 2 }, 1032, ["onClick"])]), _: 1 }), d(E2, { prop: "leftBracket", label: "(", width: "80" }, { default: p((e3) => [d(L2, { modelValue: e3.row.leftBracket, "onUpdate:modelValue": (l3) => e3.row.leftBracket = l3, clearable: "", placeholder: "请选择" }, { default: p(() => [d(U2, { label: "", value: "" }), d(U2, { label: "(", value: "(" }), d(U2, { label: "((", value: "((" }), d(U2, { label: "(((", value: "(((" }), d(U2, { label: "((((", value: "((((" })]), _: 2 }, 1032, ["modelValue", "onUpdate:modelValue"])]), _: 1 }), d(E2, { prop: "propName", label: "字段名(*)", width: "150" }, { default: p((l3) => [d(f, { modelValue: l3.row.propName, dataModelOptions: C.value, objModelOptions: I.value, paramTypes: e2.paramTypes, "onUpdate:modelValue": (e3) => D(e3, l3.row, "propName") }, null, 8, ["modelValue", "dataModelOptions", "objModelOptions", "paramTypes", "onUpdate:modelValue"])]), _: 1 }), d(E2, { prop: "operator", label: "操作符", width: "90" }, { default: p((e3) => [d(L2, { modelValue: e3.row.operator, "onUpdate:modelValue": (l3) => e3.row.operator = l3, clearable: "", placeholder: "请选择" }, { default: p(() => [n(d(U2, { label: "大于", value: "GT" }, null, 512), [[m, "INTEGER" == e3.row.dataType || "LONG" == e3.row.dataType || "FLOAT" == e3.row.dataType || "DOUBLE" == e3.row.dataType]]), n(d(U2, { label: "小于", value: "LT" }, null, 512), [[m, "INTEGER" == e3.row.dataType || "LONG" == e3.row.dataType || "FLOAT" == e3.row.dataType || "DOUBLE" == e3.row.dataType]]), n(d(U2, { label: "晚于", value: "GT" }, null, 512), [[m, "DATE" == e3.row.dataType || "TIME" == e3.row.dataType]]), n(d(U2, { label: "早于", value: "LT" }, null, 512), [[m, "DATE" == e3.row.dataType || "TIME" == e3.row.dataType]]), d(U2, { label: "等于", value: "EQ" }), n(d(U2, { label: "不大于", value: "LET" }, null, 512), [[m, "INTEGER" == e3.row.dataType || "LONG" == e3.row.dataType || "FLOAT" == e3.row.dataType || "DOUBLE" == e3.row.dataType]]), n(d(U2, { label: "不小于", value: "GET" }, null, 512), [[m, "INTEGER" == e3.row.dataType || "LONG" == e3.row.dataType || "FLOAT" == e3.row.dataType || "DOUBLE" == e3.row.dataType]]), n(d(U2, { label: "不晚于", value: "LET" }, null, 512), [[m, "DATE" == e3.row.dataType || "TIME" == e3.row.dataType]]), n(d(U2, { label: "不早于", value: "GET" }, null, 512), [[m, "DATE" == e3.row.dataType || "TIME" == e3.row.dataType]]), d(U2, { label: "不等于", value: "NET" }), n(d(U2, { label: "包含", value: "CONTAIN" }, null, 512), [[m, "TEXT" == e3.row.dataType]]), n(d(U2, { label: "不包含", value: "NOT_CONTAIN" }, null, 512), [[m, "TEXT" == e3.row.dataType]]), d(U2, { label: "等于Null", value: "IS_NULL" }), d(U2, { label: "不等于Null", value: "IS_NOT_NULL" })]), _: 2 }, 1032, ["modelValue", "onUpdate:modelValue"])]), _: 1 }), d(E2, { prop: "propValue", label: "值(*)", width: "150" }, { default: p((e3) => [d(f, { modelValue: e3.row.propValue, "onUpdate:modelValue": (l3) => D(l3, e3.row, "propValue") }, null, 8, ["modelValue", "onUpdate:modelValue"])]), _: 1 }), d(E2, { prop: "rightBracket", label: ")", width: "80" }, { default: p((e3) => [d(L2, { modelValue: e3.row.rightBracket, "onUpdate:modelValue": (l3) => e3.row.rightBracket = l3, placeholder: "请选择", clearable: "" }, { default: p(() => [d(U2, { label: "", value: "" }), d(U2, { label: ")", value: ")" }), d(U2, { label: "))", value: "))" }), d(U2, { label: ")))", value: ")))" }), d(U2, { label: "))))", value: "))))" })]), _: 2 }, 1032, ["modelValue", "onUpdate:modelValue"])]), _: 1 }), d(E2, { prop: "joinSign", label: "并且/或者", width: "80" }, { default: p((e3) => [d(L2, { modelValue: e3.row.joinSign, "onUpdate:modelValue": (l3) => e3.row.joinSign = l3, clearable: "", placeholder: "请选择" }, { default: p(() => [d(U2, { label: "或者", value: "or" }), d(U2, { label: "并且", value: "and" })]), _: 2 }, 1032, ["modelValue", "onUpdate:modelValue"])]), _: 1 }), d(E2, { prop: "variableIsNull", label: "变量为空时", width: "130" }, { default: p((e3) => [d(L2, { modelValue: e3.row.variableIsNull, "onUpdate:modelValue": (l3) => e3.row.variableIsNull = l3, clearable: "", placeholder: "请选择" }, { default: p(() => [d(U2, { label: "Null", value: "null" }), d(U2, { label: "忽略(1=1)", value: "ignore" }), d(U2, { label: "不符合(1<>1)", value: "notequal" })]), _: 2 }, 1032, ["modelValue", "onUpdate:modelValue"])]), _: 1 })]), _: 1 }, 8, ["data"])]), _: 1 }, 8, ["modelValue", "title"])], 64);
|
|
80
83
|
};
|
|
81
84
|
} });
|
|
82
85
|
export {
|
|
83
|
-
|
|
86
|
+
N as default
|
|
84
87
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import o from "./data-origin.vue2.js";
|
|
2
2
|
/* empty css */
|
|
3
3
|
import r from "../../../../../../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
-
const t = r(o, [["__scopeId", "data-v-
|
|
4
|
+
const t = r(o, [["__scopeId", "data-v-f7769648"]]);
|
|
5
5
|
export {
|
|
6
6
|
t as default
|
|
7
7
|
};
|
|
@@ -80,7 +80,7 @@ const N = { style: { padding: "8px 0px 0px 0px" } }, U = ["onClick"], x = e({ __
|
|
|
80
80
|
const T2 = t("el-radio"), F2 = t("el-radio-group"), k2 = t("el-form-item"), x3 = t("el-radio-button"), D2 = t("el-switch"), X2 = t("el-option"), ee = t("el-select"), ae = t("el-button"), le = t("el-input"), te = t("el-collapse-item");
|
|
81
81
|
return i(), o(te, { title: "数据源", name: "dataOrigin", class: "amb-design-attr-group-header" }, { default: n(() => [r("div", N, [u(k2, { label: "数据来源", class: "amb-design-attr-item" }, { default: n(() => [u(F2, { modelValue: e2.configure.props.dataOrigin.optionValueSetType, "onUpdate:modelValue": l2[0] || (l2[0] = (a3) => e2.configure.props.dataOrigin.optionValueSetType = a3), onChange: E }, { default: n(() => [u(T2, { value: "none" }, { default: n(() => l2[13] || (l2[13] = [p("无")])), _: 1 }), u(T2, { value: "static" }, { default: n(() => l2[14] || (l2[14] = [p("静态数据")])), _: 1 }), u(T2, { value: "optionGroup" }, { default: n(() => l2[15] || (l2[15] = [p("选项组")])), _: 1 }), u(T2, { value: "dynamicData" }, { default: n(() => l2[16] || (l2[16] = [p("动态数据源")])), _: 1 }), u(T2, { value: "dataTable" }, { default: n(() => l2[17] || (l2[17] = [p("数据表/视图")])), _: 1 }), u(T2, { value: "service" }, { default: n(() => l2[18] || (l2[18] = [p("服务")])), _: 1 })]), _: 1 }, 8, ["modelValue"])]), _: 1 }), d(u(k2, { label: "可搜索", class: "amb-design-attr-item" }, { default: n(() => [u(F2, { 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[19] || (l2[19] = [p("普通")])), _: 1 }), d(u(x3, { value: "remote" }, { default: n(() => l2[20] || (l2[20] = [p("远程")])), _: 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[21] || (l2[21] = [p("否")])), _: 1 })]), _: 1 }, 8, ["modelValue"])]), _: 1 }, 512), [[c, "select" == e2.configure.name]]), e2.isTable ? (i(), o(k2, { key: 0, label: "value-label自动转换", class: "amb-design-attr-item" }, { default: n(() => [u(D2, { modelValue: e2.configure.props.dataOrigin.valueLabelSwitch, "onUpdate:modelValue": l2[2] || (l2[2] = (a3) => e2.configure.props.dataOrigin.valueLabelSwitch = a3) }, null, 8, ["modelValue"])]), _: 1 })) : s("", true), e2.configure.props.dataOrigin.optionValueSetType && "static" !== e2.configure.props.dataOrigin.optionValueSetType ? s("", true) : (i(), o(V, { key: 1, style: { "margin-bottom": "10px", "border-top": "1px solid var(--el-border-color-lighter)" }, dataOrigin: m(L), type: "select", leftTittle: "编码", rightTittle: "显示名称" }, null, 8, ["dataOrigin"])), d(u(k2, { label: "选项组名", class: "amb-design-attr-item" }, { default: n(() => [u(ee, { modelValue: e2.configure.props.dataOrigin.optionGroup, "onUpdate:modelValue": l2[3] || (l2[3] = (a3) => e2.configure.props.dataOrigin.optionGroup = a3), filterable: "", remote: "", "reserve-keyword": "", clearable: "", placeholder: "请选择", "remote-show-suffix": "", "remote-method": R, loading: $.value }, { default: n(() => [(i(true), g(f, null, b(I.value, (e3) => (i(), o(X2, { key: e3.code, label: e3.name + "(" + e3.code + ")", value: e3.code }, null, 8, ["label", "value"]))), 128))]), _: 1 }, 8, ["modelValue", "loading"])]), _: 1 }, 512), [[c, "optionGroup" === e2.configure.props.dataOrigin.optionValueSetType]]), "dynamicData" === e2.configure.props.dataOrigin.optionValueSetType ? (i(), o(k2, { key: 2, label: "动态数据源", class: "amb-design-attr-item" }, { default: n(() => [u(ee, { modelValue: e2.configure.props.dataOrigin.dynamicDataSourceCode, "onUpdate:modelValue": l2[4] || (l2[4] = (a3) => e2.configure.props.dataOrigin.dynamicDataSourceCode = a3), filterable: "", remote: "", "reserve-keyword": "", clearable: "", placeholder: "请选择", "remote-show-suffix": "", "remote-method": Q, loading: z.value, onChange: J }, { default: n(() => [(i(true), g(f, null, b(B.value, (e3) => (i(), o(X2, { key: e3.code, label: e3.name + "(" + e3.code + ")", value: e3.code }, null, 8, ["label", "value"]))), 128))]), _: 1 }, 8, ["modelValue", "loading"])]), _: 1 })) : s("", true), d(u(k2, { label: "数据表视图", class: "amb-design-attr-item" }, { default: n(() => [u(le, { modelValue: e2.configure.props.dataOrigin.tableName, "onUpdate:modelValue": l2[5] || (l2[5] = (a3) => e2.configure.props.dataOrigin.tableName = a3), title: e2.configure.props.dataOrigin.tableName, clearable: "", readonly: "true" }, { append: n(() => [u(ae, { type: "default", icon: m(C), onClick: H, size: "small" }, null, 8, ["icon"]), u(ae, { type: "default", icon: m(h), onClick: K, title: "Clear", size: "small" }, null, 8, ["icon"])]), _: 1 }, 8, ["modelValue", "title"])]), _: 1 }, 512), [[c, "dataTable" === e2.configure.props.dataOrigin.optionValueSetType]]), d(u(k2, { label: "选项值字段", class: "amb-design-attr-item" }, { default: n(() => [u(ee, { modelValue: e2.configure.props.dataOrigin.tableValueField, "onUpdate:modelValue": l2[6] || (l2[6] = (a3) => e2.configure.props.dataOrigin.tableValueField = a3), "allow-create": "", filterable: "", "reserve-keyword": "", clearable: "", placeholder: "请选择", "remote-show-suffix": "" }, { default: n(() => [(i(true), g(f, null, b(m(W), (e3) => (i(), o(X2, { 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]]), d(u(k2, { label: "选项名字段", class: "amb-design-attr-item" }, { default: n(() => [u(ee, { modelValue: e2.configure.props.dataOrigin.tableLableField, "onUpdate:modelValue": l2[7] || (l2[7] = (a3) => e2.configure.props.dataOrigin.tableLableField = a3), "allow-create": "", filterable: "", "reserve-keyword": "", clearable: "", placeholder: "请选择", "remote-show-suffix": "" }, { default: n(() => [(i(true), g(f, null, b(m(W), (e3) => (i(), o(X2, { 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(ae, { type: "primary", onClick: Y }, { default: n(() => l2[22] || (l2[22] = [p("添加")])), _: 1 }), u(ae, { type: "default", onClick: Z }, { default: n(() => l2[23] || (l2[23] = [p("删除")])), _: 1 }), (i(true), g(f, null, b(m(L).sortFields, (e3, a3) => (i(), g("div", { key: a3, onClick: (e4) => function(e5) {
|
|
82
82
|
G.value = e5;
|
|
83
|
-
}(a3), style: { "margin-top": "6px" }, class: y(G.value === a3 ? "amb-design-attr-item-inline seleteSort" : "amb-design-attr-item-inline") }, [u(ee, { modelValue: e3.name, "onUpdate:modelValue": (a4) => e3.name = a4, filterable: "", clearable: "", placeholder: "请选择" }, { default: n(() => [(i(true), g(f, null, b(m(W), (e4, a4) => (i(), o(X2, { key: a4, label: e4.alias + "(" + e4.dbColumnName + ")", value: e4.dbColumnName }, null, 8, ["label", "value"]))), 128))]), _: 2 }, 1032, ["modelValue", "onUpdate:modelValue"]), u(ee, { modelValue: e3.type, "onUpdate:modelValue": (a4) => e3.type = a4, style: { "margin-left": "10px" }, placeholder: "请选择" }, { default: n(() => [u(X2, { label: "升序", value: "asc" }), u(X2, { label: "降序", value: "desc" })]), _: 2 }, 1032, ["modelValue", "onUpdate:modelValue"])], 10, U))), 128))]), _: 1 })) : s("", true), d(u(k2, { label: "显示数量", class: "amb-design-attr-item" }, { default: n(() => [u(le, { modelValue: e2.configure.props.dataOrigin.displayQuantity, "onUpdate:modelValue": l2[8] || (l2[8] = (a3) => e2.configure.props.dataOrigin.displayQuantity = a3), placeholder: "请输入" }, null, 8, ["modelValue"])]), _: 1 }, 512), [[c, "dataTable" === e2.configure.props.dataOrigin.optionValueSetType]]), d(u(k2, { label: "过滤条件", class: "amb-design-attr-item" }, { default: n(() => [u(v, { title: "过滤条件", list: e2.configure.props.dataOrigin.filterList, ref_key: "conditionRef", ref: A }, null, 8, ["list"])]), _: 1 }, 512), [[c, "dataTable" === e2.configure.props.dataOrigin.optionValueSetType]]), d(u(k2, { label: "服务名", class: "amb-design-attr-item" }, { default: n(() => [u(w, { pageDesign: m(j), rowObj: m(L).service, onlyService: "", "onUpdate:modelValue": l2[9] || (l2[9] = (e3, a3, l3) => function(e4, a4, l4) {
|
|
83
|
+
}(a3), style: { "margin-top": "6px" }, class: y(G.value === a3 ? "amb-design-attr-item-inline seleteSort" : "amb-design-attr-item-inline") }, [u(ee, { modelValue: e3.name, "onUpdate:modelValue": (a4) => e3.name = a4, filterable: "", clearable: "", placeholder: "请选择" }, { default: n(() => [(i(true), g(f, null, b(m(W), (e4, a4) => (i(), o(X2, { key: a4, label: e4.alias + "(" + e4.dbColumnName + ")", value: e4.dbColumnName }, null, 8, ["label", "value"]))), 128))]), _: 2 }, 1032, ["modelValue", "onUpdate:modelValue"]), u(ee, { modelValue: e3.type, "onUpdate:modelValue": (a4) => e3.type = a4, style: { "margin-left": "10px" }, placeholder: "请选择" }, { default: n(() => [u(X2, { label: "升序", value: "asc" }), u(X2, { label: "降序", value: "desc" })]), _: 2 }, 1032, ["modelValue", "onUpdate:modelValue"])], 10, U))), 128))]), _: 1 })) : s("", true), d(u(k2, { label: "显示数量", class: "amb-design-attr-item" }, { default: n(() => [u(le, { modelValue: e2.configure.props.dataOrigin.displayQuantity, "onUpdate:modelValue": l2[8] || (l2[8] = (a3) => e2.configure.props.dataOrigin.displayQuantity = a3), placeholder: "请输入" }, null, 8, ["modelValue"])]), _: 1 }, 512), [[c, "dataTable" === e2.configure.props.dataOrigin.optionValueSetType]]), d(u(k2, { label: "过滤条件", class: "amb-design-attr-item" }, { default: n(() => [u(v, { title: "过滤条件", list: e2.configure.props.dataOrigin.filterList, tableName: e2.configure.props.dataOrigin.tableName, ref_key: "conditionRef", ref: A }, null, 8, ["list", "tableName"])]), _: 1 }, 512), [[c, "dataTable" === e2.configure.props.dataOrigin.optionValueSetType]]), d(u(k2, { label: "服务名", class: "amb-design-attr-item" }, { default: n(() => [u(w, { pageDesign: m(j), rowObj: m(L).service, onlyService: "", "onUpdate:modelValue": l2[9] || (l2[9] = (e3, a3, l3) => function(e4, a4, l4) {
|
|
84
84
|
L.service.simpleCode = a4, L.service.name = l4;
|
|
85
85
|
}(0, a3, l3)) }, null, 8, ["pageDesign", "rowObj"])]), _: 1 }, 512), [[c, "service" === e2.configure.props.dataOrigin.optionValueSetType]]), d(u(k2, { label: "数据集字段", class: "amb-design-attr-item" }, { default: n(() => [u(ee, { modelValue: m(L).serviceDataSetField, "onUpdate:modelValue": l2[10] || (l2[10] = (e3) => m(L).serviceDataSetField = e3), placeholder: "请选择" }, { default: n(() => [u(X2, { label: "1", value: "1" })]), _: 1 }, 8, ["modelValue"])]), _: 1 }, 512), [[c, "service" == m(L).optionValueSetType]]), d(u(k2, { label: "选项值字段", class: "amb-design-attr-item" }, { default: n(() => [u(ee, { modelValue: m(L).serviceValueField, "onUpdate:modelValue": l2[11] || (l2[11] = (e3) => m(L).serviceValueField = e3), placeholder: "请选择" }, { default: n(() => [u(X2, { label: "1", value: "1" })]), _: 1 }, 8, ["modelValue"])]), _: 1 }, 512), [[c, "service" == m(L).optionValueSetType]]), d(u(k2, { label: "选项名字段", class: "amb-design-attr-item" }, { default: n(() => [u(ee, { modelValue: m(L).serviceLabelField, "onUpdate:modelValue": l2[12] || (l2[12] = (e3) => m(L).serviceLabelField = e3), placeholder: "请选择" }, { default: n(() => [u(X2, { label: "1", value: "1" })]), _: 1 }, 8, ["modelValue"])]), _: 1 }, 512), [[c, "service" == m(L).optionValueSetType]]), d(u(S, { ref: "dataOriginServiceInRef", dataOrigin: m(L) }, null, 8, ["dataOrigin"]), [[c, "service" == e2.configure.props.dataOrigin.optionValueSetType]]), d(u(O, { ref_key: "dataOriginAutosetRef", ref: P, dataOrigin: m(L), isTable: e2.isTable }, null, 8, ["dataOrigin", "isTable"]), [[c, "dataTable" == e2.configure.props.dataOrigin.optionValueSetType || "dynamicData" == e2.configure.props.dataOrigin.optionValueSetType || "service" == e2.configure.props.dataOrigin.optionValueSetType]])]), u(_, { ref_key: "selectTableDialog", ref: q, onSelectTable: M, systemCode: e2.configure.systemCode, systemVersion: e2.configure.systemVersion }, null, 8, ["systemCode", "systemVersion"])]), _: 1 });
|
|
86
86
|
};
|
|
@@ -1,31 +1,31 @@
|
|
|
1
|
-
import { defineComponent as e, ref as l, resolveComponent as a, createBlock as o, openBlock as u, withCtx as t, createVNode as i, createCommentVNode as r, createElementVNode as s, withDirectives as n, createElementBlock as
|
|
1
|
+
import { defineComponent as e, ref as l, resolveComponent as a, createBlock as o, openBlock as u, withCtx as t, createVNode as i, createCommentVNode as r, createElementVNode as s, withDirectives as n, createElementBlock as p, Fragment as d, renderList as m, unref as f, createTextVNode as c, vShow as g } from "vue";
|
|
2
2
|
import { getFormComponentOptions as b } from "../../../../utils/assemblys-config.js";
|
|
3
3
|
import { componentNameChange as V } from "../../../../utils/form-design-util.js";
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
import
|
|
4
|
+
import _ from "../../common/common-attr-size.vue.js";
|
|
5
|
+
import h from "../common/pre-suffix.vue.js";
|
|
6
|
+
import v from "../../common/common-variable-bind.vue.js";
|
|
7
7
|
import y from "../common/data-format.vue.js";
|
|
8
|
-
import
|
|
9
|
-
import
|
|
10
|
-
const k = { style: { padding: "8px 0px 0px 0px" } },
|
|
11
|
-
} }, default: () => ({ props: {} }) }, emits: ["changeAssembly"], setup(e2, { emit:
|
|
12
|
-
const
|
|
13
|
-
|
|
14
|
-
const U = l(
|
|
15
|
-
function
|
|
16
|
-
|
|
8
|
+
import w from "../../common/common-function-code.vue.js";
|
|
9
|
+
import x from "../../common/common-i18n-key-input.vue.js";
|
|
10
|
+
const k = { style: { padding: "8px 0px 0px 0px" } }, S = e({ __name: "label-attr-base", props: { configure: Object, pageDesign: { type: Object, default: () => {
|
|
11
|
+
} }, default: () => ({ props: {} }) }, emits: ["changeAssembly"], setup(e2, { emit: S2 }) {
|
|
12
|
+
const T = e2;
|
|
13
|
+
T.configure.props || (T.configure.props = {}), T.configure.props.preSuffix || (T.configure.props.preSuffix = {});
|
|
14
|
+
const U = l(T.configure.name), j = S2, z = l(["base"]), W = l(false);
|
|
15
|
+
function A(e3, l2) {
|
|
16
|
+
T.configure.props.base.prop = e3, l2 && (T.configure.props.base.title = l2);
|
|
17
17
|
}
|
|
18
|
-
function
|
|
19
|
-
V(
|
|
18
|
+
function O(e3) {
|
|
19
|
+
V(T.configure, e3, j);
|
|
20
20
|
}
|
|
21
21
|
function C(e3) {
|
|
22
|
-
|
|
22
|
+
T.configure.props.base.defaultValue = e3;
|
|
23
23
|
}
|
|
24
|
-
return
|
|
25
|
-
const
|
|
26
|
-
return u(), o(H, { "label-width": "80px", size: "small" }, { default: t(() => [i(G, { modelValue: z.value, "onUpdate:modelValue": V2[
|
|
24
|
+
return T.configure.isTable && (W.value = true), (l2, V2) => {
|
|
25
|
+
const S3 = a("el-option"), T2 = a("el-select"), j2 = a("el-form-item"), D = a("el-input"), N = a("el-radio"), q = a("el-radio-group"), B = a("el-input-number"), E = a("el-radio-button"), F = a("el-collapse-item"), G = a("el-collapse"), H = a("el-form");
|
|
26
|
+
return u(), o(H, { "label-width": "80px", size: "small" }, { default: t(() => [i(G, { modelValue: z.value, "onUpdate:modelValue": V2[9] || (V2[9] = (e3) => z.value = e3), style: { "margin-top": "6px" } }, { default: t(() => [i(F, { title: "基本", name: "base", class: "amb-design-attr-group-header" }, { default: t(() => [s("div", k, [i(j2, { label: "组件类型", class: "amb-design-attr-item" }, { default: t(() => [i(T2, { modelValue: U.value, "onUpdate:modelValue": V2[0] || (V2[0] = (e3) => U.value = e3), onChange: O, placeholder: "请选择" }, { default: t(() => [(u(true), p(d, null, m(f(b)(), (e3) => (u(), o(S3, { key: e3.name, label: e3.label, value: e3.name }, null, 8, ["label", "value"]))), 128))]), _: 1 }, 8, ["modelValue"])]), _: 1 }), i(j2, { label: "唯一编码", class: "amb-design-attr-item" }, { default: t(() => [i(D, { modelValue: e2.configure.uuid, "onUpdate:modelValue": V2[1] || (V2[1] = (l3) => e2.configure.uuid = l3), readonly: "", title: e2.configure.uuid }, null, 8, ["modelValue", "title"])]), _: 1 }), W.value ? r("", true) : (u(), o(j2, { key: 0, label: "绑定变量", class: "amb-design-attr-item" }, { default: t(() => [(u(), o(v, { key: e2.configure.uuid, modelValue: e2.configure.props.base.prop, paramTypes: ["data", "page"], "onUpdate:modelValue": A }, null, 8, ["modelValue"]))]), _: 1 })), i(j2, { label: "默认值", class: "amb-design-attr-item" }, { default: t(() => [(u(), o(v, { isTable: e2.configure.isTable, key: e2.configure.uuid, modelValue: e2.configure.props.base.defaultValue, "onUpdate:modelValue": C }, null, 8, ["isTable", "modelValue"]))]), _: 1 }), W.value ? r("", true) : (u(), o(j2, { key: 1, label: "绑定权限", class: "amb-design-attr-item" }, { default: t(() => [(u(), o(w, { key: e2.configure.uuid, configure: e2.configure }, null, 8, ["configure"]))]), _: 1 })), i(j2, { label: "组件标题", class: "amb-design-attr-item" }, { default: t(() => [i(q, { modelValue: e2.configure.props.base.tittleShow, "onUpdate:modelValue": V2[2] || (V2[2] = (l3) => e2.configure.props.base.tittleShow = l3), class: "ml-4" }, { default: t(() => [i(N, { value: true }, { default: t(() => V2[10] || (V2[10] = [c("显示")])), _: 1 }), i(N, { value: false }, { default: t(() => V2[11] || (V2[11] = [c("隐藏")])), _: 1 })]), _: 1 }, 8, ["modelValue"])]), _: 1 }), n(i(j2, { label: "标题", class: "amb-design-attr-item" }, { default: t(() => [i(x, { modelValue: e2.configure.props.base.title, "onUpdate:modelValue": V2[3] || (V2[3] = (l3) => e2.configure.props.base.title = l3) }, null, 8, ["modelValue"])]), _: 1 }, 512), [[g, e2.configure.props.base.tittleShow]]), n(i(j2, { label: "标题宽度", class: "amb-design-attr-item" }, { default: t(() => [i(B, { modelValue: e2.configure.props.base.titleWidth, "onUpdate:modelValue": V2[4] || (V2[4] = (l3) => e2.configure.props.base.titleWidth = l3), style: { width: "100%" }, min: 0, placeholder: "请输入" }, null, 8, ["modelValue"])]), _: 1 }, 512), [[g, e2.configure.props.base.tittleShow]]), n(i(j2, { label: "标题超宽", title: "标题超宽显示", class: "amb-design-attr-item" }, { default: t(() => [i(q, { modelValue: e2.configure.props.base.titleShowWay, "onUpdate:modelValue": V2[5] || (V2[5] = (l3) => e2.configure.props.base.titleShowWay = l3), class: "ml-4" }, { default: t(() => [i(N, { value: "block" }, { default: t(() => V2[12] || (V2[12] = [c("换行")])), _: 1 }), i(N, { value: "inline" }, { default: t(() => V2[13] || (V2[13] = [c("不换行")])), _: 1 }), i(N, { value: "omit" }, { default: t(() => V2[14] || (V2[14] = [c("省略号")])), _: 1 })]), _: 1 }, 8, ["modelValue"])]), _: 1 }, 512), [[g, e2.configure.props.base.tittleShow && e2.configure.props.base.titleWidth > 0]]), e2.configure.props.base.tittleShow ? (u(), o(j2, { key: 2, label: "是否是表单标题", class: "amb-design-attr-item" }, { default: t(() => [i(q, { modelValue: e2.configure.props.base.whetherTittle, "onUpdate:modelValue": V2[6] || (V2[6] = (l3) => e2.configure.props.base.whetherTittle = l3), class: "ml-4" }, { default: t(() => [i(N, { value: true }, { default: t(() => V2[15] || (V2[15] = [c("是")])), _: 1 }), i(N, { value: false }, { default: t(() => V2[16] || (V2[16] = [c("否")])), _: 1 })]), _: 1 }, 8, ["modelValue"])]), _: 1 })) : r("", true), e2.configure.props.base.whetherTittle ? r("", true) : (u(), o(j2, { key: 3, label: "类型", class: "amb-design-attr-item" }, { default: t(() => [i(T2, { modelValue: e2.configure.props.base.showType, "onUpdate:modelValue": V2[7] || (V2[7] = (l3) => e2.configure.props.base.showType = l3), class: "ml-4", clearable: "", placeholder: "请选择" }, { default: t(() => [i(S3, { label: "表单编号", value: "formNo" })]), _: 1 }, 8, ["modelValue"])]), _: 1 })), e2.configure.props.base.showType && !e2.configure.props.base.whetherTittle ? (u(), o(j2, { key: 4, label: "对齐方式", class: "amb-design-attr-item" }, { default: t(() => [i(q, { modelValue: e2.configure.props.base.contentAlign, "onUpdate:modelValue": V2[8] || (V2[8] = (l3) => e2.configure.props.base.contentAlign = l3) }, { default: t(() => [i(E, { value: "flex-start" }, { default: t(() => V2[17] || (V2[17] = [c("左")])), _: 1 }), i(E, { value: "center" }, { default: t(() => V2[18] || (V2[18] = [c("中")])), _: 1 }), i(E, { value: "flex-end" }, { default: t(() => V2[19] || (V2[19] = [c("右")])), _: 1 })]), _: 1 }, 8, ["modelValue"])]), _: 1 })) : r("", true)])]), _: 1 }), (u(), o(y, { key: e2.configure.uuid, configure: e2.configure }, null, 8, ["configure"])), (u(), o(h, { key: e2.configure.uuid, preSuffix: e2.configure.props.preSuffix }, null, 8, ["preSuffix"])), W.value ? r("", true) : (u(), o(_, { key: e2.configure.uuid, size: e2.configure.props.size }, null, 8, ["size"]))]), _: 1 }, 8, ["modelValue"])]), _: 1 });
|
|
27
27
|
};
|
|
28
28
|
} });
|
|
29
29
|
export {
|
|
30
|
-
|
|
30
|
+
S as default
|
|
31
31
|
};
|