act-plus 1.1.52 → 1.1.53

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