act-plus 1.1.39 → 1.1.40

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.
@@ -1,6 +1,6 @@
1
- import { inject as O, computed as E, reactive as H, ref as v, watch as K, resolveComponent as r, resolveDirective as w, openBlock as c, createBlock as m, withCtx as i, createElementVNode as P, createVNode as f, unref as t, createTextVNode as V, withDirectives as D, createElementBlock as W, Fragment as G, renderList as Q } from "vue";
1
+ import { inject as O, computed as E, reactive as H, ref as v, watch as K, resolveComponent as r, resolveDirective as w, openBlock as f, createBlock as c, withCtx as i, createElementVNode as P, createVNode as m, unref as l, createTextVNode as V, withDirectives as D, createElementBlock as W, Fragment as G, renderList as Q } from "vue";
2
2
  import { useRoute as $ } from "vue-router";
3
- import { _ as z } from "./index-695e54dd.js";
3
+ import { _ as z } from "./index-c18badb4.js";
4
4
  import "js-base64";
5
5
  import "element-plus";
6
6
  import "monaco-editor";
@@ -19,22 +19,22 @@ const J = { class: "dialog-footer" }, M = {
19
19
  dataBase: "",
20
20
  api: ""
21
21
  });
22
- let l = H((() => ({
22
+ let a = H((() => ({
23
23
  loading: !1,
24
24
  btnLoading: !1
25
- }))()), h = v([]), _ = v(null), o = v(T());
25
+ }))()), B = v([]), g = v(null), o = v(T());
26
26
  const q = (e) => y({ url: "/api/v1/scripts/getAllDatabaseTable", method: "get", data: e }), F = async () => {
27
27
  try {
28
- l.loading = !0;
28
+ a.loading = !0;
29
29
  const { data: e } = await q();
30
- h.value = e || [], l.loading = !1;
30
+ B.value = e || [], a.loading = !1;
31
31
  } catch (e) {
32
- console.error(e), l.loading = !1;
32
+ console.error(e), a.loading = !1;
33
33
  }
34
34
  };
