act-plus 1.1.49 → 1.1.50

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-d2fcb8ab.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-38232fe1.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-3f8dd82d.js")), h = K, N = I, P = E("pageKey")(), O = E("conditionList")(), Y = E("configData")();
16
+ const W = de(() => import("./dialogSiteComponentsParams-f94d7982.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-d2fcb8ab.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-38232fe1.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-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);
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);
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-d2fcb8ab.js").then((l) => l.q)), n = c, o = f;
11
+ const v = _(() => import("./index-38232fe1.js").then((l) => l.q)), n = c, o = f;
12
12
  let t = y();
13
13
  C(
14
14
  () => o.visible,
@@ -1,10 +1,10 @@
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-d2fcb8ab.js";
2
+ import { _ as we, u as Ne, P as Pe, a as Ue, b as ke } from "./index-38232fe1.js";
3
3
  import { ElNotification as Se } from "element-plus";
4
4
  import "vue-router";
5
5
  import "js-base64";
6
6
  import "monaco-editor";
7
- const Re = { class: "no-config-field" }, Le = { class: "dialog-footer" }, $e = {
7
+ const Le = { class: "no-config-field" }, Re = { class: "dialog-footer" }, $e = {
8
8
  __name: "index",
9
9
  props: {
10
10
  visible: { type: Boolean, default: !1 },
@@ -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-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) => {
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) => {
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([]);
@@ -58,11 +58,11 @@ const Re = { class: "no-config-field" }, Le = { class: "dialog-footer" }, $e = {
58
58
  let a = p.data.rowData[l.fieldKey];
59
59
  if (["select"].includes(l.fieldType)) {
60
60
  const r = h(l);
61
- l.dataList && typeof l.dataList[0][r["value-key"] ? r["value-key"] : "value"] == "string" && a !== null && (a = c ? { value: a.toString() } : a.toString());
61
+ l.dataList && l.dataList.length && typeof l.dataList[0][r["value-key"] ? r["value-key"] : "value"] == "string" && a !== null && (a = c ? { value: a.toString() } : a.toString());
62
62
  }
63
63
  if (["virtualizedSelect"].includes(l.fieldType)) {
64
64
  const r = h(l);
65
- l.dataList && typeof l.dataList[0][r["value-key"] ? r["value-key"] : "value"] == "string" && a !== null && (a = a.toString());
65
+ l.dataList && l.dataList.length && typeof l.dataList[0][r["value-key"] ? r["value-key"] : "value"] == "string" && a !== null && (a = a.toString());
66
66
  }
67
67
  return (a === "true" || a === "false") && (a = fe(a)), a;
68
68
  }, he = (l) => x({ url: p.data.dataItem.requestUrl, method: "post", data: l });
@@ -74,7 +74,7 @@ const Re = { class: "no-config-field" }, Le = { class: "dialog-footer" }, $e = {
74
74
  try {
75
75
  S.value = !0;
76
76
  const m = await pe(p.data.formList, p.data.rowData, !1, !0);
77
- console.log("formList", (a = p.data) == null ? void 0 : a.formList), L.value = await Promise.all(
77
+ console.log("formList", (a = p.data) == null ? void 0 : a.formList), R.value = await Promise.all(
78
78
  (((r = p.data) == null ? void 0 : r.formList) ?? []).sort((i, _) => i.sort - _.sort).map(async (i) => {
79
79
  const _ = m.find((C) => i.fieldName == C.fieldName && i.fieldKey == C.fieldKey);
80
80
  _ && (i.dataList = (_ == null ? void 0 : _.dataList) ?? []), ["select", "multipleSelect"].includes(i.fieldType) && (t.value[`${i.fieldKey}ActImplicit`] = Object.keys(p.data.rowData).length && i.isFormSetValue ? z(i, !0) : Y(i.fieldType)), t.value[i.fieldKey] = Object.keys(p.data.rowData).length && i.isFormSetValue ? z(i) : Y(i.fieldType);
@@ -94,7 +94,7 @@ const Re = { class: "no-config-field" }, Le = { class: "dialog-footer" }, $e = {
94
94
  const _e = (l) => {
95
95
  B(), l();
96
96
  }, B = () => {
97
- L.value = [], E.value.resetFields(), X("update:visible", !1);
97
+ R.value = [], E.value.resetFields(), X("update:visible", !1);
98
98
  }, ge = (l, c) => {
99
99
  const a = h(c), { fieldKey: r, fieldType: m } = c;
100
100
  if (m === "multipleSelect") {
@@ -112,7 +112,7 @@ const Re = { class: "no-config-field" }, Le = { class: "dialog-footer" }, $e = {
112
112
  delete m[o];
113
113
  return;
114
114
  }
115
- const n = L.value.find((D) => D.fieldKey === o);
115
+ const n = R.value.find((D) => D.fieldKey === o);
116
116
  o.includes("&") ? o.split("&").forEach((C, v) => {
117
117
  m[C] = m[o] ? $(m[o][v], n.fieldSubmitType) : m[o];
118
118
  }) : Array.isArray(m[o]) && n.fieldSubmitType == "string" && (m[o] = $(m[o], "string"));
@@ -128,9 +128,9 @@ const Re = { class: "no-config-field" }, Le = { class: "dialog-footer" }, $e = {
128
128
  } catch (n) {
129
129
  console.error(n);
130
130
  }
131
- R.value = !1;
131
+ L.value = !1;
132
132
  }).catch((o) => {
133
- console.error(o), R.value = !1;
133
+ console.error(o), L.value = !1;
134
134
  });
135
135
  }
136
136
  });
@@ -159,9 +159,9 @@ const Re = { class: "no-config-field" }, Le = { class: "dialog-footer" }, $e = {
159
159
  "before-close": _e
160
160
  }, {
161
161
  footer: T(() => [
162
- ae("span", Le, [
162
+ ae("span", Re, [
163
163
  te(f, {
164
- loading: R.value,
164
+ loading: L.value,
165
165
  onClick: B
166
166
  }, {
167
167
  default: T(() => [
@@ -171,7 +171,7 @@ const Re = { class: "no-config-field" }, Le = { class: "dialog-footer" }, $e = {
171
171
  }, 8, ["loading"]),
172
172
  oe((u(), y(f, {
173
173
  type: "primary",
174
- loading: R.value,
174
+ loading: L.value,
175
175
  onClick: c[1] || (c[1] = (G) => Ve(E.value))
176
176
  }, {
177
177
  default: T(() => [
@@ -198,7 +198,7 @@ const Re = { class: "no-config-field" }, Le = { class: "dialog-footer" }, $e = {
198
198
  default: T(() => [
199
199
  te(H, { gutter: 40 }, {
200
200
  default: T(() => [
201
- (u(!0), k(q, null, Q(L.value, (e, ee) => (u(), y(v, {
201
+ (u(!0), k(q, null, Q(R.value, (e, ee) => (u(), y(v, {
202
202
  span: me(e),
203
203
  key: ee
204
204
  }, {
@@ -218,7 +218,7 @@ const Re = { class: "no-config-field" }, Le = { class: "dialog-footer" }, $e = {
218
218
  class: "no-config",
219
219
  key: ee
220
220
  }, [
221
- ae("span", Re, "【" + O(e.fieldName) + "】", 1),
221
+ ae("span", Le, "【" + O(e.fieldName) + "】", 1),
222
222
  J(O(d(b)("act.fieldCustom")), 1)
223
223
  ]))
224
224
  ], 64)) : (u(), y(C, {
@@ -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-313f66bb"]]);
403
+ }, je = /* @__PURE__ */ we($e, [["__scopeId", "data-v-04a18124"]]);
404
404
  export {
405
405
  je as default
406
406
  };