super-page-designer 2.2.20 → 2.2.24

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 (48) hide show
  1. package/dist/es/components/design/utils/page-explore-util.js +10 -10
  2. package/dist/es/components/design/utils/page-permission-util.js +35 -33
  3. package/dist/es/components/design/views/assemblys/chart/column-line/column-line-design.vue2.js +24 -22
  4. package/dist/es/components/design/views/assemblys/chart/common/common-attr-clickset.vue.js +39 -36
  5. package/dist/es/components/design/views/assemblys/chart/common/common-attr-data.vue.js +43 -40
  6. package/dist/es/components/design/views/assemblys/chart/common/common-attr-groupby.vue.js +43 -40
  7. package/dist/es/components/design/views/assemblys/chart/common/common-home-chart.vue.js +1 -1
  8. package/dist/es/components/design/views/assemblys/chart/common/common-home-chart.vue2.js +14 -13
  9. package/dist/es/components/design/views/assemblys/chart/gauge/gauge-attr-data.vue.js +33 -30
  10. package/dist/es/components/design/views/assemblys/chart/gauge/gauge-design.vue2.js +25 -23
  11. package/dist/es/components/design/views/assemblys/chart/pie/pie-design.vue2.js +25 -23
  12. package/dist/es/components/design/views/assemblys/chart/radar/radar-attr-data.vue.js +33 -30
  13. package/dist/es/components/design/views/assemblys/chart/radar/radar-design.vue2.js +25 -23
  14. package/dist/es/components/design/views/assemblys/chart/scatter/scatter-attr-data.vue.js +38 -35
  15. package/dist/es/components/design/views/assemblys/chart/scatter/scatter-design.vue2.js +23 -21
  16. package/dist/es/components/design/views/assemblys/common/common-icon-bind.vue.js +60 -57
  17. package/dist/es/components/design/views/assemblys/common/common-select-page.vue.js +36 -33
  18. package/dist/es/components/design/views/assemblys/common/common-select-table.vue.js +44 -41
  19. package/dist/es/components/design/views/assemblys/common/common-variable-bind.vue.js +3 -3
  20. package/dist/es/components/design/views/assemblys/common/{common-variable-bind.vue2.js → common-variable-bind.vue3.js} +8 -8
  21. package/dist/es/components/design/views/assemblys/common/page-permission-select.vue.js +25 -25
  22. package/dist/es/components/design/views/assemblys/common-attr-events.vue.js +14 -12
  23. package/dist/es/components/design/views/assemblys/data/component/column-config.vue.js +78 -74
  24. package/dist/es/components/design/views/assemblys/data/component/composite-header.vue.js +1 -1
  25. package/dist/es/components/design/views/assemblys/data/component/composite-header.vue2.js +111 -107
  26. package/dist/es/components/design/views/assemblys/data/component/table-children-column.vue.js +41 -39
  27. package/dist/es/components/design/views/assemblys/form/checkbox/checkbox-design.vue2.js +10 -8
  28. package/dist/es/components/design/views/assemblys/form/common/data-linkage.vue.js +26 -22
  29. package/dist/es/components/design/views/assemblys/form/common/data-origin-autoset.vue.js +41 -37
  30. package/dist/es/components/design/views/assemblys/form/common/data-origin-service-in.vue.js +30 -26
  31. package/dist/es/components/design/views/assemblys/form/common/linkpage-page-callback.vue.js +30 -26
  32. package/dist/es/components/design/views/assemblys/form/common/uploading.vue.js +1 -1
  33. package/dist/es/components/design/views/assemblys/form/dept-tree/depttree-autoset.vue.js +30 -26
  34. package/dist/es/components/design/views/assemblys/form/radio/radio-design.vue2.js +12 -10
  35. package/dist/es/components/design/views/assemblys/form/rich-text/richtext-design.vue2.js +29 -26
  36. package/dist/es/components/design/views/assemblys/form/select/select-design.vue2.js +18 -15
  37. package/dist/es/components/design/views/assemblys/object-design.vue.js +28 -20
  38. package/dist/es/components/design/views/assemblys/page/page-attr-permissions.vue.js +38 -34
  39. package/dist/es/components/design/views/design/page-event/{config.vue.js → config.vue2.js} +2 -2
  40. package/dist/es/components/design/views/design/page-event/config.vue3.js +43 -40
  41. package/dist/es/components/design/views/design/page-event/page-event-container.vue.js +48 -45
  42. package/dist/es/components/design/views/design/page-event/page-event-content.vue.js +22 -22
  43. package/dist/es/components/design/views/design/view/components/quick-add-fields.vue.js +67 -63
  44. package/dist/es/components/design/views/design/view/view-design-display.vue.js +92 -89
  45. package/dist/es/stores/event-undo-redo-store.d.ts +4 -1
  46. package/dist/es/stores/event-undo-redo-store.js +5 -2
  47. package/dist/es/style.css +13 -13
  48. package/package.json +4 -4