35
35
  K(
36
36
  () => p.visible,
37
- async (e, a) => {
37
+ async (e, t) => {
38
38
  e && await F();
39
39
  }
40
40
  );
@@ -64,29 +64,29 @@ const J = { class: "dialog-footer" }, M = {
64
64
  isTableCellOverflowTooltip: !0,
65
65
  isTableCellSort: !0
66
66
  }), R = (e) => {
67
- g(), e();
68
- }, g = () => {
69
- o.value = Object.assign(o.value, T()), _.value.resetFields(), C("update:visible", !1);
67
+ b(), e();
68
+ }, b = () => {
69
+ o.value = Object.assign(o.value, T()), g.value.resetFields(), C("update:visible", !1);
70
70
  }, I = (e) => {
71
- e && e.validate(async (a) => {
72
- if (a)
71
+ e && e.validate(async (t) => {
72
+ if (t)
73
73
  try {
74
- l.btnLoading = !0;
75
- const { data: d } = await y({ url: "/api/v1/scripts/getAllColumnsByTableName", method: "get", params: { tableName: o.value.dataBase } }), b = (d || []).map((u) => {
74
+ a.btnLoading = !0;
75
+ const { data: d } = await y({ url: "/api/v1/scripts/getAllColumnsByTableName", method: "get", params: { tableName: o.value.dataBase } }), _ = (d || []).map((u) => {
76
76
  let s = x();
77
77
  return s.fieldName = u.comment, s.fieldKey = u.name, s.fieldType = "string", s;
78
78
  });
79
- C("refresh", { formList: b }, () => {
80
- g();
81
- }), l.btnLoading = !1;
79
+ C("refresh", { formList: _ }, () => {
80
+ b();
81
+ }), a.btnLoading = !1;
82
82
  } catch (d) {
83
- console.error(d), l.btnLoading = !1;
83
+ console.error(d), a.btnLoading = !1;
84
84
  }
85
85
  });
86
86
  };
87
- return (e, a) => {
88
- const d = r("el-option"), b = r("el-select"), u = r("el-form-item"), s = r("el-input"), S = r("el-form"), B = r("el-button"), U = r("el-dialog"), j = w("loading"), A = w("debounce");
89
- return c(), m(U, {
87
+ return (e, t) => {
88
+ const d = r("el-option"), _ = r("el-select"), u = r("el-form-item"), s = r("el-input"), S = r("el-form"), h = r("el-button"), U = r("el-dialog"), j = w("loading"), A = w("debounce");
89
+ return f(), c(U, {
90
90
  "model-value": p.visible,
91
91
  title: p.title,
92
92
  top: "10vh",
@@ -98,23 +98,23 @@ const J = { class: "dialog-footer" }, M = {
98
98
  }, {
99
99
  footer: i(() => [
100
100
  P("span", J, [
101
- f(B, {
102
- loading: t(l).btnLoading,
103
- onClick: g
101
+ m(h, {
102
+ loading: l(a).btnLoading,
103
+ onClick: b
104
104
  }, {
105
- default: i(() => [
105
+ default: i(() => t[3] || (t[3] = [
106
106
  V("取消")
107
- ]),
107
+ ])),
108
108
  _: 1
109
109
  }, 8, ["loading"]),
110
- D((c(), m(B, {
110
+ D((f(), c(h, {
111
111
  type: "primary",
112
- loading: t(l).btnLoading,
113
- onClick: a[2] || (a[2] = (n) => I(t(_)))
112
+ loading: l(a).btnLoading,
113
+ onClick: t[2] || (t[2] = (n) => I(l(g)))
114
114
  }, {
115
- default: i(() => [
115
+ default: i(() => t[4] || (t[4] = [
116
116
  V("保存")
117
- ]),
117
+ ])),
118
118
  _: 1
119
119
  }, 8, ["loading"])), [
120
120
  [A]
@@ -122,30 +122,30 @@ const J = { class: "dialog-footer" }, M = {
122
122
  ])
123
123
  ]),
124
124
  default: i(() => [
125
- D((c(), m(S, {
125
+ D((f(), c(S, {
126
126
  ref_key: "formRef",
127
- ref: _,
128
- model: t(o),
127
+ ref: g,
128
+ model: l(o),
129
129
  "label-suffix": ":",
130
130
  "label-position": "top"
131
131
  }, {
132
132
  default: i(() => [
133
- f(u, {
133
+ m(u, {
134
134
  label: "数据库",
135
135
  "label-width": "120",
136
136
  rules: [{ required: !1, message: "必填项", trigger: "change" }],
137
137
  prop: "dataBase"
138
138
  }, {
139
139
  default: i(() => [
140
- f(b, {
141
- modelValue: t(o).dataBase,
142
- "onUpdate:modelValue": a[0] || (a[0] = (n) => t(o).dataBase = n),
140
+ m(_, {
141
+ modelValue: l(o).dataBase,
142
+ "onUpdate:modelValue": t[0] || (t[0] = (n) => l(o).dataBase = n),
143
143
  placeholder: "请选择数据库",
144
144
  clearable: "",
145
145
  filterable: ""
146
146
  }, {
147
147
  default: i(() => [
148
- (c(!0), W(G, null, Q(t(h), (n, Y) => (c(), m(d, {
148
+ (f(!0), W(G, null, Q(l(B), (n, Y) => (f(), c(d, {
149
149
  key: n,
150
150
  label: n.tableComment,
151
151
  value: n.tableName
@@ -156,16 +156,16 @@ const J = { class: "dialog-footer" }, M = {
156
156
  ]),
157
157
  _: 1
158
158
  }),
159
- f(u, {
159
+ m(u, {
160
160
  label: "接口地址(关键字)",
161
161
  "label-width": "120",
162
162
  rules: [{ required: !1, message: "必填项", trigger: "change" }],
163
163
  prop: "api"
164
164
  }, {
165
165
  default: i(() => [
166
- f(s, {
167
- modelValue: t(o).api,
168
- "onUpdate:modelValue": a[1] || (a[1] = (n) => t(o).api = n),
166
+ m(s, {
167
+ modelValue: l(o).api,
168
+ "onUpdate:modelValue": t[1] || (t[1] = (n) => l(o).api = n),
169
169
  placeholder: "请输入接口地址(关键字)",
170
170
  clearable: ""
171
171
  }, null, 8, ["modelValue"])
@@ -175,7 +175,7 @@ const J = { class: "dialog-footer" }, M = {
175
175
  ]),
176
176
  _: 1
177
177
  }, 8, ["model"])), [
178
- [j, t(l).loading]
178
+ [j, l(a).loading]
179
179
  ])
180
180
  ]),
181
181
  _: 1
@@ -0,0 +1,71 @@
1
+ import { defineAsyncComponent as _, ref as y, watch as C, resolveComponent as u, openBlock as k, createBlock as x, withCtx as a, createElementVNode as w, createVNode as s, createTextVNode as p, unref as m, isRef as S } from "vue";
2
+ const B = { class: "dialog-footer" }, h = {
3
+ __name: "dialogSiteComponentsParams",
4
+ props: {
5
+ visible: { type: Boolean, default: !1 },
6
+ title: { type: String, default: "" },
7
+ modelValue: { type: String, default: "" }
8
+ },
9
+ emits: ["update:visible", "refresh", "update:modelValue"],
10
+ setup(f, { emit: c }) {
11
+ const v = _(() => import("./index-c18badb4.js").then((l) => l.i)), n = c, o = f;
12
+ let t = y();
13
+ C(
14
+ () => o.visible,
15
+ async (l, e) => {
16
+ l && (t.value = o.modelValue);
17
+ }
18
+ );
19
+ const b = (l) => {
20
+ d(), l();
21
+ }, d = () => {
22
+ t.value = "", n("update:visible", !1);
23
+ }, V = () => {
24
+ n("update:modelValue", t.value), n("update:visible", !1);
25
+ };
26
+ return (l, e) => {
27
+ const r = u("el-button"), g = u("el-dialog");
28
+ return k(), x(g, {
29
+ "model-value": o.visible,
30
+ title: o.title,
31
+ top: "5vh",
32
+ width: "800",
33
+ draggable: "",
34
+ overflow: "",
35
+ "close-on-click-modal": !1,
36
+ "before-close": b
37
+ }, {
38
+ footer: a(() => [
39
+ w("span", B, [
40
+ s(r, { onClick: d }, {
41
+ default: a(() => e[2] || (e[2] = [
42
+ p("取消")
43
+ ])),
44
+ _: 1
45
+ }),
46
+ s(r, {
47
+ type: "primary",
48
+ onClick: e[1] || (e[1] = (i) => V())
49
+ }, {
50
+ default: a(() => e[3] || (e[3] = [
51
+ p("保存")
52
+ ])),
53
+ _: 1
54
+ })
55
+ ])
56
+ ]),
57
+ default: a(() => [
58
+ s(m(v), {
59
+ modelValue: m(t),
60
+ "onUpdate:modelValue": e[0] || (e[0] = (i) => S(t) ? t.value = i : t = i),
61
+ style: { height: "600px" }
62
+ }, null, 8, ["modelValue"])
63
+ ]),
64
+ _: 1
65
+ }, 8, ["model-value", "title"]);
66
+ };
67
+ }
68
+ };
69
+ export {
70
+ h as default
71
+ };
@@ -1,5 +1,5 @@
1
- import { ref as R, inject as l, watch as j, resolveComponent as C, openBlock as r, createElementBlock as f, Fragment as y, renderList as q, unref as c, createBlock as i, resolveDynamicComponent as O, withCtx as _, createVNode as E, createCommentVNode as u, createTextVNode as B, toDisplayString as k } from "vue";
2
- import { _ as H, u as M } from "./index-695e54dd.js";
1
+ import { ref as R, inject as l, watch as j, resolveComponent as C, openBlock as a, createElementBlock as m, Fragment as y, renderList as q, unref as c, createBlock as i, resolveDynamicComponent as O, withCtx as _, createVNode as E, createCommentVNode as u, createTextVNode as B, toDisplayString as k } from "vue";
2
+ import { _ as H, u as M } from "./index-c18badb4.js";
3
3
  import "vue-router";
4
4
  import "js-base64";
5
5
  import "element-plus";
@@ -17,14 +17,14 @@ const z = { class: "header-operate-container" }, G = {
17
17
  if (!o.matchFields.length)
18
18
  return !0;
19
19
  const t = o.matchFields.filter((n) => n.matchType != "default"), s = (n) => F.matchData[n.matchType][n.matchFieldName];
20
- let e = t.reduce((n, a, m) => {
21
- const L = s(a);
20
+ let e = t.reduce((n, r, f) => {
21
+ const L = s(r);
22
22
  return n += S(
23
- a.matchCondition,
23
+ r.matchCondition,
24
24
  L,
25
- a.fieldValue == "" ? null : a.fieldValue == "true" || a.fieldValue == "false" ? D(a.fieldValue) : a.fieldValue
26
- ), m !== t.length - 1 && (n += a.spliceCondition || "&&"), n;
27
- }, "").split("||"), p = e.reduce((n, a, m) => (n += `(${a})`, m < e.length - 1 && (n += "||"), n), "");
25
+ r.fieldValue == "" ? null : r.fieldValue == "true" || r.fieldValue == "false" ? D(r.fieldValue) : r.fieldValue
26
+ ), f !== t.length - 1 && (n += r.spliceCondition || "&&"), n;
27
+ }, "").split("||"), p = e.reduce((n, r, f) => (n += `(${r})`, f < e.length - 1 && (n += "||"), n), "");
28
28
  return new Function(`return ${p}`)();
29
29
  }, h = (o) => $.value.some((t) => t.unique == o.permissionCode) && I(o), v = (o) => {
30
30
  b.value = (o || []).filter((t) => t.permissionCode !== 1001 && t.btnPostion.includes("header")).map((t) => (t.btnAlias && (t.btnName = t.btnAlias), t)).sort((t, s) => t.sort - s.sort);
@@ -41,9 +41,9 @@ const z = { class: "header-operate-container" }, G = {
41
41
  };
42
42
  return (o, t) => {
43
43
  const s = C("a-svg-icon"), d = C("el-button");
44
- return r(), f("div", z, [
45
- (r(!0), f(y, null, q(c(b), (e, p) => (r(), f(y, { key: p }, [
46
- e.isCustomBtn && e.customType == "component" && h(e) ? (r(), i(O(e[e.customComponentName]), {
44
+ return a(), m("div", z, [
45
+ (a(!0), m(y, null, q(c(b), (e, p) => (a(), m(y, { key: p }, [
46
+ e.isCustomBtn && e.customType == "component" && h(e) ? (a(), i(O(e[e.customComponentName]), {
47
47
  key: 0,
48
48
  ref_for: !0,
49
49
  ref: (n) => c(A)[`${e.customComponentName}-${e.permissionCode}`] = n,
@@ -57,7 +57,7 @@ const z = { class: "header-operate-container" }, G = {
57
57
  onClick: (n) => g(e)
58
58
  }, {
59
59
  default: _(() => [
60
- e.btnIcon ? (r(), i(s, {
60
+ e.btnIcon ? (a(), i(s, {
61
61
  key: 0,
62
62
  class: "mr4",
63
63
  name: e.btnIcon,
@@ -72,7 +72,7 @@ const z = { class: "header-operate-container" }, G = {
72
72
  ]),
73
73
  _: 2
74
74
  }, 1064, ["buttonData"])) : u("", !0),
75
- !e.isCustomBtn && h(e) ? (r(), i(d, {
75
+ h(e) ? (a(), i(d, {
76
76
  key: 1,
77
77
  class: "el-btn",
78
78
  type: e.btnColor,
@@ -80,7 +80,7 @@ const z = { class: "header-operate-container" }, G = {
80
80
  onClick: (n) => g(e)
81
81
  }, {
82
82
  default: _(() => [
83
- e.btnIcon ? (r(), i(s, {
83
+ e.btnIcon ? (a(), i(s, {
84
84
  key: 0,
85
85
  class: "mr4",
86
86
  name: e.btnIcon,
@@ -96,7 +96,7 @@ const z = { class: "header-operate-container" }, G = {
96
96
  ]);
97
97
  };
98
98
  }
99
- }, Y = /* @__PURE__ */ H(G, [["__scopeId", "data-v-b8dfe0ca"]]);
99
+ }, Y = /* @__PURE__ */ H(G, [["__scopeId", "data-v-1cf1f0ce"]]);
100
100
  export {
101
101
  Y as default
102
102
  };
@@ -1,5 +1,5 @@
1
1
  import { defineAsyncComponent as le, inject as x, ref as R, watch as ae, resolveComponent as i, resolveDirective as te, unref as l, openBlock as n, createElementBlock as $, createVNode as oe, normalizeStyle as re, withCtx as h, Fragment as E, renderList as D, withDirectives as z, createBlock as u, mergeProps as m, withKeys as A, withModifiers as F, createCommentVNode as g, vShow as ne, createTextVNode as Y, toDisplayString as B } from "vue";
2
- import { _ as se, u as ue, P as H, a as de, b as pe } from "./index-695e54dd.js";
2
+ import { _ as se, u as ue, P as H, a as de, b as pe } from "./index-c18badb4.js";
3
3
  import "vue-router";
4
4
  import "js-base64";
5
5
  import "element-plus";
@@ -14,7 +14,7 @@ const ie = {
14
14
  },
15
15
  emits: ["reset", "search"],
16
16
  setup(W, { emit: j }) {
17
- const I = le(() => import("./index-695e54dd.js").then((o) => o.g)), { t: d } = ue(), K = x("request"), p = x("getFieldUiProps"), L = x("formatDataType"), M = j, b = W;
17
+ const I = le(() => import("./index-c18badb4.js").then((o) => o.g)), { t: d } = ue(), K = x("request"), p = x("getFieldUiProps"), L = x("formatDataType"), M = j, b = W;
18
18
  let f = R([]), O = R([]), C = R(!0);
19
19
  const G = (o) => b.data.tableConfig.isExpandQuery && C.value ? b.data.tableConfig.tableQueryRowWidth > o + 1 : !0, J = (o) => {
20
20
  f.value = (o || []).filter((t) => t.useScenes.includes("tableSearch"));
@@ -248,7 +248,7 @@ const ie = {
248
248
  ])) : g("", !0);
249
249
  };
250
250
  }
251
- }, he = /* @__PURE__ */ se(ce, [["__scopeId", "data-v-e8e4dcb3"]]);
251
+ }, he = /* @__PURE__ */ se(ce, [["__scopeId", "data-v-5dc94ebf"]]);
252
252
  export {
253
253
  he as default
254
254
  };
@@ -1,5 +1,5 @@
1
- import { ref as d, watch as y, resolveComponent as _, openBlock as r, createElementBlock as m, createVNode as v, unref as u, isRef as w, withCtx as f, createElementVNode as g, createBlock as C, createCommentVNode as N, createTextVNode as $, Fragment as B, renderList as E, normalizeClass as L } from "vue";
2
- import { _ as P } from "./index-695e54dd.js";
1
+ import { ref as d, watch as h, resolveComponent as m, openBlock as r, createElementBlock as _, createVNode as v, unref as u, isRef as w, withCtx as f, createElementVNode as g, createBlock as C, createCommentVNode as N, createTextVNode as $, Fragment as B, renderList as E, normalizeClass as L } from "vue";
2
+ import { _ as P } from "./index-c18badb4.js";
3
3
  import "vue-router";
4
4
  import "js-base64";
5
5
  import "element-plus";
@@ -19,72 +19,72 @@ const R = { class: "select-icon-container" }, S = { class: "icon-list" }, j = ["
19
19
  },
20
20
  emits: ["update:modelValue"],
21
21
  setup(x, { emit: V }) {
22
- const h = V, c = x;
23
- let s = d(!1), o = d(-1), i = d([]);
24
- const b = () => o.value == -1 ? "" : i.value[o.value];
25
- y(
26
- () => c.icons,
27
- (n, l) => {
28
- n && (i.value = (c.icons || []).map((e) => {
29
- const { props: t } = c;
30
- return Reflect.has(e, t.value) ? `${t.type}-${e[t.value]}` : `${t.type}-${e}`;
22
+ const y = V, s = x;
23
+ let c = d(!1), n = d(-1), i = d([]);
24
+ const b = () => n.value == -1 ? "" : i.value[n.value];
25
+ h(
26
+ () => s.icons,
27
+ (l, e) => {
28
+ l && (i.value = (s.icons || []).map((t) => {
29
+ const { props: o } = s;
30
+ return Reflect.has(t, o.value) ? `${o.type}-${t[o.value]}` : `${o.type}-${t}`;
31
31
  }));
32
32
  },
33
33
  { deep: !0, immediate: !0 }
34
- ), y(
35
- () => c.modelValue,
36
- (n, l) => {
37
- if (!n) {
38
- o.value = -1, h("update:modelValue", "");
34
+ ), h(
35
+ () => s.modelValue,
36
+ (l, e) => {
37
+ if (!l) {
38
+ n.value = -1, y("update:modelValue", "");
39
39
  return;
40
40
  }
41
- const e = i.value.findIndex((t) => t === n);
42
- o.value = e;
41
+ const t = i.value.findIndex((o) => o === l);
42
+ n.value = t;
43
43
  },
44
44
  { deep: !0, immediate: !0 }
45
45
  );
46
- const k = (n, l) => {
47
- o.value = l, h("update:modelValue", b()), s.value = !1;
46
+ const k = (l, e) => {
47
+ n.value = e, y("update:modelValue", b()), c.value = !1;
48
48
  };
49
- return (n, l) => {
50
- const e = _("a-svg-icon"), t = _("el-button"), I = _("el-popover");
51
- return r(), m("div", R, [
49
+ return (l, e) => {
50
+ const t = m("a-svg-icon"), o = m("el-button"), I = m("el-popover");
51
+ return r(), _("div", R, [
52
52
  v(I, {
53
53
  "popper-class": "select-icon-popover",
54
54
  placement: "bottom-start",
55
- visible: u(s),
56
- "onUpdate:visible": l[0] || (l[0] = (a) => w(s) ? s.value = a : s = a),
55
+ visible: u(c),
56
+ "onUpdate:visible": e[0] || (e[0] = (a) => w(c) ? c.value = a : c = a),
57
57
  width: 400,
58
58
  trigger: "click"
59
59
  }, {
60
60
  reference: f(() => [
61
61
  g("div", z, [
62
- u(o) >= 0 ? (r(), C(e, {
62
+ u(n) >= 0 ? (r(), C(t, {
63
63
  key: 0,
64
- name: c.modelValue,
64
+ name: s.modelValue,
65
65
  width: "24",
66
66
  height: "24",
67
67
  color: "#000"
68
68
  }, null, 8, ["name"])) : N("", !0),
69
- v(t, {
69
+ v(o, {
70
70
  class: "icon-btn",
71
71
  type: "primary"
72
72
  }, {
73
- default: f(() => [
73
+ default: f(() => e[1] || (e[1] = [
74
74
  $("选择图标")
75
- ]),
75
+ ])),
76
76
  _: 1
77
77
  })
78
78
  ])
79
79
  ]),
80
80
  default: f(() => [
81
81
  g("ul", S, [
82
- (r(!0), m(B, null, E(u(i), (a, p) => (r(), m("li", {
83
- class: L(["icon-item", { "icon-item-checked": u(o) == p }]),
82
+ (r(!0), _(B, null, E(u(i), (a, p) => (r(), _("li", {
83
+ class: L(["icon-item", { "icon-item-checked": u(n) == p }]),
84
84
  key: p,
85
85
  onClick: (F) => k(a, p)
86
86
  }, [
87
- v(e, {
87
+ v(t, {
88
88
  class: "icon-svg",
89
89
  name: a,
90
90
  width: "24",