super-page-designer 2.2.96 → 2.3.0-sit3

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.
Files changed (37) hide show
  1. package/dist/es/components/design/utils/assemblys-config.js +1 -1
  2. package/dist/es/components/design/utils/page-design-util.d.ts +3 -1
  3. package/dist/es/components/design/utils/page-design-util.js +23 -22
  4. package/dist/es/components/design/utils/page-table-util.js +62 -54
  5. package/dist/es/components/design/views/assemblys/button/component/set-dialog.vue.js +20 -20
  6. package/dist/es/components/design/views/assemblys/common/common-advanced-basic-showcondition.vue.js +24 -24
  7. package/dist/es/components/design/views/assemblys/common/common-icon-bind.vue.js +1 -1
  8. package/dist/es/components/design/views/assemblys/common/common-icon-bind.vue2.js +76 -60
  9. package/dist/es/components/design/views/assemblys/common/common-variable-bind.vue.js +1 -1
  10. package/dist/es/components/design/views/assemblys/container/card/card-design.vue.js +2 -2
  11. package/dist/es/components/design/views/assemblys/container/card/card-design.vue2.js +1 -1
  12. package/dist/es/components/design/views/assemblys/container/collapse/collapse-design.vue2.js +4 -4
  13. package/dist/es/components/design/views/assemblys/container/container/container-design.vue2.js +1 -1
  14. package/dist/es/components/design/views/assemblys/container/flex/flex-design.vue2.js +4 -4
  15. package/dist/es/components/design/views/assemblys/container/form/form-design.vue2.js +6 -6
  16. package/dist/es/components/design/views/assemblys/container/tabs/tabs-design.vue.js +1 -1
  17. package/dist/es/components/design/views/assemblys/container/tabs/tabs-design.vue2.js +6 -6
  18. package/dist/es/components/design/views/assemblys/container/tools/tools-design.vue2.js +8 -8
  19. package/dist/es/components/design/views/assemblys/data/table/table-design.vue.js +1 -1
  20. package/dist/es/components/design/views/assemblys/data/table/table-design.vue2.js +1 -1
  21. package/dist/es/components/design/views/assemblys/data/table/tablecolumn-attr-base.vue2.js +1 -0
  22. package/dist/es/components/design/views/assemblys/form/common/data-origin.vue.js +1 -1
  23. package/dist/es/components/design/views/assemblys/form/common/data-origin.vue2.js +24 -24
  24. package/dist/es/components/design/views/assemblys/form/common/hyperlink-mult-config.vue.js +16 -16
  25. package/dist/es/components/design/views/assemblys/form/dept-tree/depttree-attr-base.vue.js +13 -10
  26. package/dist/es/components/design/views/assemblys/form/dept-tree/depttree-autoset.vue.js +12 -12
  27. package/dist/es/components/design/views/assemblys/form/dept-tree/depttree-design.vue2.js +13 -13
  28. package/dist/es/components/design/views/design/page-event/completion-data.d.ts +7 -0
  29. package/dist/es/components/design/views/design/page-event/completion-data.js +4 -0
  30. package/dist/es/components/design/views/design/page-event/{config.vue2.js → config.vue.js} +2 -2
  31. package/dist/es/components/design/views/design/page-event/config.vue3.js +56 -50
  32. package/dist/es/components/design/views/design/page-event/page-event-content.vue.js +1 -1
  33. package/dist/es/components/design/views/design/view/view-design-display.vue.js +2 -2
  34. package/dist/es/components/design/views/design/view/view-design.vue.js +16 -16
  35. package/dist/es/style.css +37 -37
  36. package/package.json +5 -5
  37. /package/dist/es/components/design/views/assemblys/common/{common-variable-bind.vue3.js → common-variable-bind.vue2.js} +0 -0
@@ -9,13 +9,13 @@ import { Search as C, Close as h } from "@element-plus/icons";
9
9
  import F from "agilebuilder-ui/src/utils/request";
10
10
  import { usePageContextStore as k } from "../../../../../../stores/page-store.js";
11
11
  import w from "../../common/page-permission-select.vue.js";
