act-plus 1.1.53 → 1.1.55

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