@@ -1,52 +1,55 @@
1
- import { defineComponent as e, ref as l, reactive as t, resolveComponent as a, createBlock as o, openBlock as n, withCtx as s, createElementVNode as i, createVNode as r, createElementBlock as u, Fragment as p, renderList as d, unref as c, createTextVNode as m, toDisplayString as g } from "vue";
2
- import { Search as h, RefreshLeft as y } from "@element-plus/icons";
3
- import b from "agilebuilder-ui/src/utils/request";
4
- import { EnableStates as f } from "../../../utils/interfaces/page-design-types.js";
5
- const V = { style: { "background-color": "rgba(88, 147, 239, 0.06)", padding: "10px" } }, v = e({ __name: "common-select-page", props: { systemCode: {}, systemVersion: {} }, emits: ["selectPage"], setup(e2, { expose: v2, emit: w }) {
6
- const z = e2, C = w, P = l(300), x = l(false), S = t({ systemId: null, searchValue: "" });
7
- function I() {
8
- S.systemId = null, S.searchValue = "", B();
1
+ import { defineComponent as e, ref as l, reactive as t, onUnmounted as a, resolveComponent as o, createBlock as n, openBlock as s, withCtx as i, createElementVNode as r, createVNode as u, createElementBlock as p, Fragment as d, renderList as c, unref as m, createTextVNode as g, toDisplayString as h } from "vue";
2
+ import { Search as y, RefreshLeft as b } from "@element-plus/icons";
3
+ import f from "agilebuilder-ui/src/utils/request";
4
+ import { EnableStates as V } from "../../../utils/interfaces/page-design-types.js";
5
+ const v = { style: { "background-color": "rgba(88, 147, 239, 0.06)", padding: "10px" } }, w = e({ __name: "common-select-page", props: { systemCode: {}, systemVersion: {} }, emits: ["selectPage"], setup(e2, { expose: w2, emit: z }) {
6
+ const C = e2, P = z, x = l(300), S = l(false), I = t({ systemId: null, searchValue: "" });
7
+ function _() {
8
+ I.systemId = null, I.searchValue = "", q();
9
9
  }
10
- const _ = t({ currentPage: 1, pageSize: 20, showTotal: true, total: 0 }), k = l([]), A = l([{ value: "", version: 1, label: "" }]), T = l({});
11
- let U = false;
12
- let j = null;
13
- function $({ column: e3 }) {
14
- j = e3, B();
10
+ const k = t({ currentPage: 1, pageSize: 20, showTotal: true, total: 0 }), A = l([]), T = l([{ value: "", version: 1, label: "" }]), U = l({});
11
+ let j, $ = false;
12
+ a(() => {
13
+ j && clearTimeout(j);
14
+ });
15
+ let B = null;
16
+ function E({ column: e3 }) {
17
+ B = e3, q();
15
18
  }
16
- function B() {
17
- const e3 = { pagination: { currentPage: _.currentPage, pageSize: _.pageSize, showTotal: true }, searchForm: [], dynamicColumnInfo: [], sorts: [] };
18
- null != j && e3.sorts.push({ prop: j.property, order: "ascending" == j.order ? "asc" : "desc" });
19
- let l2 = S.systemId;
20
- S.tableType && S.tableType;
19
+ function q() {
20
+ const e3 = { pagination: { currentPage: k.currentPage, pageSize: k.pageSize, showTotal: true }, searchForm: [], dynamicColumnInfo: [], sorts: [] };
21
+ null != B && e3.sorts.push({ prop: B.property, order: "ascending" == B.order ? "asc" : "desc" });
22
+ let l2 = I.systemId;
23
+ I.tableType && I.tableType;
21
24
  const t2 = window.$vueApp.config.globalProperties.baseAPI + "/mms/app-pages/listBySystem/" + (l2 || 0);
22
25
  let a2 = { searchParam: e3, searchInfo: {} };
23
- S.searchValue && (a2.searchInfo.name = S.searchValue), b.post(t2, a2).then((e4) => {
24
- k.value = e4.data, _.currentPage = e4.page, _.pageSize = e4.size, _.total = e4.total;
26
+ I.searchValue && (a2.searchInfo.name = I.searchValue), f.post(t2, a2).then((e4) => {
27
+ A.value = e4.data, k.currentPage = e4.page, k.pageSize = e4.size, k.total = e4.total;
25
28
  });
26
29
  }
27
- return v2({ openDialog: function() {
30
+ return w2({ openDialog: function() {
28
31
  let e3 = window.innerHeight - 140 - 176;
29
- e3 > 500 ? e3 = 500 : e3 < 100 && (e3 = 100), P.value = e3, x.value = true, U || (U = true, b.get(window.$vueApp.config.globalProperties.baseAPI + "/component/super-charts/findAllSystem").then((e4) => {
32
+ e3 > 500 ? e3 = 500 : e3 < 100 && (e3 = 100), x.value = e3, S.value = true, $ || ($ = true, f.get(window.$vueApp.config.globalProperties.baseAPI + "/component/super-charts/findAllSystem").then((e4) => {
30
33
  const l2 = e4, t2 = [], a2 = {};
31
34
  for (let e5 of l2) {
32
- if (T[e5.id] = e5.name, e5.deleted) continue;
33
- if (e5.enabledState != f.ENABLE) continue;
35
+ if (U[e5.id] = e5.name, e5.deleted) continue;
36
+ if (e5.enabledState != V.ENABLE) continue;
34
37
  const l3 = a2[e5.code];
35
- null != l3 ? e5.code == z.systemCode ? l3.publishVersion != z.systemVersion && (e5.code == z.systemCode && e5.publishVersion == z.systemVersion || e5.publishVersion > l3.publishVersion) && (a2[e5.code] = e5) : e5.publishVersion > l3.publishVersion && (a2[e5.code] = e5) : null == l3 && (a2[e5.code] = e5, t2.push(e5.code));
38
+ null != l3 ? e5.code == C.systemCode ? l3.publishVersion != C.systemVersion && (e5.code == C.systemCode && e5.publishVersion == C.systemVersion || e5.publishVersion > l3.publishVersion) && (a2[e5.code] = e5) : e5.publishVersion > l3.publishVersion && (a2[e5.code] = e5) : null == l3 && (a2[e5.code] = e5, t2.push(e5.code));
36
39
  }
37
- A.value = [];
40
+ T.value = [];
38
41
  for (let e5 of t2) {
39
- const l3 = a2[e5], t3 = e5 === z.systemCode ? z.systemVersion : l3.publishVersion;
40
- A.value.push({ value: l3.id, label: l3.name + "(" + t3 + ")", code: l3.code, name: l3.name, version: t3 });
42
+ const l3 = a2[e5], t3 = e5 === C.systemCode ? C.systemVersion : l3.publishVersion;
43
+ T.value.push({ value: l3.id, label: l3.name + "(" + t3 + ")", code: l3.code, name: l3.name, version: t3 });
41
44
  }
42
- }), setTimeout(() => {
43
- B();
45
+ }), j = setTimeout(() => {
46
+ q();
44
47
  }, 100));
45
48
  } }), (e3, l2) => {
46
- const t2 = a("el-option"), b2 = a("el-select"), f2 = a("el-input"), v3 = a("el-button"), w2 = a("el-table-column"), z2 = a("el-table"), U2 = a("el-pagination"), j2 = a("el-dialog");
47
- return n(), o(j2, { modelValue: x.value, "onUpdate:modelValue": l2[4] || (l2[4] = (e4) => x.value = e4), title: "选择页面", width: "800", "append-to-body": "" }, { default: s(() => [i("div", V, [r(b2, { modelValue: S.systemId, "onUpdate:modelValue": l2[0] || (l2[0] = (e4) => S.systemId = e4), placeholder: "所有应用", clearable: "", onChange: B, style: { width: "220px" } }, { default: s(() => [(n(true), u(p, null, d(A.value, (e4) => (n(), o(t2, { key: e4.value, label: e4.label, value: e4.value }, null, 8, ["label", "value"]))), 128))]), _: 1 }, 8, ["modelValue"]), r(f2, { modelValue: S.searchValue, "onUpdate:modelValue": l2[1] || (l2[1] = (e4) => S.searchValue = e4), style: { width: "260px", "margin-left": "10px" }, clearable: "", placeholder: "请输入编码或名称" }, null, 8, ["modelValue"]), r(v3, { type: "primary", style: { "margin-left": "10px" }, icon: c(h), onClick: B }, { default: s(() => l2[5] || (l2[5] = [m("确定")])), _: 1 }, 8, ["icon"]), r(v3, { style: { "margin-left": "10px" }, icon: c(y), onClick: I }, { default: s(() => l2[6] || (l2[6] = [m("重置")])), _: 1 }, 8, ["icon"])]), r(z2, { data: k.value, stripe: "", height: P.value, onSortChange: $ }, { default: s(() => [r(w2, { type: "index", label: "序", width: "50" }, { default: s((e4) => [m(g(e4.$index + 1), 1)]), _: 1 }), r(w2, { label: "操作", width: "80" }, { default: s((e4) => [r(v3, { type: "primary", size: "small", onClick: (l3) => (C("selectPage", e4.row), void (x.value = false)) }, { default: s(() => l2[7] || (l2[7] = [m("选择")])), _: 2 }, 1032, ["onClick"])]), _: 1 }), r(w2, { property: "dataView", label: "应用", width: "120" }, { default: s((e4) => [i("span", null, g(T.value[e4.row.systemId]), 1)]), _: 1 }), r(w2, { property: "code", label: "编码", width: "160", sortable: "custom" }), r(w2, { property: "name", label: "名称", width: "260", sortable: "custom" })]), _: 1 }, 8, ["data", "height"]), r(U2, { style: { "margin-top": "10px", "justify-content": "center" }, "current-page": _.currentPage, "onUpdate:currentPage": l2[2] || (l2[2] = (e4) => _.currentPage = e4), "page-size": _.pageSize, "onUpdate:pageSize": l2[3] || (l2[3] = (e4) => _.pageSize = e4), "page-sizes": [20, 30, 50, 100], background: "", layout: "sizes,prev,pager,next,jumper,total", total: _.total, onSizeChange: B, onCurrentChange: B }, null, 8, ["current-page", "page-size", "total"])]), _: 1 }, 8, ["modelValue"]);
49
+ const t2 = o("el-option"), a2 = o("el-select"), f2 = o("el-input"), V2 = o("el-button"), w3 = o("el-table-column"), z2 = o("el-table"), C2 = o("el-pagination"), j2 = o("el-dialog");
50
+ return s(), n(j2, { modelValue: S.value, "onUpdate:modelValue": l2[4] || (l2[4] = (e4) => S.value = e4), title: "选择页面", width: "800", "append-to-body": "" }, { default: i(() => [r("div", v, [u(a2, { modelValue: I.systemId, "onUpdate:modelValue": l2[0] || (l2[0] = (e4) => I.systemId = e4), placeholder: "所有应用", clearable: "", onChange: q, style: { width: "220px" } }, { default: i(() => [(s(true), p(d, null, c(T.value, (e4) => (s(), n(t2, { key: e4.value, label: e4.label, value: e4.value }, null, 8, ["label", "value"]))), 128))]), _: 1 }, 8, ["modelValue"]), u(f2, { modelValue: I.searchValue, "onUpdate:modelValue": l2[1] || (l2[1] = (e4) => I.searchValue = e4), style: { width: "260px", "margin-left": "10px" }, clearable: "", placeholder: "请输入编码或名称" }, null, 8, ["modelValue"]), u(V2, { type: "primary", style: { "margin-left": "10px" }, icon: m(y), onClick: q }, { default: i(() => l2[5] || (l2[5] = [g("确定")])), _: 1 }, 8, ["icon"]), u(V2, { style: { "margin-left": "10px" }, icon: m(b), onClick: _ }, { default: i(() => l2[6] || (l2[6] = [g("重置")])), _: 1 }, 8, ["icon"])]), u(z2, { data: A.value, stripe: "", height: x.value, onSortChange: E }, { default: i(() => [u(w3, { type: "index", label: "序", width: "50" }, { default: i((e4) => [g(h(e4.$index + 1), 1)]), _: 1 }), u(w3, { label: "操作", width: "80" }, { default: i((e4) => [u(V2, { type: "primary", size: "small", onClick: (l3) => (P("selectPage", e4.row), void (S.value = false)) }, { default: i(() => l2[7] || (l2[7] = [g("选择")])), _: 2 }, 1032, ["onClick"])]), _: 1 }), u(w3, { property: "dataView", label: "应用", width: "120" }, { default: i((e4) => [r("span", null, h(U.value[e4.row.systemId]), 1)]), _: 1 }), u(w3, { property: "code", label: "编码", width: "160", sortable: "custom" }), u(w3, { property: "name", label: "名称", width: "260", sortable: "custom" })]), _: 1 }, 8, ["data", "height"]), u(C2, { style: { "margin-top": "10px", "justify-content": "center" }, "current-page": k.currentPage, "onUpdate:currentPage": l2[2] || (l2[2] = (e4) => k.currentPage = e4), "page-size": k.pageSize, "onUpdate:pageSize": l2[3] || (l2[3] = (e4) => k.pageSize = e4), "page-sizes": [20, 30, 50, 100], background: "", layout: "sizes,prev,pager,next,jumper,total", total: k.total, onSizeChange: q, onCurrentChange: q }, null, 8, ["current-page", "page-size", "total"])]), _: 1 }, 8, ["modelValue"]);
48
51
  };
49
52
  } });
50
53
  export {
51
- v as default
54
+ w as default
52
55
  };
@@ -1,65 +1,68 @@
1
- import { defineComponent as e, ref as l, reactive as a, resolveComponent as t, createBlock as o, openBlock as s, withCtx as n, createElementVNode as r, createVNode as i, createElementBlock as u, Fragment as p, renderList as d, unref as c, createTextVNode as m, toDisplayString as g, createCommentVNode as y } from "vue";
2
- import { Search as h, RefreshLeft as f } from "@element-plus/icons";
3
- import b from "agilebuilder-ui/src/utils/request";
4
- import { EnableStates as v } from "../../../utils/interfaces/page-design-types.js";
5
- import { usePageContextStore as V } from "../../../../../stores/page-store.js";
6
- const C = { style: { "background-color": "rgba(88, 147, 239, 0.06)", padding: "10px" } }, w = e({ __name: "common-select-table", props: { systemCode: {}, systemVersion: {} }, emits: ["selectTable"], setup(e2, { expose: w2, emit: x }) {
7
- const T = e2, z = V(), _ = z.pageContext ? z.pageContext : {}, S = x, P = l(300);
8
- let k = T.systemCode, N = T.systemVersion;
9
- k || (k = _.systemCode, N = _.systemVersion);
10
- const A = l(false), U = a({ systemCode: "", tableType: null, searchValue: "" });
11
- function j() {
12
- U.systemCode = "", U.tableType = null, U.searchValue = "", X();
1
+ import { defineComponent as e, ref as l, reactive as a, onUnmounted as t, resolveComponent as o, createBlock as s, openBlock as n, withCtx as r, createElementVNode as i, createVNode as u, createElementBlock as p, Fragment as d, renderList as c, unref as m, createTextVNode as g, toDisplayString as y, createCommentVNode as h } from "vue";
2
+ import { Search as f, RefreshLeft as b } from "@element-plus/icons";
3
+ import v from "agilebuilder-ui/src/utils/request";
4
+ import { EnableStates as V } from "../../../utils/interfaces/page-design-types.js";
5
+ import { usePageContextStore as C } from "../../../../../stores/page-store.js";
6
+ const w = { style: { "background-color": "rgba(88, 147, 239, 0.06)", padding: "10px" } }, T = e({ __name: "common-select-table", props: { systemCode: {}, systemVersion: {} }, emits: ["selectTable"], setup(e2, { expose: T2, emit: x }) {
7
+ const z = e2, _ = C(), S = _.pageContext ? _.pageContext : {}, P = x, k = l(300);
8
+ let N = z.systemCode, A = z.systemVersion;
9
+ N || (N = S.systemCode, A = S.systemVersion);
10
+ const U = l(false), j = a({ systemCode: "", tableType: null, searchValue: "" });
11
+ function I() {
12
+ j.systemCode = "", j.tableType = null, j.searchValue = "", B();
13
13
  }
14
- const I = a({ currentPage: 1, pageSize: 20, showTotal: true, total: 0 }), E = l([]), D = l([{ value: "", version: 1, label: "" }]);
15
- let F = false;
16
- let $ = null;
17
- function O({ column: e3 }) {
18
- $ = e3, X();
14
+ const E = a({ currentPage: 1, pageSize: 20, showTotal: true, total: 0 }), D = l([]), F = l([{ value: "", version: 1, label: "" }]);
15
+ let $, O = false;
16
+ t(() => {
17
+ $ && clearTimeout($);
18
+ });
19
+ let X = null;
20
+ function q({ column: e3 }) {
21
+ X = e3, B();
19
22
  }
20
- function X() {
21
- const e3 = { pagination: { currentPage: I.currentPage, pageSize: I.pageSize, showTotal: true }, searchForm: [], dynamicColumnInfo: [], sorts: [] };
22
- null != $ && e3.sorts.push({ prop: $.property, order: "ascending" == $.order ? "asc" : "desc" }), U.searchValue && (e3.searchForm.push({ propName: "name", propDbName: "name", operator: "CONTAIN", dataType: "TEXT", propValue: U.searchValue, joinSign: "or" }), e3.searchForm.push({ propName: "alias", propDbName: "alias", operator: "CONTAIN", dataType: "TEXT", propValue: U.searchValue }));
23
- let l2 = U.systemCode, a2 = -1;
23
+ function B() {
24
+ const e3 = { pagination: { currentPage: E.currentPage, pageSize: E.pageSize, showTotal: true }, searchForm: [], dynamicColumnInfo: [], sorts: [] };
25
+ null != X && e3.sorts.push({ prop: X.property, order: "ascending" == X.order ? "asc" : "desc" }), j.searchValue && (e3.searchForm.push({ propName: "name", propDbName: "name", operator: "CONTAIN", dataType: "TEXT", propValue: j.searchValue, joinSign: "or" }), e3.searchForm.push({ propName: "alias", propDbName: "alias", operator: "CONTAIN", dataType: "TEXT", propValue: j.searchValue }));
26
+ let l2 = j.systemCode, a2 = -1;
24
27
  if (l2) {
25
- let e4 = D.value.filter((e5) => e5.value == l2);
28
+ let e4 = F.value.filter((e5) => e5.value == l2);
26
29
  a2 = e4.length > 0 ? e4[0].version : -1;
27
- } else l2 = k, a2 = N;
28
- const t2 = U.tableType ? U.tableType : 0, o2 = window.$vueApp.config.globalProperties.baseAPI + "/mms/data-tables/list/" + l2 + "/" + t2 + "/" + a2;
29
- b.post(o2, e3).then((e4) => {
30
- E.value = e4.data, I.currentPage = e4.page, I.pageSize = e4.size, I.total = e4.total;
30
+ } else l2 = N, a2 = A;
31
+ const t2 = j.tableType ? j.tableType : 0, o2 = window.$vueApp.config.globalProperties.baseAPI + "/mms/data-tables/list/" + l2 + "/" + t2 + "/" + a2;
32
+ v.post(o2, e3).then((e4) => {
33
+ D.value = e4.data, E.currentPage = e4.page, E.pageSize = e4.size, E.total = e4.total;
31
34
  });
32
35
  }
33
- return w2({ openDialog: function() {
36
+ return T2({ openDialog: function() {
34
37
  let e3 = window.innerHeight - 140 - 176;
35
- e3 > 500 ? e3 = 500 : e3 < 100 && (e3 = 100), P.value = e3, A.value = true, F || (F = true, b.get(window.$vueApp.config.globalProperties.baseAPI + "/component/super-charts/findAllSystem").then((e4) => {
38
+ e3 > 500 ? e3 = 500 : e3 < 100 && (e3 = 100), k.value = e3, U.value = true, O || (O = true, v.get(window.$vueApp.config.globalProperties.baseAPI + "/component/super-charts/findAllSystem").then((e4) => {
36
39
  const l2 = e4, a2 = [], t2 = {};
37
40
  for (let e5 of l2) {
38
41
  if (e5.deleted) continue;
39
- if (e5.enabledState != v.ENABLE) continue;
42
+ if (e5.enabledState != V.ENABLE) continue;
40
43
  const l3 = t2[e5.code];
41
44
  null != l3 && e5.publishVersion > l3.publishVersion ? t2[e5.code] = e5 : null == l3 && (t2[e5.code] = e5, a2.push(e5.code));
42
45
  }
43
- D.value = [];
46
+ F.value = [];
44
47
  for (let e5 of a2) {
45
- const l3 = t2[e5], a3 = e5 === k ? N : l3.publishVersion;
46
- D.value.push({ value: e5, label: l3.name + "(" + a3 + ")", version: a3 });
48
+ const l3 = t2[e5], a3 = e5 === N ? A : l3.publishVersion;
49
+ F.value.push({ value: e5, label: l3.name + "(" + a3 + ")", version: a3 });
47
50
  }
48
- }), setTimeout(() => {
49
- X();
51
+ }), $ = setTimeout(() => {
52
+ B();
50
53
  }, 100));
51
54
  } }), (e3, l2) => {
52
- const a2 = t("el-option"), b2 = t("el-select"), v2 = t("el-input"), V2 = t("el-button"), w3 = t("el-table-column"), x2 = t("el-text"), T2 = t("el-table"), z2 = t("el-pagination"), k2 = t("el-dialog");
53
- return s(), o(k2, { modelValue: A.value, "onUpdate:modelValue": l2[5] || (l2[5] = (e4) => A.value = e4), title: "选择数据模型", width: "800" }, { default: n(() => [r("div", C, [i(b2, { modelValue: U.systemCode, "onUpdate:modelValue": l2[0] || (l2[0] = (e4) => U.systemCode = e4), placeholder: "当前应用", clearable: "", onChange: X, style: { width: "120px" } }, { default: n(() => [(s(true), u(p, null, d(D.value, (e4) => (s(), o(a2, { key: e4.value, label: e4.label, value: e4.value }, null, 8, ["label", "value"]))), 128))]), _: 1 }, 8, ["modelValue"]), i(b2, { modelValue: U.tableType, "onUpdate:modelValue": l2[1] || (l2[1] = (e4) => U.tableType = e4), placeholder: "表和视图", clearable: "", onChange: X, style: { width: "120px", "margin-left": "10px" } }, { default: n(() => [i(a2, { value: "1", label: "表" }), i(a2, { value: "2", label: "视图" })]), _: 1 }, 8, ["modelValue"]), i(v2, { modelValue: U.searchValue, "onUpdate:modelValue": l2[2] || (l2[2] = (e4) => U.searchValue = e4), style: { width: "240px", "margin-left": "10px" }, placeholder: "请输入名称或别名" }, null, 8, ["modelValue"]), i(V2, { type: "primary", style: { "margin-left": "10px" }, icon: c(h), onClick: X }, { default: n(() => l2[6] || (l2[6] = [m("确定")])), _: 1 }, 8, ["icon"]), i(V2, { style: { "margin-left": "10px" }, icon: c(f), onClick: j }, { default: n(() => l2[7] || (l2[7] = [m("重置")])), _: 1 }, 8, ["icon"])]), i(T2, { data: E.value, stripe: "", height: P.value, onSortChange: O }, { default: n(() => [i(w3, { type: "index", label: "序", width: "50" }, { default: n((e4) => [m(g(e4.$index + 1), 1)]), _: 1 }), i(w3, { label: "操作", width: "80" }, { default: n((e4) => [i(V2, { type: "primary", size: "small", onClick: (l3) => function(e5) {
55
+ const a2 = o("el-option"), t2 = o("el-select"), v2 = o("el-input"), V2 = o("el-button"), C2 = o("el-table-column"), T3 = o("el-text"), x2 = o("el-table"), z2 = o("el-pagination"), _2 = o("el-dialog");
56
+ return n(), s(_2, { modelValue: U.value, "onUpdate:modelValue": l2[5] || (l2[5] = (e4) => U.value = e4), title: "选择数据模型", width: "800" }, { default: r(() => [i("div", w, [u(t2, { modelValue: j.systemCode, "onUpdate:modelValue": l2[0] || (l2[0] = (e4) => j.systemCode = e4), placeholder: "当前应用", clearable: "", onChange: B, style: { width: "120px" } }, { default: r(() => [(n(true), p(d, null, c(F.value, (e4) => (n(), s(a2, { key: e4.value, label: e4.label, value: e4.value }, null, 8, ["label", "value"]))), 128))]), _: 1 }, 8, ["modelValue"]), u(t2, { modelValue: j.tableType, "onUpdate:modelValue": l2[1] || (l2[1] = (e4) => j.tableType = e4), placeholder: "表和视图", clearable: "", onChange: B, style: { width: "120px", "margin-left": "10px" } }, { default: r(() => [u(a2, { value: "1", label: "表" }), u(a2, { value: "2", label: "视图" })]), _: 1 }, 8, ["modelValue"]), u(v2, { modelValue: j.searchValue, "onUpdate:modelValue": l2[2] || (l2[2] = (e4) => j.searchValue = e4), style: { width: "240px", "margin-left": "10px" }, placeholder: "请输入名称或别名" }, null, 8, ["modelValue"]), u(V2, { type: "primary", style: { "margin-left": "10px" }, icon: m(f), onClick: B }, { default: r(() => l2[6] || (l2[6] = [g("确定")])), _: 1 }, 8, ["icon"]), u(V2, { style: { "margin-left": "10px" }, icon: m(b), onClick: I }, { default: r(() => l2[7] || (l2[7] = [g("重置")])), _: 1 }, 8, ["icon"])]), u(x2, { data: D.value, stripe: "", height: k.value, onSortChange: q }, { default: r(() => [u(C2, { type: "index", label: "序", width: "50" }, { default: r((e4) => [g(y(e4.$index + 1), 1)]), _: 1 }), u(C2, { label: "操作", width: "80" }, { default: r((e4) => [u(V2, { type: "primary", size: "small", onClick: (l3) => function(e5) {
54
57
  const l4 = { name: e5.row.name, alias: e5.row.alias };
55
- if (U.systemCode && U.systemCode != _.systemCode) {
56
- let e6 = U.systemCode, a3 = D.value.filter((l5) => l5.value == e6);
58
+ if (j.systemCode && j.systemCode != S.systemCode) {
59
+ let e6 = j.systemCode, a3 = F.value.filter((l5) => l5.value == e6);
57
60
  l4.systemVersion = a3.length > 0 ? a3[0].version : 1, l4.systemCode = e6;
58
61
  }
59
- S("selectTable", l4), A.value = false;
60
- }(e4) }, { default: n(() => l2[8] || (l2[8] = [m("选择")])), _: 2 }, 1032, ["onClick"])]), _: 1 }), i(w3, { property: "dataView", label: "类型", width: "70" }, { default: n((e4) => [e4.dataView ? y("", true) : (s(), o(x2, { key: 0, class: "mx-1", type: "primary" }, { default: n(() => l2[9] || (l2[9] = [m("数据表")])), _: 1 })), e4.dataView ? (s(), o(x2, { key: 1, class: "mx-1", type: "success" }, { default: n(() => l2[10] || (l2[10] = [m("视图")])), _: 1 })) : y("", true)]), _: 1 }), i(w3, { property: "name", label: "名称", width: "200", sortable: "custom" }), i(w3, { property: "alias", label: "别名" })]), _: 1 }, 8, ["data", "height"]), i(z2, { style: { "margin-top": "10px", "justify-content": "center" }, "current-page": I.currentPage, "onUpdate:currentPage": l2[3] || (l2[3] = (e4) => I.currentPage = e4), "page-size": I.pageSize, "onUpdate:pageSize": l2[4] || (l2[4] = (e4) => I.pageSize = e4), "page-sizes": [20, 30, 50, 100], background: "", layout: "sizes,prev,pager,next,jumper,total", total: I.total, onSizeChange: X, onCurrentChange: X }, null, 8, ["current-page", "page-size", "total"])]), _: 1 }, 8, ["modelValue"]);
62
+ P("selectTable", l4), U.value = false;
63
+ }(e4) }, { default: r(() => l2[8] || (l2[8] = [g("选择")])), _: 2 }, 1032, ["onClick"])]), _: 1 }), u(C2, { property: "dataView", label: "类型", width: "70" }, { default: r((e4) => [e4.dataView ? h("", true) : (n(), s(T3, { key: 0, class: "mx-1", type: "primary" }, { default: r(() => l2[9] || (l2[9] = [g("数据表")])), _: 1 })), e4.dataView ? (n(), s(T3, { key: 1, class: "mx-1", type: "success" }, { default: r(() => l2[10] || (l2[10] = [g("视图")])), _: 1 })) : h("", true)]), _: 1 }), u(C2, { property: "name", label: "名称", width: "200", sortable: "custom" }), u(C2, { property: "alias", label: "别名" })]), _: 1 }, 8, ["data", "height"]), u(z2, { style: { "margin-top": "10px", "justify-content": "center" }, "current-page": E.currentPage, "onUpdate:currentPage": l2[3] || (l2[3] = (e4) => E.currentPage = e4), "page-size": E.pageSize, "onUpdate:pageSize": l2[4] || (l2[4] = (e4) => E.pageSize = e4), "page-sizes": [20, 30, 50, 100], background: "", layout: "sizes,prev,pager,next,jumper,total", total: E.total, onSizeChange: B, onCurrentChange: B }, null, 8, ["current-page", "page-size", "total"])]), _: 1 }, 8, ["modelValue"]);
61
64
  };
62
65
  } });
63
66
  export {
64
- w as default
67
+ T as default
65
68
  };
@@ -1,7 +1,7 @@
1
- import o from "./common-variable-bind.vue2.js";
1
+ import e from "./common-variable-bind.vue3.js";
2
2
  /* empty css */
3
- import e from "../../../../../_virtual/_plugin-vue_export-helper.js";
4
- const r = e(o, [["__scopeId", "data-v-3528c938"]]);
3
+ import o from "../../../../../_virtual/_plugin-vue_export-helper.js";
4
+ const r = o(e, [["__scopeId", "data-v-f1126e5e"]]);
5
5
  export {
6
6
  r as default
7
7
  };
@@ -4,10 +4,10 @@ import M from "agilebuilder-ui/src/utils/request";
4
4
  import { deepCopy as _, getUuidv4 as z } from "../../../utils/common-util.js";
5
5
  import { getTypeOptions as j, contextVarOptions as U, taskVarOptions as L } from "./common-variable-bind-option.js";
6
6
  import { usePageContextStore as N } from "../../../../../stores/page-store.js";
7
- import { tableField as T } from "../../../../../stores/table-store.js";
8
- import { statisticsTable as A } from "../../../../../stores/statistics-table-store.js";
9
- const E = { key: 0 }, R = { style: { "margin-top": "10px", "font-size": "10px", display: "flex", "align-items": "center", "justify-self": "center" } }, q = { style: { "font-size": "10px", "line-height": "40px" } }, D = { style: { "margin-top": "4px", "margin-bottom": "8px", "font-size": "10px", display: "flex", "align-items": "center", "justify-self": "center" } }, P = { key: 0, style: { display: "flex" } }, $ = ["title"], B = ["title"], S = { class: "totalStyle" }, I = e({ name: "ValueSetInput", inheritAttrs: false, __name: "common-variable-bind", props: { modelValue: { type: [String], default: null }, paramTypes: { type: Array, default: () => [] }, size: { type: String, default: "small" }, showLabel: { type: Boolean, default: false }, needParams: { type: Boolean, default: false }, isRange: { type: Boolean, default: false }, isTable: { type: Boolean, default: false }, dataModelOptions: { type: Array, default: null }, objModelOptions: { type: Array, default: null }, needData: { type: Boolean, default: false }, placeholder: { type: String, default: "请选择" } }, emits: ["update:modelValue"], setup(e2, { emit: I2 }) {
10
- const K = N(), W = I2, F = e2, G = l(false), H = l(""), J = l(null), Q = l(null), X = l([]), Y = l(false), Z = l(""), ee = l(""), le = l(""), ae = l([]), te = l({}), ue = l(""), oe = l(null), ne = ["context", "system", "task", "data", "page", "row"], se = T(), ie = A();
7
+ import { tableField as A } from "../../../../../stores/table-store.js";
8
+ import { statisticsTable as E } from "../../../../../stores/statistics-table-store.js";
9
+ const R = { key: 0 }, T = { style: { "margin-top": "10px", "font-size": "10px", display: "flex", "align-items": "center", "justify-self": "center" } }, q = { style: { "font-size": "10px", "line-height": "40px" } }, D = { style: { "margin-top": "4px", "margin-bottom": "8px", "font-size": "10px", display: "flex", "align-items": "center", "justify-self": "center" } }, P = { key: 0, style: { display: "flex" } }, $ = ["title"], B = ["title"], S = { class: "totalStyle" }, I = e({ name: "ValueSetInput", inheritAttrs: false, __name: "common-variable-bind", props: { modelValue: { type: [String], default: null }, paramTypes: { type: Array, default: () => [] }, size: { type: String, default: "small" }, showLabel: { type: Boolean, default: false }, needParams: { type: Boolean, default: false }, isRange: { type: Boolean, default: false }, isTable: { type: Boolean, default: false }, dataModelOptions: { type: Array, default: null }, objModelOptions: { type: Array, default: null }, needData: { type: Boolean, default: false }, placeholder: { type: String, default: "请选择" } }, emits: ["update:modelValue"], setup(e2, { emit: I2 }) {
10
+ const K = N(), W = I2, F = e2, G = l(false), H = l(""), J = l(null), Q = l(null), X = l([]), Y = l(false), Z = l(""), ee = l(""), le = l(""), ae = l([]), te = l({}), ue = l(""), oe = l(null), ne = ["context", "system", "task", "data", "page", "row"], se = A(), ie = E();
11
11
  a(() => {
12
12
  window.addEventListener("click", pe);
13
13
  const e3 = K.pageContext;
@@ -34,7 +34,7 @@ const E = { key: 0 }, R = { style: { "margin-top": "10px", "font-size": "10px",
34
34
  }
35
35
  const ve = l([{ label: "天", value: "d" }, { label: "周", value: "w" }, { label: "月", value: "m" }, { label: "年", value: "y" }]);
36
36
  function de(e3) {
37
- clearTimeout(null), G.value = false;
37
+ G.value = false;
38
38
  }
39
39
  const me = u(() => ae.value.filter((e3) => !ue.value || "system" == ee.value || e3.label.toLowerCase().includes(ue.value.toLowerCase()) || e3.value.toLowerCase().includes(ue.value.toLowerCase())));
40
40
  o(ue, () => {
@@ -110,7 +110,7 @@ const E = { key: 0 }, R = { style: { "margin-top": "10px", "font-size": "10px",
110
110
  }
111
111
  const Me = l();
112
112
  function _e() {
113
- clearTimeout(null), G.value = true, V(() => {
113
+ G.value = true, V(() => {
114
114
  be(), ee.value && (ne.includes(ee.value) ? (Y.value = false, xe(ee.value)) : Y.value = true, "system" == ee.value && ce()), function() {
115
115
  if (!F.showLabel && !Y.value) {
116
116
  const e3 = me.value.findIndex((e4) => e4.value === le.value);
@@ -120,8 +120,8 @@ const E = { key: 0 }, R = { style: { "margin-top": "10px", "font-size": "10px",
120
120
  });
121
121
  }
122
122
  return (l2, a2) => {
123
- const t2 = n("el-icon"), u2 = n("el-input"), o2 = n("el-cascader-panel"), V2 = n("el-col"), M2 = n("el-empty"), _2 = n("el-button"), z2 = n("el-table-column"), j2 = n("el-option"), U2 = n("el-select"), L2 = n("el-table"), N2 = n("el-row"), T2 = n("el-popover");
124
- return e2.showLabel ? (r(), s("span", E, p(H.value), 1)) : (r(), i(T2, { key: 1, ref_key: "popoverRef", ref: oe, visible: G.value, width: 400 }, { reference: v(() => [d(u2, { readonly: "", size: e2.size, title: H.value, ref_key: "inputRef", ref: J, onClick: _e, formatter: he, modelValue: H.value, "onUpdate:modelValue": a2[0] || (a2[0] = (e3) => H.value = e3), placeholder: e2.placeholder }, { suffix: v(() => [f(d(t2, { style: { cursor: "pointer" }, onClick: w(Oe, ["stop"]) }, { default: v(() => [d(c(C))]), _: 1 }, 512), [[g, H.value]])]), _: 1 }, 8, ["size", "title", "modelValue", "placeholder"])]), default: v(() => [d(N2, { ref_key: "contentRef", ref: Q }, { default: v(() => [d(V2, { span: 8 }, { default: v(() => [d(o2, { modelValue: ee.value, "onUpdate:modelValue": a2[1] || (a2[1] = (e3) => ee.value = e3), onChange: Ve, props: { emitPath: true }, size: "small", options: X.value, style: { height: "240px", width: "100%" } }, null, 8, ["modelValue", "options"])]), _: 1 }), ee.value ? Y.value ? (r(), i(V2, { key: 1, span: 16, style: { "padding-left": "10px" } }, { default: v(() => [d(u2, { style: { width: "210px" }, size: "small", modelValue: le.value, "onUpdate:modelValue": a2[2] || (a2[2] = (e3) => le.value = e3), placeholder: "请手动输入" }, null, 8, ["modelValue"]), d(_2, { style: { float: "right" }, onClick: ke, size: "small", type: "primary", icon: c(x), circle: "" }, null, 8, ["icon"]), m("div", R, [d(t2, null, { default: v(() => [d(c(O))]), _: 1 }), a2[5] || (a2[5] = m("span", { style: { "margin-left": "5px" } }, "输入变量名后点击加号按钮添加", -1))]), f(m("div", q, [a2[7] || (a2[7] = y(" 常用参数: ")), d(_2, { type: "primary", size: "small", onClick: a2[3] || (a2[3] = (e3) => {
123
+ const t2 = n("el-icon"), u2 = n("el-input"), o2 = n("el-cascader-panel"), V2 = n("el-col"), M2 = n("el-empty"), _2 = n("el-button"), z2 = n("el-table-column"), j2 = n("el-option"), U2 = n("el-select"), L2 = n("el-table"), N2 = n("el-row"), A2 = n("el-popover");
124
+ return e2.showLabel ? (r(), s("span", R, p(H.value), 1)) : (r(), i(A2, { key: 1, ref_key: "popoverRef", ref: oe, visible: G.value, width: 400 }, { reference: v(() => [d(u2, { readonly: "", size: e2.size, title: H.value, ref_key: "inputRef", ref: J, onClick: _e, formatter: he, modelValue: H.value, "onUpdate:modelValue": a2[0] || (a2[0] = (e3) => H.value = e3), placeholder: e2.placeholder }, { suffix: v(() => [f(d(t2, { style: { cursor: "pointer" }, onClick: w(Oe, ["stop"]) }, { default: v(() => [d(c(C))]), _: 1 }, 512), [[g, H.value]])]), _: 1 }, 8, ["size", "title", "modelValue", "placeholder"])]), default: v(() => [d(N2, { ref_key: "contentRef", ref: Q }, { default: v(() => [d(V2, { span: 8 }, { default: v(() => [d(o2, { modelValue: ee.value, "onUpdate:modelValue": a2[1] || (a2[1] = (e3) => ee.value = e3), onChange: Ve, props: { emitPath: true }, size: "small", options: X.value, style: { height: "240px", width: "100%" } }, null, 8, ["modelValue", "options"])]), _: 1 }), ee.value ? Y.value ? (r(), i(V2, { key: 1, span: 16, style: { "padding-left": "10px" } }, { default: v(() => [d(u2, { style: { width: "210px" }, size: "small", modelValue: le.value, "onUpdate:modelValue": a2[2] || (a2[2] = (e3) => le.value = e3), placeholder: "请手动输入" }, null, 8, ["modelValue"]), d(_2, { style: { float: "right" }, onClick: ke, size: "small", type: "primary", icon: c(x), circle: "" }, null, 8, ["icon"]), m("div", T, [d(t2, null, { default: v(() => [d(c(O))]), _: 1 }), a2[5] || (a2[5] = m("span", { style: { "margin-left": "5px" } }, "输入变量名后点击加号按钮添加", -1))]), f(m("div", q, [a2[7] || (a2[7] = y(" 常用参数: ")), d(_2, { type: "primary", size: "small", onClick: a2[3] || (a2[3] = (e3) => {
125
125
  return l3 = "query", le.value = l3, void ke();
126
126
  var l3;
127
127
  }) }, { default: v(() => a2[6] || (a2[6] = [y("query")])), _: 1 })], 512), [[g, "request" == ee.value]])]), _: 1 })) : (r(), i(V2, { key: 2, span: 16, style: { "padding-left": "10px" } }, { default: v(() => [d(u2, { size: "small", modelValue: ue.value, "onUpdate:modelValue": a2[4] || (a2[4] = (e3) => ue.value = e3), placeholder: "搜索", "suffix-icon": c(k), style: b([{ "margin-bottom": "5px", height: "25px" }, ge.value]) }, null, 8, ["modelValue", "suffix-icon", "style"]), f(d(_2, { style: { float: "right" }, onClick: Ce, size: "small", type: "primary", icon: c(x), circle: "" }, null, 8, ["icon"]), [[g, "page" == ee.value]]), f(m("div", D, [d(t2, null, { default: v(() => [d(c(O))]), _: 1 }), a2[8] || (a2[8] = m("span", { style: { "margin-left": "5px" } }, "输入变量名后点击加号按钮添加", -1))], 512), [[g, "page" == ee.value]]), d(L2, { ref_key: "tableRef", ref: Me, height: ye.value, "show-header": false, size: "small", "current-row-key": "code", "row-key": "code", "tree-props": { children: "items" }, "highlight-current-row": true, data: me.value }, { default: v(() => [d(z2, { width: "65" }, { default: v((e3) => [d(_2, { size: "small", onClick: (l3) => function(e4) {
@@ -1,7 +1,7 @@
1
- import { defineComponent as e, ref as l, onMounted as a, onUnmounted as t, reactive as o, computed as u, watch as n, resolveComponent as r, createElementBlock as i, createBlock as s, openBlock as c, toDisplayString as p, withCtx as d, createVNode as m, createCommentVNode as v, Fragment as f, renderList as g, normalizeClass as y, createElementVNode as h, withDirectives as b, unref as w, vShow as V, normalizeStyle as C, createTextVNode as _, withModifiers as k, nextTick as x } from "vue";
1
+ import { defineComponent as e, ref as l, onMounted as a, onUnmounted as t, reactive as o, computed as n, watch as u, resolveComponent as r, createElementBlock as s, createBlock as i, openBlock as p, toDisplayString as c, withCtx as d, createVNode as m, createCommentVNode as v, Fragment as f, renderList as g, normalizeClass as y, createElementVNode as h, withDirectives as b, unref as w, vShow as V, normalizeStyle as C, createTextVNode as _, withModifiers as k, nextTick as x } from "vue";
2
2
  import { ElMessage as z } from "element-plus";
3
- import { Check as S, Search as T, Plus as j, CircleClose as O } from "@element-plus/icons-vue";
4
- import { EnableStates as P } from "../../../utils/interfaces/page-design-types.js";
3
+ import { Check as S, Search as j, Plus as O, CircleClose as P } from "@element-plus/icons-vue";
4
+ import { EnableStates as T } from "../../../utils/interfaces/page-design-types.js";
5
5
  import A from "agilebuilder-ui/src/utils/request";
6
6
  const N = { key: 0 }, D = { style: { height: "230px", padding: "0 10px" } }, U = ["title"], E = ["title"], $ = e({ __name: "page-permission-select", props: { rowObj: Object, pageDesign: Object, size: { type: String, default: "medium" }, showLabel: { type: Boolean, default: false }, onlyService: { type: Boolean, default: false } }, emits: ["update:modelValue"], setup(e2, { emit: $2 }) {
7
7
  var _a, _b;
@@ -9,7 +9,7 @@ const N = { key: 0 }, D = { style: { height: "230px", padding: "0 10px" } }, U =
9
9
  a(() => {
10
10
  window.addEventListener("click", K);
11
11
  }), t(() => {
12
- window.removeEventListener("click", K);
12
+ window.removeEventListener("click", K), ne && clearTimeout(ne);
13
13
  });
14
14
  let J = null;
15
15
  function K(e3) {
@@ -20,31 +20,31 @@ const N = { key: 0 }, D = { style: { height: "230px", padding: "0 10px" } }, U =
20
20
  a2 && (e3.target === a2 || a2.contains(e3.target)) || (e3.target === l2 || l2.contains(e3.target) ? J = e3.target : (X.value.$el, q.value && M()));
21
21
  }
22
22
  function M(e3) {
23
- clearTimeout(null), q.value = false;
23
+ q.value = false;
24
24
  }
25
25
  const Q = [{ value: "service", label: "服务" }, { value: "custom", label: "自定义" }], W = o({ currentPage: 1, pageSize: 50, total: 0 }), Y = l((_a = L.rowObj) == null ? void 0 : _a.type);
26
26
  Y.value || (Y.value = Q[0].value), L.onlyService && (Y.value = "service");
27
27
  const Z = l("");
28
28
  Z.value = (_b = L.rowObj) == null ? void 0 : _b.simpleCode;
29
- const ee = u({ set(e3) {
29
+ const ee = n({ set(e3) {
30
30
  }, get: () => L.rowObj.simpleCode }), le = o({ systemCode: "", searchValue: "" }), ae = l([{ value: "", version: 1, label: "" }]), te = l([]);
31
- let oe;
31
+ let oe, ne = null;
32
32
  function ue() {
33
33
  ie();
34
34
  }
35
- n(le, () => {
36
- window.serviceSearchTimeout && clearTimeout(window.serviceSearchTimeout), window.serviceSearchTimeout = setTimeout(function() {
35
+ u(le, () => {
36
+ ne && clearTimeout(ne), ne = setTimeout(function() {
37
37
  W.currentPage = 1, ie();
38
38
  }, 300);
39
39
  });
40
- let ne = null;
41
- function re({ column: e3 }) {
42
- ne = e3, ie();
40
+ let re = null;
41
+ function se({ column: e3 }) {
42
+ re = e3, ie();
43
43
  }
44
44
  function ie() {
45
45
  var _a2, _b2;
46
46
  const e3 = { pagination: { currentPage: W.currentPage, pageSize: W.pageSize, showTotal: true }, searchForm: [], dynamicColumnInfo: [], sorts: [] };
47
- null != ne && e3.sorts.push({ prop: ne.property, order: "ascending" == ne.order ? "asc" : "desc" }), le.searchValue && (e3.searchForm.push({ propName: "name", propDbName: "name", operator: "CONTAIN", dataType: "TEXT", propValue: le.searchValue, joinSign: "or" }), e3.searchForm.push({ propName: "code", propDbName: "code", operator: "CONTAIN", dataType: "TEXT", propValue: le.searchValue }));
47
+ null != re && e3.sorts.push({ prop: re.property, order: "ascending" == re.order ? "asc" : "desc" }), le.searchValue && (e3.searchForm.push({ propName: "name", propDbName: "name", operator: "CONTAIN", dataType: "TEXT", propValue: le.searchValue, joinSign: "or" }), e3.searchForm.push({ propName: "code", propDbName: "code", operator: "CONTAIN", dataType: "TEXT", propValue: le.searchValue }));
48
48
  let l2 = window.$vueApp.config.globalProperties.baseAPI + "/component/super-page-design/service-flow/list", a2 = null;
49
49
  if (le.systemCode) {
50
50
  let e4 = ae.value.filter((e5) => e5.value == le.systemCode);
@@ -54,7 +54,7 @@ const N = { key: 0 }, D = { style: { height: "230px", padding: "0 10px" } }, U =
54
54
  te.value = e4.data, W.currentPage = e4.page, W.pageSize = e4.size, W.total = e4.total;
55
55
  });
56
56
  }
57
- const se = u(() => {
57
+ const pe = n(() => {
58
58
  let e3 = 185;
59
59
  return "custom" == Y.value && (e3 = 170), e3;
60
60
  });
@@ -64,41 +64,41 @@ const N = { key: 0 }, D = { style: { height: "230px", padding: "0 10px" } }, U =
64
64
  oe = le.searchValue, ie();
65
65
  }
66
66
  }
67
- function pe() {
67
+ function de() {
68
68
  Y.value = "", Z.value = "", I("update:modelValue", "", "", ""), M();
69
69
  }
70
- function de() {
70
+ function me() {
71
71
  G.value ? (Z.value = G.value, I("update:modelValue", Y.value, Z.value, ""), M()) : z.error("请输入权限编码!");
72
72
  }
73
- function me() {
74
- clearTimeout(null), q.value = true, x(() => {
73
+ function ve() {
74
+ q.value = true, x(() => {
75
75
  ce(Y.value), A.get(window.$vueApp.config.globalProperties.baseAPI + "/component/super-charts/findAllSystem").then((e3) => {
76
76
  var _a2, _b2;
77
77
  const l2 = e3, a2 = [], t2 = {};
78
78
  for (let e4 of l2) {
79
79
  if (e4.deleted) continue;
80
- if (e4.enabledState != P.ENABLE) continue;
80
+ if (e4.enabledState != T.ENABLE) continue;
81
81
  const l3 = t2[e4.code];
82
82
  null != l3 && e4.publishVersion > l3.publishVersion ? t2[e4.code] = e4 : null == l3 && (t2[e4.code] = e4, a2.push(e4.code));
83
83
  }
84
- const o2 = (_a2 = L.pageDesign) == null ? void 0 : _a2.systemCode, u2 = (_b2 = L.pageDesign) == null ? void 0 : _b2.systemVersion;
84
+ const o2 = (_a2 = L.pageDesign) == null ? void 0 : _a2.systemCode, n2 = (_b2 = L.pageDesign) == null ? void 0 : _b2.systemVersion;
85
85
  ae.value = [];
86
86
  for (let e4 of a2) {
87
- const l3 = t2[e4], a3 = e4 === o2 ? u2 : l3.publishVersion;
87
+ const l3 = t2[e4], a3 = e4 === o2 ? n2 : l3.publishVersion;
88
88
  ae.value.push({ value: e4, label: l3.name + "(" + a3 + ")", version: a3 });
89
89
  }
90
90
  });
91
91
  });
92
92
  }
93
- function ve(e3) {
93
+ function fe(e3) {
94
94
  return e3 ? `${L.rowObj.name}:${e3}` : null;
95
95
  }
96
96
  return (l2, a2) => {
97
- const t2 = r("el-icon"), o2 = r("el-input"), u2 = r("el-menu-item"), n2 = r("el-menu"), x2 = r("el-col"), z2 = r("el-empty"), P2 = r("el-option"), A2 = r("el-select"), $3 = r("el-button"), L2 = r("el-row"), J2 = r("el-text"), K2 = r("el-table-column"), oe2 = r("el-table"), ne2 = r("el-pagination"), ie2 = r("el-popover");
98
- return e2.showLabel ? (c(), i("span", N, p(e2.rowObj.name ? e2.rowObj.name : e2.rowObj.simpleCode), 1)) : (c(), s(ie2, { key: 1, modelValue: R.value, "onUpdate:modelValue": a2[6] || (a2[6] = (e3) => R.value = e3), ref_key: "popoverRef", ref: F, visible: q.value, width: 400 }, { reference: d(() => [m(o2, { ref_key: "inputRef", ref: B, readonly: "", size: "small", onClick: me, title: e2.rowObj.name + "(" + e2.rowObj.simpleCode + ")", formatter: ve, modelValue: ee.value, "onUpdate:modelValue": a2[0] || (a2[0] = (e3) => ee.value = e3), placeholder: "请选择" }, { suffix: d(() => [b(m(t2, { style: { cursor: "pointer" }, onClick: k(pe, ["stop"]) }, { default: d(() => [m(w(O))]), _: 1 }, 512), [[V, Z.value]])]), _: 1 }, 8, ["title", "modelValue"])]), default: d(() => [m(L2, { ref_key: "contentRef", ref: X }, { default: d(() => [e2.onlyService ? v("", true) : (c(), s(x2, { key: 0, span: 8 }, { default: d(() => [m(n2, null, { default: d(() => [(c(), i(f, null, g(Q, (e3) => m(u2, { style: { height: "40px", "padding-left": "0px" }, class: y(e3.value == Y.value ? "is-active" : ""), onClick: (l3) => ce(e3.value) }, { default: d(() => [m(t2, null, { default: d(() => [b(m(w(S), null, null, 512), [[V, e3.value == l2.iconType]])]), _: 2 }, 1024), h("span", null, p(e3.label), 1)]), _: 2 }, 1032, ["class", "onClick"])), 64))]), _: 1 })]), _: 1 })), Y.value ? (c(), s(x2, { key: 2, span: e2.onlyService ? 24 : 16, style: { "padding-left": "10px" } }, { default: d(() => [m(L2, null, { default: d(() => [b(m(A2, { modelValue: le.systemCode, "onUpdate:modelValue": a2[1] || (a2[1] = (e3) => le.systemCode = e3), placeholder: "当前应用", clearable: "", style: { width: "100px" } }, { default: d(() => [(c(true), i(f, null, g(ae.value, (e3) => (c(), s(P2, { key: e3.value, label: e3.label, value: e3.value }, null, 8, ["label", "value"]))), 128))]), _: 1 }, 8, ["modelValue"]), [[V, "service" == Y.value]]), b(m(o2, { size: "small", modelValue: le.searchValue, "onUpdate:modelValue": a2[2] || (a2[2] = (e3) => le.searchValue = e3), placeholder: "搜索", "suffix-icon": w(T), style: C([{ "margin-left": "6px" }, { width: e2.onlyService ? "250px" : "130px" }]) }, null, 8, ["modelValue", "suffix-icon", "style"]), [[V, "service" == Y.value]]), b(m(o2, { size: "small", modelValue: G.value, "onUpdate:modelValue": a2[3] || (a2[3] = (e3) => G.value = e3), placeholder: "请输入", style: { "margin-left": "6px", width: "200px" } }, null, 8, ["modelValue"]), [[V, "custom" == Y.value]]), b(m($3, { style: { "margin-left": "4px" }, onClick: de, size: "small", type: "primary", icon: w(j), circle: "" }, null, 8, ["icon"]), [[V, "custom" == Y.value]])]), _: 1 }), b(h("div", D, [m(J2, { type: "primary" }, { default: d(() => a2[7] || (a2[7] = [_("请输入自定义Controller中Permission注解中的code后点击添加图标.")])), _: 1 })], 512), [[V, "service" != Y.value]]), b(m(oe2, { ref_key: "tableRef", ref: H, height: se.value, "show-header": false, size: "small", "current-row-key": "code", "row-key": "code", "highlight-current-row": true, onSortChange: re, data: te.value }, { default: d(() => [m(K2, { width: "65" }, { default: d((e3) => [m($3, { size: "small", onClick: (l3) => {
97
+ const t2 = r("el-icon"), o2 = r("el-input"), n2 = r("el-menu-item"), u2 = r("el-menu"), x2 = r("el-col"), z2 = r("el-empty"), T2 = r("el-option"), A2 = r("el-select"), $3 = r("el-button"), L2 = r("el-row"), J2 = r("el-text"), K2 = r("el-table-column"), oe2 = r("el-table"), ne2 = r("el-pagination"), re2 = r("el-popover");
98
+ return e2.showLabel ? (p(), s("span", N, c(e2.rowObj.name ? e2.rowObj.name : e2.rowObj.simpleCode), 1)) : (p(), i(re2, { key: 1, modelValue: R.value, "onUpdate:modelValue": a2[6] || (a2[6] = (e3) => R.value = e3), ref_key: "popoverRef", ref: F, visible: q.value, width: 400 }, { reference: d(() => [m(o2, { ref_key: "inputRef", ref: B, readonly: "", size: "small", onClick: ve, title: e2.rowObj.name + "(" + e2.rowObj.simpleCode + ")", formatter: fe, modelValue: ee.value, "onUpdate:modelValue": a2[0] || (a2[0] = (e3) => ee.value = e3), placeholder: "请选择" }, { suffix: d(() => [b(m(t2, { style: { cursor: "pointer" }, onClick: k(de, ["stop"]) }, { default: d(() => [m(w(P))]), _: 1 }, 512), [[V, Z.value]])]), _: 1 }, 8, ["title", "modelValue"])]), default: d(() => [m(L2, { ref_key: "contentRef", ref: X }, { default: d(() => [e2.onlyService ? v("", true) : (p(), i(x2, { key: 0, span: 8 }, { default: d(() => [m(u2, null, { default: d(() => [(p(), s(f, null, g(Q, (e3) => m(n2, { style: { height: "40px", "padding-left": "0px" }, class: y(e3.value == Y.value ? "is-active" : ""), onClick: (l3) => ce(e3.value) }, { default: d(() => [m(t2, null, { default: d(() => [b(m(w(S), null, null, 512), [[V, e3.value == l2.iconType]])]), _: 2 }, 1024), h("span", null, c(e3.label), 1)]), _: 2 }, 1032, ["class", "onClick"])), 64))]), _: 1 })]), _: 1 })), Y.value ? (p(), i(x2, { key: 2, span: e2.onlyService ? 24 : 16, style: { "padding-left": "10px" } }, { default: d(() => [m(L2, null, { default: d(() => [b(m(A2, { modelValue: le.systemCode, "onUpdate:modelValue": a2[1] || (a2[1] = (e3) => le.systemCode = e3), placeholder: "当前应用", clearable: "", style: { width: "100px" } }, { default: d(() => [(p(true), s(f, null, g(ae.value, (e3) => (p(), i(T2, { key: e3.value, label: e3.label, value: e3.value }, null, 8, ["label", "value"]))), 128))]), _: 1 }, 8, ["modelValue"]), [[V, "service" == Y.value]]), b(m(o2, { size: "small", modelValue: le.searchValue, "onUpdate:modelValue": a2[2] || (a2[2] = (e3) => le.searchValue = e3), placeholder: "搜索", "suffix-icon": w(j), style: C([{ "margin-left": "6px" }, { width: e2.onlyService ? "250px" : "130px" }]) }, null, 8, ["modelValue", "suffix-icon", "style"]), [[V, "service" == Y.value]]), b(m(o2, { size: "small", modelValue: G.value, "onUpdate:modelValue": a2[3] || (a2[3] = (e3) => G.value = e3), placeholder: "请输入", style: { "margin-left": "6px", width: "200px" } }, null, 8, ["modelValue"]), [[V, "custom" == Y.value]]), b(m($3, { style: { "margin-left": "4px" }, onClick: me, size: "small", type: "primary", icon: w(O), circle: "" }, null, 8, ["icon"]), [[V, "custom" == Y.value]])]), _: 1 }), b(h("div", D, [m(J2, { type: "primary" }, { default: d(() => a2[7] || (a2[7] = [_("请输入自定义Controller中Permission注解中的code后点击添加图标.")])), _: 1 })], 512), [[V, "service" != Y.value]]), b(m(oe2, { ref_key: "tableRef", ref: H, height: pe.value, "show-header": false, size: "small", "current-row-key": "code", "row-key": "code", "highlight-current-row": true, onSortChange: se, data: te.value }, { default: d(() => [m(K2, { width: "65" }, { default: d((e3) => [m($3, { size: "small", onClick: (l3) => {
99
99
  return a3 = e3.row, Z.value = a3.code, I("update:modelValue", Y.value, Z.value, a3.name, a3.id), void M();
100
100
  var a3;
101
- } }, { default: d(() => a2[8] || (a2[8] = [_(" 选择 ")])), _: 2 }, 1032, ["onClick"])]), _: 1 }), m(K2, { label: "名称", prop: "name", width: "120", sortable: "custom" }, { default: d((e3) => [h("span", { style: { "text-align": "left" }, title: e3.row.name }, p(e3.row.name), 9, U)]), _: 1 }), m(K2, { label: "编码", sortable: "custom" }, { default: d((e3) => [h("span", { style: { "text-align": "left" }, title: e3.row.code }, p(e3.row.code), 9, E)]), _: 1 })]), _: 1 }, 8, ["height", "data"]), [[V, "service" == Y.value]]), b(m(ne2, { style: { "margin-top": "10px", "justify-content": "center" }, "current-page": W.currentPage, "onUpdate:currentPage": a2[4] || (a2[4] = (e3) => W.currentPage = e3), "page-size": W.pageSize, "onUpdate:pageSize": a2[5] || (a2[5] = (e3) => W.pageSize = e3), size: l2.small, "pager-count": 3, layout: "pager,total", total: W.total, onCurrentChange: ue }, null, 8, ["current-page", "page-size", "size", "total"]), [[V, "service" == Y.value]])]), _: 1 }, 8, ["span"])) : (c(), s(x2, { key: 1, span: 16 }, { default: d(() => [m(z2, { description: "请选择类型", "image-size": 40 })]), _: 1 }))]), _: 1 }, 512)]), _: 1 }, 8, ["modelValue", "visible"]));
101
+ } }, { default: d(() => a2[8] || (a2[8] = [_(" 选择 ")])), _: 2 }, 1032, ["onClick"])]), _: 1 }), m(K2, { label: "名称", prop: "name", width: "120", sortable: "custom" }, { default: d((e3) => [h("span", { style: { "text-align": "left" }, title: e3.row.name }, c(e3.row.name), 9, U)]), _: 1 }), m(K2, { label: "编码", sortable: "custom" }, { default: d((e3) => [h("span", { style: { "text-align": "left" }, title: e3.row.code }, c(e3.row.code), 9, E)]), _: 1 })]), _: 1 }, 8, ["height", "data"]), [[V, "service" == Y.value]]), b(m(ne2, { style: { "margin-top": "10px", "justify-content": "center" }, "current-page": W.currentPage, "onUpdate:currentPage": a2[4] || (a2[4] = (e3) => W.currentPage = e3), "page-size": W.pageSize, "onUpdate:pageSize": a2[5] || (a2[5] = (e3) => W.pageSize = e3), size: l2.small, "pager-count": 3, layout: "pager,total", total: W.total, onCurrentChange: ue }, null, 8, ["current-page", "page-size", "size", "total"]), [[V, "service" == Y.value]])]), _: 1 }, 8, ["span"])) : (p(), i(x2, { key: 1, span: 16 }, { default: d(() => [m(z2, { description: "请选择类型", "image-size": 40 })]), _: 1 }))]), _: 1 }, 512)]), _: 1 }, 8, ["modelValue", "visible"]));
102
102
  };
103
103
  } });
104
104
  export {
@@ -1,18 +1,20 @@
1
- import { defineComponent as e, resolveComponent as t, createElementBlock as o, openBlock as l, Fragment as n, renderList as s, createBlock as i, withCtx as r, createVNode as a, createTextVNode as d, createCommentVNode as p, toDisplayString as c, unref as m } from "vue";
2
- import { Edit as u, Search as f } from "@element-plus/icons";
3
- const g = { style: { "margin-top": "5px" } }, v = e({ __name: "common-attr-events", props: { events: { type: Object, default: [] } }, emits: [], setup(e2, { emit: v2 }) {
4
- const y = e2;
5
- return setTimeout(() => {
6
- y.events && y.events.length > 0 && (y.events[0].selLogicCode = "aa");
7
- }, 2e3), (v3, y2) => {
8
- const x = t("el-col"), b = t("el-icon"), _ = t("el-row");
9
- return l(), o("div", g, [(l(true), o(n, null, s(e2.events, (e3, t2) => (l(), i(_, { style: { "border-bottom": "2px dashed #f5f6f8", "padding-top": "5px", "padding-bottom": "5px" } }, { default: r(() => [a(x, { style: { overflow: "hidden" }, span: 20 }, { default: r(() => [d("   " + c(e3.name) + " ", 1), e3.label ? (l(), o(n, { key: 0 }, [d(" (" + c(e3.label) + ") ", 1)], 64)) : p("", true)]), _: 2 }, 1024), a(x, { span: 4, style: { "text-align": "center", "font-weight": "bold" } }, { default: r(() => [e3.selLogicCode ? (l(), i(b, { key: 0, style: { cursor: "pointer", color: "#5893ef", "margin-right": "6px" }, title: "编辑逻辑", onClick: y2[0] || (y2[0] = (e4) => {
1
+ import { defineComponent as e, onUnmounted as t, resolveComponent as o, createElementBlock as l, openBlock as n, Fragment as i, renderList as s, createBlock as r, withCtx as a, createVNode as d, createTextVNode as c, createCommentVNode as p, toDisplayString as m, unref as u } from "vue";
2
+ import { Edit as f, Search as g } from "@element-plus/icons";
3
+ const v = { style: { "margin-top": "5px" } }, y = e({ __name: "common-attr-events", props: { events: { type: Object, default: [] } }, emits: [], setup(e2, { emit: y2 }) {
4
+ const x = e2, b = setTimeout(() => {
5
+ x.events && x.events.length > 0 && (x.events[0].selLogicCode = "aa");
6
+ }, 2e3);
7
+ return t(() => {
8
+ b && clearTimeout(b);
9
+ }), (t2, y3) => {
10
+ const x2 = o("el-col"), b2 = o("el-icon"), _ = o("el-row");
11
+ return n(), l("div", v, [(n(true), l(i, null, s(e2.events, (e3, t3) => (n(), r(_, { style: { "border-bottom": "2px dashed #f5f6f8", "padding-top": "5px", "padding-bottom": "5px" } }, { default: a(() => [d(x2, { style: { overflow: "hidden" }, span: 20 }, { default: a(() => [c("   " + m(e3.name) + " ", 1), e3.label ? (n(), l(i, { key: 0 }, [c(" (" + m(e3.label) + ") ", 1)], 64)) : p("", true)]), _: 2 }, 1024), d(x2, { span: 4, style: { "text-align": "center", "font-weight": "bold" } }, { default: a(() => [e3.selLogicCode ? (n(), r(b2, { key: 0, style: { cursor: "pointer", color: "#5893ef", "margin-right": "6px" }, title: "编辑逻辑", onClick: y3[0] || (y3[0] = (e4) => {
10
12
  alert("edit logicName:{{eventItem.selLogicCode}}");
11
- }) }, { default: r(() => [a(m(u))]), _: 1 })) : p("", true), a(b, { style: { cursor: "pointer" }, title: "选择逻辑", onClick: (e4) => function(e5) {
13
+ }) }, { default: a(() => [d(u(f))]), _: 1 })) : p("", true), d(b2, { style: { cursor: "pointer" }, title: "选择逻辑", onClick: (e4) => function(e5) {
12
14
  alert("eventIndex:" + e5);
13
- }(t2) }, { default: r(() => [a(m(f))]), _: 2 }, 1032, ["onClick"])]), _: 2 }, 1024)]), _: 2 }, 1024))), 256))]);
15
+ }(t3) }, { default: a(() => [d(u(g))]), _: 2 }, 1032, ["onClick"])]), _: 2 }, 1024)]), _: 2 }, 1024))), 256))]);
14
16
  };
15
17
  } });
16
18
  export {
17
- v as default
19
+ y as default
18
20
  };