act-plus 1.1.32 → 1.1.34

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,7 +1,7 @@
1
- import { defineAsyncComponent as O, inject as N, computed as oe, reactive as ue, ref as B, watch as ne, resolveComponent as y, openBlock as d, createBlock as m, withCtx as l, createElementVNode as de, createVNode as e, unref as o, createTextVNode as U, toDisplayString as A, createCommentVNode as C, createElementBlock as b, Fragment as f, renderList as _ } from "vue";
2
- import { B as re, b as se, c as ie, d as me, e as pe, f as ce, g as be, h as fe, i as _e } from "./enum-ab7125f9.js";
1
+ import { defineAsyncComponent as O, inject as N, computed as oe, reactive as ue, ref as B, watch as ne, resolveComponent as y, openBlock as n, createBlock as m, withCtx as l, createElementVNode as de, createVNode as e, unref as o, createTextVNode as U, toDisplayString as A, createCommentVNode as C, createElementBlock as b, Fragment as f, renderList as _ } from "vue";
2
+ import { B as re, b as se, c as ie, d as me, e as pe, f as ce, g as be, h as fe, i as _e } from "./enum-95788c42.js";
3
3
  import { useRoute as ge } from "vue-router";
4
- import { _ as Ve } from "./index-0098f472.js";
4
+ import { _ as Ve } from "./index-cb3083b6.js";
5
5
  import "js-base64";
6
6
  import "element-plus";
7
7
  import "monaco-editor";
@@ -14,25 +14,25 @@ const ye = { class: "dialog-footer" }, he = {
14
14
  },
15
15
  emits: ["update:visible", "refresh"],
