act-plus 1.1.91 → 1.1.93

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,8 +1,8 @@
1
- import { defineAsyncComponent as O, inject as D, ref as N, watch as De, resolveComponent as _, resolveDirective as le, openBlock as u, createBlock as y, withCtx as K, createElementVNode as ae, createVNode as te, createTextVNode as J, toDisplayString as A, unref as r, withDirectives as oe, createElementBlock as R, Fragment as x, renderList as Q, mergeProps as v, createCommentVNode as se, resolveDynamicComponent as we, toRaw as Ne } from "vue";
2
- import { _ as ke, u as Ue, P as Pe, b as de, a as Se } from "./index-dd0e4184.js";
3
- import { ElNotification as Le } from "element-plus";
1
+ import { defineAsyncComponent as x, inject as w, ref as k, watch as Pe, resolveComponent as _, resolveDirective as ae, openBlock as u, createBlock as y, withCtx as D, createElementVNode as te, createVNode as oe, createTextVNode as Q, toDisplayString as A, unref as s, withDirectives as se, createElementBlock as $, Fragment as q, renderList as X, mergeProps as v, createCommentVNode as re, resolveDynamicComponent as ke, toRaw as Ue } from "vue";
2
+ import { _ as Se, u as Le, P as Ne, b as de, a as Re, c as $e } from "./index-a1705d25.js";
3
+ import { ElNotification as Oe } from "element-plus";
4
4
  import "vue-router";
