act-plus 1.1.50 → 1.1.52

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,5 +1,5 @@
1
1
  import { defineAsyncComponent as de, inject as E, reactive as se, ref as A, watch as ie, resolveComponent as C, resolveDirective as me, openBlock as r, createBlock as i, withCtx as a, createElementVNode as L, createVNode as l, unref as m, createTextVNode as S, withDirectives as pe, createElementBlock as c, Fragment as y, renderList as g, createCommentVNode as U, toDisplayString as fe } from "vue";
2
- import { _ as be, U as Q, F as ce, k as ye, l as Ce, m as M, T as ge, A as Ve, C as _e } from "./index-38232fe1.js";
2
+ import { _ as be, U as Q, F as ce, k as ye, l as Ce, m as M, T as ge, A as Ve, C as _e } from "./index-fa25c385.js";
3
3
  import "vue-router";
4
4
  import "js-base64";
5
5
  import "element-plus";
@@ -13,7 +13,7 @@ const ve = { slot: "prepend" }, Te = { class: "dialog-footer" }, Se = {
13
13
  },
14
14
  emits: ["update:visible", "refresh"],
15
15
  setup(I, { emit: K }) {
16
- const W = de(() => import("./dialogSiteComponentsParams-f94d7982.js")), h = K, N = I, P = E("pageKey")(), O = E("conditionList")(), Y = E("configData")();
16
+ const W = de(() => import("./dialogSiteComponentsParams-d82a76fd.js")), h = K, N = I, P = E("pageKey")(), O = E("conditionList")(), Y = E("configData")();
17
17
  let k = se((() => ({
18
18
  btnLoading: !1,
19
19
  showSiteComponentsParamsDialog: !1
@@ -935,7 +935,7 @@ const ve = { slot: "prepend" }, Te = { class: "dialog-footer" }, Se = {
935
935
  }, 8, ["model-value", "title"]);
936
936
  };
937
937
  }
938
- }, we = /* @__PURE__ */ be(Se, [["__scopeId", "data-v-3da504a4"]]);
938
+ }, we = /* @__PURE__ */ be(Se, [["__scopeId", "data-v-ec695cc7"]]);
939
939
  export {
940
940
  we as default
941
941
  };
@@ -1,5 +1,5 @@
1
1
  import { defineAsyncComponent as O, inject as N, computed as ue, reactive as ne, ref as q, watch as de, resolveComponent as y, resolveDirective as re, openBlock as d, createBlock as m, withCtx as e, createElementVNode as se, createVNode as l, unref as o, createTextVNode as U, withDirectives as ie, toDisplayString as A, createCommentVNode as C, createElementBlock as b, Fragment as f, renderList as _ } from "vue";
2
- import { _ as me, B as pe, c as ce, d as be, e as fe, f as _e, g as ge, h as Ve, i as ye, j as he } from "./index-38232fe1.js";
2
+ import { _ as me, B as pe, c as ce, d as be, e as fe, f as _e, g as ge, h as Ve, i as ye, j as he } from "./index-fa25c385.js";
3
3
  import { useRoute as Ce } from "vue-router";
4
4
  import "js-base64";
5
5
  import "element-plus";
@@ -13,7 +13,7 @@ const ve = { class: "dialog-footer" }, Fe = {
13
13
  },
14
14
  emits: ["update:visible", "refresh"],
15
15
  setup(x, { emit: D }) {
16
- const P = O(() => import("./index-aace8656.js")), E = O(() => import("./index-38232fe1.js").then((p) => p.q)), W = Ce(), R = N("request"), I = D, T = x, Y = ue(() => W.params.key);
16
+ const P = O(() => import("./index-ec6f916c.js")), E = O(() => import("./index-fa25c385.js").then((p) => p.q)), W = Ce(), R = N("request"), I = D, T = x, Y = ue(() => W.params.key);
17
17
  let k = ne((() => ({
18
18
  btnLoading: !1
19
19
  }))());
@@ -685,7 +685,33 @@ const ve = { class: "dialog-footer" }, Fe = {
685
685
  })
