act-plus 1.1.41 → 1.1.43

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 se, inject as E, reactive as ie, ref as A, watch as me, resolveComponent as C, resolveDirective as pe, openBlock as n, createBlock as m, withCtx as t, createElementVNode as H, createVNode as l, unref as u, createTextVNode as S, withDirectives as fe, createElementBlock as b, Fragment as c, renderList as _, createCommentVNode as V, toDisplayString as be } from "vue";
2
- import { _ as ce, F as ge, k as Ce, l as _e, m as L, T as ye, A as Ve, C as Te, U as Se } from "./index-40115216.js";
2
+ import { _ as ce, F as ge, k as Ce, l as _e, m as L, T as ye, A as Ve, C as Te, U as Se } from "./index-6818b5e9.js";
3
3
  import "vue-router";
4
4
  import "js-base64";
5
5
  import "element-plus";
@@ -13,7 +13,7 @@ const ve = { slot: "prepend" }, Ue = { class: "dialog-footer" }, ke = {
13
13
  },
14
14
  emits: ["update:visible", "refresh"],
15
15
  setup(K, { emit: M }) {
16
- const I = se(() => import("./dialogSiteComponentsParams-b6c8001c.js")), D = M, N = K, P = E("pageKey")(), x = E("conditionList")(), W = E("configData")();
16
+ const I = se(() => import("./dialogSiteComponentsParams-094ce600.js")), D = M, N = K, P = E("pageKey")(), x = E("conditionList")(), W = E("configData")();
17
17
  let v = ie((() => ({
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-40115216.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-6818b5e9.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-4398f116.js")), E = O(() => import("./index-40115216.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-5d5f6688.js")), E = O(() => import("./index-6818b5e9.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-40115216.js").then((l) => l.q)), n = c, o = f;
11
+ const v = _(() => import("./index-6818b5e9.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
- 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-40115216.js";
1
+ import { defineAsyncComponent as ee, inject as x, ref as R, watch as le, resolveComponent as i, resolveDirective as ae, unref as l, openBlock as n, createElementBlock as $, createVNode as te, normalizeStyle as oe, 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 re, createTextVNode as Y, toDisplayString as B } from "vue";
2
+ import { _ as ne, u as se, P as ue, a as de, b as pe } from "./index-6818b5e9.js";
3
3
  import "vue-router";
4
4
  import "js-base64";
5
5
  import "element-plus";
@@ -13,36 +13,36 @@ const ie = {
13
13
  data: { type: Object, default: () => ({}) }
14
14
  },
15
15
  emits: ["reset", "search"],
16
- setup(W, { emit: j }) {
17
- const I = le(() => import("./index-40115216.js").then((o) => o.t)), { t: d } = ue(), K = x("request"), p = x("getFieldUiProps"), L = x("formatDataType"), M = j, b = W;
16
+ setup(H, { emit: W }) {
17
+ const j = ee(() => import("./index-6818b5e9.js").then((o) => o.t)), { t: d } = se(), I = x("request"), p = x("getFieldUiProps"), L = x("formatDataType"), M = W, _ = H;
18
18
  let f = R([]), O = R([]), C = R(!0);
19
- const G = (o) => b.data.tableConfig.isExpandQuery && C.value ? b.data.tableConfig.tableQueryRowWidth > o + 1 : !0, J = (o) => {
19
+ const K = (o) => _.data.tableConfig.isExpandQuery && C.value ? _.data.tableConfig.tableQueryRowWidth > o + 1 : !0, G = (o) => {
20
20
  f.value = (o || []).filter((t) => t.useScenes.includes("tableSearch"));
21
- }, X = (o) => {
21
+ }, J = (o) => {
22
22
  const t = (o || []).filter((r) => r.permissionCode === 1001).map((r) => ({ ...r, loading: !1 }));
23
23
  O.value = [...t, { btnName: d("act.reset"), permissionCode: "9999", btnColor: "info", btnIcon: "btn-reset", loading: !1 }];
24
- }, Z = async ({ node: o, resolve: t }, r) => {
25
- const _ = p(r), { label: w, value: U, children: Q, isLeaf: q } = { ...pe, ..._.treeProps || {} };
24
+ }, X = async ({ node: o, resolve: t }, r) => {
25
+ const b = p(r), { label: w, value: U, children: Q, isLeaf: q } = { ...pe, ...b.treeProps || {} };
26
26
  if (o[q])
27
27
  return t([]);
28
28
  const v = r.postRequestParams.filter((s) => s.submitType === "default").reduce((s, V) => (s[V.submitName] = L(V.paramsType, V.submitValue), s), {}), k = r.postRequestParams.filter((s) => s.submitType === "dynamic").map((s) => ({
29
29
  field: s.submitName,
30
30
  operate: s.submitMatchType,
31
- value: _.loadCode ? o == null ? void 0 : o.data.value : L(s.paramsType, s.submitValue)
31
+ value: b.loadCode ? o == null ? void 0 : o.data.value : L(s.paramsType, s.submitValue)
32
32
  }));
33
33
  let y = {};
34
- Object.keys(v).length && (y = { ...y, ...v }), k.length && (y.dynamicFilters = k), _.loadCode && Reflect.has(y, _.loadCode) && (y[_.loadCode] = o == null ? void 0 : o.data.value);
35
- const { data: T } = await K({
34
+ Object.keys(v).length && (y = { ...y, ...v }), k.length && (y.dynamicFilters = k), b.loadCode && Reflect.has(y, b.loadCode) && (y[b.loadCode] = o == null ? void 0 : o.data.value);
35
+ const { data: T } = await I({
36
36
  url: r.fieldRequestUrl,
37
37
  method: r.fieldRequestType || "GET",
38
38
  data: y
39
39
  }), S = (T || []).map((s) => ({ label: s[w], value: s[U], children: [], isLeaf: s[q] }));
40
40
  t(S);
41
41
  };
42
- ae(
43
- () => b.data,
42
+ le(
43
+ () => _.data,
44
44
  (o, t) => {
45
- J(o.fields), X(o.buttons);
45
+ G(o.fields), J(o.buttons);
46
46
  },
47
47
  { immediate: !0 }
48
48
  );
@@ -62,15 +62,15 @@ const ie = {
62
62
  });
63
63
  break;
64
64
  }
65
- }, ee = () => {
65
+ }, Z = () => {
66
66
  C.value = !C.value;
67
67
  };
68
68
  return (o, t) => {
69
69
  var V;
70
- const r = i("el-input"), _ = i("el-option"), w = i("el-select"), U = i("el-select-v2"), Q = i("el-cascader"), q = i("el-tree-select"), v = i("el-date-picker"), k = i("el-form-item"), y = i("a-svg-icon"), T = i("el-button"), S = i("el-form"), s = te("debounce");
70
+ const r = i("el-input"), b = i("el-option"), w = i("el-select"), U = i("el-select-v2"), Q = i("el-cascader"), q = i("el-tree-select"), v = i("el-date-picker"), k = i("el-form-item"), y = i("a-svg-icon"), T = i("el-button"), S = i("el-form"), s = ae("debounce");
71
71
  return l(f) && l(f).length ? (n(), $("div", ie, [
72
- oe(S, {
73
- style: re({ "--table-query-row": b.data.tableConfig.tableQueryRowWidth }),
72
+ te(S, {
73
+ style: oe({ "--table-query-row": _.data.tableConfig.tableQueryRowWidth }),
74
74
  class: "form-content",
75
75
  ref: "elForm",
76
76
  "label-suffix": ":",
@@ -80,7 +80,7 @@ const ie = {
80
80
  (n(!0), $(E, null, D(l(f), (e, P) => z((n(), u(k, {
81
81
  key: P,
82
82
  class: "search-form-item",
83
- "label-width": b.data.tableConfig.tableQueryLabelWidth,
83
+ "label-width": _.data.tableConfig.tableQueryLabelWidth,
84
84
  label: e.fieldName
85
85
  }, {
86
86
  default: h(() => [
@@ -94,7 +94,7 @@ const ie = {
94
94
  }, l(p)(e), {
95
95
  onKeyup: t[0] || (t[0] = A(F((a) => c({ permissionCode: 1001 }), ["prevent"]), ["enter", "native"]))
96
96
  }), null, 16, ["modelValue", "onUpdate:modelValue", "placeholder"])) : g("", !0),
97
- e.fieldType === "inputNumber" ? (n(), u(l(I), m({
97
+ e.fieldType === "inputNumber" ? (n(), u(l(j), m({
98
98
  key: 1,
99
99
  modelValue: e.queryValue,
100
100
  "onUpdate:modelValue": (a) => e.queryValue = a,
@@ -109,7 +109,6 @@ const ie = {
109
109
  placeholder: `${l(d)("act.selectPlaceholder")}${e.fieldName}`,
110
110
  clearable: "",
111
111
  filterable: "",
112
- props: { ...l(H) },
113
112
  ref_for: !0
114
113
  }, l(p)(e), {
115
114
  multiple: e.fieldType === "multipleSelect",
@@ -118,19 +117,19 @@ const ie = {
118
117
  onChange: t[2] || (t[2] = (a) => c({ permissionCode: 1001 }))
119
118
  }), {
120
119
  default: h(() => [
121
- (n(!0), $(E, null, D(e.dataList, (a, N) => (n(), u(_, {
120
+ (n(!0), $(E, null, D(e.dataList, (a, N) => (n(), u(b, {
122
121
  key: N,
123
122
  label: a.key,
124
123
  value: a.value
125
124
  }, null, 8, ["label", "value"]))), 128))
126
125
  ]),
127
126
  _: 2
128
- }, 1040, ["modelValue", "onUpdate:modelValue", "placeholder", "props", "multiple", "collapse-tags", "collapse-tags-tooltip"])) : ["virtualizedSelect", "virtualizedMultipleSelect"].includes(e.fieldType) ? (n(), u(U, m({
127
+ }, 1040, ["modelValue", "onUpdate:modelValue", "placeholder", "multiple", "collapse-tags", "collapse-tags-tooltip"])) : ["virtualizedSelect", "virtualizedMultipleSelect"].includes(e.fieldType) ? (n(), u(U, m({
129
128
  key: 3,
130
129
  modelValue: e.queryValue,
131
130
  "onUpdate:modelValue": (a) => e.queryValue = a,
132
131
  options: e.dataList,
133
- props: { ...l(H) },
132
+ props: { ...l(ue) },
134
133
  placeholder: `${l(d)("act.selectPlaceholder")}${e.fieldName}`,
135
134
  clearable: "",
136
135
  filterable: "",
@@ -166,7 +165,7 @@ const ie = {
166
165
  clearable: "",
167
166
  filterable: "",
168
167
  lazy: "",
169
- load: (a, N) => Z({ node: a, resolve: N }, e),
168
+ load: (a, N) => X({ node: a, resolve: N }, e),
170
169
  ref_for: !0
171
170
  }, l(p)(e), {
172
171
  onChange: t[5] || (t[5] = (a) => c({ permissionCode: 1001 }))
@@ -197,7 +196,7 @@ const ie = {
197
196
  ]),
198
197
  _: 2
199
198
  }, 1032, ["label-width", "label"])), [
200
- [ne, G(P)]
199
+ [re, K(P)]
201
200
  ])), 128)),
202
201
  l(f).length ? (n(), u(k, {
203
202
  key: 0,
@@ -232,13 +231,13 @@ const ie = {
232
231
  ]),
233
232
  _: 1
234
233
  }, 8, ["style"]),
235
- b.data.tableConfig.isExpandQuery && ((V = l(f)) == null ? void 0 : V.length) > b.data.tableConfig.tableQueryRowWidth ? (n(), u(T, {
234
+ _.data.tableConfig.isExpandQuery && ((V = l(f)) == null ? void 0 : V.length) > _.data.tableConfig.tableQueryRowWidth ? (n(), u(T, {
236
235
  key: 0,
237
236
  class: "expand",
238
237
  text: "",
239
238
  size: "small",
240
239
  icon: l(C) ? "ArrowDown" : "ArrowUp",
241
- onClick: ee
240
+ onClick: Z
242
241
  }, {
243
242
  default: h(() => [
244
243
  Y(B(l(C) ? l(d)("act.expand") : l(d)("act.retract")), 1)
@@ -248,7 +247,7 @@ const ie = {
248
247
  ])) : g("", !0);
249
248
  };
250
249
  }
251
- }, he = /* @__PURE__ */ se(ce, [["__scopeId", "data-v-5dc94ebf"]]);
250
+ }, he = /* @__PURE__ */ ne(ce, [["__scopeId", "data-v-e748430f"]]);
252
251
  export {
253
252
  he as default
254
253
  };
@@ -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-40115216.js";
2
+ import { _ as P } from "./index-6818b5e9.js";
3
3
  import "vue-router";
4
4
  import "js-base64";
5
5
  import "element-plus";