act-plus 1.1.85 → 1.1.86

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