act-plus 1.1.24 → 1.1.25

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,90 +1,95 @@
1
- import { defineAsyncComponent as W, ref as v, watch as K, resolveComponent as d, unref as o, openBlock as a, createElementBlock as h, createVNode as j, normalizeStyle as G, withCtx as m, Fragment as C, renderList as g, withDirectives as J, createBlock as n, mergeProps as y, withKeys as U, withModifiers as x, createCommentVNode as _, vShow as X, createTextVNode as N, toDisplayString as P } from "vue";
2
- import { _ as Z, u as ee, P as le, a as te } from "./index-d0c3be37.js";
1
+ import { defineAsyncComponent as j, ref as g, watch as G, resolveComponent as s, resolveDirective as J, unref as o, openBlock as r, createElementBlock as h, createVNode as X, normalizeStyle as Z, withCtx as m, Fragment as v, renderList as C, withDirectives as U, createBlock as u, mergeProps as y, withKeys as x, withModifiers as N, createCommentVNode as _, vShow as ee, createTextVNode as P, toDisplayString as E } from "vue";
2
+ import { _ as le, u as te, P as oe, a as ae } from "./index-ba8fa827.js";
3
3
  import "vue-router";
4
+ import "js-base64";
4
5
  import "element-plus";
5
6
  import "monaco-editor";