686
686
  ]),
687
687
  _: 1
688
- })) : C("", !0)
688
+ })) : C("", !0),
689
+ l(i, { span: 6 }, {
690
+ default: e(() => [
691
+ l(r, { label: "关联菜单" }, {
692
+ default: e(() => [
693
+ l(V, {
694
+ modelValue: o(t).associationMenuId,
695
+ "onUpdate:modelValue": u[10] || (u[10] = (a) => o(t).associationMenuId = a),
696
+ placeholder: "请选择关联菜单",
697
+ filterable: "",
698
+ clearable: ""
699
+ }, {
700
+ default: e(() => [
701
+ (d(!0), b(f, null, _(o(j), (a, s) => (d(), m(g, {
702
+ key: s,
703
+ label: a.name,
704
+ value: a.id
705
+ }, null, 8, ["label", "value"]))), 128))
706
+ ]),
707
+ _: 1
708
+ }, 8, ["modelValue"])
709
+ ]),
710
+ _: 1
711
+ })
712
+ ]),
713
+ _: 1
714
+ })
689
715
  ]),
690
716
  _: 1
691
717
  }),
@@ -704,7 +730,7 @@ const ve = { class: "dialog-footer" }, Fe = {
704
730
  default: e(() => [
705
731
  l(o(E), {
706
732
  modelValue: o(t).codeStr,
707
- "onUpdate:modelValue": u[10] || (u[10] = (a) => o(t).codeStr = a)
733
+ "onUpdate:modelValue": u[11] || (u[11] = (a) => o(t).codeStr = a)
708
734
  }, null, 8, ["modelValue"])
709
735
  ]),
710
736
  _: 1
@@ -720,7 +746,7 @@ const ve = { class: "dialog-footer" }, Fe = {
720
746
  gutter: 24
721
747
  }, {
722
748
  default: e(() => [
723
- l(i, { span: 9 }, {
749
+ l(i, { span: 10 }, {
724
750
  default: e(() => [
725
751
  l(r, {
726
752
  label: "组件名称",
@@ -730,7 +756,7 @@ const ve = { class: "dialog-footer" }, Fe = {
730
756
  default: e(() => [
731
757
  l(c, {
732
758
  modelValue: o(t).customComponentName,
733
- "onUpdate:modelValue": u[11] || (u[11] = (a) => o(t).customComponentName = a),
759
+ "onUpdate:modelValue": u[12] || (u[12] = (a) => o(t).customComponentName = a),
734
760
  placeholder: "请输入组件名称",
735
761
  clearable: ""
736
762
  }, {
@@ -745,7 +771,7 @@ const ve = { class: "dialog-footer" }, Fe = {
745
771
  ]),
746
772
  _: 1
747
773
  }),
748
- l(i, { span: 8 }, {
774
+ l(i, { span: 14 }, {
749
775
  default: e(() => [
750
776
  l(r, {
751
777
  label: "组件地址",
@@ -755,7 +781,7 @@ const ve = { class: "dialog-footer" }, Fe = {
755
781
  default: e(() => [
756
782
  l(c, {
757
783
  modelValue: o(t).customComponentUrl,
758
- "onUpdate:modelValue": u[12] || (u[12] = (a) => o(t).customComponentUrl = a),
784
+ "onUpdate:modelValue": u[13] || (u[13] = (a) => o(t).customComponentUrl = a),
759
785
  placeholder: "请输入组件地址",
760
786
  clearable: ""
761
787
  }, null, 8, ["modelValue"])
@@ -764,32 +790,6 @@ const ve = { class: "dialog-footer" }, Fe = {
764
790
  })
765
791
  ]),
766
792
  _: 1
767
- }),
768
- l(i, { span: 7 }, {
769
- default: e(() => [
770
- l(r, { label: "关联菜单" }, {
771
- default: e(() => [
772
- l(V, {
773
- modelValue: o(t).associationMenuId,
774
- "onUpdate:modelValue": u[13] || (u[13] = (a) => o(t).associationMenuId = a),
775
- placeholder: "请选择关联菜单",
776
- filterable: "",
777
- clearable: ""
778
- }, {
779
- default: e(() => [
780
- (d(!0), b(f, null, _(o(j), (a, s) => (d(), m(g, {
781
- key: s,
782
- label: a.name,
783
- value: a.id
784
- }, null, 8, ["label", "value"]))), 128))
785
- ]),
786
- _: 1
787
- }, 8, ["modelValue"])
788
- ]),
789
- _: 1
790
- })
791
- ]),
792
- _: 1
793
793
  })
794
794
  ]),
795
795
  _: 1
@@ -802,7 +802,7 @@ const ve = { class: "dialog-footer" }, Fe = {
802
802
  }, 8, ["model-value", "title"]);
803
803
  };
804
804
  }
805
- }, Ie = /* @__PURE__ */ me(Fe, [["__scopeId", "data-v-75eab9b4"]]);
805
+ }, Ie = /* @__PURE__ */ me(Fe, [["__scopeId", "data-v-66a03452"]]);
806
806
  export {
807
807
  Ie as default
808
808
  };
@@ -8,7 +8,7 @@ const B = { class: "dialog-footer" }, h = {
8
8
  },
9
9
  emits: ["update:visible", "refresh", "update:modelValue"],
10
10
  setup(f, { emit: c }) {
11
- const v = _(() => import("./index-38232fe1.js").then((l) => l.q)), n = c, o = f;
11
+ const v = _(() => import("./index-fa25c385.js").then((l) => l.q)), n = c, o = f;
12
12
  let t = y();
13
13
  C(
14
14
  () => o.visible,
@@ -1,5 +1,5 @@
1
1
  import { reactive as m, watch as b, resolveComponent as s, openBlock as v, 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 w } from "./index-38232fe1.js";
2
+ import { _ as k, u as w } from "./index-fa25c385.js";
3
3
  import "vue-router";
4
4
  import "js-base64";
5
5
  import "element-plus";
@@ -1,5 +1,5 @@
1
1
  import { defineAsyncComponent as re, inject as C, ref as U, watch as ne, resolveComponent as f, resolveDirective as se, unref as t, openBlock as s, createElementBlock as V, createVNode as ue, normalizeStyle as de, withCtx as g, Fragment as q, renderList as L, createBlock as d, mergeProps as _, withKeys as I, withModifiers as B, createCommentVNode as h, resolveDynamicComponent as pe, createElementVNode as ie, toDisplayString as S, createTextVNode as M, withDirectives as ce } from "vue";
2
- import { _ as fe, u as ye, P as me, a as be, b as Ve } from "./index-38232fe1.js";
2
+ import { _ as fe, u as ye, P as me, a as be, b as Ve } from "./index-fa25c385.js";
3
3
  import "vue-router";
4
4
  import "js-base64";
5
5
  import "element-plus";
@@ -14,13 +14,13 @@ const _e = {
14
14
  },
15
15
  emits: ["reset", "search"],
16
16
  setup(j, { emit: H }) {
17
- const K = re(() => import("./index-38232fe1.js").then((r) => r.t)), { t: p } = ye(), W = C("request"), O = C("globalProps"), G = C("loadComponents"), y = C("getFieldUiProps"), x = C("formatDataType"), z = C("disposeDate"), J = C("getDefaultQueryValues"), A = H, m = j, X = U({});
17
+ const K = re(() => import("./index-fa25c385.js").then((r) => r.t)), { t: p } = ye(), W = C("request"), O = C("globalProps"), G = C("loadComponents"), y = C("getFieldUiProps"), x = C("formatDataType"), z = C("disposeDate"), J = C("getDefaultQueryValues"), A = H, m = j, X = U({});
18
18
  let b = U([]), Y = U([]), T = U(!0);
19
19
  const Z = (r) => m.data.tableConfig.isExpandQuery && T.value ? m.data.tableConfig.tableQueryRowWidth > r + 1 : !0, ee = async (r) => {
20
20
  b.value = await Promise.all(
21
21
  r.filter((l) => l.useScenes.includes("tableSearch")).map(async (l) => {
22
22
  l.tableQueryDefaultValue && (["date", "dateRange"].includes(l.fieldType) ? l.queryValue = z(l) : l.queryValue = l.tableQueryDefaultValue ? l.tableQueryDefaultValue : void 0), O.defaultParams.some((o) => {
23
- o.field == l.fieldKey && (l.queryValue = o.value);
23
+ o.field == l.fieldKey && o.operate === l.tableQueryCondition && (l.queryValue = o.value);
24
24
  });
25
25
  const u = (l.formCustomComponentes ?? []).find((o) => o.permissionCode === "tableSearch");
26
26
  if (l.isQueryFieldCustom = !1, u && u.isFieldCustom) {
@@ -40,19 +40,19 @@ const _e = {
40
40
  const o = y(u), { label: k, value: P, children: $, isLeaf: w } = { ...Ve, ...o.treeProps || {} };
41
41
  if (r[w])
42
42
  return l([]);
43
- const D = u.postRequestParams.filter((n) => n.submitType === "default").reduce((n, e) => (n[e.submitName] = x(e.paramsType, e.submitValue), n), {}), Q = u.postRequestParams.filter((n) => n.submitType === "match").reduce((n, e) => (n[e.submitName] = x(e.paramsType, O.matchData[e.submitValue][e.submitName]), n), {}), R = u.postRequestParams.filter((n) => n.submitType === "dynamic").map((n) => ({
43
+ const Q = u.postRequestParams.filter((n) => n.submitType === "default").reduce((n, e) => (n[e.submitName] = x(e.paramsType, e.submitValue), n), {}), D = u.postRequestParams.filter((n) => n.submitType === "match").reduce((n, e) => (n[e.submitName] = x(e.paramsType, O.matchData[e.submitValue][e.submitName]), n), {}), R = u.postRequestParams.filter((n) => n.submitType === "dynamic").map((n) => ({
44
44
  field: n.submitName,
45
45
  operate: n.submitMatchType,
46
46
  value: o.loadCode ? r == null ? void 0 : r.data.value : x(n.paramsType, n.submitValue)
47
47
  }));
48
48
  let c = {};
49
- Object.keys(D).length && (c = { ...c, ...D }), Object.keys(Q).length && (c = { ...c, ...Q }), R.length && (c.dynamicFilters = R), o.loadCode && Reflect.has(c, o.loadCode) && (c[o.loadCode] = r == null ? void 0 : r.data.value);
50
- const { data: v } = await W({
49
+ Object.keys(Q).length && (c = { ...c, ...Q }), Object.keys(D).length && (c = { ...c, ...D }), R.length && (c.dynamicFilters = R), o.loadCode && Reflect.has(c, o.loadCode) && (c[o.loadCode] = r == null ? void 0 : r.data.value);
50
+ const { data: E } = await W({
51
51
  url: u.fieldRequestUrl,
52
52
  method: u.fieldRequestType || "GET",
53
53
  data: c
54
- }), E = (v || []).map((n) => ({ label: n[k], value: n[P], children: [], isLeaf: n[w] }));
55
- l(E);
54
+ }), v = (E || []).map((n) => ({ label: n[k], value: n[P], children: [], isLeaf: n[w] }));
55
+ l(v);
56
56
  };
57
57
  ne(
58
58
  () => m.data,
@@ -86,9 +86,9 @@ const _e = {
86
86
  };
87
87
  return (r, l) => {
88
88
  var n;
89
- const u = f("el-input"), o = f("el-option"), k = f("el-select"), P = f("el-select-v2"), $ = f("el-cascader"), w = f("el-tree-select"), D = f("el-date-picker"), Q = f("el-form-item"), R = f("a-svg-icon"), c = f("el-button"), v = f("el-form"), E = se("debounce");
89
+ const u = f("el-input"), o = f("el-option"), k = f("el-select"), P = f("el-select-v2"), $ = f("el-cascader"), w = f("el-tree-select"), Q = f("el-date-picker"), D = f("el-form-item"), R = f("a-svg-icon"), c = f("el-button"), E = f("el-form"), v = se("debounce");
90
90
  return t(b) && t(b).length ? (s(), V("div", _e, [
91
- ue(v, {
91
+ ue(E, {
92
92
  style: de({ "--table-query-row": m.data.tableConfig.tableQueryRowWidth }),
93
93
  class: "form-content",
94
94
  ref: "elForm",
@@ -114,7 +114,7 @@ const _e = {
114
114
  ie("span", Ce, "【" + S(e.fieldName) + "】", 1),
115
115
  M(S(t(p)("act.fieldCustom")), 1)
116
116
  ]))
117
- ], 64)) : (s(), d(Q, {
117
+ ], 64)) : (s(), d(D, {
118
118
  key: 0,
119
119
  class: "search-form-item",
120
120
  "label-width": m.data.tableConfig.tableQueryLabelWidth,
@@ -207,7 +207,7 @@ const _e = {
207
207
  ref_for: !0
208
208
  }, t(y)(e), {
209
209
  onChange: l[5] || (l[5] = (a) => i({ permissionCode: 1001 }))
210
- }), null, 16, ["modelValue", "onUpdate:modelValue", "placeholder", "load"])) : e.fieldType === "date" ? (s(), d(D, _({
210
+ }), null, 16, ["modelValue", "onUpdate:modelValue", "placeholder", "load"])) : e.fieldType === "date" ? (s(), d(Q, _({
211
211
  key: 6,
212
212
  modelValue: e.queryValue,
213
213
  "onUpdate:modelValue": (a) => e.queryValue = a,
@@ -218,7 +218,7 @@ const _e = {
218
218
  ref_for: !0
219
219
  }, t(y)(e), {
220
220
  onChange: l[6] || (l[6] = (a) => i({ permissionCode: 1001 }))
221
- }), null, 16, ["modelValue", "onUpdate:modelValue", "placeholder"])) : e.fieldType === "dateRange" ? (s(), d(D, _({
221
+ }), null, 16, ["modelValue", "onUpdate:modelValue", "placeholder"])) : e.fieldType === "dateRange" ? (s(), d(Q, _({
222
222
  key: 7,
223
223
  modelValue: e.queryValue,
224
224
  "onUpdate:modelValue": (a) => e.queryValue = a,
@@ -236,7 +236,7 @@ const _e = {
236
236
  }, 1032, ["label-width", "label"]))
237
237
  ], 64)) : h("", !0)
238
238
  ], 64))), 128)),
239
- t(b).length ? (s(), d(Q, {
239
+ t(b).length ? (s(), d(D, {
240
240
  key: 0,
241
241
  class: "search-form-btn",
242
242
  "label-width": "0"
@@ -261,7 +261,7 @@ const _e = {
261
261
  ]),
262
262
  _: 2
263
263
  }, 1032, ["type", "loading", "onClick"])), [
264
- [E]
264
+ [v]
265
265
  ])), 128))
266
266
  ]),
267
267
  _: 1
@@ -285,7 +285,7 @@ const _e = {
285
285
  ])) : h("", !0);
286
286
  };
287
287
  }
288
- }, Qe = /* @__PURE__ */ fe(he, [["__scopeId", "data-v-425e86c9"]]);
288
+ }, De = /* @__PURE__ */ fe(he, [["__scopeId", "data-v-3c6eb654"]]);
289
289
  export {
290
- Qe as default
290
+ De as default
291
291
  };
@@ -1,5 +1,5 @@
1
1
  import { defineAsyncComponent as A, inject as K, ref as w, watch as Te, resolveComponent as g, resolveDirective as le, openBlock as u, createBlock as y, withCtx as T, createElementVNode as ae, createVNode as te, createTextVNode as J, toDisplayString as O, unref as d, withDirectives as oe, createElementBlock as k, Fragment as q, renderList as Q, mergeProps as V, createCommentVNode as se, resolveDynamicComponent as De, toRaw as Ke } from "vue";
2
- import { _ as we, u as Ne, P as Pe, a as Ue, b as ke } from "./index-38232fe1.js";
2
+ import { _ as we, u as Ne, P as Pe, a as Ue, b as ke } from "./index-fa25c385.js";
3
3
  import { ElNotification as Se } from "element-plus";
4
4
  import "vue-router";
5
5
  import "js-base64";
@@ -13,7 +13,7 @@ const Le = { class: "no-config-field" }, Re = { class: "dialog-footer" }, $e = {
13
13
  },
14
14
  emits: ["update:visible", "refresh"],
15
15
  setup(N, { emit: re }) {
16
- const de = A(() => import("./index-38232fe1.js").then((l) => l.t)), ie = A(() => import("./index-aace8656.js")), ne = A(() => import("./index-38232fe1.js").then((l) => l.s)), ue = A(() => import("./index-38232fe1.js").then((l) => l.r)), { t: b } = Ne(), x = K("request"), ce = K("loadComponents"), P = K("formatDataType"), M = K("globalProps"), fe = K("stringToBoolean"), h = K("getFieldUiProps"), pe = K("disposeRequestData"), X = re, p = N, S = w(!1), L = w(!1), E = w(null), R = w([]), t = w({}), j = w({}), me = (l) => l.formColumnCol == null ? 24 : l.formColumnCol ? l.formColumnCol : 24 / l.formRow, ye = (l) => ["input", "textarea"].includes(l.fieldType) ? "blur" : (["select", "multipleSelect", "datetimerange", "treeSelect", "provinceCascade"].includes(l.fieldType), "change"), be = async ({ node: l, resolve: c }, a) => {
16
+ const de = A(() => import("./index-fa25c385.js").then((l) => l.t)), ie = A(() => import("./index-ec6f916c.js")), ne = A(() => import("./index-fa25c385.js").then((l) => l.s)), ue = A(() => import("./index-fa25c385.js").then((l) => l.r)), { t: b } = Ne(), x = K("request"), ce = K("loadComponents"), P = K("formatDataType"), M = K("globalProps"), fe = K("stringToBoolean"), h = K("getFieldUiProps"), pe = K("disposeRequestData"), X = re, p = N, S = w(!1), L = w(!1), E = w(null), R = w([]), t = w({}), j = w({}), me = (l) => l.formColumnCol == null ? 24 : l.formColumnCol ? l.formColumnCol : 24 / l.formRow, ye = (l) => ["input", "textarea"].includes(l.fieldType) ? "blur" : (["select", "multipleSelect", "datetimerange", "treeSelect", "provinceCascade"].includes(l.fieldType), "change"), be = async ({ node: l, resolve: c }, a) => {
17
17
  const r = h(a), { label: m, value: i, children: _, isLeaf: o } = { ...ke, ...r.treeProps || {} };
18
18
  if (l[o])
19
19
  return c([]);
@@ -1,5 +1,5 @@
1
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-38232fe1.js";
2
+ import { _ as P } from "./index-fa25c385.js";
3
3
  import "vue-router";
4
4
  import "js-base64";
5
5
  import "element-plus";
@@ -1,5 +1,5 @@
1
1
  import { ref as R, inject as l, watch as j, resolveComponent as y, resolveDirective as q, openBlock as r, createElementBlock as u, Fragment as f, renderList as E, unref as d, createBlock as i, resolveDynamicComponent as H, withCtx as b, withDirectives as C, createCommentVNode as _, createTextVNode as k, toDisplayString as B } from "vue";
2
- import { _ as M, u as z } from "./index-38232fe1.js";
2
+ import { _ as M, u as z } from "./index-fa25c385.js";
3
3
  import "vue-router";
4
4
  import "js-base64";
5
5
  import "element-plus";