super-page-designer 2.2.77-sit3 → 2.2.77-sit7

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 (20) hide show
  1. package/dist/es/components/design/utils/assemblys-config.js +1 -1
  2. package/dist/es/components/design/views/assemblys/button/button/button-attr-advanced.vue.js +21 -21
  3. package/dist/es/components/design/views/assemblys/common/common-icon-bind.vue.js +64 -60
  4. package/dist/es/components/design/views/assemblys/common/common-variable-bind.vue.js +1 -1
  5. package/dist/es/components/design/views/assemblys/common/page-permission-select.vue.js +64 -60
  6. package/dist/es/components/design/views/assemblys/data/component/data-origin.vue2.js +1 -1
  7. package/dist/es/components/design/views/assemblys/data/table/table-attr-base.vue.js +3 -3
  8. package/dist/es/components/design/views/assemblys/data/table/table-attr.vue2.js +11 -11
  9. package/dist/es/components/design/views/assemblys/form/common/data-format.vue.js +1 -1
  10. package/dist/es/components/design/views/assemblys/form/common/dataorigin-input-table.vue.js +2 -26
  11. package/dist/es/components/design/views/assemblys/form/common/dataorigin-input-table.vue2.js +26 -2
  12. package/dist/es/components/design/views/assemblys/form/common/hyperlink-mult-config.vue.js +33 -25
  13. package/dist/es/components/design/views/assemblys/workflow/component/combination.vue.js +24 -22
  14. package/dist/es/components/design/views/design/page-event/{config.vue2.js → config.vue.js} +1 -1
  15. package/dist/es/components/design/views/design/page-event/page-event-content.vue.js +1 -1
  16. package/dist/es/components/design/views/design/view/view-design-display.vue2.js +1 -1
  17. package/dist/es/index.js +1 -1
  18. package/dist/es/style.css +12248 -11680
  19. package/package.json +5 -5
  20. /package/dist/es/components/design/views/assemblys/common/{common-variable-bind.vue2.js → common-variable-bind.vue3.js} +0 -0
@@ -1,5 +1,5 @@
1
1
  import { defineComponent as e, ref as l, onMounted as a, resolveComponent as t, createBlock as o, openBlock as u, withCtx as i, createElementVNode as n, createVNode as s, createCommentVNode as d, withDirectives as r, unref as m, createElementBlock as p, Fragment as c, renderList as b, createTextVNode as f, vShow as y, normalizeClass as v } from "vue";
2
- import V from "./dataorigin-input-table.vue.js";
2
+ import V from "./dataorigin-input-table.vue2.js";
3
3
  import g from "./condition.vue.js";
4
4
  import S from "./row-ul-li.vue.js";
5
5
  import "uuid";
@@ -1,28 +1,4 @@
1
- import { defineComponent as e, ref as l, watch as a, resolveComponent as t, createElementBlock as o, openBlock as d, Fragment as u, createVNode as n, withCtx as i, unref as s, createElementVNode as m, createTextVNode as r } from "vue";
2
- import { Search as p } from "@element-plus/icons-vue";
3
- const f = { class: "dialog-footer" }, v = e({ __name: "dataorigin-input-table", props: { modelValue: { type: String, default: "" } }, emits: ["update:modelValue"], setup(e2, { emit: v2 }) {
4
- const c = e2, g = l(c.modelValue), V = v2, h = [{ id: 1, date: "2016-05-03", name: "Tom", address: "No. 189, Grove St, Los Angeles" }, { id: 2, date: "2016-05-02", name: "Tom", address: "No. 189, Grove St, Los Angeles" }, { id: 3, date: "2016-05-04", name: "Tom", address: "No. 189, Grove St, Los Angeles" }, { id: 4, date: "2016-05-01", name: "Tom", address: "No. 189, Grove St, Los Angeles" }], b = l(false), _ = l([]);
5
- function y() {
6
- if (_.value.length > 0) {
7
- let e3 = "";
8
- _.value.forEach((l2) => {
9
- e3 = e3 + l2.name + ",";
10
- }), e3 = e3.substring(0, e3.length - 1), V("update:modelValue", e3), b.value = false;
11
- } else b.value = false;
12
- }
13
- function S(e3) {
14
- _.value = e3;
15
- }
16
- function w() {
17
- b.value = true;
18
- }
19
- return a(() => c.modelValue, (e3) => {
20
- g.value = e3;
21
- }), (e3, l2) => {
22
- const a2 = t("el-icon"), v3 = t("el-input"), c2 = t("el-table-column"), V2 = t("el-table"), _2 = t("el-button"), A = t("el-dialog");
23
- return d(), o(u, null, [n(v3, { modelValue: g.value, "onUpdate:modelValue": l2[0] || (l2[0] = (e4) => g.value = e4), placeholder: "请选择", onClick: w }, { suffix: i(() => [n(a2, { onClick: w }, { default: i(() => [n(s(p))]), _: 1 })]), _: 1 }, 8, ["modelValue"]), n(A, { modelValue: b.value, "onUpdate:modelValue": l2[2] || (l2[2] = (e4) => b.value = e4), title: "Tips", width: "500" }, { footer: i(() => [m("div", f, [n(_2, { type: "default", onClick: l2[1] || (l2[1] = (e4) => b.value = false) }, { default: i(() => l2[3] || (l2[3] = [r("取消")])), _: 1 }), n(_2, { type: "primary", onClick: y }, { default: i(() => l2[4] || (l2[4] = [r(" 确定 ")])), _: 1 })])]), default: i(() => [n(V2, { data: h, style: { width: "100%" }, onSelectionChange: S }, { default: i(() => [n(c2, { type: "selection", width: "55" }), n(c2, { prop: "date", label: "Date", width: "180" }), n(c2, { prop: "name", label: "Name", width: "180" }), n(c2, { prop: "address", label: "Address" })]), _: 1 })]), _: 1 }, 8, ["modelValue"])], 64);
24
- };
25
- } });
1
+ import t from "./dataorigin-input-table.vue2.js";
26
2
  export {
27
- v as default
3
+ t as default
28
4
  };
