act-plus 1.1.40 → 1.1.42

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.
@@ -0,0 +1,108 @@
1
+ import { ref as j, inject as l, watch as q, resolveComponent as y, resolveDirective as O, openBlock as a, 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-bbca6b2b.js";
3
+ import "vue-router";
4
+ import "js-base64";
5
+ import "element-plus";
6
+ import "monaco-editor";
7
+ const G = { class: "header-operate-container" }, J = {
8
+ __name: "index",
9
+ props: {
10
+ data: { type: Object, default: () => ({}) }
11
+ },
12
+ emits: ["operate"],
13
+ setup(w, { emit: x }) {
14
+ const N = x, T = w, { t: D } = z();
15
+ let h = j([]);
16
+ const V = l("globalProps"), v = l("menuPermissionBtns"), F = l("stringToBoolean"), $ = l("matchCondition"), S = l("getTableData"), P = l("tableBtnRefs"), A = (s) => {
17
+ if (!s.matchFields.length)
18
+ return !0;
19
+ const t = s.matchFields.filter((o) => o.matchType != "default"), r = (o) => V.matchData[o.matchType][o.matchFieldName];
20
+ let c = t.reduce((o, n, m) => {
21
+ const R = r(n);
22
+ return o += $(
23
+ n.matchCondition,
24
+ R,
25
+ n.fieldValue == "" ? null : n.fieldValue == "true" || n.fieldValue == "false" ? F(n.fieldValue) : n.fieldValue
26
+ ), m !== t.length - 1 && (o += n.spliceCondition || "&&"), o;
27
+ }, "").split("||"), e = c.reduce((o, n, m) => (o += `(${n})`, m < c.length - 1 && (o += "||"), o), "");
28
+ return new Function(`return ${e}`)();
29
+ }, I = (s) => v.value.some((t) => t.unique == s.permissionCode) && A(s), L = (s) => {
30
+ h.value = (s || []).filter((t) => t.permissionCode !== 1001 && t.btnPostion.includes("header")).sort((t, r) => t.sort - r.sort).map((t) => (t.btnAlias && (t.btnName = t.btnAlias), t));
31
+ };
32
+ q(
33
+ () => T.data,
34
+ (s, t) => {
35
+ L(s.buttons);
36
+ },
37
+ { immediate: !0 }
38
+ );
39
+ const g = (s) => {
40
+ N("operate", s, {});
41
+ };
42
+ return (s, t) => {
43
+ const r = y("a-svg-icon"), p = y("el-button"), c = O("debounce");
44
+ return a(), u("div", G, [
45
+ (a(!0), u(f, null, E(d(h), (e, o) => (a(), u(f, { key: o }, [
46
+ I(e) ? (a(), u(f, { key: 0 }, [
47
+ e.isCustomBtn && e.customType == "component" ? (a(), i(H(e[e.customComponentName]), {
48
+ key: 0,
49
+ class: "custom-btn",
50
+ ref_for: !0,
51
+ ref: (n) => d(P)[`${e.customComponentName}-${e.permissionCode}`] = n,
52
+ buttonData: e,
53
+ onRefresh: t[0] || (t[0] = (n) => d(S)())
54
+ }, {
55
+ default: _(() => [
56
+ C((a(), i(p, {
57
+ class: "el-btn",
58
+ type: e.btnColor,
59
+ onClick: (n) => g(e)
60
+ }, {
61
+ default: _(() => [
62
+ e.btnIcon ? (a(), i(r, {
63
+ key: 0,
64
+ class: "mr4",
65
+ name: e.btnIcon,
66
+ width: "12",
67
+ height: "12",
68
+ color: "#fff"
69
+ }, null, 8, ["name"])) : b("", !0),
70
+ k(" " + B(e.btnName), 1)
71
+ ]),
72
+ _: 2
73
+ }, 1032, ["type", "onClick"])), [
74
+ [c]
75
+ ])
76
+ ]),
77
+ _: 2
78
+ }, 1064, ["buttonData"])) : C((a(), i(p, {
79
+ key: 1,
80
+ class: "el-btn",
81
+ type: e.btnColor,
82
+ loading: e.opeateLoading,
83
+ onClick: (n) => g(e)
84
+ }, {
85
+ default: _(() => [
86
+ e.btnIcon ? (a(), i(r, {
87
+ key: 0,
88
+ class: "mr4",
89
+ name: e.btnIcon,
90
+ width: "12",
91
+ height: "12",
92
+ color: "#fff"
93
+ }, null, 8, ["name"])) : b("", !0),
94
+ k(" " + B(e.opeateLoading ? e.btnName + d(D)("act.loading") + "..." : e.btnName), 1)
95
+ ]),
96
+ _: 2
97
+ }, 1032, ["type", "loading", "onClick"])), [
98
+ [c]
99
+ ])
100
+ ], 64)) : b("", !0)
101
+ ], 64))), 128))
102
+ ]);
103
+ };
104
+ }
105
+ }, Z = /* @__PURE__ */ M(J, [["__scopeId", "data-v-7d9574aa"]]);
106
+ export {
107
+ Z as default
108
+ };
@@ -1,5 +1,5 @@
1
- import { defineAsyncComponent as L, inject as T, ref as K, watch as Te, resolveComponent as _, resolveDirective as ee, openBlock as n, createBlock as p, withCtx as C, createElementVNode as le, createVNode as ae, createTextVNode as W, toDisplayString as $, unref as i, withDirectives as oe, createElementBlock as N, Fragment as A, renderList as G, mergeProps as g, createCommentVNode as te, resolveDynamicComponent as De, toRaw as Ke } from "vue";
2
- import { _ as we, u as ke, P as Ne, a as Ue, b as Pe } from "./index-c18badb4.js";
1
+ import { defineAsyncComponent as $, inject as T, ref as K, watch as Te, resolveComponent as _, resolveDirective as ee, openBlock as n, createBlock as p, withCtx as C, createElementVNode as le, createVNode as ae, createTextVNode as W, toDisplayString as A, unref as i, withDirectives as oe, createElementBlock as k, Fragment as O, renderList as G, mergeProps as v, createCommentVNode as te, resolveDynamicComponent as De, toRaw as Ke } from "vue";
2
+ import { _ as we, u as Ne, P as Ue, a as ke, b as Pe } from "./index-bbca6b2b.js";
3
3
  import { ElNotification as Se } from "element-plus";
4
4
  import "vue-router";
5
5
  import "js-base64";
@@ -13,138 +13,137 @@ const Re = { class: "no-config-field" }, Le = { class: "dialog-footer" }, $e = {
13
13
  },
14
14
  emits: ["update:visible", "refresh"],
15
15
  setup(w, { emit: se }) {
16
- const de = L(() => import("./index-c18badb4.js").then((l) => l.g)), re = L(() => import("./index-a2d322cf.js")), ie = L(() => import("./index-c18badb4.js").then((l) => l.f)), ne = L(() => import("./index-c18badb4.js").then((l) => l.e)), { t: m } = ke(), O = T("request"), ue = T("loadComponents"), U = T("formatDataType"), J = T("globalProps"), ce = T("stringToBoolean"), b = T("getFieldUiProps"), fe = T("disposeRequestData"), Q = se, f = w, P = K(!1), S = K(!1), q = K(null), R = K([]), o = K({}), x = K({}), pe = (l) => l.formColumnCol == null || l.customFiledsComponentes[l.customFiledsComponentes.customComponentName] ? 24 : l.formColumnCol ? l.formColumnCol : 24 / l.formRow, me = (l) => {
17
- if (["input", "textarea"].includes(l.fieldType))
18
- return "blur";
19
- if (["select", "multipleSelect", "datetimerange", "treeSelect", "provinceCascade"].includes(l.fieldType))
20
- return "change";
21
- }, ye = async ({ node: l, resolve: c }, a) => {
22
- const r = b(a), { label: t, value: h, children: F, isLeaf: d } = { ...Pe, ...r.treeProps || {} };
23
- if (l[d])
16
+ const re = $(() => import("./index-bbca6b2b.js").then((l) => l.t)), de = $(() => import("./index-2ae88f18.js")), ie = $(() => import("./index-bbca6b2b.js").then((l) => l.s)), ne = $(() => import("./index-bbca6b2b.js").then((l) => l.r)), { t: m } = Ne(), q = T("request"), ue = T("loadComponents"), P = T("formatDataType"), J = T("globalProps"), ce = T("stringToBoolean"), b = T("getFieldUiProps"), fe = T("disposeRequestData"), Q = se, f = w, S = K(!1), R = K(!1), x = K(null), L = K([]), o = K({}), M = K({}), pe = (l) => l.formColumnCol == null || l.customFiledsComponentes[l.customFiledsComponentes.customComponentName] ? 24 : l.formColumnCol ? l.formColumnCol : 24 / l.formRow, me = (l) => ["input", "textarea"].includes(l.fieldType) ? "blur" : (["select", "multipleSelect", "datetimerange", "treeSelect", "provinceCascade"].includes(l.fieldType), "change"), ye = async ({ node: l, resolve: c }, a) => {
17
+ const d = b(a), { label: t, value: h, children: F, isLeaf: s } = { ...Pe, ...d.treeProps || {} };
18
+ if (l[s])
24
19
  return c([]);
25
- const u = a.postRequestParams.filter((y) => y.submitType === "default").reduce((y, D) => (y[D.submitName] = U(D.paramsType, D.submitValue), y), {}), v = a.postRequestParams.filter((y) => y.submitType === "dynamic").map((y) => ({
20
+ const u = a.postRequestParams.filter((y) => y.submitType === "default").reduce((y, D) => (y[D.submitName] = P(D.paramsType, D.submitValue), y), {}), g = a.postRequestParams.filter((y) => y.submitType === "dynamic").map((y) => ({
26
21
  field: y.submitName,
27
22
  operate: y.submitMatchType,
28
- value: r.loadCode ? l == null ? void 0 : l.data.value : U(y.paramsType, y.submitValue)
23
+ value: d.loadCode ? l == null ? void 0 : l.data.value : P(y.paramsType, y.submitValue)
29
24
  }));
30
25
  let V = {};
31
- Object.keys(u).length && (V = { ...V, ...u }), v.length && (V.dynamicFilters = v), r.loadCode && Reflect.has(V, r.loadCode) && (V[r.loadCode] = l == null ? void 0 : l.data.value);
32
- const { data: z } = await O({
26
+ Object.keys(u).length && (V = { ...V, ...u }), g.length && (V.dynamicFilters = g), d.loadCode && Reflect.has(V, d.loadCode) && (V[d.loadCode] = l == null ? void 0 : l.data.value);
27
+ const { data: N } = await q({
33
28
  url: a.fieldRequestUrl,
34
29
  method: a.fieldRequestType || "GET",
35
30
  data: V
36
- }), B = (z || []).map((y) => ({ label: y[t], value: y[h], children: [], isLeaf: y[d] }));
31
+ }), B = (N || []).map((y) => ({ label: y[t], value: y[h], children: [], isLeaf: y[s] }));
37
32
  c(B);
38
- }, M = (l) => {
33
+ }, E = (l) => {
39
34
  if (!["input", "textarea"].includes(l)) {
40
35
  if (["multipleSelect", "dateRange"].includes(l))
41
36
  return [];
42
37
  if (["switch"].includes(l))
43
38
  return !1;
44
39
  }
45
- }, E = (l, c) => {
40
+ }, j = (l, c) => {
46
41
  if (["string"].includes(c))
47
- return l.sort((a, r) => a.sort - r.sort).join(";");
42
+ return l.sort((a, d) => a.sort - d.sort).join(";");
48
43
  if (["number"].includes(c))
49
44
  return Number(l);
50
45
  if (["array"].includes(c))
51
- return l.sort((a, r) => a.sort - r.sort);
52
- }, j = (l, c = !1) => {
46
+ return l.sort((a, d) => a.sort - d.sort);
47
+ }, Y = (l, c = !1) => {
53
48
  if (["multipleSelect"].includes(l.fieldType))
54
- return f.data.rowData[l.fieldKey] ? f.data.rowData[l.fieldKey].split(";").map((r) => c ? { value: r } : r) : [];
49
+ return f.data.rowData[l.fieldKey] ? f.data.rowData[l.fieldKey].split(";").map((d) => c ? { value: d } : d) : [];
55
50
  if (["virtualizedMultipleSelect"].includes(l.fieldType))
56
51
  return f.data.rowData[l.fieldKey] ? f.data.rowData[l.fieldKey].split(";") : [];
57
52
  if (["dateRange"].includes(l.fieldType)) {
58
- const r = l.fieldKey.split("&");
59
- return f.data.rowData[l.fieldKey] = r.map((t) => f.data.rowData[t]), f.data.rowData[l.fieldKey];
53
+ const d = l.fieldKey.split("&");
54
+ return f.data.rowData[l.fieldKey] = d.map((t) => f.data.rowData[t]), f.data.rowData[l.fieldKey];
60
55
  }
61
56
  let a = f.data.rowData[l.fieldKey];
62
57
  if (["select"].includes(l.fieldType)) {
63
- const r = b(l);
64
- l.dataList && typeof l.dataList[0][r["value-key"] ? r["value-key"] : "value"] == "string" && a !== null && (a = c ? { value: a.toString() } : a.toString());
58
+ const d = b(l);
59
+ l.dataList && typeof l.dataList[0][d["value-key"] ? d["value-key"] : "value"] == "string" && a !== null && (a = c ? { value: a.toString() } : a.toString());
65
60
  }
66
61
  if (["virtualizedSelect"].includes(l.fieldType)) {
67
- const r = b(l);
68
- l.dataList && typeof l.dataList[0][r["value-key"] ? r["value-key"] : "value"] == "string" && a !== null && (a = a.toString());
62
+ const d = b(l);
63
+ l.dataList && typeof l.dataList[0][d["value-key"] ? d["value-key"] : "value"] == "string" && a !== null && (a = a.toString());
69
64
  }
70
65
  return (a === "true" || a === "false") && (a = ce(a)), a;
71
- }, be = (l) => O({ url: f.data.dataItem.requestUrl, method: "post", data: l });
66
+ }, be = (l) => q({ url: f.data.dataItem.requestUrl, method: "post", data: l });
72
67
  Te(
73
68
  () => f.visible,
74
69
  async (l, c) => {
75
70
  var a;
76
71
  if (l)
77
72
  try {
78
- P.value = !0;
79
- const r = await fe(f.data.formList, f.data.rowData, !1, !0);
80
- R.value = await Promise.all(
73
+ S.value = !0;
74
+ const d = await fe(f.data.formList, f.data.rowData, !1, !0);
75
+ L.value = await Promise.all(
81
76
  (((a = f.data) == null ? void 0 : a.formList) ?? []).sort((t, h) => t.sort - h.sort).map(async (t) => {
82
- const h = r.find((v) => t.fieldName == v.fieldName && t.fieldKey == v.fieldKey);
83
- h && (t.dataList = (h == null ? void 0 : h.dataList) ?? []), ["select", "multipleSelect"].includes(t.fieldType) && (o.value[`${t.fieldKey}ActImplicit`] = Object.keys(f.data.rowData).length && t.isFormSetValue ? j(t, !0) : M(t.fieldType)), o.value[t.fieldKey] = Object.keys(f.data.rowData).length && t.isFormSetValue ? j(t) : M(t.fieldType);
84
- const { isFiledCustom: F, customComponentName: d, customComponentUrl: u } = t.customFiledsComponentes;
85
- if (F && !t.customFiledsComponentes[d]) {
86
- const v = await ue(u, d);
87
- t.customFiledsComponentes[d] = v;
77
+ const h = d.find((g) => t.fieldName == g.fieldName && t.fieldKey == g.fieldKey);
78
+ h && (t.dataList = (h == null ? void 0 : h.dataList) ?? []), ["select", "multipleSelect"].includes(t.fieldType) && (o.value[`${t.fieldKey}ActImplicit`] = Object.keys(f.data.rowData).length && t.isFormSetValue ? Y(t, !0) : E(t.fieldType)), o.value[t.fieldKey] = Object.keys(f.data.rowData).length && t.isFormSetValue ? Y(t) : E(t.fieldType);
79
+ const { isFiledCustom: F, customComponentName: s, customComponentUrl: u } = t.customFiledsComponentes;
80
+ if (F && !t.customFiledsComponentes[s]) {
81
+ const g = await ue(u, s);
82
+ t.customFiledsComponentes[s] = g;
88
83
  }
89
84
  return t;
90
85
  })
91
- ), console.log(R.value), P.value = !1;
92
- } catch (r) {
93
- console.error(r), P.value = !1;
86
+ ), S.value = !1;
87
+ } catch (d) {
88
+ console.error(d), S.value = !1;
94
89
  }
95
90
  }
96
91
  );
97
92
  const he = (l) => {
98
- Y(), l();
99
- }, Y = () => {
100
- R.value = [], q.value.resetFields(), Q("update:visible", !1);
93
+ z(), l();
94
+ }, z = () => {
95
+ L.value = [], x.value.resetFields(), Q("update:visible", !1);
101
96
  }, _e = (l, c) => {
102
- const a = b(c), { fieldKey: r, fieldType: t } = c;
97
+ const a = b(c), { fieldKey: d, fieldType: t } = c;
103
98
  if (t === "multipleSelect") {
104
- const h = l.filter((d) => typeof d == "string"), F = l.filter((d) => typeof d != "string").map((d) => d.value);
105
- o.value[a.createFieldKey] = h.length ? E(h, "string") : void 0, o.value[r] = F.length ? E(F, "string") : void 0;
99
+ const h = l.filter((s) => typeof s == "string"), F = l.filter((s) => typeof s != "string").map((s) => s.value);
100
+ o.value[a.createFieldKey] = h.length ? j(h, "string") : void 0, o.value[d] = F.length ? j(F, "string") : void 0;
106
101
  } else
107
- typeof l == "string" ? (o.value[a.createFieldKey] = l, o.value[r] = void 0) : (o.value[r] = l.value, delete o.value[a.createFieldKey]);
102
+ typeof l == "string" ? (o.value[a.createFieldKey] = l, o.value[d] = void 0) : (o.value[d] = l.value, delete o.value[a.createFieldKey]);
108
103
  }, ge = (l) => {
109
104
  l && l.validate((c) => {
110
105
  if (c) {
111
- const { dataItem: a, rowData: r } = f.data;
106
+ const { dataItem: a, rowData: d } = f.data;
112
107
  let t = { ...Ke(o.value) };
113
- Object.keys(t).forEach((d) => {
114
- if (d.includes("ActImplicit")) {
115
- delete t[d];
108
+ Object.keys(t).forEach((s) => {
109
+ if (s.includes("ActImplicit")) {
110
+ delete t[s];
116
111
  return;
117
112
  }
118
- d.includes("&") ? d.split("&").forEach((v, V) => {
119
- t[v] = t[d][V];
120
- }) : Array.isArray(t[d]) && (t[d] = E(t[d], "string"));
113
+ const u = L.value.find((g) => g.fieldKey === s);
114
+ s.includes("&") ? s.split("&").forEach((V, N) => {
115
+ t[V] = t[s][N];
116
+ }) : Array.isArray(t[s]) && u.fieldSubmitType == "string" && (t[s] = j(t[s], "string"));
121
117
  });
122
- const h = a.submitFields.filter((d) => d.matchType == "default").reduce((d, u) => (u.submitFieldType === "string" && (d[u.submitFieldName] = u.matchFieldName.toString()), d), {}), F = a.submitFields.filter((d) => d.matchType == "match").reduce((d, u) => (Reflect.has(u, "submitFieldMatchOrigin") && u.submitFieldMatchOrigin != "rowData" ? Reflect.has(J.matchData, u.submitFieldMatchOrigin) && (d[u.submitFieldName] = U(u.submitFieldType, J.matchData[u.submitFieldMatchOrigin][u.matchFieldName])) : d[u.submitFieldName] = U(u.submitFieldType, r[u.matchFieldName]), d), {});
118
+ const h = a.submitFields.filter((s) => s.matchType == "default").reduce((s, u) => (u.submitFieldType === "string" && (s[u.submitFieldName] = u.matchFieldName.toString()), s), {}), F = a.submitFields.filter((s) => s.matchType == "match").reduce((s, u) => (Reflect.has(u, "submitFieldMatchOrigin") && u.submitFieldMatchOrigin != "rowData" ? Reflect.has(J.matchData, u.submitFieldMatchOrigin) && (s[u.submitFieldName] = P(u.submitFieldType, J.matchData[u.submitFieldMatchOrigin][u.matchFieldName])) : s[u.submitFieldName] = P(u.submitFieldType, d[u.matchFieldName]), s), {});
123
119
  be({
124
120
  ...t,
125
121
  ...h,
126
122
  ...F
127
- }).then((d) => {
123
+ }).then((s) => {
128
124
  try {
129
- Se({ title: m("act.tip"), message: m("act.saveSuccessfully"), type: "success", duration: 2500 }), Y(), Q("refresh");
125
+ Se({ title: m("act.tip"), message: m("act.saveSuccessfully"), type: "success", duration: 2500 }), z(), Q("refresh");
130
126
  } catch (u) {
131
127
  console.error(u);
132
128
  }
133
- S.value = !1;
134
- }).catch((d) => {
135
- console.error(d), S.value = !1;
129
+ R.value = !1;
130
+ }).catch((s) => {
131
+ console.error(s), R.value = !1;
136
132
  });
137
133
  }
138
134
  });
139
135
  }, ve = (l) => {
140
- const c = Object.keys(x.value).map((a) => x.value[a].updateFormData(o.value));
136
+ const c = Object.keys(M.value).map((a) => {
137
+ var d;
138
+ return (d = M.value[a]) == null ? void 0 : d.updateFormData(o.value);
139
+ }).filter((a) => a);
141
140
  Promise.all([l.validate(), ...c]).then((a) => {
142
- console.log(a), a.every((r) => r) && ge(l);
141
+ a.every((d) => d) && ge(l);
143
142
  }).catch((a) => (console.error(a), a));
144
143
  };
145
144
  return (l, c) => {
146
145
  var X;
147
- const a = _("el-input"), r = _("el-option"), t = _("el-select"), h = _("el-select-v2"), F = _("el-tree-select"), d = _("el-date-picker"), u = _("el-cascader"), v = _("el-switch"), V = _("el-form-item"), z = _("el-col"), B = _("el-row"), y = _("el-form"), D = _("el-button"), Ve = _("el-dialog"), Ce = ee("loading"), Fe = ee("debounce");
146
+ const a = _("el-input"), d = _("el-option"), t = _("el-select"), h = _("el-select-v2"), F = _("el-tree-select"), s = _("el-date-picker"), u = _("el-cascader"), g = _("el-switch"), V = _("el-form-item"), N = _("el-col"), B = _("el-row"), y = _("el-form"), D = _("el-button"), Ve = _("el-dialog"), Ce = ee("loading"), Fe = ee("debounce");
148
147
  return n(), p(Ve, {
149
148
  "model-value": f.visible,
150
149
  title: f.title,
@@ -160,21 +159,21 @@ const Re = { class: "no-config-field" }, Le = { class: "dialog-footer" }, $e = {
160
159
  footer: C(() => [
161
160
  le("span", Le, [
162
161
  ae(D, {
163
- loading: S.value,
164
- onClick: Y
162
+ loading: R.value,
163
+ onClick: z
165
164
  }, {
166
165
  default: C(() => [
167
- W($(i(m)("act.cancel")), 1)
166
+ W(A(i(m)("act.cancel")), 1)
168
167
  ]),
169
168
  _: 1
170
169
  }, 8, ["loading"]),
171
170
  oe((n(), p(D, {
172
171
  type: "primary",
173
- loading: S.value,
174
- onClick: c[1] || (c[1] = (H) => ve(q.value))
172
+ loading: R.value,
173
+ onClick: c[1] || (c[1] = (H) => ve(x.value))
175
174
  }, {
176
175
  default: C(() => [
177
- W($(i(m)("act.save")), 1)
176
+ W(A(i(m)("act.save")), 1)
178
177
  ]),
179
178
  _: 1
180
179
  }, 8, ["loading"])), [
@@ -188,7 +187,7 @@ const Re = { class: "no-config-field" }, Le = { class: "dialog-footer" }, $e = {
188
187
  oe((n(), p(y, {
189
188
  class: "a-form",
190
189
  ref_key: "formRef",
191
- ref: q,
190
+ ref: x,
192
191
  model: o.value,
193
192
  "label-suffix": ":",
194
193
  "label-width": (H = w.data.formConfig) == null ? void 0 : H.formLabelWidth,
@@ -197,28 +196,28 @@ const Re = { class: "no-config-field" }, Le = { class: "dialog-footer" }, $e = {
197
196
  default: C(() => [
198
197
  ae(B, { gutter: 40 }, {
199
198
  default: C(() => [
200
- (n(!0), N(A, null, G(R.value, (e, I) => (n(), p(z, {
199
+ (n(!0), k(O, null, G(L.value, (e, I) => (n(), p(N, {
201
200
  span: pe(e),
202
201
  key: I
203
202
  }, {
204
203
  default: C(() => [
205
- e.customFiledsComponentes.isFiledCustom ? (n(), N(A, { key: 1 }, [
204
+ e.customFiledsComponentes.isFiledCustom ? (n(), k(O, { key: 1 }, [
206
205
  e.customFiledsComponentes[e.customFiledsComponentes.customComponentName] ? (n(), p(De(e.customFiledsComponentes[e.customFiledsComponentes.customComponentName]), {
207
206
  key: 0,
208
207
  ref_for: !0,
209
- ref: (s) => x.value[e.customFiledsComponentes.customComponentName] = s,
208
+ ref: (r) => M.value[e.customFiledsComponentes.customComponentName] = r,
210
209
  formConfig: w.data.formConfig,
211
210
  item: e,
212
211
  rowData: f.data.rowData,
213
212
  visible: f.visible,
214
213
  form: o.value,
215
- "onUpdate:form": c[0] || (c[0] = (s) => o.value = s)
216
- }, null, 40, ["formConfig", "item", "rowData", "visible", "form"])) : (n(), N("div", {
214
+ "onUpdate:form": c[0] || (c[0] = (r) => o.value = r)
215
+ }, null, 40, ["formConfig", "item", "rowData", "visible", "form"])) : (n(), k("div", {
217
216
  class: "no-config",
218
217
  key: I
219
218
  }, [
220
- le("span", Re, "【" + $(e.fieldName) + "】", 1),
221
- W($(i(m)("act.fieldCustom")), 1)
219
+ le("span", Re, "【" + A(e.fieldName) + "】", 1),
220
+ W(A(i(m)("act.fieldCustom")), 1)
222
221
  ]))
223
222
  ], 64)) : (n(), p(V, {
224
223
  key: 0,
@@ -227,39 +226,39 @@ const Re = { class: "no-config-field" }, Le = { class: "dialog-footer" }, $e = {
227
226
  rules: [{ required: e.isFormFieldRequired, message: i(m)("act.requiredMessage"), trigger: me(e) }]
228
227
  }, {
229
228
  default: C(() => [
230
- e.fieldType === "input" ? (n(), p(a, g({
229
+ e.fieldType === "input" ? (n(), p(a, v({
231
230
  key: 0,
232
231
  modelValue: o.value[e.fieldKey],
233
- "onUpdate:modelValue": (s) => o.value[e.fieldKey] = s,
232
+ "onUpdate:modelValue": (r) => o.value[e.fieldKey] = r,
234
233
  placeholder: `${i(m)("act.inputPlaceholder")}${e.fieldName}`,
235
234
  clearable: "",
236
235
  ref_for: !0
237
236
  }, i(b)(e), {
238
237
  disabled: e.isFormDisabled
239
238
  }), null, 16, ["modelValue", "onUpdate:modelValue", "placeholder", "disabled"])) : te("", !0),
240
- e.fieldType === "inputNumber" ? (n(), p(i(de), g({
239
+ e.fieldType === "inputNumber" ? (n(), p(i(re), v({
241
240
  key: 1,
242
241
  modelValue: o.value[e.fieldKey],
243
- "onUpdate:modelValue": (s) => o.value[e.fieldKey] = s,
242
+ "onUpdate:modelValue": (r) => o.value[e.fieldKey] = r,
244
243
  placeholder: `${i(m)("act.inputPlaceholder")}${e.fieldName}`,
245
244
  clearable: "",
246
245
  ref_for: !0
247
246
  }, i(b)(e), {
248
247
  disabled: e.isFormDisabled
249
- }), null, 16, ["modelValue", "onUpdate:modelValue", "placeholder", "disabled"])) : e.fieldType === "textarea" ? (n(), p(a, g({
248
+ }), null, 16, ["modelValue", "onUpdate:modelValue", "placeholder", "disabled"])) : e.fieldType === "textarea" ? (n(), p(a, v({
250
249
  key: 2,
251
250
  modelValue: o.value[e.fieldKey],
252
- "onUpdate:modelValue": (s) => o.value[e.fieldKey] = s,
251
+ "onUpdate:modelValue": (r) => o.value[e.fieldKey] = r,
253
252
  placeholder: `${i(m)("act.inputPlaceholder")}${e.fieldName}`,
254
253
  rows: 4,
255
254
  ref_for: !0
256
255
  }, i(b)(e), {
257
256
  type: "textarea",
258
257
  disabled: e.isFormDisabled
259
- }), null, 16, ["modelValue", "onUpdate:modelValue", "placeholder", "disabled"])) : e.fieldType === "selectIcon" ? (n(), p(i(re), g({
258
+ }), null, 16, ["modelValue", "onUpdate:modelValue", "placeholder", "disabled"])) : e.fieldType === "selectIcon" ? (n(), p(i(de), v({
260
259
  key: 3,
261
260
  modelValue: o.value[e.fieldKey],
262
- "onUpdate:modelValue": (s) => o.value[e.fieldKey] = s,
261
+ "onUpdate:modelValue": (r) => o.value[e.fieldKey] = r,
263
262
  icons: e.dataList,
264
263
  placeholder: `${i(m)("act.selectPlaceholder")}${e.fieldName}`,
265
264
  ref_for: !0
@@ -267,17 +266,17 @@ const Re = { class: "no-config-field" }, Le = { class: "dialog-footer" }, $e = {
267
266
  disabled: e.isFormDisabled
268
267
  }), {
269
268
  default: C(() => [
270
- (n(!0), N(A, null, G(e.dataList, (s, k) => (n(), p(r, {
271
- key: k,
272
- label: s.key,
273
- value: s.value
269
+ (n(!0), k(O, null, G(e.dataList, (r, U) => (n(), p(d, {
270
+ key: U,
271
+ label: r.key,
272
+ value: r.value
274
273
  }, null, 8, ["label", "value"]))), 128))
275
274
  ]),
276
275
  _: 2
277
- }, 1040, ["modelValue", "onUpdate:modelValue", "icons", "placeholder", "disabled"])) : ["select", "multipleSelect"].includes(e.fieldType) ? (n(), p(t, g({
276
+ }, 1040, ["modelValue", "onUpdate:modelValue", "icons", "placeholder", "disabled"])) : ["select", "multipleSelect"].includes(e.fieldType) ? (n(), p(t, v({
278
277
  key: 4,
279
278
  modelValue: o.value[`${e.fieldKey}ActImplicit`],
280
- "onUpdate:modelValue": (s) => o.value[`${e.fieldKey}ActImplicit`] = s,
279
+ "onUpdate:modelValue": (r) => o.value[`${e.fieldKey}ActImplicit`] = r,
281
280
  placeholder: `${i(m)("act.selectPlaceholder")}${e.fieldName}`,
282
281
  clearable: "",
283
282
  filterable: "",
@@ -286,22 +285,22 @@ const Re = { class: "no-config-field" }, Le = { class: "dialog-footer" }, $e = {
286
285
  }, i(b)(e), {
287
286
  multiple: e.fieldType === "multipleSelect",
288
287
  disabled: e.isFormDisabled,
289
- onChange: (s) => _e(s, e)
288
+ onChange: (r) => _e(r, e)
290
289
  }), {
291
290
  default: C(() => [
292
- (n(!0), N(A, null, G(e.dataList, (s, k) => (n(), p(r, {
293
- key: k,
294
- label: s.key,
295
- value: s
291
+ (n(!0), k(O, null, G(e.dataList, (r, U) => (n(), p(d, {
292
+ key: U,
293
+ label: r.key,
294
+ value: r
296
295
  }, null, 8, ["label", "value"]))), 128))
297
296
  ]),
298
297
  _: 2
299
- }, 1040, ["modelValue", "onUpdate:modelValue", "placeholder", "multiple", "disabled", "onChange"])) : ["virtualizedSelect", "virtualizedMultipleSelect"].includes(e.fieldType) ? (n(), p(h, g({
298
+ }, 1040, ["modelValue", "onUpdate:modelValue", "placeholder", "multiple", "disabled", "onChange"])) : ["virtualizedSelect", "virtualizedMultipleSelect"].includes(e.fieldType) ? (n(), p(h, v({
300
299
  key: 5,
301
300
  modelValue: o.value[e.fieldKey],
302
- "onUpdate:modelValue": (s) => o.value[e.fieldKey] = s,
301
+ "onUpdate:modelValue": (r) => o.value[e.fieldKey] = r,
303
302
  options: e.dataList,
304
- props: { ...i(Ne) },
303
+ props: { ...i(Ue) },
305
304
  placeholder: `${i(m)("act.selectPlaceholder")}${e.fieldName}`,
306
305
  clearable: "",
307
306
  filterable: "",
@@ -309,10 +308,10 @@ const Re = { class: "no-config-field" }, Le = { class: "dialog-footer" }, $e = {
309
308
  }, i(b)(e), {
310
309
  disabled: e.isFormDisabled,
311
310
  multiple: e.fieldType === "virtualizedMultipleSelect"
312
- }), null, 16, ["modelValue", "onUpdate:modelValue", "options", "props", "placeholder", "disabled", "multiple"])) : e.fieldType === "treeSelect" ? (n(), p(F, g({
311
+ }), null, 16, ["modelValue", "onUpdate:modelValue", "options", "props", "placeholder", "disabled", "multiple"])) : e.fieldType === "treeSelect" ? (n(), p(F, v({
313
312
  key: 6,
314
313
  modelValue: o.value[e.fieldKey],
315
- "onUpdate:modelValue": (s) => o.value[e.fieldKey] = s,
314
+ "onUpdate:modelValue": (r) => o.value[e.fieldKey] = r,
316
315
  placeholder: `请选择${e.fieldName}`,
317
316
  props: { isLeaf: "isLeaf" },
318
317
  "render-after-expand": !1,
@@ -323,22 +322,22 @@ const Re = { class: "no-config-field" }, Le = { class: "dialog-footer" }, $e = {
323
322
  clearable: "",
324
323
  filterable: "",
325
324
  lazy: "",
326
- load: (s, k) => ye({ node: s, resolve: k }, e),
325
+ load: (r, U) => ye({ node: r, resolve: U }, e),
327
326
  ref_for: !0
328
- }, i(b)(e)), null, 16, ["modelValue", "onUpdate:modelValue", "placeholder", "load"])) : e.fieldType === "date" ? (n(), p(d, g({
327
+ }, i(b)(e)), null, 16, ["modelValue", "onUpdate:modelValue", "placeholder", "load"])) : e.fieldType === "date" ? (n(), p(s, v({
329
328
  key: 7,
330
329
  modelValue: o.value[e.fieldKey],
331
- "onUpdate:modelValue": (s) => o.value[e.fieldKey] = s,
330
+ "onUpdate:modelValue": (r) => o.value[e.fieldKey] = r,
332
331
  type: "date",
333
332
  placeholder: `${i(m)("act.selectPlaceholder")}${i(m)("act.time")}`,
334
333
  "value-format": "YYYY-MM-DD HH:mm:ss",
335
334
  ref_for: !0
336
335
  }, i(b)(e), {
337
336
  disabled: e.isFormDisabled
338
- }), null, 16, ["modelValue", "onUpdate:modelValue", "placeholder", "disabled"])) : e.fieldType === "dateRange" ? (n(), p(d, g({
337
+ }), null, 16, ["modelValue", "onUpdate:modelValue", "placeholder", "disabled"])) : e.fieldType === "dateRange" ? (n(), p(s, v({
339
338
  key: 8,
340
339
  modelValue: o.value[e.fieldKey],
341
- "onUpdate:modelValue": (s) => o.value[e.fieldKey] = s,
340
+ "onUpdate:modelValue": (r) => o.value[e.fieldKey] = r,
342
341
  type: "daterange",
343
342
  "start-placeholder": i(m)("act.startTime"),
344
343
  "end-placeholder": i(m)("act.endTime"),
@@ -346,35 +345,35 @@ const Re = { class: "no-config-field" }, Le = { class: "dialog-footer" }, $e = {
346
345
  ref_for: !0
347
346
  }, i(b)(e), {
348
347
  disabled: e.isFormDisabled
349
- }), null, 16, ["modelValue", "onUpdate:modelValue", "start-placeholder", "end-placeholder", "disabled"])) : e.fieldType === "provinceCascade" ? (n(), p(u, g({
348
+ }), null, 16, ["modelValue", "onUpdate:modelValue", "start-placeholder", "end-placeholder", "disabled"])) : e.fieldType === "provinceCascade" ? (n(), p(u, v({
350
349
  key: 9,
351
350
  modelValue: o.value[e.fieldKey],
352
- "onUpdate:modelValue": (s) => o.value[e.fieldKey] = s,
351
+ "onUpdate:modelValue": (r) => o.value[e.fieldKey] = r,
353
352
  options: e.dataList,
354
- props: i(Ue),
353
+ props: i(ke),
355
354
  clearable: "",
356
355
  filterable: "",
357
356
  placeholder: `${i(m)("act.selectPlaceholder")}${e.fieldName}`,
358
357
  ref_for: !0
359
358
  }, i(b)(e), {
360
359
  disabled: e.isFormDisabled
361
- }), null, 16, ["modelValue", "onUpdate:modelValue", "options", "props", "placeholder", "disabled"])) : e.fieldType === "switch" ? (n(), p(v, {
360
+ }), null, 16, ["modelValue", "onUpdate:modelValue", "options", "props", "placeholder", "disabled"])) : e.fieldType === "switch" ? (n(), p(g, {
362
361
  key: 10,
363
362
  modelValue: o.value[e.fieldKey],
364
- "onUpdate:modelValue": (s) => o.value[e.fieldKey] = s,
363
+ "onUpdate:modelValue": (r) => o.value[e.fieldKey] = r,
365
364
  "active-value": !0,
366
365
  "inactive-value": !1
367
- }, null, 8, ["modelValue", "onUpdate:modelValue"])) : e.fieldType === "upload" ? (n(), p(i(ie), g({
366
+ }, null, 8, ["modelValue", "onUpdate:modelValue"])) : e.fieldType === "upload" ? (n(), p(i(ie), v({
368
367
  key: 11,
369
368
  class: "form-upload",
370
369
  modelValue: o.value[e.fieldKey],
371
- "onUpdate:modelValue": (s) => o.value[e.fieldKey] = s,
372
- request: i(O),
370
+ "onUpdate:modelValue": (r) => o.value[e.fieldKey] = r,
371
+ request: i(q),
373
372
  ref_for: !0
374
- }, i(b)(e)), null, 16, ["modelValue", "onUpdate:modelValue", "request"])) : e.fieldType === "editor" ? (n(), p(i(ne), g({
373
+ }, i(b)(e)), null, 16, ["modelValue", "onUpdate:modelValue", "request"])) : e.fieldType === "editor" ? (n(), p(i(ne), v({
375
374
  key: 12,
376
375
  modelValue: o.value[e.fieldKey],
377
- "onUpdate:modelValue": (s) => o.value[e.fieldKey] = s,
376
+ "onUpdate:modelValue": (r) => o.value[e.fieldKey] = r,
378
377
  disabled: e.isFormDisabled,
379
378
  placeholder: `${i(m)("act.inputPlaceholder")}${e.fieldName}`,
380
379
  ref_for: !0
@@ -391,7 +390,7 @@ const Re = { class: "no-config-field" }, Le = { class: "dialog-footer" }, $e = {
391
390
  ]),
392
391
  _: 1
393
392
  }, 8, ["model", "label-width", "label-position"])), [
394
- [Ce, P.value]
393
+ [Ce, S.value]
395
394
  ])
396
395
  ];
397
396
  }),
@@ -399,7 +398,7 @@ const Re = { class: "no-config-field" }, Le = { class: "dialog-footer" }, $e = {
399
398
  }, 8, ["model-value", "title", "width"]);
400
399
  };
401
400
  }
402
- }, je = /* @__PURE__ */ we($e, [["__scopeId", "data-v-92775a28"]]);
401
+ }, je = /* @__PURE__ */ we($e, [["__scopeId", "data-v-37b49f83"]]);
403
402
  export {
404
403
  je as default
405
404
  };
@@ -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-c18badb4.js";
2
+ import { _ as k, u as w } from "./index-bbca6b2b.js";
3
3
  import "vue-router";
4
4
  import "js-base64";
5
5
  import "element-plus";