6
- const oe = {
7
+ const re = {
7
8
  key: 0,
8
9
  class: "search-module-container"
9
- }, ae = {
10
+ }, ne = {
10
11
  __name: "index",
11
12
  props: {
12
13
  data: { type: Object, default: () => ({}) }
13
14
  },
14
15
  emits: ["reset", "search"],
15
- setup(E, { emit: I }) {
16
- const M = W(() => import("./index-e2f2023d.js")), { t: u } = ee(), k = I, c = E;
17
- let p = v([]), q = v([]), V = v(!0);
18
- const Q = (r) => c.data.tableConfig.isExpandQuery && V.value ? c.data.tableConfig.tableQueryRowWidth > r + 1 : !0, i = (r) => new Function("", r.fieldUiProps)() || {}, D = (r) => {
19
- p.value = (r || []).filter((t) => t.useScenes.includes("tableSearch"));
20
- }, R = (r) => {
21
- const t = (r || []).filter((s) => s.permissionCode === 1001);
22
- q.value = [...t, { btnName: u("act.reset"), permissionCode: "9999", btnColor: "info", btnIcon: "btn-reset" }];
16
+ setup(D, { emit: M }) {
17
+ const Q = j(() => import("./index-ba8fa827.js").then((a) => a.f)), { t: d } = te(), k = M, c = D;
18
+ let p = g([]), q = g([]), b = g(!0);
19
+ const A = (a) => c.data.tableConfig.isExpandQuery && b.value ? c.data.tableConfig.tableQueryRowWidth > a + 1 : !0, i = (a) => new Function("", a.fieldUiProps)() || {}, R = (a) => {
20
+ p.value = (a || []).filter((t) => t.useScenes.includes("tableSearch"));
21
+ }, Y = (a) => {
22
+ const t = (a || []).filter((n) => n.permissionCode === 1001).map((n) => ({ ...n, loading: !1 }));
23
+ q.value = [...t, { btnName: d("act.reset"), permissionCode: "9999", btnColor: "info", btnIcon: "btn-reset", loading: !1 }];
23
24
  };
24
- K(
25
+ G(
25
26
  () => c.data,
26
- (r, t) => {
27
- D(r.fields), R(r.buttons);
27
+ (a, t) => {
28
+ R(a.fields), Y(a.buttons);
28
29
  },
29
30
  { immediate: !0 }
30
31
  );
31
- const f = (r) => {
32
- switch (r.permissionCode) {
32
+ const f = (a) => {
33
+ switch (a.loading = !0, a.permissionCode) {
33
34
  case "9999":
34
- p.value.forEach((s) => {
35
- s.fieldType.includes("&") ? s.queryValue = [] : s.queryValue = void 0;
36
- }), k("reset", []);
35
+ p.value.forEach((n) => {
36
+ n.fieldType.includes("&") ? n.queryValue = [] : n.queryValue = void 0;
37
+ }), k("reset", [], () => {
38
+ a.loading = !1;
39
+ });
37
40
  break;
38
41
  default:
39
- const t = p.value.filter((s) => !!s.queryValue);
40
- k("search", t);
42
+ const t = p.value.filter((n) => Array.isArray(n.queryValue) ? n.queryValue.length : !!n.queryValue);
43
+ k("search", t, () => {
44
+ a.loading = !1;
45
+ });
41
46
  break;
42
47
  }
43
- }, Y = () => {
44
- V.value = !V.value;
48
+ }, z = () => {
49
+ b.value = !b.value;
45
50
  };
46
- return (r, t) => {
51
+ return (a, t) => {
47
52
  var S;
48
- const s = d("el-input"), z = d("el-option"), A = d("el-select"), F = d("el-select-v2"), L = d("el-cascader"), w = d("el-date-picker"), T = d("el-form-item"), O = d("a-svg-icon"), $ = d("el-button"), B = d("el-form");
49
- return o(p) && o(p).length ? (a(), h("div", oe, [
50
- j(B, {
51
- style: G({ "--table-query-row": c.data.tableConfig.tableQueryRowWidth }),
53
+ const n = s("el-input"), F = s("el-option"), I = s("el-select"), L = s("el-select-v2"), O = s("el-cascader"), w = s("el-date-picker"), T = s("el-form-item"), B = s("a-svg-icon"), $ = s("el-button"), H = s("el-form"), W = J("debounce");
54
+ return o(p) && o(p).length ? (r(), h("div", re, [
55
+ X(H, {
56
+ style: Z({ "--table-query-row": c.data.tableConfig.tableQueryRowWidth }),
52
57
  class: "form-content",
53
58
  ref: "elForm",
54
59
  "label-suffix": ":",
55
60
  "label-position": "right"
56
61
  }, {
57
62
  default: m(() => [
58
- (a(!0), h(C, null, g(o(p), (e, b) => J((a(), n(T, {
59
- key: b,
63
+ (r(!0), h(v, null, C(o(p), (e, V) => U((r(), u(T, {
64
+ key: V,
60
65
  class: "search-form-item",
61
66
  "label-width": c.data.tableConfig.tableQueryLabelWidth,
62
67
  label: e.fieldName
63
68
  }, {
64
69
  default: m(() => [
65
- e.fieldType === "input" || e.fieldType === "editor" ? (a(), n(s, y({
70
+ e.fieldType === "input" || e.fieldType === "editor" ? (r(), u(n, y({
66
71
  key: 0,
67
72
  modelValue: e.queryValue,
68
73
  "onUpdate:modelValue": (l) => e.queryValue = l,
69
- placeholder: `${o(u)("act.inputPlaceholder")}${e.fieldName}`,
74
+ placeholder: `${o(d)("act.inputPlaceholder")}${e.fieldName}`,
70
75
  clearable: "",
71
76
  ref_for: !0
72
77
  }, i(e), {
73
- onKeyup: t[0] || (t[0] = U(x((l) => f({ permissionCode: 1001 }), ["prevent"]), ["enter", "native"]))
78
+ onKeyup: t[0] || (t[0] = x(N((l) => f({ permissionCode: 1001 }), ["prevent"]), ["enter", "native"]))
74
79
  }), null, 16, ["modelValue", "onUpdate:modelValue", "placeholder"])) : _("", !0),
75
- e.fieldType === "inputNumber" ? (a(), n(o(M), y({
80
+ e.fieldType === "inputNumber" ? (r(), u(o(Q), y({
76
81
  key: 1,
77
82
  modelValue: e.queryValue,
78
83
  "onUpdate:modelValue": (l) => e.queryValue = l,
79
- placeholder: `${o(u)("act.inputPlaceholder")}${e.fieldName}`,
84
+ placeholder: `${o(d)("act.inputPlaceholder")}${e.fieldName}`,
80
85
  clearable: "",
81
- onKeyup: t[1] || (t[1] = U(x((l) => f({ permissionCode: 1001 }), ["prevent"]), ["enter", "native"])),
86
+ onKeyup: t[1] || (t[1] = x(N((l) => f({ permissionCode: 1001 }), ["prevent"]), ["enter", "native"])),
82
87
  ref_for: !0
83
- }, i(e)), null, 16, ["modelValue", "onUpdate:modelValue", "placeholder"])) : ["select", "switch", "multipleSelect"].includes(e.fieldType) ? (a(), n(A, y({
88
+ }, i(e)), null, 16, ["modelValue", "onUpdate:modelValue", "placeholder"])) : ["select", "switch", "multipleSelect"].includes(e.fieldType) ? (r(), u(I, y({
84
89
  key: 2,
85
90
  modelValue: e.queryValue,
86
91
  "onUpdate:modelValue": (l) => e.queryValue = l,
87
- placeholder: `${o(u)("act.selectPlaceholder")}${e.fieldName}`,
92
+ placeholder: `${o(d)("act.selectPlaceholder")}${e.fieldName}`,
88
93
  clearable: "",
89
94
  filterable: "",
90
95
  ref_for: !0
@@ -95,20 +100,20 @@ const oe = {
95
100
  onChange: t[2] || (t[2] = (l) => f({ permissionCode: 1001 }))
96
101
  }), {
97
102
  default: m(() => [
98
- (a(!0), h(C, null, g(e.dataList, (l, H) => (a(), n(z, {
99
- key: H,
103
+ (r(!0), h(v, null, C(e.dataList, (l, K) => (r(), u(F, {
104
+ key: K,
100
105
  label: l.key,
101
106
  value: l.value
102
107
  }, null, 8, ["label", "value"]))), 128))
103
108
  ]),
104
109
  _: 2
105
- }, 1040, ["modelValue", "onUpdate:modelValue", "placeholder", "multiple", "collapse-tags", "collapse-tags-tooltip"])) : ["virtualizedSelect", "virtualizedMultipleSelect"].includes(e.fieldType) ? (a(), n(F, y({
110
+ }, 1040, ["modelValue", "onUpdate:modelValue", "placeholder", "multiple", "collapse-tags", "collapse-tags-tooltip"])) : ["virtualizedSelect", "virtualizedMultipleSelect"].includes(e.fieldType) ? (r(), u(L, y({
106
111
  key: 3,
107
112
  modelValue: e.queryValue,
108
113
  "onUpdate:modelValue": (l) => e.queryValue = l,
109
114
  options: e.dataList,
110
- props: { ...o(le) },
111
- placeholder: `${o(u)("act.selectPlaceholder")}${e.fieldName}`,
115
+ props: { ...o(oe) },
116
+ placeholder: `${o(d)("act.selectPlaceholder")}${e.fieldName}`,
112
117
  clearable: "",
113
118
  filterable: "",
114
119
  ref_for: !0
@@ -117,33 +122,33 @@ const oe = {
117
122
  "collapse-tags-tooltip": e.fieldType === "virtualizedMultipleSelect",
118
123
  multiple: e.fieldType === "virtualizedMultipleSelect",
119
124
  onChange: t[3] || (t[3] = (l) => f({ permissionCode: 1001 }))
120
- }), null, 16, ["modelValue", "onUpdate:modelValue", "options", "props", "placeholder", "collapse-tags", "collapse-tags-tooltip", "multiple"])) : e.fieldType === "provinceCascade" ? (a(), n(L, y({
125
+ }), null, 16, ["modelValue", "onUpdate:modelValue", "options", "props", "placeholder", "collapse-tags", "collapse-tags-tooltip", "multiple"])) : e.fieldType === "provinceCascade" ? (r(), u(O, y({
121
126
  key: 4,
122
127
  modelValue: e.queryValue,
123
128
  "onUpdate:modelValue": (l) => e.queryValue = l,
124
129
  options: e.dataList,
125
- props: { ...o(te), [e.fieldUiType]: !0 },
130
+ props: { ...o(ae), [e.fieldUiType]: !0 },
126
131
  clearable: "",
127
132
  filterable: "",
128
- placeholder: `${o(u)("act.selectPlaceholder")}${e.fieldName}`,
133
+ placeholder: `${o(d)("act.selectPlaceholder")}${e.fieldName}`,
129
134
  ref_for: !0
130
- }, i(e)), null, 16, ["modelValue", "onUpdate:modelValue", "options", "props", "placeholder"])) : e.fieldType === "date" ? (a(), n(w, y({
135
+ }, i(e)), null, 16, ["modelValue", "onUpdate:modelValue", "options", "props", "placeholder"])) : e.fieldType === "date" ? (r(), u(w, y({
131
136
  key: 5,
132
137
  modelValue: e.queryValue,
133
138
  "onUpdate:modelValue": (l) => e.queryValue = l,
134
139
  type: "date",
135
- placeholder: `${o(u)("act.selectPlaceholder")}${o(u)("act.time")}`,
140
+ placeholder: `${o(d)("act.selectPlaceholder")}${o(d)("act.time")}`,
136
141
  "value-format": "YYYY-MM-DD HH:mm:ss",
137
142
  ref_for: !0
138
143
  }, i(e), {
139
144
  onChange: t[4] || (t[4] = (l) => f({ permissionCode: 1001 }))
140
- }), null, 16, ["modelValue", "onUpdate:modelValue", "placeholder"])) : e.fieldType === "dateRange" ? (a(), n(w, y({
145
+ }), null, 16, ["modelValue", "onUpdate:modelValue", "placeholder"])) : e.fieldType === "dateRange" ? (r(), u(w, y({
141
146
  key: 6,
142
147
  modelValue: e.queryValue,
143
148
  "onUpdate:modelValue": (l) => e.queryValue = l,
144
149
  type: "daterange",
145
- "start-placeholder": o(u)("act.startTime"),
146
- "end-placeholder": o(u)("act.endTime"),
150
+ "start-placeholder": o(d)("act.startTime"),
151
+ "end-placeholder": o(d)("act.endTime"),
147
152
  "value-format": "YYYY-MM-DD HH:mm:ss",
148
153
  ref_for: !0
149
154
  }, i(e), {
@@ -152,21 +157,22 @@ const oe = {
152
157
  ]),
153
158
  _: 2
154
159
  }, 1032, ["label-width", "label"])), [
155
- [X, Q(b)]
160
+ [ee, A(V)]
156
161
  ])), 128)),
157
- o(p).length ? (a(), n(T, {
162
+ o(p).length ? (r(), u(T, {
158
163
  key: 0,
159
164
  class: "search-form-btn",
160
165
  "label-width": "0"
161
166
  }, {
162
167
  default: m(() => [
163
- (a(!0), h(C, null, g(o(q), (e, b) => (a(), n($, {
164
- key: b,
168
+ (r(!0), h(v, null, C(o(q), (e, V) => U((r(), u($, {
169
+ key: V,
165
170
  type: e.btnColor,
171
+ loading: e.loading,
166
172
  onClick: (l) => f(e)
167
173
  }, {
168
174
  default: m(() => [
169
- e.btnIcon ? (a(), n(O, {
175
+ e.btnIcon ? (r(), u(B, {
170
176
  key: 0,
171
177
  class: "mr6",
172
178
  name: e.btnIcon,
@@ -174,33 +180,35 @@ const oe = {
174
180
  height: "12",
175
181
  color: "#fff"
176
182
  }, null, 8, ["name"])) : _("", !0),
177
- N(" " + P(e.btnName), 1)
183
+ P(" " + E(e.btnName), 1)
178
184
  ]),
179
185
  _: 2
180
- }, 1032, ["type", "onClick"]))), 128))
186
+ }, 1032, ["type", "loading", "onClick"])), [
187
+ [W]
188
+ ])), 128))
181
189
  ]),
182
190
  _: 1
183
191
  })) : _("", !0)
184
192
  ]),
185
193
  _: 1
186
194
  }, 8, ["style"]),
187
- c.data.tableConfig.isExpandQuery && ((S = o(p)) == null ? void 0 : S.length) > c.data.tableConfig.tableQueryRowWidth ? (a(), n($, {
195
+ c.data.tableConfig.isExpandQuery && ((S = o(p)) == null ? void 0 : S.length) > c.data.tableConfig.tableQueryRowWidth ? (r(), u($, {
188
196
  key: 0,
189
197
  class: "expand",
190
198
  text: "",
191
199
  size: "small",
192
- icon: o(V) ? "ArrowDown" : "ArrowUp",
193
- onClick: Y
200
+ icon: o(b) ? "ArrowDown" : "ArrowUp",
201
+ onClick: z
194
202
  }, {
195
203
  default: m(() => [
196
- N(P(o(V) ? "展开" : "收起"), 1)
204
+ P(E(o(b) ? "展开" : "收起"), 1)
197
205
  ]),
198
206
  _: 1
199
207
  }, 8, ["icon"])) : _("", !0)
200
208
  ])) : _("", !0);
201
209
  };
202
210
  }
203
- }, pe = /* @__PURE__ */ Z(ae, [["__scopeId", "data-v-851e4602"]]);
211
+ }, fe = /* @__PURE__ */ le(ne, [["__scopeId", "data-v-cb281b8b"]]);
204
212
  export {
205
- pe as default
213
+ fe as default
206
214
  };
@@ -1,6 +1,7 @@
1
1
  import { reactive as m, watch as v, resolveComponent as s, openBlock as b, createBlock as g, withCtx as o, createElementVNode as i, createVNode as x, createTextVNode as y, toDisplayString as h, unref as C } from "vue";
2
- import { _ as k, u as V } from "./index-d0c3be37.js";
2
+ import { _ as k, u as V } from "./index-ba8fa827.js";
3
3
  import "vue-router";
4
+ import "js-base64";
4
5
  import "element-plus";
5
6
  import "monaco-editor";
6
7
  const w = ["innerHTML"], B = { class: "dialog-footer" }, D = {
@@ -11,15 +12,15 @@ const w = ["innerHTML"], B = { class: "dialog-footer" }, D = {
11
12
  data: { type: Object, default: () => ({}) }
12
13
  },
13
14
  emits: ["update:visible", "refresh"],
14
- setup(a, { emit: c }) {
15
- const { t: d } = V(), r = c, t = a;
16
- let l = m((() => ({
15
+ setup(l, { emit: c }) {
16
+ const { t: d } = V(), r = c, t = l;
17
+ let a = m((() => ({
17
18
  loading: !1
18
19
  }))());
19
20
  v(
20
21
  () => t.visible,
21
22
  async (e, p) => {
22
- e && (l.loading = !0, l.loading = !1);
23
+ e && (a.loading = !0, a.loading = !1);
23
24
  }
24
25
  );
25
26
  const _ = (e) => {
@@ -51,14 +52,14 @@ const w = ["innerHTML"], B = { class: "dialog-footer" }, D = {
51
52
  ]),
52
53
  default: o(() => [
53
54
  i("div", {
54
- innerHTML: a.data.editorContent
55
+ innerHTML: l.data.editorContent
55
56
  }, null, 8, w)
56
57
  ]),
57
58
  _: 1
58
59
  }, 8, ["model-value", "title"]);
59
60
  };
60
61
  }
61
- }, S = /* @__PURE__ */ k(D, [["__scopeId", "data-v-a8dbe98a"]]);
62
+ }, j = /* @__PURE__ */ k(D, [["__scopeId", "data-v-3484c709"]]);
62
63
  export {
63
- S as default
64
+ j as default
64
65
  };
@@ -1,6 +1,7 @@
1
1
  import { ref as h, watch as I, resolveComponent as _, openBlock as i, createElementBlock as d, createVNode as u, unref as p, isRef as b, withCtx as m, createElementVNode as g, createBlock as w, createCommentVNode as C, createTextVNode as N, Fragment as B, renderList as E, normalizeClass as S } from "vue";
2
- import { _ as z } from "./index-d0c3be37.js";
2
+ import { _ as z } from "./index-ba8fa827.js";
3
3
  import "vue-router";
4
+ import "js-base64";
4
5
  import "element-plus";
5
6
  import "monaco-editor";
6
7
  const A = { class: "select-icon-container" }, F = { class: "icon-list" }, L = ["onClick"], P = {
@@ -85,7 +86,7 @@ const A = { class: "select-icon-container" }, F = { class: "icon-list" }, L = ["
85
86
  ]);
86
87
  };
87
88
  }
88
- }, H = /* @__PURE__ */ z(R, [["__scopeId", "data-v-eac43c79"]]);
89
+ }, J = /* @__PURE__ */ z(R, [["__scopeId", "data-v-3437a309"]]);
89
90
  export {
90
- H as default
91
+ J as default
91
92
  };
@@ -1,6 +1,7 @@
1
1
  import { ref as R, inject as l, watch as j, resolveComponent as C, openBlock as s, 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-d0c3be37.js";
2
+ import { _ as H, u as M } from "./index-ba8fa827.js";
3
3
  import "vue-router";
4
+ import "js-base64";
4
5
  import "element-plus";
5
6
  import "monaco-editor";
6
7
  const z = { class: "header-operate-container" }, G = {
@@ -91,7 +92,7 @@ const z = { class: "header-operate-container" }, G = {
91
92
  ]);
92
93
  };
93
94
  }
94
- }, X = /* @__PURE__ */ H(G, [["__scopeId", "data-v-20d66b80"]]);
95
+ }, Y = /* @__PURE__ */ H(G, [["__scopeId", "data-v-00d47037"]]);
95
96
  export {
96
- X as default
97
+ Y as default
97
98
  };