@@ -1,4 +1,28 @@
1
- import t from "./dataorigin-input-table.vue.js";
1
+ import { defineComponent as e, ref as l, watch as a, resolveComponent as t, createElementBlock as o, openBlock as d, Fragment as u, createVNode as n, withCtx as i, unref as s, createElementVNode as m, createTextVNode as r } from "vue";
2
+ import { Search as p } from "@element-plus/icons-vue";
3
+ const f = { class: "dialog-footer" }, v = e({ __name: "dataorigin-input-table", props: { modelValue: { type: String, default: "" } }, emits: ["update:modelValue"], setup(e2, { emit: v2 }) {
4
+ const c = e2, g = l(c.modelValue), V = v2, h = [{ id: 1, date: "2016-05-03", name: "Tom", address: "No. 189, Grove St, Los Angeles" }, { id: 2, date: "2016-05-02", name: "Tom", address: "No. 189, Grove St, Los Angeles" }, { id: 3, date: "2016-05-04", name: "Tom", address: "No. 189, Grove St, Los Angeles" }, { id: 4, date: "2016-05-01", name: "Tom", address: "No. 189, Grove St, Los Angeles" }], b = l(false), _ = l([]);
5
+ function y() {
6
+ if (_.value.length > 0) {
7
+ let e3 = "";
8
+ _.value.forEach((l2) => {
9
+ e3 = e3 + l2.name + ",";
10
+ }), e3 = e3.substring(0, e3.length - 1), V("update:modelValue", e3), b.value = false;
11
+ } else b.value = false;
12
+ }
13
+ function S(e3) {
14
+ _.value = e3;
15
+ }
16
+ function w() {
17
+ b.value = true;
18
+ }
19
+ return a(() => c.modelValue, (e3) => {
20
+ g.value = e3;
21
+ }), (e3, l2) => {
22
+ const a2 = t("el-icon"), v3 = t("el-input"), c2 = t("el-table-column"), V2 = t("el-table"), _2 = t("el-button"), A = t("el-dialog");
23
+ return d(), o(u, null, [n(v3, { modelValue: g.value, "onUpdate:modelValue": l2[0] || (l2[0] = (e4) => g.value = e4), placeholder: "请选择", onClick: w }, { suffix: i(() => [n(a2, { onClick: w }, { default: i(() => [n(s(p))]), _: 1 })]), _: 1 }, 8, ["modelValue"]), n(A, { modelValue: b.value, "onUpdate:modelValue": l2[2] || (l2[2] = (e4) => b.value = e4), title: "Tips", width: "500" }, { footer: i(() => [m("div", f, [n(_2, { type: "default", onClick: l2[1] || (l2[1] = (e4) => b.value = false) }, { default: i(() => l2[3] || (l2[3] = [r("取消")])), _: 1 }), n(_2, { type: "primary", onClick: y }, { default: i(() => l2[4] || (l2[4] = [r(" 确定 ")])), _: 1 })])]), default: i(() => [n(V2, { data: h, style: { width: "100%" }, onSelectionChange: S }, { default: i(() => [n(c2, { type: "selection", width: "55" }), n(c2, { prop: "date", label: "Date", width: "180" }), n(c2, { prop: "name", label: "Name", width: "180" }), n(c2, { prop: "address", label: "Address" })]), _: 1 })]), _: 1 }, 8, ["modelValue"])], 64);
24
+ };
25
+ } });
2
26
  export {
3
- t as default
27
+ v as default
4
28
  };