5
- const Re = { class: "no-config-field" }, $e = { class: "dialog-footer" }, Oe = {
5
+ const xe = { class: "no-config-field" }, Ae = { class: "dialog-footer" }, qe = {
6
6
  __name: "index",
7
7
  props: {
8
8
  visible: { type: Boolean, default: !1 },
@@ -10,35 +10,35 @@ const Re = { class: "no-config-field" }, $e = { class: "dialog-footer" }, Oe = {
10
10
  data: { type: Object, default: () => ({}) }
11
11
  },
12
12
  emits: ["update:visible", "refresh"],
13
- setup(k, { emit: re }) {
14
- const ie = O(() => import("./index-e2f2023d.js")), ne = O(() => import("./index-ddb4ce93.js")), ue = O(() => import("./index-ab23fa70.js")), ce = O(() => import("./index-2cdc185b.js")), { t: h } = Ue(), q = D("request"), fe = D("loadComponents"), w = D("formatDataType"), M = D("globalProps"), pe = D("stringToBoolean"), b = D("getFieldUiProps"), me = D("disposeRequestData"), X = re, p = k, $ = N(!1), U = N(!1), E = N(null), P = N([]), t = N({}), j = N({}), ye = (l) => l.formColumnCol == null ? 24 : l.formColumnCol ? l.formColumnCol : 24 / l.formRow, be = (l) => ["input", "textarea"].includes(l.fieldType) ? "blur" : (["select", "multipleSelect", "datetimerange", "treeSelect", "provinceCascade"].includes(l.fieldType), "change"), he = async ({ node: l, resolve: c }, a) => {
15
- const d = b(a), { label: m, value: i, children: g, isLeaf: s } = { ...de, ...d.treeProps || {} };
16
- if (l[s])
13
+ setup(U, { emit: ie }) {
14
+ const ne = x(() => import("./index-e2f2023d.js")), ue = x(() => import("./index-b941f8eb.js")), ce = x(() => import("./index-8b829da2.js")), fe = x(() => import("./index-2cdc185b.js")), { t: b, locale: pe } = Le(), T = (l) => $e(l, pe.value), M = w("request"), me = w("loadComponents"), P = w("formatDataType"), E = w("globalProps"), ye = w("stringToBoolean"), h = w("getFieldUiProps"), be = w("disposeRequestData"), Z = ie, p = U, O = k(!1), S = k(!1), j = k(null), L = k([]), t = k({}), Y = k({}), he = (l) => l.formColumnCol == null ? 24 : l.formColumnCol ? l.formColumnCol : 24 / l.formRow, ge = (l) => ["input", "textarea"].includes(l.fieldType) ? "blur" : (["select", "multipleSelect", "datetimerange", "treeSelect", "provinceCascade"].includes(l.fieldType), "change"), _e = async ({ node: l, resolve: c }, a) => {
15
+ const d = h(a), { label: m, value: i, children: g, isLeaf: r } = { ...de, ...d.treeProps || {} };
16
+ if (l[r])
17
17
  return c([]);
18
- const n = a.postRequestParams.filter((f) => f.submitType === "default").reduce((f, V) => (f[V.submitName] = w(V.paramsType, V.submitValue), f), {}), C = a.postRequestParams.filter((f) => f.submitType === "match").reduce((f, V) => (f[V.submitName] = w(V.paramsType, M.matchData[V.submitValue][V.submitName]), f), {}), F = a.postRequestParams.filter((f) => f.submitType === "dynamic").map((f) => {
18
+ const n = a.postRequestParams.filter((f) => f.submitType === "default").reduce((f, V) => (f[V.submitName] = P(V.paramsType, V.submitValue), f), {}), C = a.postRequestParams.filter((f) => f.submitType === "match").reduce((f, V) => (f[V.submitName] = P(V.paramsType, E.matchData[V.submitValue][V.submitName]), f), {}), K = a.postRequestParams.filter((f) => f.submitType === "dynamic").map((f) => {
19
19
  let V = {
20
20
  field: f.submitName,
21
21
  operate: f.submitMatchType,
22
- value: w(f.paramsType, f.submitValue)
22
+ value: P(f.paramsType, f.submitValue)
23
23
  };
24
24
  return d.loadCode === f.submitName && (l != null && l.data.value) && (V.value = l == null ? void 0 : l.data.value), V;
25
25
  });
26
- let T = {};
27
- Object.keys(n).length && (T = { ...T, ...n }), Object.keys(C).length && (T = { ...T, ...C }), F.length && (T.dynamicFilters = F), d.loadCode && Reflect.has(T, d.loadCode) && (T[d.loadCode] = l == null ? void 0 : l.data.value);
28
- const { data: H } = await q({
26
+ let F = {};
27
+ Object.keys(n).length && (F = { ...F, ...n }), Object.keys(C).length && (F = { ...F, ...C }), K.length && (F.dynamicFilters = K), d.loadCode && Reflect.has(F, d.loadCode) && (F[d.loadCode] = l == null ? void 0 : l.data.value);
28
+ const { data: W } = await M({
29
29
  url: a.fieldRequestUrl,
30
30
  method: a.fieldRequestType || "GET",
31
- data: T
32
- }), W = (H || []).map((f) => ({ label: f[m], value: f[i], children: [], isLeaf: f[s] }));
33
- c(W);
34
- }, Y = (l) => {
31
+ data: F
32
+ }), G = (W || []).map((f) => ({ label: f[m], value: f[i], children: [], isLeaf: f[r] }));
33
+ c(G);
34
+ }, z = (l) => {
35
35
  if (!["input", "textarea"].includes(l)) {
36
36
  if (["multipleSelect", "dateRange"].includes(l))
37
37
  return [];
38
38
  if (["switch"].includes(l))
39
39
  return !1;
40
40
  }
41
- }, S = (l, c) => {
41
+ }, N = (l, c) => {
42
42
  if (typeof l == "string" && ["string"].includes(c))
43
43
  return l.toString();
44
44
  if (["string"].includes(c))
@@ -47,7 +47,7 @@ const Re = { class: "no-config-field" }, $e = { class: "dialog-footer" }, Oe = {
47
47
  return Number(l);
48
48
  if (["array"].includes(c))
49
49
  return l.sort((a, d) => a.sort - d.sort);
50
- }, z = (l, c = !1) => {
50
+ }, B = (l, c = !1) => {
51
51
  if (["multipleSelect"].includes(l.fieldType))
52
52
  return p.data.rowData[l.fieldKey] ? p.data.rowData[l.fieldKey].split(";").map((d) => c ? { value: d } : d) : [];
53
53
  if (["virtualizedMultipleSelect"].includes(l.fieldType))
@@ -58,218 +58,218 @@ const Re = { class: "no-config-field" }, $e = { class: "dialog-footer" }, Oe = {
58
58
  }
59
59
  let a = p.data.rowData[l.fieldKey];
60
60
  if (["select"].includes(l.fieldType)) {
61
- const d = b(l);
61
+ const d = h(l);
62
62
  l.dataList && l.dataList.length && typeof l.dataList[0][d["value-key"] ? d["value-key"] : "value"] == "string" && a !== null && (a = c ? { value: a.toString() } : a.toString());
63
63
  }
64
64
  if (["virtualizedSelect"].includes(l.fieldType)) {
65
- const d = b(l);
65
+ const d = h(l);
66
66
  l.dataList && l.dataList.length && typeof l.dataList[0][d["value-key"] ? d["value-key"] : "value"] == "string" && a !== null && (a = a.toString());
67
67
  }
68
- return (a === "true" || a === "false") && (a = pe(a)), a;
69
- }, ge = (l) => q({ url: p.data.dataItem.requestUrl, method: "post", data: l });
70
- De(
68
+ return (a === "true" || a === "false") && (a = ye(a)), a;
69
+ }, ve = (l) => M({ url: p.data.dataItem.requestUrl, method: "post", data: l });
70
+ Pe(
71
71
  () => p.visible,
72
72
  async (l, c) => {
73
73
  var a, d;
74
74
  if (l)
75
75
  try {
76
- $.value = !0;
77
- const m = await me(p.data.formList, p.data.rowData, !1, !0);
78
- console.log("formList", (a = p.data) == null ? void 0 : a.formList), P.value = await Promise.all(
76
+ O.value = !0;
77
+ const m = await be(p.data.formList, p.data.rowData, !1, !0);
78
+ console.log("formList", (a = p.data) == null ? void 0 : a.formList), L.value = await Promise.all(
79
79
  (((d = p.data) == null ? void 0 : d.formList) ?? []).sort((i, g) => i.sort - g.sort).map(async (i) => {
80
- const g = m.find((F) => i.fieldName == F.fieldName && i.fieldKey == F.fieldKey);
81
- g && (i.dataList = (g == null ? void 0 : g.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), t.value[i.fieldKey] = i.fieldDefaultValue && !t.value[i.fieldKey] ? S(i.fieldDefaultValue, i.fieldSubmitType) : t.value[i.fieldKey];
82
- const { isFieldCustom: s, customComponentName: n, customComponentUrl: C } = i.customFiledsComponentes;
83
- if (s && !i.customFiledsComponentes[n]) {
84
- const F = await fe(C, n);
85
- i.customFiledsComponentes[n] = F;
80
+ const g = m.find((K) => i.fieldName == K.fieldName && i.fieldKey == K.fieldKey);
81
+ g && (i.dataList = (g == null ? void 0 : g.dataList) ?? []), ["select", "multipleSelect"].includes(i.fieldType) && (t.value[`${i.fieldKey}ActImplicit`] = Object.keys(p.data.rowData).length && i.isFormSetValue ? B(i, !0) : z(i.fieldType)), t.value[i.fieldKey] = Object.keys(p.data.rowData).length && i.isFormSetValue ? B(i) : z(i.fieldType), t.value[i.fieldKey] = i.fieldDefaultValue && !t.value[i.fieldKey] ? N(i.fieldDefaultValue, i.fieldSubmitType) : t.value[i.fieldKey];
82
+ const { isFieldCustom: r, customComponentName: n, customComponentUrl: C } = i.customFiledsComponentes;
83
+ if (r && !i.customFiledsComponentes[n]) {
84
+ const K = await me(C, n);
85
+ i.customFiledsComponentes[n] = K;
86
86
  }
87
87
  return i;
88
88
  })
89
- ), $.value = !1;
89
+ ), O.value = !1;
90
90
  } catch (m) {
91
- console.error(m), $.value = !1;
91
+ console.error(m), O.value = !1;
92
92
  }
93
93
  }
94
94
  );
95
- const _e = (l) => {
96
- B(), l();
97
- }, B = () => {
98
- P.value = [], E.value.resetFields(), X("update:visible", !1);
99
- }, ve = (l, c) => {
100
- const a = b(c), { fieldKey: d, fieldType: m } = c;
95
+ const Ve = (l) => {
96
+ H(), l();
97
+ }, H = () => {
98
+ L.value = [], j.value.resetFields(), Z("update:visible", !1);
99
+ }, Te = (l, c) => {
100
+ const a = h(c), { fieldKey: d, fieldType: m } = c;
101
101
  if (m === "multipleSelect") {
102
- const i = l.filter((s) => typeof s == "string"), g = l.filter((s) => typeof s != "string").map((s) => s.value);
103
- t.value[a.createFieldKey] = i.length ? S(i, "string") : "", t.value[d] = g.length ? S(g, "string") : "";
102
+ const i = l.filter((r) => typeof r == "string"), g = l.filter((r) => typeof r != "string").map((r) => r.value);
103
+ t.value[a.createFieldKey] = i.length ? N(i, "string") : "", t.value[d] = g.length ? N(g, "string") : "";
104
104
  } else
105
105
  typeof l == "string" ? (t.value[a.createFieldKey] = l, t.value[d] = "") : (t.value[d] = l.value, delete t.value[a.createFieldKey]);
106
- }, Ve = (l, c) => {
106
+ }, Fe = (l, c) => {
107
107
  const { fieldKey: a, fieldType: d } = c;
108
108
  d === "multipleSelect" ? l === void 0 && (t.value[a] = []) : l === void 0 && (t.value[a] = "");
109
- }, Te = (l) => {
109
+ }, Ce = (l) => {
110
110
  l && l.validate((c) => {
111
111
  if (c) {
112
112
  const { dataItem: a, rowData: d } = p.data;
113
- let m = { ...Ne(t.value) };
114
- U.value = !0, console.log(m), console.log(P.value), Object.keys(m).forEach((s) => {
115
- if (s.includes("ActImplicit")) {
116
- delete m[s];
113
+ let m = { ...Ue(t.value) };
114
+ S.value = !0, console.log(m), console.log(L.value), Object.keys(m).forEach((r) => {
115
+ if (r.includes("ActImplicit")) {
116
+ delete m[r];
117
117
  return;
118
118
  }
119
- const n = P.value.find((C) => C.fieldKey === s);
120
- console.log(n), s.includes("&") ? s.split("&").forEach((F, T) => {
121
- m[F] = m[s] ? S(m[s][T], n.fieldSubmitType) : m[s];
122
- }) : Array.isArray(m[s]) && (n == null ? void 0 : n.fieldSubmitType) == "string" && (m[s] = S(m[s], "string"));
119
+ const n = L.value.find((C) => C.fieldKey === r);
120
+ console.log(n), r.includes("&") ? r.split("&").forEach((K, F) => {
121
+ m[K] = m[r] ? N(m[r][F], n.fieldSubmitType) : m[r];
122
+ }) : Array.isArray(m[r]) && (n == null ? void 0 : n.fieldSubmitType) == "string" && (m[r] = N(m[r], "string"));
123
123
  });
124
- const i = a.submitFields.filter((s) => s.matchType == "default").reduce((s, n) => (n.submitFieldType === "string" && (s[n.submitFieldName] = n.matchFieldName.toString()), s), {}), g = a.submitFields.filter((s) => s.matchType == "match").reduce((s, n) => (Reflect.has(n, "submitFieldMatchOrigin") && n.submitFieldMatchOrigin === "selections" ? s[n.submitFieldName] = p.data.selections.map((C) => w(n.submitFieldType, C[n.matchFieldName])) : Reflect.has(n, "submitFieldMatchOrigin") && n.submitFieldMatchOrigin != "rowData" ? Reflect.has(M.matchData, n.submitFieldMatchOrigin) && (s[n.submitFieldName] = w(n.submitFieldType, M.matchData[n.submitFieldMatchOrigin][n.matchFieldName])) : s[n.submitFieldName] = w(n.submitFieldType, d[n.matchFieldName]), s), {});
125
- ge({
124
+ const i = a.submitFields.filter((r) => r.matchType == "default").reduce((r, n) => (n.submitFieldType === "string" && (r[n.submitFieldName] = n.matchFieldName.toString()), r), {}), g = a.submitFields.filter((r) => r.matchType == "match").reduce((r, n) => (Reflect.has(n, "submitFieldMatchOrigin") && n.submitFieldMatchOrigin === "selections" ? r[n.submitFieldName] = p.data.selections.map((C) => P(n.submitFieldType, C[n.matchFieldName])) : Reflect.has(n, "submitFieldMatchOrigin") && n.submitFieldMatchOrigin != "rowData" ? Reflect.has(E.matchData, n.submitFieldMatchOrigin) && (r[n.submitFieldName] = P(n.submitFieldType, E.matchData[n.submitFieldMatchOrigin][n.matchFieldName])) : r[n.submitFieldName] = P(n.submitFieldType, d[n.matchFieldName]), r), {});
125
+ ve({
126
126
  ...m,
127
127
  ...i,
128
128
  ...g
129
- }).then((s) => {
129
+ }).then((r) => {
130
130
  try {
131
- Le({ title: h("act.tip"), message: h("act.saveSuccessfully"), type: "success", duration: 2500 }), B(), X("refresh", a);
131
+ Oe({ title: b("act.tip"), message: b("act.saveSuccessfully"), type: "success", duration: 2500 }), H(), Z("refresh", a);
132
132
  } catch (n) {
133
133
  console.error(n);
134
134
  }
135
- U.value = !1;
136
- }).catch((s) => {
137
- console.error(s), U.value = !1;
135
+ S.value = !1;
136
+ }).catch((r) => {
137
+ console.error(r), S.value = !1;
138
138
  });
139
139
  }
140
140
  });
141
- }, Ce = (l) => {
142
- const c = Object.keys(j.value).map((a) => {
141
+ }, Ke = (l) => {
142
+ const c = Object.keys(Y.value).map((a) => {
143
143
  var d;
144
- return (d = j.value[a]) == null ? void 0 : d.updateFormData(t.value);
144
+ return (d = Y.value[a]) == null ? void 0 : d.updateFormData(t.value);
145
145
  }).filter((a) => a);
146
146
  Promise.all([l.validate(), ...c]).then((a) => {
147
- a.every((d) => d) && Te(l);
147
+ a.every((d) => d) && Ce(l);
148
148
  }).catch((a) => (console.error(a), a));
149
149
  };
150
150
  return (l, c) => {
151
- var Z;
152
- const a = _("el-input"), d = _("el-option"), m = _("el-select"), i = _("el-select-v2"), g = _("el-tree-select"), s = _("el-date-picker"), n = _("el-cascader"), C = _("el-switch"), F = _("el-form-item"), T = _("el-col"), H = _("el-row"), W = _("el-form"), f = _("el-button"), V = _("el-dialog"), Fe = le("loading"), Ke = le("debounce");
151
+ var I;
152
+ const a = _("el-input"), d = _("el-option"), m = _("el-select"), i = _("el-select-v2"), g = _("el-tree-select"), r = _("el-date-picker"), n = _("el-cascader"), C = _("el-switch"), K = _("el-form-item"), F = _("el-col"), W = _("el-row"), G = _("el-form"), f = _("el-button"), V = _("el-dialog"), De = ae("loading"), we = ae("debounce");
153
153
  return u(), y(V, {
154
154
  "model-value": p.visible,
155
155
  title: p.title,
156
156
  top: "5vh",
157
- width: (Z = k.data.formConfig) == null ? void 0 : Z.dialogWidth,
157
+ width: (I = U.data.formConfig) == null ? void 0 : I.dialogWidth,
158
158
  draggable: "",
159
159
  overflow: "",
160
160
  "append-to-body": "",
161
161
  "destroy-on-close": "",
162
162
  "close-on-click-modal": !1,
163
- "before-close": _e
163
+ "before-close": Ve
164
164
  }, {
165
- footer: K(() => [
166
- ae("span", $e, [
167
- te(f, {
168
- loading: U.value,
169
- onClick: B
165
+ footer: D(() => [
166
+ te("span", Ae, [
167
+ oe(f, {
168
+ loading: S.value,
169
+ onClick: H
170
170
  }, {
171
- default: K(() => [
172
- J(A(r(h)("act.cancel")), 1)
171
+ default: D(() => [
172
+ Q(A(s(b)("act.cancel")), 1)
173
173
  ]),
174
174
  _: 1
175
175
  }, 8, ["loading"]),
176
- oe((u(), y(f, {
176
+ se((u(), y(f, {
177
177
  type: "primary",
178
- loading: U.value,
179
- onClick: c[1] || (c[1] = (G) => Ce(E.value))
178
+ loading: S.value,
179
+ onClick: c[1] || (c[1] = (J) => Ke(j.value))
180
180
  }, {
181
- default: K(() => [
182
- J(A(r(h)("act.save")), 1)
181
+ default: D(() => [
182
+ Q(A(s(b)("act.save")), 1)
183
183
  ]),
184
184
  _: 1
185
185
  }, 8, ["loading"])), [
186
- [Ke]
186
+ [we]
187
187
  ])
188
188
  ])
189
189
  ]),
190
- default: K(() => {
191
- var G, I;
190
+ default: D(() => {
191
+ var J, ee;
192
192
  return [
193
- oe((u(), y(W, {
193
+ se((u(), y(G, {
194
194
  class: "a-form",
195
195
  ref_key: "formRef",
196
- ref: E,
196
+ ref: j,
197
197
  model: t.value,
198
198
  "label-suffix": ":",
199
- "label-width": (G = k.data.formConfig) == null ? void 0 : G.formLabelWidth,
200
- "label-position": (I = k.data.formConfig) == null ? void 0 : I.formLabelPosition
199
+ "label-width": (J = U.data.formConfig) == null ? void 0 : J.formLabelWidth,
200
+ "label-position": (ee = U.data.formConfig) == null ? void 0 : ee.formLabelPosition
201
201
  }, {
202
- default: K(() => [
203
- te(H, { gutter: 40 }, {
204
- default: K(() => [
205
- (u(!0), R(x, null, Q(P.value, (e, ee) => (u(), y(T, {
206
- span: ye(e),
207
- key: ee
202
+ default: D(() => [
203
+ oe(W, { gutter: 40 }, {
204
+ default: D(() => [
205
+ (u(!0), $(q, null, X(L.value, (e, le) => (u(), y(F, {
206
+ span: he(e),
207
+ key: le
208
208
  }, {
209
- default: K(() => [
210
- e.customFiledsComponentes.isFieldCustom ? (u(), R(x, { key: 1 }, [
211
- e.customFiledsComponentes[e.customFiledsComponentes.customComponentName] ? (u(), y(we(e.customFiledsComponentes[e.customFiledsComponentes.customComponentName]), {
209
+ default: D(() => [
210
+ e.customFiledsComponentes.isFieldCustom ? (u(), $(q, { key: 1 }, [
211
+ e.customFiledsComponentes[e.customFiledsComponentes.customComponentName] ? (u(), y(ke(e.customFiledsComponentes[e.customFiledsComponentes.customComponentName]), {
212
212
  key: 0,
213
213
  ref_for: !0,
214
- ref: (o) => j.value[e.customFiledsComponentes.customComponentName] = o,
215
- formConfig: k.data.formConfig,
214
+ ref: (o) => Y.value[e.customFiledsComponentes.customComponentName] = o,
215
+ formConfig: U.data.formConfig,
216
216
  item: e,
217
217
  rowData: p.data.rowData,
218
218
  visible: p.visible,
219
219
  form: t.value,
220
220
  "onUpdate:form": c[0] || (c[0] = (o) => t.value = o)
221
- }, null, 40, ["formConfig", "item", "rowData", "visible", "form"])) : (u(), R("div", {
221
+ }, null, 40, ["formConfig", "item", "rowData", "visible", "form"])) : (u(), $("div", {
222
222
  class: "no-config",
223
- key: ee
223
+ key: le
224
224
  }, [
225
- ae("span", Re, "【" + A(e.fieldName) + "】", 1),
226
- J(A(r(h)("act.fieldCustom")), 1)
225
+ te("span", xe, "【" + A(T(e)) + "】", 1),
226
+ Q(A(s(b)("act.fieldCustom")), 1)
227
227
  ]))
228
- ], 64)) : (u(), y(F, {
228
+ ], 64)) : (u(), y(K, {
229
229
  key: 0,
230
- label: e.fieldName,
230
+ label: T(e),
231
231
  prop: ["select", "multipleSelect"].includes(e.fieldType) ? `${e.fieldKey}ActImplicit` : e.fieldKey,
232
- rules: [{ required: e.isFormFieldRequired, message: r(h)("act.requiredMessage"), trigger: be(e) }]
232
+ rules: [{ required: e.isFormFieldRequired, message: s(b)("act.requiredMessage"), trigger: ge(e) }]
233
233
  }, {
234
- default: K(() => [
234
+ default: D(() => [
235
235
  e.fieldType === "input" ? (u(), y(a, v({
236
236
  key: 0,
237
237
  modelValue: t.value[e.fieldKey],
238
238
  "onUpdate:modelValue": (o) => t.value[e.fieldKey] = o,
239
- placeholder: `${r(h)("act.inputPlaceholder")}${e.fieldName}`,
239
+ placeholder: `${s(b)("act.inputPlaceholder")}${T(e)}`,
240
240
  clearable: ""
241
- }, { ref_for: !0 }, r(b)(e), {
241
+ }, { ref_for: !0 }, s(h)(e), {
242
242
  disabled: e.isFormDisabled
243
- }), null, 16, ["modelValue", "onUpdate:modelValue", "placeholder", "disabled"])) : se("", !0),
244
- e.fieldType === "inputNumber" ? (u(), y(r(ie), v({
243
+ }), null, 16, ["modelValue", "onUpdate:modelValue", "placeholder", "disabled"])) : re("", !0),
244
+ e.fieldType === "inputNumber" ? (u(), y(s(ne), v({
245
245
  key: 1,
246
246
  modelValue: t.value[e.fieldKey],
247
247
  "onUpdate:modelValue": (o) => t.value[e.fieldKey] = o,
248
- placeholder: `${r(h)("act.inputPlaceholder")}${e.fieldName}`,
248
+ placeholder: `${s(b)("act.inputPlaceholder")}${T(e)}`,
249
249
  clearable: ""
250
- }, { ref_for: !0 }, r(b)(e), {
250
+ }, { ref_for: !0 }, s(h)(e), {
251
251
  disabled: e.isFormDisabled
252
252
  }), null, 16, ["modelValue", "onUpdate:modelValue", "placeholder", "disabled"])) : e.fieldType === "textarea" ? (u(), y(a, v({
253
253
  key: 2,
254
254
  modelValue: t.value[e.fieldKey],
255
255
  "onUpdate:modelValue": (o) => t.value[e.fieldKey] = o,
256
- placeholder: `${r(h)("act.inputPlaceholder")}${e.fieldName}`,
256
+ placeholder: `${s(b)("act.inputPlaceholder")}${T(e)}`,
257
257
  rows: 4
258
- }, { ref_for: !0 }, r(b)(e), {
258
+ }, { ref_for: !0 }, s(h)(e), {
259
259
  type: "textarea",
260
260
  disabled: e.isFormDisabled
261
- }), null, 16, ["modelValue", "onUpdate:modelValue", "placeholder", "disabled"])) : e.fieldType === "selectIcon" ? (u(), y(r(ne), v({
261
+ }), null, 16, ["modelValue", "onUpdate:modelValue", "placeholder", "disabled"])) : e.fieldType === "selectIcon" ? (u(), y(s(ue), v({
262
262
  key: 3,
263
263
  modelValue: t.value[e.fieldKey],
264
264
  "onUpdate:modelValue": (o) => t.value[e.fieldKey] = o,
265
265
  icons: e.dataList,
266
- placeholder: `${r(h)("act.selectPlaceholder")}${e.fieldName}`
267
- }, { ref_for: !0 }, r(b)(e), {
266
+ placeholder: `${s(b)("act.selectPlaceholder")}${T(e)}`
267
+ }, { ref_for: !0 }, s(h)(e), {
268
268
  disabled: e.isFormDisabled
269
269
  }), {
270
- default: K(() => [
271
- (u(!0), R(x, null, Q(e.dataList, (o, L) => (u(), y(d, {
272
- key: L,
270
+ default: D(() => [
271
+ (u(!0), $(q, null, X(e.dataList, (o, R) => (u(), y(d, {
272
+ key: R,
273
273
  label: o.key,
274
274
  value: o.value
275
275
  }, null, 8, ["label", "value"]))), 128))
@@ -279,18 +279,18 @@ const Re = { class: "no-config-field" }, $e = { class: "dialog-footer" }, Oe = {
279
279
  key: 4,
280
280
  modelValue: t.value[`${e.fieldKey}ActImplicit`],
281
281
  "onUpdate:modelValue": (o) => t.value[`${e.fieldKey}ActImplicit`] = o,
282
- placeholder: `${r(h)("act.selectPlaceholder")}${e.fieldName}`,
282
+ placeholder: `${s(b)("act.selectPlaceholder")}${T(e)}`,
283
283
  clearable: "",
284
284
  filterable: "",
285
285
  "value-key": "value"
286
- }, { ref_for: !0 }, r(b)(e), {
286
+ }, { ref_for: !0 }, s(h)(e), {
287
287
  multiple: e.fieldType === "multipleSelect",
288
288
  disabled: e.isFormDisabled,
289
- onChange: (o) => ve(o, e)
289
+ onChange: (o) => Te(o, e)
290
290
  }), {
291
- default: K(() => [
292
- (u(!0), R(x, null, Q(e.dataList, (o, L) => (u(), y(d, {
293
- key: L,
291
+ default: D(() => [
292
+ (u(!0), $(q, null, X(e.dataList, (o, R) => (u(), y(d, {
293
+ key: R,
294
294
  label: o.key,
295
295
  value: o
296
296
  }, null, 8, ["label", "value"]))), 128))
@@ -301,33 +301,33 @@ const Re = { class: "no-config-field" }, $e = { class: "dialog-footer" }, Oe = {
301
301
  modelValue: t.value[e.fieldKey],
302
302
  "onUpdate:modelValue": (o) => t.value[e.fieldKey] = o,
303
303
  options: e.dataList,
304
- props: { ...r(Pe) },
305
- placeholder: `${r(h)("act.selectPlaceholder")}${e.fieldName}`,
304
+ props: { ...s(Ne) },
305
+ placeholder: `${s(b)("act.selectPlaceholder")}${T(e)}`,
306
306
  clearable: "",
307
307
  filterable: ""
308
- }, { ref_for: !0 }, r(b)(e), {
308
+ }, { ref_for: !0 }, s(h)(e), {
309
309
  disabled: e.isFormDisabled,
310
310
  multiple: e.fieldType === "virtualizedMultipleSelect",
311
- onChange: (o) => Ve(o, e)
311
+ onChange: (o) => Fe(o, e)
312
312
  }), null, 16, ["modelValue", "onUpdate:modelValue", "options", "props", "placeholder", "disabled", "multiple", "onChange"])) : e.fieldType === "fullLoadTreeSelect" ? (u(), y(g, v({
313
313
  key: 6,
314
314
  modelValue: t.value[e.fieldKey],
315
315
  "onUpdate:modelValue": (o) => t.value[e.fieldKey] = o,
316
316
  data: e.dataList,
317
317
  "default-expanded-keys": [t.value[e.fieldKey] || null],
318
- placeholder: `请选择${e.fieldName}`,
319
- props: { ...r(de), ...r(b)(e).treeProps || {} },
318
+ placeholder: `${s(b)("act.selectPlaceholder")}${T(e)}`,
319
+ props: { ...s(de), ...s(h)(e).treeProps || {} },
320
320
  "collapse-tags": "",
321
321
  "collapse-tags-tooltip": "",
322
322
  multiple: "",
323
323
  "show-checkbox": "",
324
324
  clearable: "",
325
325
  filterable: ""
326
- }, { ref_for: !0 }, r(b)(e)), null, 16, ["modelValue", "onUpdate:modelValue", "data", "default-expanded-keys", "placeholder", "props"])) : e.fieldType === "treeSelect" ? (u(), y(g, v({
326
+ }, { ref_for: !0 }, s(h)(e)), null, 16, ["modelValue", "onUpdate:modelValue", "data", "default-expanded-keys", "placeholder", "props"])) : e.fieldType === "treeSelect" ? (u(), y(g, v({
327
327
  key: 7,
328
328
  modelValue: t.value[e.fieldKey],
329
329
  "onUpdate:modelValue": (o) => t.value[e.fieldKey] = o,
330
- placeholder: `请选择${e.fieldName}`,
330
+ placeholder: `${s(b)("act.selectPlaceholder")}${T(e)}`,
331
331
  props: { isLeaf: "isLeaf" },
332
332
  "render-after-expand": !1,
333
333
  "collapse-tags": "",
@@ -337,36 +337,36 @@ const Re = { class: "no-config-field" }, $e = { class: "dialog-footer" }, Oe = {
337
337
  clearable: "",
338
338
  filterable: "",
339
339
  lazy: "",
340
- load: (o, L) => he({ node: o, resolve: L }, e)
341
- }, { ref_for: !0 }, r(b)(e)), null, 16, ["modelValue", "onUpdate:modelValue", "placeholder", "load"])) : e.fieldType === "date" ? (u(), y(s, v({
340
+ load: (o, R) => _e({ node: o, resolve: R }, e)
341
+ }, { ref_for: !0 }, s(h)(e)), null, 16, ["modelValue", "onUpdate:modelValue", "placeholder", "load"])) : e.fieldType === "date" ? (u(), y(r, v({
342
342
  key: 8,
343
343
  modelValue: t.value[e.fieldKey],
344
344
  "onUpdate:modelValue": (o) => t.value[e.fieldKey] = o,
345
345
  type: "date",
346
- placeholder: `${r(h)("act.selectPlaceholder")}${r(h)("act.time")}`,
346
+ placeholder: `${s(b)("act.selectPlaceholder")}${s(b)("act.time")}`,
347
347
  "value-format": "YYYY-MM-DD HH:mm:ss"
348
- }, { ref_for: !0 }, r(b)(e), {
348
+ }, { ref_for: !0 }, s(h)(e), {
349
349
  disabled: e.isFormDisabled
350
- }), null, 16, ["modelValue", "onUpdate:modelValue", "placeholder", "disabled"])) : e.fieldType === "dateRange" ? (u(), y(s, v({
350
+ }), null, 16, ["modelValue", "onUpdate:modelValue", "placeholder", "disabled"])) : e.fieldType === "dateRange" ? (u(), y(r, v({
351
351
  key: 9,
352
352
  modelValue: t.value[e.fieldKey],
353
353
  "onUpdate:modelValue": (o) => t.value[e.fieldKey] = o,
354
354
  type: "daterange",
355
- "start-placeholder": r(h)("act.startTime"),
356
- "end-placeholder": r(h)("act.endTime"),
355
+ "start-placeholder": s(b)("act.startTime"),
356
+ "end-placeholder": s(b)("act.endTime"),
357
357
  "value-format": "YYYY-MM-DD HH:mm:ss"
358
- }, { ref_for: !0 }, r(b)(e), {
358
+ }, { ref_for: !0 }, s(h)(e), {
359
359
  disabled: e.isFormDisabled
360
360
  }), null, 16, ["modelValue", "onUpdate:modelValue", "start-placeholder", "end-placeholder", "disabled"])) : e.fieldType === "provinceCascade" ? (u(), y(n, v({
361
361
  key: 10,
362
362
  modelValue: t.value[e.fieldKey],
363
363
  "onUpdate:modelValue": (o) => t.value[e.fieldKey] = o,
364
364
  options: e.dataList,
365
- props: r(Se),
365
+ props: s(Re),
366
366
  clearable: "",
367
367
  filterable: "",
368
- placeholder: `${r(h)("act.selectPlaceholder")}${e.fieldName}`
369
- }, { ref_for: !0 }, r(b)(e), {
368
+ placeholder: `${s(b)("act.selectPlaceholder")}${T(e)}`
369
+ }, { ref_for: !0 }, s(h)(e), {
370
370
  disabled: e.isFormDisabled
371
371
  }), null, 16, ["modelValue", "onUpdate:modelValue", "options", "props", "placeholder", "disabled"])) : e.fieldType === "switch" ? (u(), y(C, v({
372
372
  key: 11,
@@ -374,19 +374,19 @@ const Re = { class: "no-config-field" }, $e = { class: "dialog-footer" }, Oe = {
374
374
  "onUpdate:modelValue": (o) => t.value[e.fieldKey] = o,
375
375
  "active-value": !0,
376
376
  "inactive-value": !1
377
- }, { ref_for: !0 }, r(b)(e)), null, 16, ["modelValue", "onUpdate:modelValue"])) : e.fieldType === "upload" ? (u(), y(r(ue), v({
377
+ }, { ref_for: !0 }, s(h)(e)), null, 16, ["modelValue", "onUpdate:modelValue"])) : e.fieldType === "upload" ? (u(), y(s(ce), v({
378
378
  key: 12,
379
379
  class: "form-upload",
380
380
  modelValue: t.value[e.fieldKey],
381
381
  "onUpdate:modelValue": (o) => t.value[e.fieldKey] = o,
382
- request: r(q)
383
- }, { ref_for: !0 }, r(b)(e)), null, 16, ["modelValue", "onUpdate:modelValue", "request"])) : e.fieldType === "editor" ? (u(), y(r(ce), v({
382
+ request: s(M)
383
+ }, { ref_for: !0 }, s(h)(e)), null, 16, ["modelValue", "onUpdate:modelValue", "request"])) : e.fieldType === "editor" ? (u(), y(s(fe), v({
384
384
  key: 13,
385
385
  modelValue: t.value[e.fieldKey],
386
386
  "onUpdate:modelValue": (o) => t.value[e.fieldKey] = o,
387
387
  disabled: e.isFormDisabled,
388
- placeholder: `${r(h)("act.inputPlaceholder")}${e.fieldName}`
389
- }, { ref_for: !0 }, r(b)(e)), null, 16, ["modelValue", "onUpdate:modelValue", "disabled", "placeholder"])) : se("", !0)
388
+ placeholder: `${s(b)("act.inputPlaceholder")}${T(e)}`
389
+ }, { ref_for: !0 }, s(h)(e)), null, 16, ["modelValue", "onUpdate:modelValue", "disabled", "placeholder"])) : re("", !0)
390
390
  ]),
391
391
  _: 2
392
392
  }, 1032, ["label", "prop", "rules"]))
@@ -399,7 +399,7 @@ const Re = { class: "no-config-field" }, $e = { class: "dialog-footer" }, Oe = {
399
399
  ]),
400
400
  _: 1
401
401
  }, 8, ["model", "label-width", "label-position"])), [
402
- [Fe, $.value]
402
+ [De, O.value]
403
403
  ])
404
404
  ];
405
405
  }),
@@ -407,7 +407,7 @@ const Re = { class: "no-config-field" }, $e = { class: "dialog-footer" }, Oe = {
407
407
  }, 8, ["model-value", "title", "width"]);
408
408
  };
409
409
  }
410
- }, Ee = /* @__PURE__ */ ke(Oe, [["__scopeId", "data-v-f23c8fd2"]]);
410
+ }, ze = /* @__PURE__ */ Se(qe, [["__scopeId", "data-v-d287f7a8"]]);
411
411
  export {
412
- Ee as default
412
+ ze as default
413
413
  };
@@ -1,6 +1,6 @@
1
1
  import { ref as P, computed as ie, resolveComponent as w, resolveDirective as ae, openBlock as h, createElementBlock as R, withDirectives as se, createBlock as I, mergeProps as re, unref as d, withCtx as S, renderSlot as O, createElementVNode as x, toDisplayString as U, createCommentVNode as A, createVNode as $, createTextVNode as ce, Fragment as ue, renderList as pe, normalizeClass as de, nextTick as me } from "vue";
2
2
  import { ElNotification as B } from "element-plus";
3
- import { _ as fe, u as ge, z as ye, o as _e, p as he, q as ve } from "./index-dd0e4184.js";
3
+ import { _ as fe, u as ge, z as ye, q as _e, r as he, s as ve } from "./index-a1705d25.js";
4
4
  import "vue-router";
5
5
  let L;
6
6
  const we = new Uint8Array(16);
@@ -1,5 +1,5 @@
1
1
  import { defineComponent as vd, shallowRef as jn, inject as kd, computed as ec, toRaw as Qd, onMounted as Pd, watch as le, onBeforeUnmount as $d, h as Td, ref as Ql, resolveComponent as Cd, resolveDirective as Ad, openBlock as Pl, createElementBlock as Rd, withDirectives as Zd, createBlock as Md, withCtx as Ed, createTextVNode as Xd, toDisplayString as Ld, unref as $l, createVNode as Dd, normalizeStyle as zd } from "vue";
2
- import { _ as Wd, u as Bd } from "./index-dd0e4184.js";
2
+ import { _ as Wd, u as Bd } from "./index-a1705d25.js";
3
3
  import "vue-router";
4
4
  import "element-plus";
5
5
  let Xr = [], ic = [];