12
- const N = { style: { padding: "8px 0px 0px 0px" } }, x = ["onClick"], D = e({ __name: "data-origin", props: { tableConfigure: { type: Object, default: () => ({ props: {} }) }, configure: { type: Object, default: {} }, remote: { type: Boolean, default: true }, isTable: { type: Boolean, default: false } }, setup(e2) {
13
- const D2 = e2, U = k(), j = U.pageContext;
14
- D2.configure.props.dataOrigin || (D2.configure.props.dataOrigin = {});
15
- const A = D2.configure.props.dataOrigin;
16
- A.service || (A.service = {}), A.filterList || (A.filterList = []);
17
- const L = a(null), q = a(null), G = a(""), P = a(null);
18
- D2.configure.props.dataOrigin.optionValueSetType && 0 !== D2.configure.props.dataOrigin.optionValueSetType.length || (D2.configure.props.dataOrigin.optionValueSetType = "none");
12
+ const N = { style: { padding: "8px 0px 0px 0px" } }, U = ["onClick"], x = e({ __name: "data-origin", props: { tableConfigure: { type: Object, default: () => ({ props: {} }) }, configure: { type: Object, default: {} }, remote: { type: Boolean, default: true }, isTable: { type: Boolean, default: false } }, setup(e2) {
13
+ const x2 = e2, D = k(), j = D.pageContext;
14
+ x2.configure.props.dataOrigin || (x2.configure.props.dataOrigin = {});
15
+ const L = x2.configure.props.dataOrigin;
16
+ L.service || (L.service = {}), L.filterList || (L.filterList = []);
17
+ const A = a(null), q = a(null), G = a(""), P = a(null);
18
+ x2.configure.props.dataOrigin.optionValueSetType && 0 !== x2.configure.props.dataOrigin.optionValueSetType.length || (x2.configure.props.dataOrigin.optionValueSetType = "none");
19
19
  const $ = a(false), I = a([]);
20
20
  function R(e3) {
21
21
  $.value = true;
@@ -40,51 +40,51 @@ const N = { style: { padding: "8px 0px 0px 0px" } }, x = ["onClick"], D = e({ __
40
40
  const a2 = B.value.find((a3) => a3.code === e3);
41
41
  if (a2) {
42
42
  let e4 = JSON.parse(a2.selectedField);
43
- A.dynamicDataSourceFields = e4;
44
- } else A.dynamicDataSourceFields = [];
43
+ L.dynamicDataSourceFields = e4;
44
+ } else L.dynamicDataSourceFields = [];
45
45
  E();
46
46
  }
47
47
  function E() {
48
- const e3 = A.optionValueSetType;
49
- P.value && ("dynamicData" == e3 ? P.value.updateSourceFields(A.dynamicDataSourceFields) : "dataTable" == e3 && (P.value.updateSourceFields(W.value), L.value.changeTableFields(W.value)));
48
+ const e3 = L.optionValueSetType;
49
+ P.value && ("dynamicData" == e3 ? P.value.updateSourceFields(L.dynamicDataSourceFields) : "dataTable" == e3 && (P.value.updateSourceFields(W.value), A.value.changeTableFields(W.value)));
50
50
  }
51
51
  function H() {
52
52
  q.value.openDialog();
53
53
  }
54
54
  function K() {
55
- A.tableName = "", A.tableAlias = "", A.tableSysCode = null, A.tableSysVersion = null, W.value = [];
55
+ L.tableName = "", L.tableAlias = "", L.tableSysCode = null, L.tableSysVersion = null, W.value = [];
56
56
  }
57
57
  function M(e3) {
58
- let a2 = A.tableSysCode ? A.tableSysCode : "";
59
- a2 += "_", a2 += A.tableSysVersion ? A.tableSysVersion : "", a2 += "_", a2 += A.tableName ? A.tableName : "";
58
+ let a2 = L.tableSysCode ? L.tableSysCode : "";
59
+ a2 += "_", a2 += L.tableSysVersion ? L.tableSysVersion : "", a2 += "_", a2 += L.tableName ? L.tableName : "";
60
60
  let l2 = e3.systemCode ? e3.systemCode : "";
61
- l2 += "_", l2 += e3.systemVersion ? e3.systemVersion : "", l2 += "_", l2 += e3.name ? e3.name : "", l2 != a2 && (A.tableSysCode = e3.systemCode, A.tableSysVersion = e3.systemVersion, A.tableName = e3.name, A.tableAlias = e3.alias, X());
61
+ l2 += "_", l2 += e3.systemVersion ? e3.systemVersion : "", l2 += "_", l2 += e3.name ? e3.name : "", l2 != a2 && (L.tableSysCode = e3.systemCode, L.tableSysVersion = e3.systemVersion, L.tableName = e3.name, L.tableAlias = e3.alias, X());
62
62
  }
63
63
  let W = a([]);
64
64
  function X() {
65
- const e3 = A.tableSysCode ? A.tableSysCode : U.pageContext.systemCode, a2 = A.tableSysVersion ? A.tableSysVersion : U.pageContext.systemVersion, l2 = A.tableName;
65
+ const e3 = L.tableSysCode ? L.tableSysCode : D.pageContext.systemCode, a2 = L.tableSysVersion ? L.tableSysVersion : D.pageContext.systemVersion, l2 = L.tableName;
66
66
  l2 && T(e3, a2, l2).then((e4) => {
67
67
  W.value = e4, E();
68
68
  }).catch((e4) => {
69
69
  });
70
70
  }
71
71
  function Y() {
72
- A.sortFields || (A.sortFields = []), A.sortFields.push({ name: "", type: "" }), G.value = "";
72
+ L.sortFields || (L.sortFields = []), L.sortFields.push({ name: "", type: "" }), G.value = "";
73
73
  }
74
74
  function Z() {
75
- A.sortFields.length > 0 && A.sortFields.splice(A.sortFields.length - 1, 1);
75
+ L.sortFields.length > 0 && L.sortFields.splice(L.sortFields.length - 1, 1);
76
76
  }
77
77
  return l(() => {
78
78
  E(), X();
79
79
  }), (a2, l2) => {
80
- const T2 = t("el-radio"), F2 = t("el-radio-group"), k2 = t("el-form-item"), D3 = t("el-radio-button"), U2 = t("el-option"), X2 = t("el-select"), ee = t("el-button"), ae = t("el-input"), le = t("el-collapse-item");
81
- return i(), o(le, { 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[12] || (l2[12] = [p("无")])), _: 1 }), u(T2, { value: "static" }, { default: n(() => l2[13] || (l2[13] = [p("静态数据")])), _: 1 }), u(T2, { value: "optionGroup" }, { default: n(() => l2[14] || (l2[14] = [p("选项组")])), _: 1 }), u(T2, { value: "dynamicData" }, { default: n(() => l2[15] || (l2[15] = [p("动态数据源")])), _: 1 }), u(T2, { value: "dataTable" }, { default: n(() => l2[16] || (l2[16] = [p("数据表/视图")])), _: 1 }), u(T2, { value: "service" }, { default: n(() => l2[17] || (l2[17] = [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(D3, { value: "normal" }, { default: n(() => l2[18] || (l2[18] = [p("普通")])), _: 1 }), d(u(D3, { value: "remote" }, { default: n(() => l2[19] || (l2[19] = [p("远程")])), _: 1 }, 512), [[c, "dataTable" == e2.configure.props.dataOrigin.optionValueSetType || "dynamicData" == e2.configure.props.dataOrigin.optionValueSetType || "service" == e2.configure.props.dataOrigin.optionValueSetType]]), u(D3, { value: "none" }, { default: n(() => l2[20] || (l2[20] = [p("否")])), _: 1 })]), _: 1 }, 8, ["modelValue"])]), _: 1 }, 512), [[c, "select" == e2.configure.name]]), e2.configure.props.dataOrigin.optionValueSetType && "static" !== e2.configure.props.dataOrigin.optionValueSetType ? s("", true) : (i(), o(V, { key: 0, style: { "margin-bottom": "10px", "border-top": "1px solid var(--el-border-color-lighter)" }, dataOrigin: m(A), type: "select", leftTittle: "编码", rightTittle: "显示名称" }, null, 8, ["dataOrigin"])), d(u(k2, { label: "选项组名", class: "amb-design-attr-item" }, { default: n(() => [u(X2, { modelValue: e2.configure.props.dataOrigin.optionGroup, "onUpdate:modelValue": l2[2] || (l2[2] = (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(U2, { 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: 1, label: "动态数据源", class: "amb-design-attr-item" }, { default: n(() => [u(X2, { modelValue: e2.configure.props.dataOrigin.dynamicDataSourceCode, "onUpdate:modelValue": l2[3] || (l2[3] = (a3) => e2.configure.props.dataOrigin.dynamicDataSourceCode = a3), filterable: "", remote: "", "reserve-keyword": "", clearable: "", placeholder: "请选择", "remote-show-suffix": "", "remote-method": Q, loading: z.value, onChange: J }, { default: n(() => [(i(true), g(f, null, b(B.value, (e3) => (i(), o(U2, { 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(ae, { modelValue: e2.configure.props.dataOrigin.tableName, "onUpdate:modelValue": l2[4] || (l2[4] = (a3) => e2.configure.props.dataOrigin.tableName = a3), title: e2.configure.props.dataOrigin.tableName, clearable: "", readonly: "true" }, { append: n(() => [u(ee, { type: "default", icon: m(C), onClick: H, size: "small" }, null, 8, ["icon"]), u(ee, { 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(X2, { modelValue: e2.configure.props.dataOrigin.tableValueField, "onUpdate:modelValue": l2[5] || (l2[5] = (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(U2, { 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(X2, { modelValue: e2.configure.props.dataOrigin.tableLableField, "onUpdate:modelValue": l2[6] || (l2[6] = (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(U2, { 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: 2, label: "排序", class: "amb-design-attr-item" }, { default: n(() => [u(ee, { type: "primary", onClick: Y }, { default: n(() => l2[21] || (l2[21] = [p("添加")])), _: 1 }), u(ee, { type: "default", onClick: Z }, { default: n(() => l2[22] || (l2[22] = [p("删除")])), _: 1 }), (i(true), g(f, null, b(m(A).sortFields, (e3, a3) => (i(), g("div", { key: a3, onClick: (e4) => function(e5) {
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
+ 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(X2, { 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(U2, { key: a4, label: e4.alias + "(" + e4.dbColumnName + ")", value: e4.dbColumnName }, null, 8, ["label", "value"]))), 128))]), _: 2 }, 1032, ["modelValue", "onUpdate:modelValue"]), u(X2, { modelValue: e3.type, "onUpdate:modelValue": (a4) => e3.type = a4, style: { "margin-left": "10px" }, placeholder: "请选择" }, { default: n(() => [u(U2, { label: "升序", value: "asc" }), u(U2, { label: "降序", value: "desc" })]), _: 2 }, 1032, ["modelValue", "onUpdate:modelValue"])], 10, x))), 128))]), _: 1 })) : s("", true), d(u(k2, { label: "显示数量", class: "amb-design-attr-item" }, { default: n(() => [u(ae, { modelValue: e2.configure.props.dataOrigin.displayQuantity, "onUpdate:modelValue": l2[7] || (l2[7] = (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: L }, 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(A).service, onlyService: "", "onUpdate:modelValue": l2[8] || (l2[8] = (e3, a3, l3) => function(e4, a4, l4) {
84
- A.service.simpleCode = a4, A.service.name = l4;
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(X2, { modelValue: m(A).serviceDataSetField, "onUpdate:modelValue": l2[9] || (l2[9] = (e3) => m(A).serviceDataSetField = e3), placeholder: "请选择" }, { default: n(() => [u(U2, { label: "1", value: "1" })]), _: 1 }, 8, ["modelValue"])]), _: 1 }, 512), [[c, "service" == m(A).optionValueSetType]]), d(u(k2, { label: "选项值字段", class: "amb-design-attr-item" }, { default: n(() => [u(X2, { modelValue: m(A).serviceValueField, "onUpdate:modelValue": l2[10] || (l2[10] = (e3) => m(A).serviceValueField = e3), placeholder: "请选择" }, { default: n(() => [u(U2, { label: "1", value: "1" })]), _: 1 }, 8, ["modelValue"])]), _: 1 }, 512), [[c, "service" == m(A).optionValueSetType]]), d(u(k2, { label: "选项名字段", class: "amb-design-attr-item" }, { default: n(() => [u(X2, { modelValue: m(A).serviceLabelField, "onUpdate:modelValue": l2[11] || (l2[11] = (e3) => m(A).serviceLabelField = e3), placeholder: "请选择" }, { default: n(() => [u(U2, { label: "1", value: "1" })]), _: 1 }, 8, ["modelValue"])]), _: 1 }, 512), [[c, "service" == m(A).optionValueSetType]]), d(u(S, { ref: "dataOriginServiceInRef", dataOrigin: m(A) }, null, 8, ["dataOrigin"]), [[c, "service" == e2.configure.props.dataOrigin.optionValueSetType]]), d(u(O, { ref_key: "dataOriginAutosetRef", ref: P, dataOrigin: m(A), 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 });
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) {
84
+ L.service.simpleCode = a4, L.service.name = l4;
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
  };
87
87
  } });
88
88
  export {
89
- D as default
89
+ x as default
90
90
  };
@@ -1,20 +1,20 @@
1
- import { defineComponent as e, ref as l, nextTick as a, resolveComponent as i, createElementBlock as n, openBlock as t, Fragment as o, createBlock as u, createCommentVNode as g, createVNode as d, withCtx as r, createTextVNode as p, toDisplayString as s, renderList as m, unref as c, createElementVNode as f } from "vue";
1
+ import { defineComponent as e, ref as l, nextTick as a, resolveComponent as i, createElementBlock as n, openBlock as t, Fragment as o, createBlock as u, createCommentVNode as g, createVNode as d, withCtx as p, createTextVNode as r, toDisplayString as s, renderList as m, unref as c, createElementVNode as f } from "vue";
2
2
  import k from "./suffixmodule.vue.js";
3
3
  import P from "./condition.vue.js";
4
4
  import { getCustomFuncs as y } from "../../../../utils/page-event-util.js";
5
- const v = { class: "dialog-footer" }, b = e({ __name: "hyperlink-mult-config", props: { linkPage: {}, pageDesign: {}, tableConfigure: {}, isDialog: { type: Boolean }, isButton: { type: Boolean, default: true } }, emits: ["update:linkPage"], setup(e2, { emit: b2 }) {
6
- const C = l(false), _ = l({}), j = l(null), x = b2, h = e2, S = l(false);
5
+ const v = { class: "dialog-footer" }, C = e({ __name: "hyperlink-mult-config", props: { linkPage: {}, pageDesign: {}, tableConfigure: {}, isDialog: { type: Boolean }, isButton: { type: Boolean, default: true } }, emits: ["update:linkPage"], setup(e2, { emit: C2 }) {
6
+ const b = l(false), _ = l({}), j = l(null), x = C2, h = e2, S = l(false);
7
7
  if (h.linkPage) {
8
8
  if (!Array.isArray(h.linkPage)) {
9
9
  const e3 = JSON.parse(JSON.stringify(h.linkPage));
10
10
  x("update:linkPage", [e3]);
11
11
  }
12
12
  } else x("update:linkPage", []);
13
- function $() {
13
+ function T() {
14
14
  h.linkPage || x("update:linkPage", []), h.linkPage.push({ jumpConditionType: "none", conditions: [], customFunc: "", jumpPageSetting: {} });
15
15
  }
16
- function T(e3) {
17
- _.value = e3, C.value = true;
16
+ function $(e3) {
17
+ _.value = e3, b.value = true, "config" === h.linkPage[_.value].jumpConditionType && V();
18
18
  }
19
19
  function V(e3) {
20
20
  j.value.changeTableFields(h.tableConfigure.modelFields);
@@ -25,22 +25,22 @@ const v = { class: "dialog-footer" }, b = e({ __name: "hyperlink-mult-config", p
25
25
  return a(() => {
26
26
  S.value = true;
27
27
  }), (e3, l2) => {
28
- const a2 = i("el-button"), b3 = i("el-link"), x2 = i("el-tooltip"), F = i("el-table-column"), z = i("Plus"), U = i("el-icon"), w = i("Delete"), B = i("el-table"), N = i("el-radio"), A = i("el-radio-group"), J = i("el-form-item"), O = i("el-option"), R = i("el-select"), q = i("el-dialog");
29
- return t(), n(o, null, [S.value ? (t(), u(B, { key: 0, data: e3.linkPage, style: { width: "100%" } }, { default: r(() => [d(F, { prop: "value", label: "链接页面", align: "center" }, { default: r((i2) => {
28
+ const a2 = i("el-button"), C3 = i("el-link"), x2 = i("el-tooltip"), F = i("el-table-column"), z = i("Plus"), U = i("el-icon"), w = i("Delete"), B = i("el-table"), N = i("el-radio"), A = i("el-radio-group"), J = i("el-form-item"), O = i("el-option"), R = i("el-select"), q = i("el-dialog");
29
+ return t(), n(o, null, [S.value ? (t(), u(B, { key: 0, data: e3.linkPage, style: { width: "100%" } }, { default: p(() => [d(F, { prop: "value", label: "链接页面", align: "center" }, { default: p((i2) => {
30
30
  var _a, _b, _c, _d;
31
- return [((_a = e3.linkPage[i2.$index].jumpPageSetting) == null ? void 0 : _a.jumpPageUrl) ? "page" === ((_b = e3.linkPage[i2.$index].jumpPageSetting) == null ? void 0 : _b.linkType) ? (t(), u(b3, { key: 1, type: "primary", onClick: (e4) => T(i2.$index) }, { default: r(() => {
31
+ return [((_a = e3.linkPage[i2.$index].jumpPageSetting) == null ? void 0 : _a.jumpPageUrl) ? "page" === ((_b = e3.linkPage[i2.$index].jumpPageSetting) == null ? void 0 : _b.linkType) ? (t(), u(C3, { key: 1, type: "primary", onClick: (e4) => $(i2.$index) }, { default: p(() => {
32
32
  var _a2;
33
- return [p(s((_a2 = e3.linkPage[i2.$index].jumpPageSetting) == null ? void 0 : _a2.jumpPageName), 1)];
34
- }), _: 2 }, 1032, ["onClick"])) : "url" === ((_c = e3.linkPage[i2.$index].jumpPageSetting) == null ? void 0 : _c.linkType) ? (t(), u(x2, { key: 2, class: "box-item", content: (_d = e3.linkPage[i2.$index].jumpPageSetting) == null ? void 0 : _d.jumpPageUrl }, { default: r(() => [d(b3, { type: "primary", onClick: (e4) => T(i2.$index) }, { default: r(() => {
33
+ return [r(s((_a2 = e3.linkPage[i2.$index].jumpPageSetting) == null ? void 0 : _a2.jumpPageName), 1)];
34
+ }), _: 2 }, 1032, ["onClick"])) : "url" === ((_c = e3.linkPage[i2.$index].jumpPageSetting) == null ? void 0 : _c.linkType) ? (t(), u(x2, { key: 2, class: "box-item", content: (_d = e3.linkPage[i2.$index].jumpPageSetting) == null ? void 0 : _d.jumpPageUrl }, { default: p(() => [d(C3, { type: "primary", onClick: (e4) => $(i2.$index) }, { default: p(() => {
35
35
  var _a2;
36
- return [p(s((_a2 = e3.linkPage[i2.$index].jumpPageSetting) == null ? void 0 : _a2.jumpPageUrl), 1)];
37
- }), _: 2 }, 1032, ["onClick"])]), _: 2 }, 1032, ["content"])) : g("", true) : (t(), u(a2, { key: 0, type: "primary", onClick: (e4) => T(i2.$index) }, { default: r(() => l2[5] || (l2[5] = [p(" 设置 ")])), _: 2 }, 1032, ["onClick"]))];
38
- }), _: 1 }), d(F, { label: "操作", align: "center" }, { header: r(() => [d(U, { size: "14", style: { color: "#5893ef", cursor: "pointer", "font-weight": "bold" }, onClick: $ }, { default: r(() => [d(z)]), _: 1 })]), default: r((e4) => [d(U, { size: "14", style: { color: "#5893ef", cursor: "pointer" }, onClick: (l3) => {
36
+ return [r(s((_a2 = e3.linkPage[i2.$index].jumpPageSetting) == null ? void 0 : _a2.jumpPageUrl), 1)];
37
+ }), _: 2 }, 1032, ["onClick"])]), _: 2 }, 1032, ["content"])) : g("", true) : (t(), u(a2, { key: 0, type: "primary", onClick: (e4) => $(i2.$index) }, { default: p(() => l2[5] || (l2[5] = [r(" 设置 ")])), _: 2 }, 1032, ["onClick"]))];
38
+ }), _: 1 }), d(F, { label: "操作", align: "center" }, { header: p(() => [d(U, { size: "14", style: { color: "#5893ef", cursor: "pointer", "font-weight": "bold" }, onClick: T }, { default: p(() => [d(z)]), _: 1 })]), default: p((e4) => [d(U, { size: "14", style: { color: "#5893ef", cursor: "pointer" }, onClick: (l3) => {
39
39
  return e4.row, a3 = e4.$index, void h.linkPage.splice(a3, 1);
40
40
  var a3;
41
- } }, { default: r(() => [d(w)]), _: 2 }, 1032, ["onClick"])]), _: 1 })]), _: 1 }, 8, ["data"])) : g("", true), d(q, { "append-to-body": "", modelValue: C.value, "onUpdate:modelValue": l2[4] || (l2[4] = (e4) => C.value = e4), title: "链接配置", width: "500", "before-close": D, "destroy-on-close": "" }, { footer: r(() => [f("div", v, [d(a2, { type: "default", onClick: l2[2] || (l2[2] = (e4) => C.value = false) }, { default: r(() => l2[9] || (l2[9] = [p("取消")])), _: 1 }), d(a2, { type: "primary", onClick: l2[3] || (l2[3] = (e4) => C.value = false) }, { default: r(() => l2[10] || (l2[10] = [p(" 确定 ")])), _: 1 })])]), default: r(() => [d(J, { label: "跳转条件", class: "amb-design-attr-item" }, { default: r(() => [d(A, { modelValue: e3.linkPage[_.value].jumpConditionType, "onUpdate:modelValue": l2[0] || (l2[0] = (l3) => e3.linkPage[_.value].jumpConditionType = l3), onChange: V }, { default: r(() => [d(N, { value: "none", size: "small" }, { default: r(() => l2[6] || (l2[6] = [p("无")])), _: 1 }), d(N, { value: "config", size: "small" }, { default: r(() => l2[7] || (l2[7] = [p("配置条件")])), _: 1 }), d(N, { value: "customFunc", size: "small" }, { default: r(() => l2[8] || (l2[8] = [p("自定义条件")])), _: 1 })]), _: 1 }, 8, ["modelValue"])]), _: 1 }), d(J, { class: "amb-design-attr-item" }, { default: r(() => ["config" === e3.linkPage[_.value].jumpConditionType ? (t(), u(P, { key: 0, title: "跳转条件", buttonText: "设置条件", list: e3.linkPage[_.value].conditions, tableConfigure: e3.tableConfigure, ref_key: "conditionRef", ref: j }, null, 8, ["list", "tableConfigure"])) : "customFunc" === e3.linkPage[_.value].jumpConditionType ? (t(), u(R, { key: 1, modelValue: e3.linkPage[_.value].customFunc, "onUpdate:modelValue": l2[1] || (l2[1] = (l3) => e3.linkPage[_.value].customFunc = l3), clearable: "", size: "small", placeholder: "请选择" }, { default: r(() => [(t(true), n(o, null, m(c(y)(), (e4) => (t(), u(O, { key: e4.value, label: e4.label, value: e4.value }, null, 8, ["label", "value"]))), 128))]), _: 1 }, 8, ["modelValue"])) : g("", true)]), _: 1 }), d(k, { pageDesign: e3.pageDesign, configure: e3.linkPage[_.value].jumpPageSetting, tableConfigure: e3.tableConfigure, showDisplayConditions: false, isDialog: true }, null, 8, ["pageDesign", "configure", "tableConfigure"])]), _: 1 }, 8, ["modelValue"])], 64);
41
+ } }, { default: p(() => [d(w)]), _: 2 }, 1032, ["onClick"])]), _: 1 })]), _: 1 }, 8, ["data"])) : g("", true), d(q, { "append-to-body": "", modelValue: b.value, "onUpdate:modelValue": l2[4] || (l2[4] = (e4) => b.value = e4), title: "链接配置", width: "500", "before-close": D, "destroy-on-close": "" }, { footer: p(() => [f("div", v, [d(a2, { type: "default", onClick: l2[2] || (l2[2] = (e4) => b.value = false) }, { default: p(() => l2[9] || (l2[9] = [r("取消")])), _: 1 }), d(a2, { type: "primary", onClick: l2[3] || (l2[3] = (e4) => b.value = false) }, { default: p(() => l2[10] || (l2[10] = [r(" 确定 ")])), _: 1 })])]), default: p(() => [d(J, { label: "跳转条件", class: "amb-design-attr-item" }, { default: p(() => [d(A, { modelValue: e3.linkPage[_.value].jumpConditionType, "onUpdate:modelValue": l2[0] || (l2[0] = (l3) => e3.linkPage[_.value].jumpConditionType = l3), onChange: V }, { default: p(() => [d(N, { value: "none", size: "small" }, { default: p(() => l2[6] || (l2[6] = [r("无")])), _: 1 }), d(N, { value: "config", size: "small" }, { default: p(() => l2[7] || (l2[7] = [r("配置条件")])), _: 1 }), d(N, { value: "customFunc", size: "small" }, { default: p(() => l2[8] || (l2[8] = [r("自定义条件")])), _: 1 })]), _: 1 }, 8, ["modelValue"])]), _: 1 }), d(J, { class: "amb-design-attr-item" }, { default: p(() => ["config" === e3.linkPage[_.value].jumpConditionType ? (t(), u(P, { key: 0, title: "跳转条件", buttonText: "设置条件", list: e3.linkPage[_.value].conditions, tableConfigure: e3.tableConfigure, ref_key: "conditionRef", ref: j }, null, 8, ["list", "tableConfigure"])) : "customFunc" === e3.linkPage[_.value].jumpConditionType ? (t(), u(R, { key: 1, modelValue: e3.linkPage[_.value].customFunc, "onUpdate:modelValue": l2[1] || (l2[1] = (l3) => e3.linkPage[_.value].customFunc = l3), clearable: "", size: "small", placeholder: "请选择" }, { default: p(() => [(t(true), n(o, null, m(c(y)(), (e4) => (t(), u(O, { key: e4.value, label: e4.label, value: e4.value }, null, 8, ["label", "value"]))), 128))]), _: 1 }, 8, ["modelValue"])) : g("", true)]), _: 1 }), d(k, { pageDesign: e3.pageDesign, configure: e3.linkPage[_.value].jumpPageSetting, tableConfigure: e3.tableConfigure, showDisplayConditions: false, isDialog: true }, null, 8, ["pageDesign", "configure", "tableConfigure"])]), _: 1 }, 8, ["modelValue"])], 64);
42
42
  };
43
43
  } });
44
44
  export {
45
- b as default
45
+ C as default
46
46
  };
@@ -1,4 +1,4 @@
1
- import { defineComponent as e, ref as l, resolveComponent as a, createBlock as o, openBlock as t, withCtx as u, createVNode as s, withDirectives as i, createCommentVNode as d, createElementVNode as r, createElementBlock as p, Fragment as n, renderList as m, unref as f, createTextVNode as c, vShow as b } from "vue";
1
+ import { defineComponent as e, ref as l, resolveComponent as a, createBlock as o, openBlock as t, withCtx as u, createVNode as i, withDirectives as s, createCommentVNode as d, createElementVNode as r, createElementBlock as p, Fragment as n, renderList as m, unref as f, createTextVNode as c, vShow as b } from "vue";
2
2
  import { Search as g } from "@element-plus/icons-vue";
3
3
  import { getFormComponentOptions as V } from "../../../../utils/assemblys-config.js";
4
4
  import { componentNameChange as _ } from "../../../../utils/form-design-util.js";
@@ -7,13 +7,13 @@ import y from "../../common/common-variable-bind.vue.js";
7
7
  import h from "./depttree-autoset.vue.js";
8
8
  import { OrganizationInput as S } from "agilebuilder-ui";
9
9
  import U from "../../common/common-function-code.vue.js";
10
- import x from "../common/title-suffix.vue.js";
11
- import T from "../../common/common-i18n-key-input.vue.js";
12
- const w = { style: { padding: "8px 0px 0px 0px" } }, k = { style: { padding: "8px 0px 0px 0px" } }, j = { style: { padding: "8px 0px 0px 0px" } }, z = e({ __name: "depttree-attr-base", props: { configure: { type: Object, required: true }, pageDesign: { type: Object, default: () => {
10
+ import k from "../common/title-suffix.vue.js";
11
+ import x from "../../common/common-i18n-key-input.vue.js";
12
+ const T = { style: { padding: "8px 0px 0px 0px" } }, w = { style: { padding: "8px 0px 0px 0px" } }, j = { style: { padding: "8px 0px 0px 0px" } }, z = e({ __name: "depttree-attr-base", props: { configure: { type: Object, required: true }, pageDesign: { type: Object, default: () => {
13
13
  } }, default: () => ({ props: {} }) }, emits: ["changeAssembly"], setup(e2, { emit: z2 }) {
14
- const D = e2, W = l(D.configure.name), q = z2, M = l(["base"]), C = l(false);
15
- function F(e3) {
16
- _(D.configure, e3, q);
14
+ const D = e2, W = l(D.configure.name), C = z2, F = l(["base"]), q = l(false);
15
+ function M(e3) {
16
+ _(D.configure, e3, C);
17
17
  }
18
18
  function L(e3, l2) {
19
19
  D.configure.props.base.prop = e3, l2 && (D.configure.props.base.title = l2);
@@ -27,9 +27,12 @@ const w = { style: { padding: "8px 0px 0px 0px" } }, k = { style: { padding: "8p
27
27
  function B(e3, l2) {
28
28
  D.configure.props.base.deptScopeDepts = l2;
29
29
  }
30
- return D.configure.isTable && (C.value = true), (l2, _2) => {
31
- const z3 = a("el-option"), D2 = a("el-select"), q2 = a("el-form-item"), E = a("el-input"), G = a("el-radio"), H = a("el-radio-group"), I = a("el-input-number"), J = a("el-collapse-item"), K = a("el-checkbox"), N = a("el-col"), P = a("el-button"), Q = a("el-collapse"), R = a("el-form");
32
- return t(), o(R, { "label-width": "80px", size: "small" }, { default: u(() => [s(Q, { modelValue: M.value, "onUpdate:modelValue": _2[14] || (_2[14] = (e3) => M.value = e3), style: { "margin-top": "6px" } }, { default: u(() => [s(J, { title: "基本", name: "base", class: "amb-design-attr-group-header" }, { default: u(() => [r("div", w, [s(q2, { label: "组件类型", class: "amb-design-attr-item" }, { default: u(() => [s(D2, { modelValue: W.value, "onUpdate:modelValue": _2[0] || (_2[0] = (e3) => W.value = e3), onChange: F, placeholder: "请选择" }, { default: u(() => [(t(true), p(n, null, m(f(V)(), (e3) => (t(), o(z3, { key: e3.name, label: e3.label, value: e3.name }, null, 8, ["label", "value"]))), 128))]), _: 1 }, 8, ["modelValue"])]), _: 1 }), s(q2, { label: "唯一编码", class: "amb-design-attr-item" }, { default: u(() => [s(E, { modelValue: e2.configure.uuid, "onUpdate:modelValue": _2[1] || (_2[1] = (l3) => e2.configure.uuid = l3), readonly: "", title: e2.configure.uuid }, null, 8, ["modelValue", "title"])]), _: 1 }), s(q2, { label: "结构树类型", class: "amb-design-attr-item" }, { default: u(() => [s(D2, { modelValue: e2.configure.props.base.treeType, "onUpdate:modelValue": _2[2] || (_2[2] = (l3) => e2.configure.props.base.treeType = l3), placeholder: "请选择" }, { default: u(() => [s(z3, { label: "部门人员树", value: "DeptUserTree" }), s(z3, { label: "工作组人员树", value: "WgUserTree" }), s(z3, { label: "部门树", value: "DeptTree" }), s(z3, { label: "工作组树", value: "WgTree" })]), _: 1 }, 8, ["modelValue"])]), _: 1 }), C.value ? d("", true) : (t(), o(q2, { key: 0, label: "绑定变量", class: "amb-design-attr-item" }, { default: u(() => [(t(), o(y, { key: e2.configure.uuid, modelValue: e2.configure.props.base.prop, paramTypes: ["data", "page"], "onUpdate:modelValue": L }, null, 8, ["modelValue"]))]), _: 1 })), s(q2, { label: "默认值", class: "amb-design-attr-item" }, { default: u(() => [(t(), o(y, { isTable: e2.configure.isTable, key: e2.configure.uuid, modelValue: e2.configure.props.base.defaultValue, "onUpdate:modelValue": O }, null, 8, ["isTable", "modelValue"]))]), _: 1 }), C.value ? d("", true) : (t(), o(q2, { key: 1, label: "绑定权限", class: "amb-design-attr-item" }, { default: u(() => [(t(), o(U, { key: e2.configure.uuid, configure: e2.configure }, null, 8, ["configure"]))]), _: 1 })), C.value ? d("", true) : (t(), o(q2, { key: 2, label: "标题显示", class: "amb-design-attr-item" }, { default: u(() => [s(H, { modelValue: e2.configure.props.base.tittleShow, "onUpdate:modelValue": _2[3] || (_2[3] = (l3) => e2.configure.props.base.tittleShow = l3), class: "ml-4" }, { default: u(() => [s(G, { value: true }, { default: u(() => _2[15] || (_2[15] = [c("显示")])), _: 1 }), s(G, { value: false }, { default: u(() => _2[16] || (_2[16] = [c("隐藏")])), _: 1 })]), _: 1 }, 8, ["modelValue"])]), _: 1 })), i(s(q2, { label: "标题", class: "amb-design-attr-item" }, { default: u(() => [s(T, { modelValue: e2.configure.props.base.title, "onUpdate:modelValue": _2[4] || (_2[4] = (l3) => e2.configure.props.base.title = l3) }, null, 8, ["modelValue"])]), _: 1 }, 512), [[b, e2.configure.props.base.tittleShow]]), i(s(q2, { label: "标题宽度", class: "amb-design-attr-item" }, { default: u(() => [s(I, { modelValue: e2.configure.props.base.titleWidth, "onUpdate:modelValue": _2[5] || (_2[5] = (l3) => e2.configure.props.base.titleWidth = l3), style: { width: "100%" }, min: 0, placeholder: "请输入" }, null, 8, ["modelValue"])]), _: 1 }, 512), [[b, e2.configure.props.base.tittleShow]]), i(s(q2, { label: "标题超宽", title: "标题超宽显示", class: "amb-design-attr-item" }, { default: u(() => [s(H, { modelValue: e2.configure.props.base.titleShowWay, "onUpdate:modelValue": _2[6] || (_2[6] = (l3) => e2.configure.props.base.titleShowWay = l3), class: "ml-4" }, { default: u(() => [s(G, { value: "block" }, { default: u(() => _2[17] || (_2[17] = [c("换行")])), _: 1 }), s(G, { value: "inline" }, { default: u(() => _2[18] || (_2[18] = [c("不换行")])), _: 1 }), s(G, { value: "omit" }, { default: u(() => _2[19] || (_2[19] = [c("省略号")])), _: 1 })]), _: 1 }, 8, ["modelValue"])]), _: 1 }, 512), [[b, e2.configure.props.base.tittleShow && e2.configure.props.base.titleWidth > 0]]), s(q2, { label: "多选", class: "amb-design-attr-item" }, { default: u(() => [s(H, { modelValue: e2.configure.props.base.treeMultiple, "onUpdate:modelValue": _2[7] || (_2[7] = (l3) => e2.configure.props.base.treeMultiple = l3), class: "ml-4" }, { default: u(() => [s(G, { value: true }, { default: u(() => _2[20] || (_2[20] = [c("是")])), _: 1 }), s(G, { value: false }, { default: u(() => _2[21] || (_2[21] = [c("否")])), _: 1 })]), _: 1 }, 8, ["modelValue"])]), _: 1 }), i(s(q2, { label: "分隔符", class: "amb-design-attr-item" }, { default: u(() => [s(E, { modelValue: e2.configure.props.base.separator, "onUpdate:modelValue": _2[8] || (_2[8] = (l3) => e2.configure.props.base.separator = l3), placeholder: "," }, null, 8, ["modelValue"])]), _: 1 }, 512), [[b, e2.configure.props.base.treeMultiple]]), s(q2, { label: "尺寸", class: "amb-design-attr-item" }, { default: u(() => [s(H, { modelValue: e2.configure.props.base.size, "onUpdate:modelValue": _2[9] || (_2[9] = (l3) => e2.configure.props.base.size = l3), class: "ml-4" }, { default: u(() => [s(G, { value: "large" }, { default: u(() => _2[22] || (_2[22] = [c("大")])), _: 1 }), s(G, { value: "default" }, { default: u(() => _2[23] || (_2[23] = [c("中")])), _: 1 }), s(G, { value: "small" }, { default: u(() => _2[24] || (_2[24] = [c("小")])), _: 1 })]), _: 1 }, 8, ["modelValue"])]), _: 1 }), s(q2, { label: "状态", class: "amb-design-attr-item" }, { default: u(() => [s(H, { modelValue: e2.configure.props.base.state, "onUpdate:modelValue": _2[10] || (_2[10] = (l3) => e2.configure.props.base.state = l3), class: "ml-4" }, { default: u(() => [s(G, { value: "default" }, { default: u(() => _2[25] || (_2[25] = [c("普通")])), _: 1 }), s(G, { value: "disabled" }, { default: u(() => _2[26] || (_2[26] = [c("禁用")])), _: 1 }), s(G, { value: "hidden" }, { default: u(() => _2[27] || (_2[27] = [c("隐藏")])), _: 1 })]), _: 1 }, 8, ["modelValue"])]), _: 1 })])]), _: 1 }), s(J, { title: "限定部门", name: "deptScopes", class: "amb-design-attr-group-header" }, { default: u(() => [r("div", k, [s(H, { modelValue: e2.configure.props.base.deptScope, "onUpdate:modelValue": _2[12] || (_2[12] = (l3) => e2.configure.props.base.deptScope = l3) }, { default: u(() => [s(q2, { class: "amb-design-attr-item" }, { label: u(() => [s(G, { value: "field" }, { default: u(() => _2[28] || (_2[28] = [c("指定变量")])), _: 1 })]), default: u(() => [s(y, { isTable: e2.configure.isTable, showLabel: "field" != e2.configure.props.base.deptScope, modelValue: e2.configure.props.base.deptScopeField, "onUpdate:modelValue": A }, null, 8, ["isTable", "showLabel", "modelValue"])]), _: 1 }), s(q2, { class: "amb-design-attr-item" }, { label: u(() => [s(G, { value: "depts" }, { default: u(() => _2[29] || (_2[29] = [c("固定部门")])), _: 1 })]), default: u(() => [s(f(S), { disabled: "depts" != e2.configure.props.base.deptScope, multiple: true, treeType: "DeptTree", value: e2.configure.props.base.deptScopeDepts, "onUpdate:value": _2[11] || (_2[11] = (l3) => e2.configure.props.base.deptScopeDepts = l3), models: e2.configure.props.base, fields: [{ type: "code", model: "deptScopeCodes" }], size: "small", placeholder: "请选择", separator: ",", onSetValue: B }, null, 8, ["disabled", "value", "models"])]), _: 1 })]), _: 1 }, 8, ["modelValue"])])]), _: 1 }), (t(), o(h, { key: e2.configure.uuid, configure: e2.configure }, null, 8, ["configure"])), i(s(x, { configure: e2.configure }, null, 8, ["configure"]), [[b, e2.configure.props.base.tittleShow]]), (t(), o(J, { title: "校验", name: "verification", key: e2.configure.uuid, class: "amb-design-attr-group-header" }, { default: u(() => [r("div", j, [s(q2, { class: "amb-design-attr-item", "label-width": "0" }, { default: u(() => [s(K, { modelValue: e2.configure.props.verification.required, "onUpdate:modelValue": _2[13] || (_2[13] = (l3) => e2.configure.props.verification.required = l3), label: "必填" }, null, 8, ["modelValue"])]), _: 1 }), s(q2, { class: "amb-design-attr-item", "label-width": "0" }, { default: u(() => [s(N, { span: 8 }, { default: u(() => [s(K, { label: "自定义", value: "custom" })]), _: 1 }), s(N, { span: 14 }, { default: u(() => [s(P, { type: "default" }, { default: u(() => _2[30] || (_2[30] = [c("自定义逻辑")])), _: 1 }), s(P, { type: "default", icon: f(g), circle: "" }, null, 8, ["icon"])]), _: 1 })]), _: 1 })])]), _: 1 })), C.value ? d("", true) : (t(), o(v, { key: e2.configure.uuid, size: e2.configure.props.size }, null, 8, ["size"]))]), _: 1 }, 8, ["modelValue"])]), _: 1 });
30
+ function E(e3) {
31
+ "depts" === e3 && (D.configure.props.base.limitFilterColumn = null);
32
+ }
33
+ return D.configure.isTable && (q.value = true), (l2, _2) => {
34
+ const z3 = a("el-option"), D2 = a("el-select"), C2 = a("el-form-item"), G = a("el-input"), H = a("el-radio"), I = a("el-radio-group"), J = a("el-input-number"), K = a("el-collapse-item"), N = a("el-checkbox"), P = a("el-col"), Q = a("el-button"), R = a("el-collapse"), X = a("el-form");
35
+ return t(), o(X, { "label-width": "80px", size: "small" }, { default: u(() => [i(R, { modelValue: F.value, "onUpdate:modelValue": _2[15] || (_2[15] = (e3) => F.value = e3), style: { "margin-top": "6px" } }, { default: u(() => [i(K, { title: "基本", name: "base", class: "amb-design-attr-group-header" }, { default: u(() => [r("div", T, [i(C2, { label: "组件类型", class: "amb-design-attr-item" }, { default: u(() => [i(D2, { modelValue: W.value, "onUpdate:modelValue": _2[0] || (_2[0] = (e3) => W.value = e3), onChange: M, placeholder: "请选择" }, { default: u(() => [(t(true), p(n, null, m(f(V)(), (e3) => (t(), o(z3, { key: e3.name, label: e3.label, value: e3.name }, null, 8, ["label", "value"]))), 128))]), _: 1 }, 8, ["modelValue"])]), _: 1 }), i(C2, { label: "唯一编码", class: "amb-design-attr-item" }, { default: u(() => [i(G, { modelValue: e2.configure.uuid, "onUpdate:modelValue": _2[1] || (_2[1] = (l3) => e2.configure.uuid = l3), readonly: "", title: e2.configure.uuid }, null, 8, ["modelValue", "title"])]), _: 1 }), i(C2, { label: "结构树类型", class: "amb-design-attr-item" }, { default: u(() => [i(D2, { modelValue: e2.configure.props.base.treeType, "onUpdate:modelValue": _2[2] || (_2[2] = (l3) => e2.configure.props.base.treeType = l3), placeholder: "请选择" }, { default: u(() => [i(z3, { label: "部门人员树", value: "DeptUserTree" }), i(z3, { label: "工作组人员树", value: "WgUserTree" }), i(z3, { label: "部门树", value: "DeptTree" }), i(z3, { label: "工作组树", value: "WgTree" })]), _: 1 }, 8, ["modelValue"])]), _: 1 }), q.value ? d("", true) : (t(), o(C2, { key: 0, label: "绑定变量", class: "amb-design-attr-item" }, { default: u(() => [(t(), o(y, { key: e2.configure.uuid, modelValue: e2.configure.props.base.prop, paramTypes: ["data", "page"], "onUpdate:modelValue": L }, null, 8, ["modelValue"]))]), _: 1 })), i(C2, { label: "默认值", class: "amb-design-attr-item" }, { default: u(() => [(t(), o(y, { isTable: e2.configure.isTable, key: e2.configure.uuid, modelValue: e2.configure.props.base.defaultValue, "onUpdate:modelValue": O }, null, 8, ["isTable", "modelValue"]))]), _: 1 }), q.value ? d("", true) : (t(), o(C2, { key: 1, label: "绑定权限", class: "amb-design-attr-item" }, { default: u(() => [(t(), o(U, { key: e2.configure.uuid, configure: e2.configure }, null, 8, ["configure"]))]), _: 1 })), q.value ? d("", true) : (t(), o(C2, { key: 2, label: "标题显示", class: "amb-design-attr-item" }, { default: u(() => [i(I, { modelValue: e2.configure.props.base.tittleShow, "onUpdate:modelValue": _2[3] || (_2[3] = (l3) => e2.configure.props.base.tittleShow = l3), class: "ml-4" }, { default: u(() => [i(H, { value: true }, { default: u(() => _2[16] || (_2[16] = [c("显示")])), _: 1 }), i(H, { value: false }, { default: u(() => _2[17] || (_2[17] = [c("隐藏")])), _: 1 })]), _: 1 }, 8, ["modelValue"])]), _: 1 })), s(i(C2, { label: "标题", class: "amb-design-attr-item" }, { default: u(() => [i(x, { modelValue: e2.configure.props.base.title, "onUpdate:modelValue": _2[4] || (_2[4] = (l3) => e2.configure.props.base.title = l3) }, null, 8, ["modelValue"])]), _: 1 }, 512), [[b, e2.configure.props.base.tittleShow]]), s(i(C2, { label: "标题宽度", class: "amb-design-attr-item" }, { default: u(() => [i(J, { modelValue: e2.configure.props.base.titleWidth, "onUpdate:modelValue": _2[5] || (_2[5] = (l3) => e2.configure.props.base.titleWidth = l3), style: { width: "100%" }, min: 0, placeholder: "请输入" }, null, 8, ["modelValue"])]), _: 1 }, 512), [[b, e2.configure.props.base.tittleShow]]), s(i(C2, { label: "标题超宽", title: "标题超宽显示", class: "amb-design-attr-item" }, { default: u(() => [i(I, { modelValue: e2.configure.props.base.titleShowWay, "onUpdate:modelValue": _2[6] || (_2[6] = (l3) => e2.configure.props.base.titleShowWay = l3), class: "ml-4" }, { default: u(() => [i(H, { value: "block" }, { default: u(() => _2[18] || (_2[18] = [c("换行")])), _: 1 }), i(H, { value: "inline" }, { default: u(() => _2[19] || (_2[19] = [c("不换行")])), _: 1 }), i(H, { value: "omit" }, { default: u(() => _2[20] || (_2[20] = [c("省略号")])), _: 1 })]), _: 1 }, 8, ["modelValue"])]), _: 1 }, 512), [[b, e2.configure.props.base.tittleShow && e2.configure.props.base.titleWidth > 0]]), i(C2, { label: "多选", class: "amb-design-attr-item" }, { default: u(() => [i(I, { modelValue: e2.configure.props.base.treeMultiple, "onUpdate:modelValue": _2[7] || (_2[7] = (l3) => e2.configure.props.base.treeMultiple = l3), class: "ml-4" }, { default: u(() => [i(H, { value: true }, { default: u(() => _2[21] || (_2[21] = [c("是")])), _: 1 }), i(H, { value: false }, { default: u(() => _2[22] || (_2[22] = [c("否")])), _: 1 })]), _: 1 }, 8, ["modelValue"])]), _: 1 }), s(i(C2, { label: "分隔符", class: "amb-design-attr-item" }, { default: u(() => [i(G, { modelValue: e2.configure.props.base.separator, "onUpdate:modelValue": _2[8] || (_2[8] = (l3) => e2.configure.props.base.separator = l3), placeholder: "," }, null, 8, ["modelValue"])]), _: 1 }, 512), [[b, e2.configure.props.base.treeMultiple]]), i(C2, { label: "尺寸", class: "amb-design-attr-item" }, { default: u(() => [i(I, { modelValue: e2.configure.props.base.size, "onUpdate:modelValue": _2[9] || (_2[9] = (l3) => e2.configure.props.base.size = l3), class: "ml-4" }, { default: u(() => [i(H, { value: "large" }, { default: u(() => _2[23] || (_2[23] = [c("大")])), _: 1 }), i(H, { value: "default" }, { default: u(() => _2[24] || (_2[24] = [c("中")])), _: 1 }), i(H, { value: "small" }, { default: u(() => _2[25] || (_2[25] = [c("小")])), _: 1 })]), _: 1 }, 8, ["modelValue"])]), _: 1 }), i(C2, { label: "状态", class: "amb-design-attr-item" }, { default: u(() => [i(I, { modelValue: e2.configure.props.base.state, "onUpdate:modelValue": _2[10] || (_2[10] = (l3) => e2.configure.props.base.state = l3), class: "ml-4" }, { default: u(() => [i(H, { value: "default" }, { default: u(() => _2[26] || (_2[26] = [c("普通")])), _: 1 }), i(H, { value: "disabled" }, { default: u(() => _2[27] || (_2[27] = [c("禁用")])), _: 1 }), i(H, { value: "hidden" }, { default: u(() => _2[28] || (_2[28] = [c("隐藏")])), _: 1 })]), _: 1 }, 8, ["modelValue"])]), _: 1 })])]), _: 1 }), i(K, { title: "限定部门", name: "deptScopes", class: "amb-design-attr-group-header" }, { default: u(() => [r("div", w, [i(I, { modelValue: e2.configure.props.base.deptScope, "onUpdate:modelValue": _2[12] || (_2[12] = (l3) => e2.configure.props.base.deptScope = l3), onChange: E }, { default: u(() => [i(C2, { class: "amb-design-attr-item" }, { label: u(() => [i(H, { value: "field" }, { default: u(() => _2[29] || (_2[29] = [c("指定变量")])), _: 1 })]), default: u(() => [i(y, { isTable: e2.configure.isTable, showLabel: "field" != e2.configure.props.base.deptScope, modelValue: e2.configure.props.base.deptScopeField, "onUpdate:modelValue": A }, null, 8, ["isTable", "showLabel", "modelValue"])]), _: 1 }), i(C2, { class: "amb-design-attr-item" }, { label: u(() => [i(H, { value: "depts" }, { default: u(() => _2[30] || (_2[30] = [c("固定部门")])), _: 1 })]), default: u(() => [i(f(S), { disabled: "depts" != e2.configure.props.base.deptScope, multiple: true, treeType: "DeptTree", value: e2.configure.props.base.deptScopeDepts, "onUpdate:value": _2[11] || (_2[11] = (l3) => e2.configure.props.base.deptScopeDepts = l3), models: e2.configure.props.base, fields: [{ type: "code", model: "deptScopeCodes" }], size: "small", placeholder: "请选择", separator: ",", onSetValue: B }, null, 8, ["disabled", "value", "models"])]), _: 1 })]), _: 1 }, 8, ["modelValue"]), "field" === e2.configure.props.base.deptScope ? (t(), o(C2, { key: 0, label: "筛选字段", class: "amb-design-attr-item" }, { default: u(() => [i(D2, { modelValue: e2.configure.props.base.limitFilterColumn, "onUpdate:modelValue": _2[13] || (_2[13] = (l3) => e2.configure.props.base.limitFilterColumn = l3), clearable: "", placeholder: "请选择" }, { default: u(() => [i(z3, { key: "id", label: "id", value: "id" }), i(z3, { key: "code", label: "编码", value: "code" }), i(z3, { key: "name", label: "名称", value: "name" })]), _: 1 }, 8, ["modelValue"])]), _: 1 })) : d("", true)])]), _: 1 }), (t(), o(h, { key: e2.configure.uuid, configure: e2.configure }, null, 8, ["configure"])), s(i(k, { configure: e2.configure }, null, 8, ["configure"]), [[b, e2.configure.props.base.tittleShow]]), (t(), o(K, { title: "校验", name: "verification", key: e2.configure.uuid, class: "amb-design-attr-group-header" }, { default: u(() => [r("div", j, [i(C2, { class: "amb-design-attr-item", "label-width": "0" }, { default: u(() => [i(N, { modelValue: e2.configure.props.verification.required, "onUpdate:modelValue": _2[14] || (_2[14] = (l3) => e2.configure.props.verification.required = l3), label: "必填" }, null, 8, ["modelValue"])]), _: 1 }), i(C2, { class: "amb-design-attr-item", "label-width": "0" }, { default: u(() => [i(P, { span: 8 }, { default: u(() => [i(N, { label: "自定义", value: "custom" })]), _: 1 }), i(P, { span: 14 }, { default: u(() => [i(Q, { type: "default" }, { default: u(() => _2[31] || (_2[31] = [c("自定义逻辑")])), _: 1 }), i(Q, { type: "default", icon: f(g), circle: "" }, null, 8, ["icon"])]), _: 1 })]), _: 1 })])]), _: 1 })), q.value ? d("", true) : (t(), o(v, { key: e2.configure.uuid, size: e2.configure.props.size }, null, 8, ["size"]))]), _: 1 }, 8, ["modelValue"])]), _: 1 });
33
36
  };
34
37
  } });
35
38
  export {
@@ -1,4 +1,4 @@
1
- import { defineComponent as e, computed as l, onUnmounted as t, resolveComponent as a, createBlock as o, openBlock as r, withCtx as u, createElementVNode as s, createVNode as n, unref as i, createElementBlock as p, Fragment as d, renderList as m, withDirectives as c, vShow as f } from "vue";
1
+ import { defineComponent as e, computed as l, onUnmounted as t, resolveComponent as a, createBlock as o, openBlock as u, withCtx as r, createElementVNode as s, createVNode as n, unref as p, createElementBlock as i, Fragment as m, renderList as d, withDirectives as c, vShow as f } from "vue";
2
2
  import { Plus as b, Delete as g } from "@element-plus/icons-vue";
3
3
  import { getUuidv4 as v } from "../../../../utils/common-util.js";
4
4
  import y from "../../common/common-variable-bind.vue.js";
@@ -6,11 +6,11 @@ const h = { style: { padding: "8px 0px 0px 0px" } }, w = e({ __name: "depttree-a
6
6
  const w2 = e2;
7
7
  w2.configure.props || (w2.configure.props = {}), w2.configure.props.base || (w2.configure.props.base = {}), w2.configure.props.base.otherFieldSets || (w2.configure.props.base.otherFieldSets = []);
8
8
  const T = w2.configure.props.base, _ = T.otherFieldSets;
9
- 0 == _.length && x(null);
9
+ 0 == _.length && D(null);
10
10
  const V = l(() => {
11
11
  let e3 = w2.configure.props.base.treeType;
12
12
  return e3 = e3 || "DeptUserTree", e3.includes("User") ? "user" : "dept";
13
- }), k = [{ name: "ID", value: "id", types: ["user", "dept"] }, { name: "编码", value: "code", types: ["dept"] }, { name: "名称", value: "name", types: ["user", "dept"] }, { name: "登录名", value: "loginName", types: ["user"] }, { name: "Email", value: "email", types: ["user"] }, { name: "Telephone", value: "电话", types: ["user"] }, { name: "Telephone", value: "电话", types: ["user"] }, { name: "领导登录名", value: "divisionManager", types: ["user"] }, { name: "正职部门编码", value: "mainDeptCode", types: ["user"] }, { name: "正职部门ID", value: "mainDeptId", types: ["user"] }, { name: "分支机构名称", value: "subCompanyName", types: ["user"] }, { name: "分支机构ID", value: "subCompanyId", types: ["user"] }];
13
+ }), k = [{ name: "ID", value: "id", types: ["user", "dept"] }, { name: "编码", value: "code", types: ["dept"] }, { name: "名称", value: "name", types: ["user", "dept"] }, { name: "登录名", value: "loginName", types: ["user"] }, { name: "Email", value: "email", types: ["user"] }, { name: "Telephone", value: "电话", types: ["user"] }, { name: "Telephone", value: "电话", types: ["user"] }, { name: "领导登录名", value: "divisionManager", types: ["user"] }, { name: "正职部门编码", value: "mainDeptCode", types: ["user"] }, { name: "正职部门名称", value: "mainDeptName", types: ["user"] }, { name: "正职部门ID", value: "mainDeptId", types: ["user"] }, { name: "分支机构名称", value: "subCompanyName", types: ["user"] }, { name: "分支机构ID", value: "subCompanyId", types: ["user"] }];
14
14
  function C(e3) {
15
15
  let l2 = -1;
16
16
  const t2 = _.length;
@@ -20,26 +20,26 @@ const h = { style: { padding: "8px 0px 0px 0px" } }, w = e({ __name: "depttree-a
20
20
  }
21
21
  return l2;
22
22
  }
23
- function x(e3) {
23
+ function D(e3) {
24
24
  let l2 = -1;
25
25
  e3 && (l2 = C(e3));
26
26
  const t2 = { uuid: v(), source: "", target: "" };
27
27
  _.splice(l2 + 1, 0, t2);
28
28
  }
29
- let D;
29
+ let x;
30
30
  return t(() => {
31
- D && clearTimeout(D);
31
+ x && clearTimeout(x);
32
32
  }), (l2, t2) => {
33
33
  const v2 = a("el-option"), w3 = a("el-select"), U = a("el-table-column"), F = a("el-icon"), I = a("el-table"), S = a("el-collapse-item");
34
- return r(), o(S, { title: "其他字段设值", name: "otherFieldSet", class: "amb-design-attr-group-header" }, { default: u(() => [s("div", h, [n(I, { data: i(T).otherFieldSets }, { default: u(() => [n(U, { prop: "label", label: "字段", width: "90" }, { default: u((e3) => [n(w3, { size: "small", modelValue: e3.row.source, "onUpdate:modelValue": (l3) => e3.row.source = l3, title: e3.row.source, filterable: "", "reserve-keyword": "", clearable: "", placeholder: "请选择" }, { default: u(() => [(r(), p(d, null, m(k, (e4) => c(n(v2, { key: e4.name, label: e4.name, value: e4.value }, null, 8, ["label", "value"]), [[f, e4.types.includes(V.value)]])), 64))]), _: 2 }, 1032, ["modelValue", "onUpdate:modelValue", "title"])]), _: 1 }), n(U, { prop: "value", label: "设置到", width: "120" }, { default: u((l3) => [n(y, { isTable: e2.configure.isTable, modelValue: l3.row.target, paramTypes: ["data", "page"], "onUpdate:modelValue": (e3) => function(e4, l4) {
34
+ return u(), o(S, { title: "其他字段设值", name: "otherFieldSet", class: "amb-design-attr-group-header" }, { default: r(() => [s("div", h, [n(I, { data: p(T).otherFieldSets }, { default: r(() => [n(U, { prop: "label", label: "字段", width: "90" }, { default: r((e3) => [n(w3, { size: "small", modelValue: e3.row.source, "onUpdate:modelValue": (l3) => e3.row.source = l3, title: e3.row.source, filterable: "", "reserve-keyword": "", clearable: "", placeholder: "请选择" }, { default: r(() => [(u(), i(m, null, d(k, (e4) => c(n(v2, { key: e4.name, label: e4.name, value: e4.value }, null, 8, ["label", "value"]), [[f, e4.types.includes(V.value)]])), 64))]), _: 2 }, 1032, ["modelValue", "onUpdate:modelValue", "title"])]), _: 1 }), n(U, { prop: "value", label: "设置到", width: "120" }, { default: r((l3) => [n(y, { isTable: e2.configure.isTable, modelValue: l3.row.target, paramTypes: ["data", "page"], "onUpdate:modelValue": (e3) => function(e4, l4) {
35
35
  l4.target = e4;
36
- }(e3, l3.row) }, null, 8, ["isTable", "modelValue", "onUpdate:modelValue"])]), _: 1 }), n(U, { label: "操作", width: "60" }, { default: u((e3) => [n(F, { size: "14", style: { color: "#5893ef", cursor: "pointer", "font-weight": "bold", "margin-right": "8px" }, onClick: (l3) => x(e3.row) }, { default: u(() => [n(i(b))]), _: 2 }, 1032, ["onClick"]), n(F, { size: "14", style: { color: "#5893ef", cursor: "pointer" }, onClick: (l3) => function(e4) {
37
- D && clearTimeout(D);
36
+ }(e3, l3.row) }, null, 8, ["isTable", "modelValue", "onUpdate:modelValue"])]), _: 1 }), n(U, { label: "操作", width: "60" }, { default: r((e3) => [n(F, { size: "14", style: { color: "#5893ef", cursor: "pointer", "font-weight": "bold", "margin-right": "8px" }, onClick: (l3) => D(e3.row) }, { default: r(() => [n(p(b))]), _: 2 }, 1032, ["onClick"]), n(F, { size: "14", style: { color: "#5893ef", cursor: "pointer" }, onClick: (l3) => function(e4) {
37
+ x && clearTimeout(x);
38
38
  let l4 = C(e4);
39
- l4 > -1 && (_.splice(l4, 1), 0 == _.length && (D = setTimeout(function() {
40
- x(null);
39
+ l4 > -1 && (_.splice(l4, 1), 0 == _.length && (x = setTimeout(function() {
40
+ D(null);
41
41
  }, 10)));
42
- }(e3.row) }, { default: u(() => [n(i(g))]), _: 2 }, 1032, ["onClick"])]), _: 1 })]), _: 1 }, 8, ["data"])])]), _: 1 });
42
+ }(e3.row) }, { default: r(() => [n(p(g))]), _: 2 }, 1032, ["onClick"])]), _: 1 })]), _: 1 }, 8, ["data"])])]), _: 1 });
43
43
  };
44
44
  } });
45
45
  export {
@@ -1,31 +1,31 @@
1
- import { defineComponent as e, ref as t, watch as l, resolveComponent as r, createBlock as i, openBlock as u, normalizeStyle as o, normalizeClass as a, withCtx as s, createVNode as p, unref as n, createElementBlock as d, createCommentVNode as c, Fragment as f, createTextVNode as m, toDisplayString as v } from "vue";
1
+ import { defineComponent as e, ref as t, watch as l, resolveComponent as i, createBlock as r, openBlock as u, normalizeStyle as o, normalizeClass as a, withCtx as p, createVNode as s, unref as n, createElementBlock as d, createCommentVNode as c, Fragment as m, createTextVNode as f, toDisplayString as v } from "vue";
2
2
  import { caculateDetailComponentStyle as g, caculateComponentProps as y } from "../../../../utils/form-design-util.js";
3
3
  import { OrganizationInput as S } from "agilebuilder-ui";
4
4
  import b from "../common/title-suffix-element.vue.js";
5
5
  const h = e({ __name: "depttree-design", props: { pageDesign: {}, configure: {} }, setup(e2) {
6
6
  const h2 = e2;
7
7
  h2.configure.runtime || (h2.configure.runtime = {});
8
- const T = t({ value: void 0 }), F = t({}), x = t(""), z = t({}), k = t({}), C = t({});
8
+ const F = t({ value: void 0 }), T = t({}), C = t(""), x = t({}), z = t({}), k = t({});
9
9
  function j(e3, t2) {
10
- T.value = t2;
10
+ F.value = t2;
11
11
  }
12
12
  return l(h2.configure.style, () => {
13
- g(h2.configure, F, x, z), h2.configure.runtime.style = F.value, h2.configure.runtime.class = x.value, h2.configure.runtime.headerStyle = z.value;
13
+ g(h2.configure, T, C, x), h2.configure.runtime.style = T.value, h2.configure.runtime.class = C.value, h2.configure.runtime.headerStyle = x.value;
14
14
  }, { immediate: true }), l(h2.configure.props, () => {
15
- y(h2.configure, k, C), function() {
15
+ y(h2.configure, z, k), function() {
16
16
  let e3 = h2.configure.props ? h2.configure.props : {};
17
17
  const t2 = e3.base ? e3.base : {}, l2 = {};
18
- l2.treeType = t2.treeType ? t2.treeType : "DeptUserTree", l2.size = t2.size, l2.state = t2.state, l2.multiple = t2.treeMultiple, l2.separator = t2.separator ? t2.separator : ",", "field" == t2.deptScope && t2.deptScopeField && (l2.deptScopeField = t2.deptScopeField), "depts" == t2.deptScope && t2.deptScopeCodes && (l2.deptScopeCodes = t2.deptScopeCodes);
19
- const r2 = t2.otherFieldSets ? t2.otherFieldSets : [], i2 = [];
20
- for (let e4 of r2) if (e4.source && e4.target) {
18
+ l2.treeType = t2.treeType ? t2.treeType : "DeptUserTree", l2.size = t2.size, l2.state = t2.state, l2.multiple = t2.treeMultiple, l2.separator = t2.separator ? t2.separator : ",", t2.deptScope && (l2.deptScope = t2.deptScope), "field" == t2.deptScope && t2.deptScopeField && (l2.deptScopeField = t2.deptScopeField), "depts" == t2.deptScope && t2.deptScopeCodes && (l2.deptScopeCodes = t2.deptScopeCodes), t2.limitFilterColumn && (l2.limitFilterColumn = t2.limitFilterColumn);
19
+ const i2 = t2.otherFieldSets ? t2.otherFieldSets : [], r2 = [];
20
+ for (let e4 of i2) if (e4.source && e4.target) {
21
21
  let t3 = e4.target;
22
- i2.push({ type: e4.source, model: t3 });
22
+ r2.push({ type: e4.source, model: t3 });
23
23
  }
24
- l2.autoSetFields = i2, Object.assign(k.value, l2);
25
- }(), h2.configure.runtime.props = k.value, h2.configure.runtime.titleExceedStyle = C.value;
24
+ l2.autoSetFields = r2, Object.assign(z.value, l2);
25
+ }(), h2.configure.runtime.props = z.value, h2.configure.runtime.titleExceedStyle = k.value;
26
26
  }, { immediate: true }), (e3, t2) => {
27
- const l2 = r("el-form-item");
28
- return u(), i(l2, { required: k.value.required, class: a([x.value, "remove-formLabel-formContent-blankStyle"]), "label-width": k.value.labelWidth, style: o(F.value) }, { label: s(() => [k.value.tittleShow ? (u(), d("div", { key: 0, style: o({ ...z.value, ...C.value, "padding-right": "12px" }) }, [k.value.prefixType ? (u(), i(b, { key: 0, configure: e3.configure }, null, 8, ["configure"])) : (u(), d(f, { key: 1 }, [m(v(k.value.title), 1)], 64))], 4)) : c("", true)]), default: s(() => [p(n(S), { disabled: "disabled" == k.value.state, multiple: k.value.multiple, treeType: k.value.treeType, size: k.value.size, value: T.value.value, "onUpdate:value": t2[0] || (t2[0] = (e4) => T.value.value = e4), models: T.value, openTree: false, fields: [], placeholder: "请选择", separator: ",", onSetValue: j }, null, 8, ["disabled", "multiple", "treeType", "size", "value", "models"])]), _: 1 }, 8, ["required", "class", "label-width", "style"]);
27
+ const l2 = i("el-form-item");
28
+ return u(), r(l2, { required: z.value.required, class: a([C.value, "remove-formLabel-formContent-blankStyle"]), "label-width": z.value.labelWidth, style: o(T.value) }, { label: p(() => [z.value.tittleShow ? (u(), d("div", { key: 0, style: o({ ...x.value, ...k.value, "padding-right": "12px" }) }, [z.value.prefixType ? (u(), r(b, { key: 0, configure: e3.configure }, null, 8, ["configure"])) : (u(), d(m, { key: 1 }, [f(v(z.value.title), 1)], 64))], 4)) : c("", true)]), default: p(() => [s(n(S), { disabled: "disabled" == z.value.state, multiple: z.value.multiple, treeType: z.value.treeType, size: z.value.size, value: F.value.value, "onUpdate:value": t2[0] || (t2[0] = (e4) => F.value.value = e4), models: F.value, openTree: false, fields: [], placeholder: "请选择", separator: ",", onSetValue: j }, null, 8, ["disabled", "multiple", "treeType", "size", "value", "models"])]), _: 1 }, 8, ["required", "class", "label-width", "style"]);
29
29
  };
30
30
  } });
31
31
  export {
@@ -0,0 +1,7 @@
1
+ type CompletionOption = {
2
+ label: string;
3
+ type: string;
4
+ info?: string;
5
+ };
6
+ declare const COMPLETION_DATA: Record<string, CompletionOption[]>;
7
+ export default COMPLETION_DATA;
@@ -0,0 +1,4 @@
1
+ const e = { "window.": [{ label: "window.$PageUtil", type: "property", info: "页面工具方法" }, { label: "window.$message", type: "property", info: "提示信息" }, { label: "window.$http", type: "property", info: "接口调用" }], "window.$http.": [{ label: "window.$http.get(url).then(result => {\n\n})", type: "function", info: "" }, { label: "window.$http.post(url,{}).then(result => {\n\n})", type: "function", info: "" }, { label: "window.$http.delete(url).then(result => {\n\n})", type: "function", info: "" }, { label: "window.$http.put(url).then(result => {\n\n})", type: "function", info: "" }, { label: "window.$http.patch(url).then(result => {\n\n})", type: "function", info: "" }], "window.$message.": [{ label: "window.$message.info()", type: "function", info: "提示消息" }, { label: "window.$message.success()", type: "function", info: "成功消息" }, { label: "window.$message.warning()", type: "function", info: "警告消息" }, { label: "window.$message.error()", type: "function", info: "错误消息" }], "window.$PageUtil.": [{ label: "window.$PageUtil.standardEvents", type: "function", info: "标准事件" }, { label: 'window.$PageUtil.getCustomFunc(params.pageContext, "xxxx")', type: "function", info: "获取自定义方法" }, { label: 'window.$PageUtil.getComponentRefByProp(params.pageContext, "xxxx")', type: "function", info: "根据属性获取组件引用对象" }, { label: 'window.$PageUtil.getComponentRefByCode(params.pageContext, "12c216ce9d424259974a56436c5af4cc")', type: "function", info: "根据组件唯一编码获取组件引用对象" }, { label: "window.$PageUtil.getEntity(params.pageContext)", type: "function", info: "获得实体" }, { label: 'window.$PageUtil.getEntityValue(params.pageContext, "xxxx")', type: "function", info: "获得实体属性值" }, { label: "window.$PageUtil.getPageData(params.pageContext)", type: "function", info: "获得页面变量" }, { label: 'window.$PageUtil.getPageDataValue(params.pageContext,"xxxx")', type: "function", info: "获得页面变量属性值" }, { label: "window.$PageUtil.getAdditionalParams(params.pageContext)", type: "function", info: "获得附加参数对象" }, { label: 'window.$PageUtil.getAdditionalParamValue(params.pageContext,"xxxx")', type: "function", info: "获得某附加参数值" }, { label: "window.$PageUtil.getFormViewData(params.pageContext)", type: "function", info: "获得表单数据查看信息" }, { label: "window.$PageUtil.getFormData(params.pageContext,id)", type: "function", info: "重新请求获得表单数据" }, { label: 'window.$PageUtil.setEntityDataValue(params.pageContext, {"name":"xxx",age:1})', type: "function", info: "设置Data值" }, { label: 'window.$PageUtil.setEntityPageValue(params.pageContext, {"name":"xxx",age:1})', type: "function", info: "设置页面变量值" }, { label: 'window.$PageUtil.setEntityValueByType(params.pageContext,"page",{"name":"xxx",age:1})', type: "function", info: "根据类型设置值" }, { label: 'window.$PageUtil.showElement(params.pageContext,["NAME","AGE"])', type: "function", info: "显示页面中的某个组件元素" }, { label: 'window.$PageUtil.hideElement(params.pageContext,["NAME","AGE"])', type: "function", info: "隐藏页面中的某个组件元素" }, { label: 'window.$PageUtil.enableElement(params.pageContext,["NAME","AGE"])', type: "function", info: "设置组件元素可用状态" }, { label: 'window.$PageUtil.disableElement(params.pageContext,["NAME","AGE"])', type: "function", info: "禁用页面中的某个组件元素" }, { label: "window.$PageUtil.disabledAllFields(params.pageContext)", type: "function", info: "禁用所有字段" }, { label: "window.$PageUtil.dynamicControlFormEdit(params.pageContext,[])", type: "function", info: "表单编辑权限动态控制" }, { label: "window.$PageUtil.dynamicControlTableEdit(params.pageContext,[],tableCode?)", type: "function", info: "控制表格编辑权限" }, { label: "window.$PageUtil.openPage(params.pageContext,openParam)", type: "function", info: "打开页面" }, { label: "window.$PageUtil.refreshPage(params.pageContext,id)", type: "function", info: "刷新页面" }, { label: "window.$PageUtil.refreshSubTableHandle(params.pageContext,tableCode)", type: "function", info: "刷新表单中子表内容" }, { label: "window.$PageUtil.refreshChildData(params.pageContextt, tableCode, data)", type: "function", info: "更新子表集合" }, { label: "window.$PageUtil.isMobile()", type: "function", info: "是否是移动端" }, { label: "window.$PageUtil.getServerConfigValue(key)", type: "function", info: "根据key获得配置信息" }, { label: "window.$PageUtil.getBackendUrl(params.pageContext)", type: "function", info: "获得当前系统后端访问路径" }, { label: "window.$PageUtil.getPlateBackendUrl()", type: "function", info: "获得平台后端访问路径" }], "logicContext.": [{ label: "logicContext.page", type: "property", info: "页面变量" }, { label: "logicContext.logic", type: "property", info: "页面逻辑" }, { label: "logicContext.task", type: "property", info: "任务变量" }, { label: "logicContext.context", type: "property", info: "上下文变量" }, { label: "logicContext.system", type: "property", info: "系统变量" }, { label: "logicContext.data", type: "property", info: "数据模型变量" }] };
2
+ export {
3
+ e as default
4
+ };
@@ -1,7 +1,7 @@
1
1
  import o from "./config.vue3.js";
2
- /* empty css */
2
+ /* empty css */
3
3
  import e from "../../../../../_virtual/_plugin-vue_export-helper.js";
4
- const r = e(o, [["__scopeId", "data-v-8dba0ddd"]]);
4
+ const r = e(o, [["__scopeId", "data-v-c8908117"]]);
5
5
  export {
6
6
  r as default
7
7
  };