16
16
  setup(x, { emit: P }) {
17
- const E = O(() => import("./index-4b8e69bd.js")), D = O(() => import("./index-0098f472.js").then((p) => p.i)), W = ge(), R = N("request"), I = P, T = x, Y = oe(() => W.params.key);
17
+ const E = O(() => import("./index-7abb8f31.js")), D = O(() => import("./index-cb3083b6.js").then((p) => p.i)), W = ge(), R = N("request"), I = P, T = x, Y = oe(() => W.params.key);
18
18
  let k = ue((() => ({
19
19
  btnLoading: !1
20
20
  }))());
21
- const M = N("createDefaultButtonItem"), $ = N("associationMenuList"), j = N("conditionList")();
21
+ const M = N("createDefaultButtonItem"), j = N("associationMenuList"), $ = N("conditionList")();
22
22
  let w = B([]);
23
23
  B([]);
24
24
  let S = B(null), t = B(M());
25
25
  const z = (p) => R({ url: "/api/v1/icons/getAllList", method: "post", data: p }), H = async () => {
26
26
  try {
27
27
  const { data: p } = await z({ dynamicFilters: [{ field: "type", operate: "Equal", value: "2" }] });
28
- w.value = (p || []).map((n) => `btn-${n.name}`);
28
+ w.value = p || [];
29
29
  } catch (p) {
30
30
  console.error(p);
31
31
  }
32
32
  };
33
33
  ne(
34
34
  () => T.visible,
35
- async (p, n) => {
35
+ async (p, d) => {
36
36
  if (p) {
37
37
  await H();
38
38
  const c = { ...T.data };
@@ -57,8 +57,8 @@ const ye = { class: "dialog-footer" }, he = {
57
57
  }, q = () => {
58
58
  t.value = Object.assign(t.value, M()), S.value.resetFields(), I("update:visible", !1);
59
59
  }, ee = (p) => {
60
- p && p.validate((n) => {
61
- if (n)
60
+ p && p.validate((d) => {
61
+ if (d)
62
62
  try {
63
63
  k.btnLoading = !0, I("refresh", { ...t.value, submitFields: [...t.value.submitFields], matchFields: [...t.value.matchFields] }, () => {
64
64
  q();
@@ -68,9 +68,9 @@ const ye = { class: "dialog-footer" }, he = {
68
68
  }
69
69
  });
70
70
  };
71
- return (p, n) => {
71
+ return (p, d) => {
72
72
  const c = y("el-input"), r = y("el-form-item"), i = y("el-col"), g = y("el-option"), V = y("el-select"), F = y("el-row"), v = y("el-button"), L = y("el-divider"), le = y("el-switch"), ae = y("el-form"), te = y("el-dialog");
73
- return d(), m(te, {
73
+ return n(), m(te, {
74
74
  "model-value": T.visible,
75
75
  title: T.title,
76
76
  top: "5vh",
@@ -94,7 +94,7 @@ const ye = { class: "dialog-footer" }, he = {
94
94
  e(v, {
95
95
  type: "primary",
96
96
  loading: o(k).btnLoading,
97
- onClick: n[14] || (n[14] = (a) => ee(o(S)))
97
+ onClick: d[14] || (d[14] = (a) => ee(o(S)))
98
98
  }, {
99
99
  default: l(() => [
100
100
  U("保存")
@@ -123,7 +123,7 @@ const ye = { class: "dialog-footer" }, he = {
123
123
  default: l(() => [
124
124
  e(c, {
125
125
  modelValue: o(t).btnName,
126
- "onUpdate:modelValue": n[0] || (n[0] = (a) => o(t).btnName = a),
126
+ "onUpdate:modelValue": d[0] || (d[0] = (a) => o(t).btnName = a),
127
127
  disabled: "",
128
128
  placeholder: "请输入按钮名称"
129
129
  }, {
@@ -147,8 +147,9 @@ const ye = { class: "dialog-footer" }, he = {
147
147
  default: l(() => [
148
148
  e(o(E), {
149
149
  modelValue: o(t).btnIcon,
150
- "onUpdate:modelValue": n[1] || (n[1] = (a) => o(t).btnIcon = a),
151
- icons: o(w)
150
+ "onUpdate:modelValue": d[1] || (d[1] = (a) => o(t).btnIcon = a),
151
+ icons: o(w),
152
+ props: { value: "name", type: "btn" }
152
153
  }, null, 8, ["modelValue", "icons"])
153
154
  ]),
154
155
  _: 1
@@ -156,7 +157,7 @@ const ye = { class: "dialog-footer" }, he = {
156
157
  ]),
157
158
  _: 1
158
159
  }),
159
- o(t).permissionCode != "1001" && !o(t).isCustomBtn ? (d(), m(i, {
160
+ o(t).permissionCode != "1001" && !o(t).isCustomBtn ? (n(), m(i, {
160
161
  key: 0,
161
162
  span: 24
162
163
  }, {
@@ -169,7 +170,7 @@ const ye = { class: "dialog-footer" }, he = {
169
170
  default: l(() => [
170
171
  e(c, {
171
172
  modelValue: o(t).requestUrl,
172
- "onUpdate:modelValue": n[2] || (n[2] = (a) => o(t).requestUrl = a),
173
+ "onUpdate:modelValue": d[2] || (d[2] = (a) => o(t).requestUrl = a),
173
174
  placeholder: "请输入接口地址",
174
175
  clearable: ""
175
176
  }, null, 8, ["modelValue"])
@@ -189,13 +190,13 @@ const ye = { class: "dialog-footer" }, he = {
189
190
  default: l(() => [
190
191
  e(V, {
191
192
  modelValue: o(t).btnPostion,
192
- "onUpdate:modelValue": n[3] || (n[3] = (a) => o(t).btnPostion = a),
193
+ "onUpdate:modelValue": d[3] || (d[3] = (a) => o(t).btnPostion = a),
193
194
  placeholder: "请选择按钮位置",
194
195
  filterable: "",
195
196
  clearable: ""
196
197
  }, {
197
198
  default: l(() => [
198
- (d(!0), b(f, null, _(o(re), (a, s) => (d(), m(g, {
199
+ (n(!0), b(f, null, _(o(re), (a, s) => (n(), m(g, {
199
200
  key: s,
200
201
  label: a.key,
201
202
  value: a.value
@@ -219,13 +220,13 @@ const ye = { class: "dialog-footer" }, he = {
219
220
  default: l(() => [
220
221
  e(V, {
221
222
  modelValue: o(t).btnType,
222
- "onUpdate:modelValue": n[4] || (n[4] = (a) => o(t).btnType = a),
223
+ "onUpdate:modelValue": d[4] || (d[4] = (a) => o(t).btnType = a),
223
224
  placeholder: "请选择按钮类型",
224
225
  filterable: "",
225
226
  clearable: ""
226
227
  }, {
227
228
  default: l(() => [
228
- (d(!0), b(f, null, _(o(se), (a, s) => (d(), m(g, {
229
+ (n(!0), b(f, null, _(o(se), (a, s) => (n(), m(g, {
229
230
  key: s,
230
231
  label: a.key,
231
232
  value: a.value
@@ -248,7 +249,7 @@ const ye = { class: "dialog-footer" }, he = {
248
249
  default: l(() => [
249
250
  e(c, {
250
251
  modelValue: o(t).btnAlias,
251
- "onUpdate:modelValue": n[5] || (n[5] = (a) => o(t).btnAlias = a),
252
+ "onUpdate:modelValue": d[5] || (d[5] = (a) => o(t).btnAlias = a),
252
253
  placeholder: "请输入按钮别名",
253
254
  clearable: ""
254
255
  }, null, 8, ["modelValue"])
@@ -268,13 +269,13 @@ const ye = { class: "dialog-footer" }, he = {
268
269
  default: l(() => [
269
270
  e(V, {
270
271
  modelValue: o(t).btnColor,
271
- "onUpdate:modelValue": n[6] || (n[6] = (a) => o(t).btnColor = a),
272
+ "onUpdate:modelValue": d[6] || (d[6] = (a) => o(t).btnColor = a),
272
273
  placeholder: "请选择按钮颜色",
273
274
  filterable: "",
274
275
  clearable: ""
275
276
  }, {
276
277
  default: l(() => [
277
- (d(!0), b(f, null, _(o(ie), (a, s) => (d(), m(g, {
278
+ (n(!0), b(f, null, _(o(ie), (a, s) => (n(), m(g, {
278
279
  key: s,
279
280
  label: a.key,
280
281
  value: a.value
@@ -288,12 +289,12 @@ const ye = { class: "dialog-footer" }, he = {
288
289
  ]),
289
290
  _: 1
290
291
  }),
291
- !o(t).isCustomBtn && o(t).permissionCode != "1001" ? (d(), m(i, {
292
+ !o(t).isCustomBtn && o(t).permissionCode != "1001" ? (n(), m(i, {
292
293
  key: 1,
293
294
  span: 12
294
295
  }, {
295
296
  default: l(() => [
296
- !o(t).isCustomBtn && o(t).permissionCode != "1001" ? (d(), m(r, {
297
+ !o(t).isCustomBtn && o(t).permissionCode != "1001" ? (n(), m(r, {
297
298
  key: 0,
298
299
  label: "提交方式",
299
300
  rules: [{ required: !0, message: "必填项", trigger: "change" }],
@@ -302,13 +303,13 @@ const ye = { class: "dialog-footer" }, he = {
302
303
  default: l(() => [
303
304
  e(V, {
304
305
  modelValue: o(t).submitWay,
305
- "onUpdate:modelValue": n[7] || (n[7] = (a) => o(t).submitWay = a),
306
+ "onUpdate:modelValue": d[7] || (d[7] = (a) => o(t).submitWay = a),
306
307
  placeholder: "请选择提交方式",
307
308
  filterable: "",
308
309
  clearable: ""
309
310
  }, {
310
311
  default: l(() => [
311
- (d(!0), b(f, null, _(o(me), (a, s) => (d(), m(g, {
312
+ (n(!0), b(f, null, _(o(me), (a, s) => (n(), m(g, {
312
313
  key: s,
313
314
  label: a.key,
314
315
  value: a.value
@@ -338,7 +339,7 @@ const ye = { class: "dialog-footer" }, he = {
338
339
  ]),
339
340
  _: 1
340
341
  }),
341
- (d(!0), b(f, null, _(o(t).submitFields, (a, s) => (d(), m(F, {
342
+ (n(!0), b(f, null, _(o(t).submitFields, (a, s) => (n(), m(F, {
342
343
  gutter: 24,
343
344
  key: s
344
345
  }, {
@@ -387,7 +388,7 @@ const ye = { class: "dialog-footer" }, he = {
387
388
  onChange: (u) => a.submitFieldMatchOrigin = "rowData"
388
389
  }, {
389
390
  default: l(() => [
390
- (d(!0), b(f, null, _(o(pe), (u, h) => (d(), m(g, {
391
+ (n(!0), b(f, null, _(o(pe), (u, h) => (n(), m(g, {
391
392
  key: h,
392
393
  label: u.key,
393
394
  value: u.value
@@ -404,7 +405,7 @@ const ye = { class: "dialog-footer" }, he = {
404
405
  ]),
405
406
  _: 2
406
407
  }, 1024),
407
- a.matchType === "match" ? (d(), m(i, {
408
+ a.matchType === "match" ? (n(), m(i, {
408
409
  key: 0,
409
410
  span: 5
410
411
  }, {
@@ -443,7 +444,7 @@ const ye = { class: "dialog-footer" }, he = {
443
444
  clearable: ""
444
445
  }, {
445
446
  default: l(() => [
446
- (d(!0), b(f, null, _(o(ce), (u, h) => (d(), m(g, {
447
+ (n(!0), b(f, null, _(o(ce), (u, h) => (n(), m(g, {
447
448
  key: h,
448
449
  label: u.key,
449
450
  value: u.value
@@ -488,7 +489,7 @@ const ye = { class: "dialog-footer" }, he = {
488
489
  ]),
489
490
  _: 1
490
491
  }),
491
- (d(!0), b(f, null, _(o(t).matchFields, (a, s) => (d(), m(F, {
492
+ (n(!0), b(f, null, _(o(t).matchFields, (a, s) => (n(), m(F, {
492
493
  gutter: 24,
493
494
  key: s
494
495
  }, {
@@ -515,7 +516,7 @@ const ye = { class: "dialog-footer" }, he = {
515
516
  style: { width: "180px" }
516
517
  }, {
517
518
  default: l(() => [
518
- (d(!0), b(f, null, _(o(be), (u, h) => (d(), m(g, {
519
+ (n(!0), b(f, null, _(o(be), (u, h) => (n(), m(g, {
519
520
  key: h,
520
521
  label: u.key,
521
522
  value: u.value
@@ -548,7 +549,7 @@ const ye = { class: "dialog-footer" }, he = {
548
549
  filterable: ""
549
550
  }, {
550
551
  default: l(() => [
551
- (d(!0), b(f, null, _(o(j), (u, h) => (d(), m(g, {
552
+ (n(!0), b(f, null, _(o($), (u, h) => (n(), m(g, {
552
553
  key: h,
553
554
  label: u.key,
554
555
  value: u.value
@@ -596,7 +597,7 @@ const ye = { class: "dialog-footer" }, he = {
596
597
  ]),
597
598
  _: 2
598
599
  }, 1024),
599
- s + 1 !== o(t).matchFields.length ? (d(), m(i, {
600
+ s + 1 !== o(t).matchFields.length ? (n(), m(i, {
600
601
  key: 0,
601
602
  span: 24
602
603
  }, {
@@ -616,7 +617,7 @@ const ye = { class: "dialog-footer" }, he = {
616
617
  filterable: ""
617
618
  }, {
618
619
  default: l(() => [
619
- (d(!0), b(f, null, _(o(fe), (u, h) => (d(), m(g, {
620
+ (n(!0), b(f, null, _(o(fe), (u, h) => (n(), m(g, {
620
621
  key: h,
621
622
  label: u.key,
622
623
  value: u.value
@@ -644,7 +645,7 @@ const ye = { class: "dialog-footer" }, he = {
644
645
  default: l(() => [
645
646
  e(le, {
646
647
  modelValue: o(t).isCustomBtn,
647
- "onUpdate:modelValue": n[8] || (n[8] = (a) => o(t).isCustomBtn = a),
648
+ "onUpdate:modelValue": d[8] || (d[8] = (a) => o(t).isCustomBtn = a),
648
649
  onChange: K
649
650
  }, null, 8, ["modelValue"])
650
651
  ]),
@@ -653,7 +654,7 @@ const ye = { class: "dialog-footer" }, he = {
653
654
  ]),
654
655
  _: 1
655
656
  }),
656
- o(t).isCustomBtn ? (d(), m(i, {
657
+ o(t).isCustomBtn ? (n(), m(i, {
657
658
  key: 0,
658
659
  span: 6
659
660
  }, {
@@ -666,13 +667,13 @@ const ye = { class: "dialog-footer" }, he = {
666
667
  default: l(() => [
667
668
  e(V, {
668
669
  modelValue: o(t).customType,
669
- "onUpdate:modelValue": n[9] || (n[9] = (a) => o(t).customType = a),
670
+ "onUpdate:modelValue": d[9] || (d[9] = (a) => o(t).customType = a),
670
671
  placeholder: "请选择关联菜单",
671
672
  filterable: "",
672
673
  clearable: ""
673
674
  }, {
674
675
  default: l(() => [
675
- (d(!0), b(f, null, _(o(_e), (a, s) => (d(), m(g, {
676
+ (n(!0), b(f, null, _(o(_e), (a, s) => (n(), m(g, {
676
677
  key: s,
677
678
  label: a.key,
678
679
  value: a.value
@@ -689,7 +690,7 @@ const ye = { class: "dialog-footer" }, he = {
689
690
  ]),
690
691
  _: 1
691
692
  }),
692
- o(t).customType === "code" ? (d(), m(F, {
693
+ o(t).customType === "code" ? (n(), m(F, {
693
694
  key: 0,
694
695
  gutter: 24
695
696
  }, {
@@ -704,7 +705,7 @@ const ye = { class: "dialog-footer" }, he = {
704
705
  default: l(() => [
705
706
  e(o(D), {
706
707
  modelValue: o(t).codeStr,
707
- "onUpdate:modelValue": n[10] || (n[10] = (a) => o(t).codeStr = a)
708
+ "onUpdate:modelValue": d[10] || (d[10] = (a) => o(t).codeStr = a)
708
709
  }, null, 8, ["modelValue"])
709
710
  ]),
710
711
  _: 1
@@ -715,7 +716,7 @@ const ye = { class: "dialog-footer" }, he = {
715
716
  ]),
716
717
  _: 1
717
718
  })) : C("", !0),
718
- o(t).customType === "component" ? (d(), m(F, {
719
+ o(t).customType === "component" ? (n(), m(F, {
719
720
  key: 1,
720
721
  gutter: 24
721
722
  }, {
@@ -730,7 +731,7 @@ const ye = { class: "dialog-footer" }, he = {
730
731
  default: l(() => [
731
732
  e(c, {
732
733
  modelValue: o(t).customComponentName,
733
- "onUpdate:modelValue": n[11] || (n[11] = (a) => o(t).customComponentName = a),
734
+ "onUpdate:modelValue": d[11] || (d[11] = (a) => o(t).customComponentName = a),
734
735
  placeholder: "请输入组件名称",
735
736
  clearable: ""
736
737
  }, {
@@ -755,7 +756,7 @@ const ye = { class: "dialog-footer" }, he = {
755
756
  default: l(() => [
756
757
  e(c, {
757
758
  modelValue: o(t).customComponentUrl,
758
- "onUpdate:modelValue": n[12] || (n[12] = (a) => o(t).customComponentUrl = a),
759
+ "onUpdate:modelValue": d[12] || (d[12] = (a) => o(t).customComponentUrl = a),
759
760
  placeholder: "请输入组件地址",
760
761
  clearable: ""
761
762
  }, null, 8, ["modelValue"])
@@ -771,13 +772,13 @@ const ye = { class: "dialog-footer" }, he = {
771
772
  default: l(() => [
772
773
  e(V, {
773
774
  modelValue: o(t).associationMenuId,
774
- "onUpdate:modelValue": n[13] || (n[13] = (a) => o(t).associationMenuId = a),
775
+ "onUpdate:modelValue": d[13] || (d[13] = (a) => o(t).associationMenuId = a),
775
776
  placeholder: "请选择关联菜单",
776
777
  filterable: "",
777
778
  clearable: ""
778
779
  }, {
779
780
  default: l(() => [
780
- (d(!0), b(f, null, _(o($), (a, s) => (d(), m(g, {
781
+ (n(!0), b(f, null, _(o(j), (a, s) => (n(), m(g, {
781
782
  key: s,
782
783
  label: a.name,
783
784
  value: a.id
@@ -802,7 +803,7 @@ const ye = { class: "dialog-footer" }, he = {
802
803
  }, 8, ["model-value", "title"]);
803
804
  };
804
805
  }
805
- }, Se = /* @__PURE__ */ Ve(he, [["__scopeId", "data-v-4b2dee6d"]]);
806
+ }, Se = /* @__PURE__ */ Ve(he, [["__scopeId", "data-v-cab12df2"]]);
806
807
  export {
807
808
  Se as default
808
809
  };
@@ -8,7 +8,7 @@ const S = { class: "dialog-footer" }, N = {
8
8
  },
9
9
  emits: ["update:visible", "refresh", "update:modelValue"],
10
10
  setup(m, { emit: f }) {
11
- const v = g(() => import("./index-0098f472.js").then((t) => t.i)), n = f, o = m;
11
+ const v = g(() => import("./index-cb3083b6.js").then((t) => t.i)), n = f, o = m;
12
12
  let e = y();
13
13
  C(
14
14
  () => o.visible,
@@ -17,12 +17,12 @@ const e = [
17
17
  { key: "导入", value: "import" },
18
18
  { key: "导出", value: "export" },
19
19
  { key: "关联子表", value: "associationSubTable" }
20
- ], t = [
20
+ ], y = [
21
21
  { key: "数组", value: "array" },
22
22
  { key: "字符串", value: "string" },
23
23
  { key: "数字", value: "number" },
24
24
  { key: "布尔", value: "boolean" }
25
- ], y = [
25
+ ], t = [
26
26
  { key: "且", value: "&&" },
27
27
  { key: "或", value: "||" }
28
28
  ], v = [
@@ -42,7 +42,7 @@ const e = [
42
42
  { key: "输入框", value: "input" },
43
43
  { key: "数字输入框", value: "inputNumber" },
44
44
  { key: "textarea文本框", value: "textarea" },
45
- { key: "下拉框", value: "select" },
45
+ { key: "下拉单选框", value: "select" },
46
46
  { key: "虚拟下拉框", value: "virtualizedSelect" },
47
47
  { key: "下拉多选框", value: "multipleSelect" },
48
48
  { key: "虚拟下拉多选框", value: "virtualizedMultipleSelect" },
@@ -52,11 +52,12 @@ const e = [
52
52
  { key: "时间范围框", value: "dateRange" },
53
53
  { key: "上传", value: "upload" },
54
54
  { key: "富文本", value: "editor" },
55
- { key: "switch开关", value: "switch" }
55
+ { key: "switch开关", value: "switch" },
56
+ { key: "下拉选择图标", value: "selectIcon" }
56
57
  // { key: '关联子表', value: 'associatedChildTable' },
57
58
  ], S = [
58
59
  { key: "默认值", value: "default" },
59
- { key: "动态参数", value: "dynamic" }
60
+ { key: "dynamic形式", value: "dynamic" }
60
61
  ], T = [
61
62
  { key: "数组", value: "array" },
62
63
  { key: "字符串", value: "string" },
@@ -65,11 +66,11 @@ const e = [
65
66
  { key: "居中", value: "center" },
66
67
  { key: "左对齐", value: "left" },
67
68
  { key: "右对齐", value: "right" }
68
- ], r = [
69
+ ], i = [
69
70
  { key: "默认", value: "default" },
70
71
  { key: "链接", value: "link" },
71
72
  { key: "标签", value: "tag" }
72
- ], i = [
73
+ ], r = [
73
74
  { key: "默认宽", value: "default" },
74
75
  { key: "最小宽", value: "min" }
75
76
  ], _ = [
@@ -80,7 +81,7 @@ const e = [
80
81
  ], E = [
81
82
  { key: "左侧", value: "right" },
82
83
  { key: "上侧", value: "top" }
83
- ], P = [
84
+ ], d = [
84
85
  {
85
86
  label: "表格配置",
86
87
  options: [
@@ -97,20 +98,20 @@ const e = [
97
98
  export {
98
99
  c as A,
99
100
  a as B,
100
- r as C,
101
+ i as C,
101
102
  E as F,
102
103
  S as P,
103
104
  _ as S,
104
- i as T,
105
- P as U,
105
+ r as T,
106
+ d as U,
106
107
  o as a,
107
108
  e as b,
108
109
  l as c,
109
110
  u as d,
110
111
  v as e,
111
- t as f,
112
+ y as f,
112
113
  k as g,
113
- y as h,
114
+ t as h,
114
115
  s as i,
115
116
  n as j,
116
117
  T as k
@@ -1,5 +1,5 @@
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-0098f472.js";
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-cb3083b6.js";
3
3
  import "vue-router";
4
4
  import "js-base64";
5
5
  import "element-plus";
@@ -13,22 +13,26 @@ const z = { class: "header-operate-container" }, G = {
13
13
  setup(N, { emit: w }) {
14
14
  const x = w, T = N, { t: V } = M();
15
15
  let b = R([]);
16
- const F = l("globalProps"), $ = l("menuPermissionBtns"), D = l("stringToBoolean"), S = l("matchCondition"), P = l("getTableData"), v = l("tableBtnRefs"), A = (o) => {
16
+ const F = l("globalProps"), $ = l("menuPermissionBtns"), D = l("stringToBoolean"), S = l("matchCondition"), P = l("getTableData"), A = l("tableBtnRefs"), I = (o) => {
17
17
  if (!o.matchFields.length)
18
18
  return !0;
19
- const t = o.matchFields.filter((n) => n.matchType != "default"), a = (n) => F.matchData[n.matchType][n.matchFieldName];
20
- let e = t.reduce((n, r, m) => {
21
- const L = a(r);
22
- return n += S(r.matchCondition, L, r.fieldValue == "" ? null : r.fieldValue == "true" ? D(r.fieldValue) : r.fieldValue), m !== t.length - 1 && (n += r.spliceCondition || "&&"), n;
23
- }, "").split("||"), p = e.reduce((n, r, m) => (n += `(${r})`, m < e.length - 1 && (n += "||"), n), "");
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);
22
+ return n += S(
23
+ a.matchCondition,
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), "");
24
28
  return new Function(`return ${p}`)();
25
- }, h = (o) => $.value.some((t) => t.unique == o.permissionCode) && A(o), I = (o) => {
26
- b.value = (o || []).filter((t) => t.permissionCode !== 1001 && t.btnPostion.includes("header")).map((t) => (t.btnAlias && (t.btnName = t.btnAlias), t)).sort((t, a) => t.sort - a.sort);
29
+ }, h = (o) => $.value.some((t) => t.unique == o.permissionCode) && I(o), v = (o) => {
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);
27
31
  };
28
32
  j(
29
33
  () => T.data,
30
34
  (o, t) => {
31
- I(o.buttons);
35
+ v(o.buttons);
32
36
  },
33
37
  { immediate: !0 }
34
38
  );
@@ -36,13 +40,13 @@ const z = { class: "header-operate-container" }, G = {
36
40
  x("operate", o, {});
37
41
  };
38
42
  return (o, t) => {
39
- const a = C("a-svg-icon"), d = C("el-button");
40
- return s(), f("div", z, [
41
- (s(!0), f(y, null, q(c(b), (e, p) => (s(), f(y, { key: p }, [
42
- e.isCustomBtn && e.customType == "component" && h(e) ? (s(), i(O(e[e.customComponentName]), {
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]), {
43
47
  key: 0,
44
48
  ref_for: !0,
45
- ref: (n) => c(v)[`${e.customComponentName}-${e.permissionCode}`] = n,
49
+ ref: (n) => c(A)[`${e.customComponentName}-${e.permissionCode}`] = n,
46
50
  buttonData: e,
47
51
  onRefresh: t[0] || (t[0] = (n) => c(P)())
48
52
  }, {
@@ -53,7 +57,7 @@ const z = { class: "header-operate-container" }, G = {
53
57
  onClick: (n) => g(e)
54
58
  }, {
55
59
  default: _(() => [
56
- e.btnIcon ? (s(), i(a, {
60
+ e.btnIcon ? (r(), i(s, {
57
61
  key: 0,
58
62
  class: "mr4",
59
63
  name: e.btnIcon,
@@ -68,7 +72,7 @@ const z = { class: "header-operate-container" }, G = {
68
72
  ]),
69
73
  _: 2
70
74
  }, 1064, ["buttonData"])) : u("", !0),
71
- !e.isCustomBtn && h(e) ? (s(), i(d, {
75
+ !e.isCustomBtn && h(e) ? (r(), i(d, {
72
76
  key: 1,
73
77
  class: "el-btn",
74
78
  type: e.btnColor,
@@ -76,7 +80,7 @@ const z = { class: "header-operate-container" }, G = {
76
80
  onClick: (n) => g(e)
77
81
  }, {
78
82
  default: _(() => [
79
- e.btnIcon ? (s(), i(a, {
83
+ e.btnIcon ? (r(), i(s, {
80
84
  key: 0,
81
85
  class: "mr4",
82
86
  name: e.btnIcon,
@@ -92,7 +96,7 @@ const z = { class: "header-operate-container" }, G = {
92
96
  ]);
93
97
  };
94
98
  }
95
- }, Y = /* @__PURE__ */ H(G, [["__scopeId", "data-v-00d47037"]]);
99
+ }, Y = /* @__PURE__ */ H(G, [["__scopeId", "data-v-b8dfe0ca"]]);
96
100
  export {
97
101
  Y as default
98
102
  };