@@ -1,38 +1,46 @@
1
- import { defineComponent as e, ref as l, resolveComponent as a, createElementBlock as n, openBlock as i, Fragment as t, createVNode as o, withCtx as u, createBlock as d, createCommentVNode as g, createTextVNode as p, toDisplayString as r, renderList as s, unref as m, createElementVNode as c } from "vue";
2
- import f from "./suffixmodule.vue.js";
3
- import k from "./condition.vue.js";
4
- import { getCustomFuncs as P } from "../../../../utils/page-event-util.js";
5
- const y = { class: "dialog-footer" }, v = e({ __name: "hyperlink-mult-config", props: { linkPage: {}, pageDesign: {}, tableConfigure: {}, isDialog: { type: Boolean }, isButton: { type: Boolean, default: true } }, emits: ["update:linkPage"], setup(e2, { emit: v2 }) {
6
- const b = l(false), C = l({}), _ = l(null), j = v2, x = e2;
7
- function h() {
8
- x.linkPage || j("update:linkPage", []), x.linkPage.push({ jumpConditionType: "none", conditions: [], customFunc: "", jumpPageSetting: {} });
9
- }
10
- function $(e3) {
11
- C.value = e3, b.value = true;
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";
2
+ import k from "./suffixmodule.vue.js";
3
+ import P from "./condition.vue.js";
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);
7
+ if (h.linkPage) {
8
+ if (!Array.isArray(h.linkPage)) {
9
+ const e3 = JSON.parse(JSON.stringify(h.linkPage));
10
+ x("update:linkPage", [e3]);
11
+ }
12
+ } else x("update:linkPage", []);
13
+ function $() {
14
+ h.linkPage || x("update:linkPage", []), h.linkPage.push({ jumpConditionType: "none", conditions: [], customFunc: "", jumpPageSetting: {} });
12
15
  }
13
16
  function T(e3) {
14
- _.value.changeTableFields(x.tableConfigure.modelFields);
17
+ _.value = e3, C.value = true;
15
18
  }
16
19
  function V(e3) {
20
+ j.value.changeTableFields(h.tableConfigure.modelFields);
21
+ }
22
+ function D(e3) {
17
23
  e3();
18
24
  }
19
- return x.linkPage || (x.linkPage = [], j("update:linkPage", [])), (e3, l2) => {
20
- const v3 = a("el-button"), j2 = a("el-link"), D = a("el-tooltip"), S = a("el-table-column"), F = a("Plus"), z = a("el-icon"), U = a("Delete"), w = a("el-table"), B = a("el-radio"), N = a("el-radio-group"), R = a("el-form-item"), q = a("el-option"), A = a("el-select"), E = a("el-dialog");
21
- return i(), n(t, null, [o(w, { data: e3.linkPage, style: { width: "100%" } }, { default: u(() => [o(S, { prop: "value", label: "链接页面", align: "center" }, { default: u((a2) => {
25
+ return a(() => {
26
+ S.value = true;
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) => {
22
30
  var _a, _b, _c, _d;
23
- return [((_a = e3.linkPage[a2.$index].jumpPageSetting) == null ? void 0 : _a.jumpPageUrl) ? "page" === ((_b = e3.linkPage[a2.$index].jumpPageSetting) == null ? void 0 : _b.linkType) ? (i(), d(j2, { key: 1, type: "primary", onClick: (e4) => $(a2.$index) }, { default: u(() => {
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(() => {
24
32
  var _a2;
25
- return [p(r((_a2 = e3.linkPage[a2.$index].jumpPageSetting) == null ? void 0 : _a2.jumpPageName), 1)];
26
- }), _: 2 }, 1032, ["onClick"])) : "url" === ((_c = e3.linkPage[a2.$index].jumpPageSetting) == null ? void 0 : _c.linkType) ? (i(), d(D, { key: 2, class: "box-item", content: (_d = e3.linkPage[a2.$index].jumpPageSetting) == null ? void 0 : _d.jumpPageUrl }, { default: u(() => [o(j2, { type: "primary", onClick: (e4) => $(a2.$index) }, { default: u(() => {
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(() => {
27
35
  var _a2;
28
- return [p(r((_a2 = e3.linkPage[a2.$index].jumpPageSetting) == null ? void 0 : _a2.jumpPageUrl), 1)];
29
- }), _: 2 }, 1032, ["onClick"])]), _: 2 }, 1032, ["content"])) : g("", true) : (i(), d(v3, { key: 0, type: "primary", onClick: (e4) => $(a2.$index) }, { default: u(() => l2[5] || (l2[5] = [p(" 设置 ")])), _: 2 }, 1032, ["onClick"]))];
30
- }), _: 1 }), o(S, { label: "操作", align: "center" }, { header: u(() => [o(z, { size: "14", style: { color: "#5893ef", cursor: "pointer", "font-weight": "bold" }, onClick: h }, { default: u(() => [o(F)]), _: 1 })]), default: u((e4) => [o(z, { size: "14", style: { color: "#5893ef", cursor: "pointer" }, onClick: (l3) => {
31
- return e4.row, a2 = e4.$index, void x.linkPage.splice(a2, 1);
32
- var a2;
33
- } }, { default: u(() => [o(U)]), _: 2 }, 1032, ["onClick"])]), _: 1 })]), _: 1 }, 8, ["data"]), o(E, { "append-to-body": "", modelValue: b.value, "onUpdate:modelValue": l2[4] || (l2[4] = (e4) => b.value = e4), title: "链接配置", width: "500", "before-close": V, "destroy-on-close": "" }, { footer: u(() => [c("div", y, [o(v3, { type: "default", onClick: l2[2] || (l2[2] = (e4) => b.value = false) }, { default: u(() => l2[9] || (l2[9] = [p("取消")])), _: 1 }), o(v3, { type: "primary", onClick: l2[3] || (l2[3] = (e4) => b.value = false) }, { default: u(() => l2[10] || (l2[10] = [p(" 确定 ")])), _: 1 })])]), default: u(() => [o(R, { label: "跳转条件", class: "amb-design-attr-item" }, { default: u(() => [o(N, { modelValue: e3.linkPage[C.value].jumpConditionType, "onUpdate:modelValue": l2[0] || (l2[0] = (l3) => e3.linkPage[C.value].jumpConditionType = l3), onChange: T }, { default: u(() => [o(B, { value: "none", size: "small" }, { default: u(() => l2[6] || (l2[6] = [p("无")])), _: 1 }), o(B, { value: "config", size: "small" }, { default: u(() => l2[7] || (l2[7] = [p("配置条件")])), _: 1 }), o(B, { value: "customFunc", size: "small" }, { default: u(() => l2[8] || (l2[8] = [p("自定义条件")])), _: 1 })]), _: 1 }, 8, ["modelValue"])]), _: 1 }), o(R, { class: "amb-design-attr-item" }, { default: u(() => ["config" === e3.linkPage[C.value].jumpConditionType ? (i(), d(k, { key: 0, title: "跳转条件", buttonText: "设置条件", list: e3.linkPage[C.value].conditions, tableConfigure: e3.tableConfigure, ref_key: "conditionRef", ref: _ }, null, 8, ["list", "tableConfigure"])) : "customFunc" === e3.linkPage[C.value].jumpConditionType ? (i(), d(A, { key: 1, modelValue: e3.linkPage[C.value].customFunc, "onUpdate:modelValue": l2[1] || (l2[1] = (l3) => e3.linkPage[C.value].customFunc = l3), clearable: "", size: "small", placeholder: "请选择" }, { default: u(() => [(i(true), n(t, null, s(m(P)(), (e4) => (i(), d(q, { key: e4.value, label: e4.label, value: e4.value }, null, 8, ["label", "value"]))), 128))]), _: 1 }, 8, ["modelValue"])) : g("", true)]), _: 1 }), o(f, { pageDesign: e3.pageDesign, configure: e3.linkPage[C.value].jumpPageSetting, tableConfigure: e3.tableConfigure, showDisplayConditions: false, isDialog: true }, null, 8, ["pageDesign", "configure", "tableConfigure"])]), _: 1 }, 8, ["modelValue"])], 64);
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) => {
39
+ return e4.row, a3 = e4.$index, void h.linkPage.splice(a3, 1);
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);
34
42
  };
35
43
  } });
36
44
  export {
37
- v as default
45
+ b as default
38
46
  };
@@ -1,14 +1,14 @@
1
1
  import { defineComponent as e, ref as l, resolveComponent as a, createBlock as t, openBlock as o, withCtx as u, createVNode as d, unref as r, createTextVNode as n, createElementBlock as i, Fragment as p, renderList as m } from "vue";
2
- import { CirclePlus as s, Delete as f, Top as c, Bottom as v } from "@element-plus/icons-vue";
2
+ import { CirclePlus as s, Delete as f, Top as v, Bottom as c } from "@element-plus/icons-vue";
3
3
  import b from "../../common/common-variable-bind.vue.js";
4
4
  import "element-plus";
5
- import { getOperators as V } from "../../../../utils/data-table-util.js";
6
- import { getModelOptionsByFields as y } from "../../../../utils/page-table-util.js";
5
+ import { getOperators as y } from "../../../../utils/data-table-util.js";
6
+ import { getModelOptionsByFields as V } from "../../../../utils/page-table-util.js";
7
7
  const g = e({ __name: "combination", props: { list: { type: Array, default: () => [] }, fieldNameList: { type: Array, default: () => [] }, fieldMap: { type: Object, default: () => {
8
8
  } }, dataFieldNameList: { type: Array, default: () => [] }, paramTypes: { type: Array, default: null } }, emits: ["remove", "save", "close"], setup(e2, { emit: g2 }) {
9
- const w = e2, _ = g2, h = l({}), N = l([]), k = l([]), U = l([]);
10
- w.fieldNameList && w.fieldNameList.length > 0 && (U.value = y(w.fieldNameList));
11
- const C = l([]);
9
+ const w = e2, _ = g2, h = l({}), N = l([]), k = l([]), U = l([]), C = l();
10
+ w.fieldNameList && w.fieldNameList.length > 0 && (U.value = V(w.fieldNameList));
11
+ const L = l([]);
12
12
  let j = w.dataFieldNameList;
13
13
  function z() {
14
14
  h.value && 0 !== Object.keys(h.value).length ? N.value = N.value.filter((e3) => e3 != h.value) : N.value.pop();
@@ -16,33 +16,35 @@ const g = e({ __name: "combination", props: { list: { type: Array, default: () =
16
16
  function D(e3) {
17
17
  h.value = e3;
18
18
  }
19
- function L() {
20
- N.value.push({ leftBracket: "", propName: "", operator: "", rightBracket: "", joinSign: "" }), k.value.push([]);
21
- }
22
19
  function x() {
23
- N.value = N.value.filter((e3) => e3.propName), _("save", N.value), _("close");
20
+ N.value.push({ leftBracket: "", propName: "", operator: "", rightBracket: "", joinSign: "" }), k.value.push([]);
24
21
  }
25
- return w.dataFieldNameList && 0 !== w.dataFieldNameList.length ? C.value = y(j) : C.value = U.value, N.value = w.list, N.value.length > 0 && N.value.forEach((e3, l2) => {
22
+ w.dataFieldNameList && 0 !== w.dataFieldNameList.length ? L.value = V(j) : L.value = U.value, N.value = w.list, N.value.length > 0 && N.value.forEach((e3, l2) => {
26
23
  "date" === e3.type ? N.value[l2].isDate = true : N.value[l2].isDate = false;
27
24
  let a2 = w.fieldMap[e3.propDbName];
28
- k.value[l2] = V(a2);
29
- }), (l2, y2) => {
30
- const g3 = a("el-button"), _2 = a("el-row"), h2 = a("el-icon"), j2 = a("el-table-column"), M = a("el-option"), B = a("el-select"), O = a("el-table"), T = a("el-dialog");
31
- return o(), t(T, { "append-to-body": "", "model-value": "", title: "组合条件", width: "70%", "close-on-click-modal": false, "before-close": x }, { default: u(() => [d(_2, { style: { "padding-bottom": "8px" } }, { default: u(() => [d(g3, { icon: r(s), plain: "", type: "primary", onClick: L }, { default: u(() => y2[0] || (y2[0] = [n(" 添加 ")])), _: 1 }, 8, ["icon"]), d(g3, { icon: r(f), plain: "", type: "primary", onClick: z }, { default: u(() => y2[1] || (y2[1] = [n(" 删除 ")])), _: 1 }, 8, ["icon"])]), _: 1 }), d(O, { ref: "tableRef", "highlight-current-row": "", onCurrentChange: D, data: N.value, "row-key": "propName", style: { width: "100%" } }, { default: u(() => [d(j2, { width: "50", align: "center" }, { default: u((e3) => [d(h2, { size: "14", style: { cursor: "pointer" }, onClick: (l3) => function(e4, l4) {
25
+ k.value[l2] = y(a2);
26
+ });
27
+ const M = (e3) => e3.propDbName + e3.operator + e3.propValue;
28
+ function B() {
29
+ N.value = N.value.filter((e3) => e3.propName), _("save", N.value), _("close");
30
+ }
31
+ return (l2, V2) => {
32
+ const g3 = a("el-button"), _2 = a("el-row"), h2 = a("el-icon"), j2 = a("el-table-column"), O = a("el-option"), T = a("el-select"), A = a("el-table"), F = a("el-dialog");
33
+ return o(), t(F, { "append-to-body": "", "model-value": "", title: "组合条件", width: "70%", "close-on-click-modal": false, "before-close": B }, { default: u(() => [d(_2, { style: { "padding-bottom": "8px" } }, { default: u(() => [d(g3, { icon: r(s), plain: "", type: "primary", onClick: x }, { default: u(() => V2[0] || (V2[0] = [n(" 添加 ")])), _: 1 }, 8, ["icon"]), d(g3, { icon: r(f), plain: "", type: "primary", onClick: z }, { default: u(() => V2[1] || (V2[1] = [n(" 删除 ")])), _: 1 }, 8, ["icon"])]), _: 1 }), d(A, { ref_key: "tableRef", ref: C, "highlight-current-row": "", onCurrentChange: D, data: N.value, "row-key": M, style: { width: "100%" } }, { default: u(() => [d(j2, { width: "50", align: "center" }, { default: u((e3) => [d(h2, { size: "14", style: { cursor: "pointer" }, onClick: (l3) => function(e4, l4) {
32
34
  if (0 === l4) return;
33
35
  const a2 = N.value;
34
- [a2[l4 - 1], a2[l4]] = [a2[l4], a2[l4 - 1]];
35
- }(e3.row, e3.$index) }, { default: u(() => [d(r(c))]), _: 2 }, 1032, ["onClick"]), d(h2, { size: "14", style: { "margin-left": "2px", cursor: "pointer" }, onClick: (l3) => function(e4, l4) {
36
+ [a2[l4 - 1], a2[l4]] = [a2[l4], a2[l4 - 1]], C.value.doLayout();
37
+ }(e3.row, e3.$index) }, { default: u(() => [d(r(v))]), _: 2 }, 1032, ["onClick"]), d(h2, { size: "14", style: { "margin-left": "2px", cursor: "pointer" }, onClick: (l3) => function(e4, l4) {
36
38
  if (l4 === N.value.length - 1) return;
37
39
  const a2 = N.value;
38
- [a2[l4], a2[l4 + 1]] = [a2[l4 + 1], a2[l4]];
39
- }(e3.row, e3.$index) }, { default: u(() => [d(r(v))]), _: 2 }, 1032, ["onClick"])]), _: 1 }), d(j2, { prop: "date", label: "(", width: "80", align: "center" }, { default: u((e3) => [d(B, { modelValue: e3.row.leftBracket, "onUpdate:modelValue": (l3) => e3.row.leftBracket = l3, clearable: "", size: "default" }, { default: u(() => [d(M, { label: "", value: "" }), d(M, { label: "(", value: "(" }), d(M, { label: "((", value: "((" }), d(M, { label: "(((", value: "(((" })]), _: 2 }, 1032, ["modelValue", "onUpdate:modelValue"])]), _: 1 }), d(j2, { prop: "name", label: "字段名(*)", align: "center" }, { default: u((l3) => [d(B, { modelValue: l3.row.propDbName, "onUpdate:modelValue": (e3) => l3.row.propDbName = e3, clearable: "", size: "default", onChange: (e3) => function(e4, l4, a2) {
40
+ [a2[l4], a2[l4 + 1]] = [a2[l4 + 1], a2[l4]], C.value.doLayout();
41
+ }(e3.row, e3.$index) }, { default: u(() => [d(r(c))]), _: 2 }, 1032, ["onClick"])]), _: 1 }), d(j2, { prop: "date", label: "(", width: "80", align: "center" }, { default: u((e3) => [d(T, { modelValue: e3.row.leftBracket, "onUpdate:modelValue": (l3) => e3.row.leftBracket = l3, clearable: "", size: "default" }, { default: u(() => [d(O, { label: "", value: "" }), d(O, { label: "(", value: "(" }), d(O, { label: "((", value: "((" }), d(O, { label: "(((", value: "(((" })]), _: 2 }, 1032, ["modelValue", "onUpdate:modelValue"])]), _: 1 }), d(j2, { prop: "name", label: "字段名(*)", align: "center" }, { default: u((l3) => [d(T, { modelValue: l3.row.propDbName, "onUpdate:modelValue": (e3) => l3.row.propDbName = e3, clearable: "", size: "default", onChange: (e3) => function(e4, l4, a2) {
40
42
  const t2 = w.fieldMap[a2];
41
- t2 && "date" === t2.type ? N.value[e4].isDate = true : N.value[e4].isDate = false, l4.propName = t2 ? t2.name : null, l4.dataType = t2 ? t2.dataType : null, k.value[e4] = V(t2);
42
- }(l3.$index, l3.row, l3.row.propDbName) }, { default: u(() => [(o(true), i(p, null, m(e2.fieldNameList, (e3, l4) => (o(), t(M, { key: l4, label: e3.alias, value: e3.dbColumnName }, null, 8, ["label", "value"]))), 128))]), _: 2 }, 1032, ["modelValue", "onUpdate:modelValue", "onChange"])]), _: 1 }), d(j2, { prop: "address", label: "操作符", align: "center" }, { default: u((e3) => [d(B, { modelValue: e3.row.operator, "onUpdate:modelValue": (l3) => e3.row.operator = l3, clearable: "", size: "default" }, { default: u(() => [(o(true), i(p, null, m(k.value[e3.$index], (e4) => (o(), t(M, { key: e4.name, label: e4.label, value: e4.name }, null, 8, ["label", "value"]))), 128))]), _: 2 }, 1032, ["modelValue", "onUpdate:modelValue"])]), _: 1 }), d(j2, { prop: "address", label: "值(*)", align: "center" }, { default: u((l3) => [d(b, { size: "default", modelValue: l3.row.propValue, dataModelOptions: C.value, objModelOptions: U.value, paramTypes: e2.paramTypes, "onUpdate:modelValue": (e3) => {
43
+ t2 && "date" === t2.type ? N.value[e4].isDate = true : N.value[e4].isDate = false, l4.propName = t2 ? t2.name : null, l4.dataType = t2 ? t2.dataType : null, k.value[e4] = y(t2);
44
+ }(l3.$index, l3.row, l3.row.propDbName) }, { default: u(() => [(o(true), i(p, null, m(e2.fieldNameList, (e3, l4) => (o(), t(O, { key: l4, label: e3.alias, value: e3.dbColumnName }, null, 8, ["label", "value"]))), 128))]), _: 2 }, 1032, ["modelValue", "onUpdate:modelValue", "onChange"])]), _: 1 }), d(j2, { prop: "address", label: "操作符", align: "center" }, { default: u((e3) => [d(T, { modelValue: e3.row.operator, "onUpdate:modelValue": (l3) => e3.row.operator = l3, clearable: "", size: "default" }, { default: u(() => [(o(true), i(p, null, m(k.value[e3.$index], (e4) => (o(), t(O, { key: e4.name, label: e4.label, value: e4.name }, null, 8, ["label", "value"]))), 128))]), _: 2 }, 1032, ["modelValue", "onUpdate:modelValue"])]), _: 1 }), d(j2, { prop: "address", label: "值(*)", align: "center" }, { default: u((l3) => [d(b, { size: "default", modelValue: l3.row.propValue, dataModelOptions: L.value, objModelOptions: U.value, paramTypes: e2.paramTypes, "onUpdate:modelValue": (e3) => {
43
45
  return a2 = e3, void (l3.row.propValue = a2);
44
46
  var a2;
45
- } }, null, 8, ["modelValue", "dataModelOptions", "objModelOptions", "paramTypes", "onUpdate:modelValue"])]), _: 1 }), d(j2, { prop: "address", label: "日期格式", align: "center" }, { default: u((e3) => [d(B, { modelValue: e3.row.date, "onUpdate:modelValue": (l3) => e3.row.date = l3, clearable: "", disabled: !e3.row.isDate, size: "default" }, { default: u(() => [d(M, { label: "年份", value: "year" }), d(M, { label: "季度", value: "quarter" }), d(M, { label: "月份", value: "month" }), d(M, { label: "日", value: "day" })]), _: 2 }, 1032, ["modelValue", "onUpdate:modelValue", "disabled"])]), _: 1 }), d(j2, { prop: "address", label: ")", width: "80", align: "center" }, { default: u((e3) => [d(B, { modelValue: e3.row.rightBracket, "onUpdate:modelValue": (l3) => e3.row.rightBracket = l3, clearable: "", size: "default" }, { default: u(() => [d(M, { label: "", value: "" }), d(M, { label: ")", value: ")" }), d(M, { label: "))", value: "))" }), d(M, { label: ")))", value: ")))" })]), _: 2 }, 1032, ["modelValue", "onUpdate:modelValue"])]), _: 1 }), d(j2, { prop: "address", label: "并且/或者", align: "center" }, { default: u((e3) => [d(B, { modelValue: e3.row.joinSign, "onUpdate:modelValue": (l3) => e3.row.joinSign = l3, clearable: "", size: "default" }, { default: u(() => [d(M, { label: "或者", value: "or" }), d(M, { label: "并且", value: "and" })]), _: 2 }, 1032, ["modelValue", "onUpdate:modelValue"])]), _: 1 }), d(j2, { prop: "address", label: "变量为空时", align: "center" }, { default: u((e3) => [d(B, { modelValue: e3.row.variableIsNull, "onUpdate:modelValue": (l3) => e3.row.variableIsNull = l3, clearable: "", size: "default" }, { default: u(() => [d(M, { label: "Null", value: "null" }), d(M, { label: "忽略(1=1)", value: "1=1" }), d(M, { label: "不符合(1<>1)", value: "1<>1" })]), _: 2 }, 1032, ["modelValue", "onUpdate:modelValue"])]), _: 1 })]), _: 1 }, 8, ["data"])]), _: 1 });
47
+ } }, null, 8, ["modelValue", "dataModelOptions", "objModelOptions", "paramTypes", "onUpdate:modelValue"])]), _: 1 }), d(j2, { prop: "address", label: "日期格式", align: "center" }, { default: u((e3) => [d(T, { modelValue: e3.row.date, "onUpdate:modelValue": (l3) => e3.row.date = l3, clearable: "", disabled: !e3.row.isDate, size: "default" }, { default: u(() => [d(O, { label: "年份", value: "year" }), d(O, { label: "季度", value: "quarter" }), d(O, { label: "月份", value: "month" }), d(O, { label: "日", value: "day" })]), _: 2 }, 1032, ["modelValue", "onUpdate:modelValue", "disabled"])]), _: 1 }), d(j2, { prop: "address", label: ")", width: "80", align: "center" }, { default: u((e3) => [d(T, { modelValue: e3.row.rightBracket, "onUpdate:modelValue": (l3) => e3.row.rightBracket = l3, clearable: "", size: "default" }, { default: u(() => [d(O, { label: "", value: "" }), d(O, { label: ")", value: ")" }), d(O, { label: "))", value: "))" }), d(O, { label: ")))", value: ")))" })]), _: 2 }, 1032, ["modelValue", "onUpdate:modelValue"])]), _: 1 }), d(j2, { prop: "address", label: "并且/或者", align: "center" }, { default: u((e3) => [d(T, { modelValue: e3.row.joinSign, "onUpdate:modelValue": (l3) => e3.row.joinSign = l3, clearable: "", size: "default" }, { default: u(() => [d(O, { label: "或者", value: "or" }), d(O, { label: "并且", value: "and" })]), _: 2 }, 1032, ["modelValue", "onUpdate:modelValue"])]), _: 1 }), d(j2, { prop: "address", label: "变量为空时", align: "center" }, { default: u((e3) => [d(T, { modelValue: e3.row.variableIsNull, "onUpdate:modelValue": (l3) => e3.row.variableIsNull = l3, clearable: "", size: "default" }, { default: u(() => [d(O, { label: "Null", value: "null" }), d(O, { label: "忽略(1=1)", value: "1=1" }), d(O, { label: "不符合(1<>1)", value: "1<>1" })]), _: 2 }, 1032, ["modelValue", "onUpdate:modelValue"])]), _: 1 })]), _: 1 }, 8, ["data"])]), _: 1 });
46
48
  };
47
49
  } });
48
50
  export {
@@ -1,5 +1,5 @@
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
4
  const r = e(o, [["__scopeId", "data-v-8dba0ddd"]]);
5
5
  export {
@@ -1,6 +1,6 @@
1
1
  import { defineComponent as e, ref as t, onMounted as n, onUnmounted as a, watch as l, resolveComponent as u, createElementBlock as o, openBlock as s, createElementVNode as i, createVNode as r, withDirectives as m, withCtx as c, vShow as d, unref as v, createTextVNode as p, toDisplayString as f, Fragment as g, renderList as b, createBlock as y } from "vue";
2
2
  import { ElMessageBox as x, ElMessage as h } from "element-plus";
3
- import C from "./config.vue2.js";
3
+ import C from "./config.vue.js";
4
4
  import { standardButtonOperations as E } from "../../../utils/assemblys-config.js";
5
5
  import { findDesignItemByUuid as S, getUuidv4 as V, deepCopy as k } from "../../../utils/common-util.js";
6
6
  import { usePageContextStore as _ } from "../../../../../stores/page-store.js";
@@ -16,7 +16,7 @@ import "@codemirror/autocomplete";
16
16
  import "@codemirror/language";
17
17
  import "@codemirror/search";
18
18
  import "js-beautify";
19
- /* empty css */
19
+ /* empty css */
20
20
  import "../../../utils/assemblys-config.js";
21
21
  import "../../../../../stores/page-store.js";
22
22
  import "../../../../../stores/event-undo-redo-store.js";
package/dist/es/index.js CHANGED
@@ -1,4 +1,4 @@
1
- /* empty css */
1
+ /* empty css */
2
2
  /* empty css */
3
3
  import { default as default2 } from "./components/design/views/design/page-design.vue.js";
4
4
  export {