act-plus 1.1.48 → 1.1.49

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-56bc95ef.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-d2fcb8ab.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-680354b0.js")), h = K, N = I, P = E("pageKey")(), O = E("conditionList")(), Y = E("configData")();
16
+ const W = de(() => import("./dialogSiteComponentsParams-3f8dd82d.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
@@ -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-56bc95ef.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-d2fcb8ab.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-aede2df5.js")), E = O(() => import("./index-56bc95ef.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-39ff9e34.js")), E = O(() => import("./index-d2fcb8ab.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
  }))());
@@ -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-56bc95ef.js").then((l) => l.q)), n = c, o = f;
11
+ const v = _(() => import("./index-d2fcb8ab.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-56bc95ef.js";
2
+ import { _ as k, u as w } from "./index-d2fcb8ab.js";
3
3
  import "vue-router";
4
4
  import "js-base64";
5
5
  import "element-plus";
@@ -1,5 +1,5 @@
1
- import { ref as j, inject as l, watch as q, resolveComponent as y, resolveDirective as O, openBlock as r, createElementBlock as u, Fragment as f, renderList as E, unref as d, createBlock as i, resolveDynamicComponent as H, withCtx as _, withDirectives as C, createCommentVNode as b, createTextVNode as k, toDisplayString as B } from "vue";
2
- import { _ as M, u as z } from "./index-56bc95ef.js";
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-d2fcb8ab.js";
3
3
  import "vue-router";
4
4
  import "js-base64";
5
5
  import "element-plus";
@@ -9,38 +9,38 @@ const G = { class: "header-operate-container" }, J = {
9
9
  props: {
10
10
  data: { type: Object, default: () => ({}) }
11
11
  },
12
- emits: ["operate"],
12
+ emits: ["onOperate"],
13
13
  setup(w, { emit: x }) {
14
14
  const N = x, T = w, { t: D } = z();
15
- let h = j([]);
15
+ let h = R([]);
16
16
  const V = l("globalProps"), v = l("menuPermissionBtns"), F = l("stringToBoolean"), $ = l("matchCondition"), S = l("getTableData"), P = l("tableBtnRefs"), A = (s) => {
17
17
  if (!s.matchFields.length)
18
18
  return !0;
19
19
  const t = s.matchFields.filter((o) => o.matchType != "default"), a = (o) => V.matchData[o.matchType][o.matchFieldName];
20
20
  let c = t.reduce((o, n, m) => {
21
- const R = a(n);
21
+ const L = a(n);
22
22
  return o += $(
23
23
  n.matchCondition,
24
- R,
24
+ L,
25
25
  n.fieldValue == "" ? null : n.fieldValue == "true" || n.fieldValue == "false" ? F(n.fieldValue) : n.fieldValue
26
26
  ), m !== t.length - 1 && (o += n.spliceCondition || "&&"), o;
27
27
  }, "").split("||"), e = c.reduce((o, n, m) => (o += `(${n})`, m < c.length - 1 && (o += "||"), o), "");
28
28
  return new Function(`return ${e}`)();
29
- }, I = (s) => v.value.some((t) => t.unique == s.permissionCode) && A(s), L = (s) => {
29
+ }, I = (s) => v.value.some((t) => t.unique == s.permissionCode) && A(s), O = (s) => {
30
30
  h.value = (s || []).filter((t) => t.permissionCode !== 1001 && t.btnPostion.includes("header")).sort((t, a) => t.sort - a.sort).map((t) => (t.btnAlias && (t.btnName = t.btnAlias), t));
31
31
  };
32
- q(
32
+ j(
33
33
  () => T.data,
34
34
  (s, t) => {
35
- L(s.buttons);
35
+ O(s.buttons);
36
36
  },
37
37
  { immediate: !0 }
38
38
  );
39
39
  const g = (s) => {
40
- N("operate", s, {});
40
+ N("onOperate", s, {});
41
41
  };
42
42
  return (s, t) => {
43
- const a = y("a-svg-icon"), p = y("el-button"), c = O("debounce");
43
+ const a = y("a-svg-icon"), p = y("el-button"), c = q("debounce");
44
44
  return r(), u("div", G, [
45
45
  (r(!0), u(f, null, E(d(h), (e, o) => (r(), u(f, { key: o }, [
46
46
  I(e) ? (r(), u(f, { key: 0 }, [
@@ -52,13 +52,13 @@ const G = { class: "header-operate-container" }, J = {
52
52
  buttonData: e,
53
53
  onRefresh: t[0] || (t[0] = (n) => d(S)())
54
54
  }, {
55
- default: _(() => [
55
+ default: b(() => [
56
56
  C((r(), i(p, {
57
57
  class: "el-btn",
58
58
  type: e.btnColor,
59
59
  onClick: (n) => g(e)
60
60
  }, {
61
- default: _(() => [
61
+ default: b(() => [
62
62
  e.btnIcon ? (r(), i(a, {
63
63
  key: 0,
64
64
  class: "mr4",
@@ -66,7 +66,7 @@ const G = { class: "header-operate-container" }, J = {
66
66
  width: "12",
67
67
  height: "12",
68
68
  color: "#fff"
69
- }, null, 8, ["name"])) : b("", !0),
69
+ }, null, 8, ["name"])) : _("", !0),
70
70
  k(" " + B(e.btnName), 1)
71
71
  ]),
72
72
  _: 2
@@ -82,7 +82,7 @@ const G = { class: "header-operate-container" }, J = {
82
82
  loading: e.opeateLoading,
83
83
  onClick: (n) => g(e)
84
84
  }, {
85
- default: _(() => [
85
+ default: b(() => [
86
86
  e.btnIcon ? (r(), i(a, {
87
87
  key: 0,
88
88
  class: "mr4",
@@ -90,19 +90,19 @@ const G = { class: "header-operate-container" }, J = {
90
90
  width: "12",
91
91
  height: "12",
92
92
  color: "#fff"
93
- }, null, 8, ["name"])) : b("", !0),
93
+ }, null, 8, ["name"])) : _("", !0),
94
94
  k(" " + B(e.opeateLoading ? e.btnName + d(D)("act.loading") + "..." : e.btnName), 1)
95
95
  ]),
96
96
  _: 2
97
97
  }, 1032, ["type", "loading", "onClick"])), [
98
98
  [c]
99
99
  ])
100
- ], 64)) : b("", !0)
100
+ ], 64)) : _("", !0)
101
101
  ], 64))), 128))
102
102
  ]);
103
103
  };
104
104
  }
105
- }, Z = /* @__PURE__ */ M(J, [["__scopeId", "data-v-66a50743"]]);
105
+ }, Z = /* @__PURE__ */ M(J, [["__scopeId", "data-v-6477fb97"]]);
106
106
  export {
107
107
  Z as default
108
108
  };
@@ -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-56bc95ef.js";
2
+ import { _ as we, u as Ne, P as Pe, a as Ue, b as ke } from "./index-d2fcb8ab.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 Re = { class: "no-config-field" }, Le = { class: "dialog-footer" }, $e = {
13
13
  },
14
14
  emits: ["update:visible", "refresh"],
15
15
  setup(N, { emit: re }) {
16
- const de = A(() => import("./index-56bc95ef.js").then((l) => l.t)), ie = A(() => import("./index-aede2df5.js")), ne = A(() => import("./index-56bc95ef.js").then((l) => l.s)), ue = A(() => import("./index-56bc95ef.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), R = w(!1), E = w(null), L = 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-d2fcb8ab.js").then((l) => l.t)), ie = A(() => import("./index-39ff9e34.js")), ne = A(() => import("./index-d2fcb8ab.js").then((l) => l.s)), ue = A(() => import("./index-d2fcb8ab.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), R = w(!1), E = w(null), L = 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([]);
@@ -124,7 +124,7 @@ const Re = { class: "no-config-field" }, Le = { class: "dialog-footer" }, $e = {
124
124
  ..._
125
125
  }).then((o) => {
126
126
  try {
127
- Se({ title: b("act.tip"), message: b("act.saveSuccessfully"), type: "success", duration: 2500 }), B(), X("refresh");
127
+ Se({ title: b("act.tip"), message: b("act.saveSuccessfully"), type: "success", duration: 2500 }), B(), X("refresh", a);
128
128
  } catch (n) {
129
129
  console.error(n);
130
130
  }
@@ -400,7 +400,7 @@ const Re = { class: "no-config-field" }, Le = { class: "dialog-footer" }, $e = {
400
400
  }, 8, ["model-value", "title", "width"]);
401
401
  };
402
402
  }
403
- }, je = /* @__PURE__ */ we($e, [["__scopeId", "data-v-734a1d62"]]);
403
+ }, je = /* @__PURE__ */ we($e, [["__scopeId", "data-v-313f66bb"]]);
404
404
  export {
405
405
  je as default
406
406
  };
@@ -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-56bc95ef.js";
2
+ import { _ as P } from "./index-d2fcb8ab.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-56bc95ef.js";
2
+ import { _ as fe, u as ye, P as me, a as be, b as Ve } from "./index-d2fcb8ab.js";
3
3
  import "vue-router";
4
4
  import "js-base64";
5
5
  import "element-plus";
@@ -14,7 +14,7 @@ const _e = {
14
14
  },
15
15
  emits: ["reset", "search"],
16
16
  setup(j, { emit: H }) {
17
- const K = re(() => import("./index-56bc95ef.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-d2fcb8ab.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(