act-plus 1.1.35 → 1.1.36

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,188 @@
1
+ import { inject as O, computed as E, reactive as H, ref as v, watch as K, resolveComponent as r, resolveDirective as w, openBlock as c, createBlock as m, withCtx as i, createElementVNode as P, createVNode as f, unref as t, createTextVNode as V, withDirectives as D, createElementBlock as W, Fragment as G, renderList as Q } from "vue";
2
+ import { useRoute as $ } from "vue-router";
3
+ import { _ as z } from "./index-a4e6b7a2.js";
4
+ import "js-base64";
5
+ import "element-plus";
6
+ import "monaco-editor";
7
+ const J = { class: "dialog-footer" }, M = {
8
+ __name: "dialogInitConfig",
9
+ props: {
10
+ visible: { type: Boolean, default: !1 },
11
+ title: { type: String, default: "" },
12
+ data: { type: Object, default: () => ({}) }
13
+ },
14
+ emits: ["update:visible", "refresh"],
15
+ setup(L, { emit: k }) {
16
+ const N = $(), y = O("request"), C = k, p = L;
17
+ E(() => N.params.key);
18
+ const T = () => ({
19
+ dataBase: "",
20
+ api: ""
21
+ });
22
+ let l = H((() => ({
23
+ loading: !1,
24
+ btnLoading: !1
25
+ }))()), h = v([]), _ = v(null), o = v(T());
26
+ const q = (e) => y({ url: "/api/v1/scripts/getAllDatabaseTable", method: "get", data: e }), F = async () => {
27
+ try {
28
+ l.loading = !0;
29
+ const { data: e } = await q();
30
+ h.value = e || [], l.loading = !1;
31
+ } catch (e) {
32
+ console.error(e), l.loading = !1;
33
+ }
34
+ };
35
+ K(
36
+ () => p.visible,
37
+ async (e, a) => {
38
+ e && await F();
39
+ }
40
+ );
41
+ const x = () => ({
42
+ sort: 0,
43
+ fieldName: void 0,
44
+ fieldKey: void 0,
45
+ fieldType: void 0,
46
+ fieldUiProps: "",
47
+ fieldSubmitType: "string",
48
+ fieldRequestType: "GET",
49
+ fieldRequestUrl: void 0,
50
+ postRequestParams: [],
51
+ useScenes: [],
52
+ formColumnCol: 12,
53
+ formCustomComponentes: [],
54
+ customTableHeaderName: "",
55
+ customTableHeaderUrl: "",
56
+ isFormFieldRequired: !0,
57
+ isFormSetValue: !0,
58
+ isFormDisabled: !1,
59
+ tableQueryCondition: void 0,
60
+ tableCellWidthType: "min",
61
+ tableCellWidth: "120",
62
+ tableCellAlignType: "center",
63
+ tableCellContentType: "default",
64
+ isTableCellOverflowTooltip: !0,
65
+ isTableCellSort: !0
66
+ }), R = (e) => {
67
+ g(), e();
68
+ }, g = () => {
69
+ o.value = Object.assign(o.value, T()), _.value.resetFields(), C("update:visible", !1);
70
+ }, I = (e) => {
71
+ e && e.validate(async (a) => {
72
+ if (a)
73
+ try {
74
+ l.btnLoading = !0;
75
+ const { data: d } = await y({ url: "/api/v1/scripts/getAllColumnsByTableName", method: "get", params: { tableName: o.value.dataBase } }), b = (d || []).map((u) => {
76
+ let s = x();
77
+ return s.fieldName = u.comment, s.fieldKey = u.name, s.fieldType = "string", s;
78
+ });
79
+ C("refresh", { formList: b }, () => {
80
+ g();
81
+ }), l.btnLoading = !1;
82
+ } catch (d) {
83
+ console.error(d), l.btnLoading = !1;
84
+ }
85
+ });
86
+ };
87
+ return (e, a) => {
88
+ const d = r("el-option"), b = r("el-select"), u = r("el-form-item"), s = r("el-input"), S = r("el-form"), B = r("el-button"), U = r("el-dialog"), j = w("loading"), A = w("debounce");
89
+ return c(), m(U, {
90
+ "model-value": p.visible,
91
+ title: p.title,
92
+ top: "10vh",
93
+ width: "600",
94
+ draggable: "",
95
+ overflow: "",
96
+ "close-on-click-modal": !1,
97
+ "before-close": R
98
+ }, {
99
+ footer: i(() => [
100
+ P("span", J, [
101
+ f(B, {
102
+ loading: t(l).btnLoading,
103
+ onClick: g
104
+ }, {
105
+ default: i(() => [
106
+ V("取消")
107
+ ]),
108
+ _: 1
109
+ }, 8, ["loading"]),
110
+ D((c(), m(B, {
111
+ type: "primary",
112
+ loading: t(l).btnLoading,
113
+ onClick: a[2] || (a[2] = (n) => I(t(_)))
114
+ }, {
115
+ default: i(() => [
116
+ V("保存")
117
+ ]),
118
+ _: 1
119
+ }, 8, ["loading"])), [
120
+ [A]
121
+ ])
122
+ ])
123
+ ]),
124
+ default: i(() => [
125
+ D((c(), m(S, {
126
+ ref_key: "formRef",
127
+ ref: _,
128
+ model: t(o),
129
+ "label-suffix": ":",
130
+ "label-position": "top"
131
+ }, {
132
+ default: i(() => [
133
+ f(u, {
134
+ label: "数据库",
135
+ "label-width": "120",
136
+ rules: [{ required: !1, message: "必填项", trigger: "change" }],
137
+ prop: "dataBase"
138
+ }, {
139
+ default: i(() => [
140
+ f(b, {
141
+ modelValue: t(o).dataBase,
142
+ "onUpdate:modelValue": a[0] || (a[0] = (n) => t(o).dataBase = n),
143
+ placeholder: "请选择数据库",
144
+ clearable: "",
145
+ filterable: ""
146
+ }, {
147
+ default: i(() => [
148
+ (c(!0), W(G, null, Q(t(h), (n, Y) => (c(), m(d, {
149
+ key: n,
150
+ label: n.tableComment,
151
+ value: n.tableName
152
+ }, null, 8, ["label", "value"]))), 128))
153
+ ]),
154
+ _: 1
155
+ }, 8, ["modelValue"])
156
+ ]),
157
+ _: 1
158
+ }),
159
+ f(u, {
160
+ label: "接口地址(关键字)",
161
+ "label-width": "120",
162
+ rules: [{ required: !1, message: "必填项", trigger: "change" }],
163
+ prop: "api"
164
+ }, {
165
+ default: i(() => [
166
+ f(s, {
167
+ modelValue: t(o).api,
168
+ "onUpdate:modelValue": a[1] || (a[1] = (n) => t(o).api = n),
169
+ placeholder: "请输入接口地址(关键字)",
170
+ clearable: ""
171
+ }, null, 8, ["modelValue"])
172
+ ]),
173
+ _: 1
174
+ })
175
+ ]),
176
+ _: 1
177
+ }, 8, ["model"])), [
178
+ [j, t(l).loading]
179
+ ])
180
+ ]),
181
+ _: 1
182
+ }, 8, ["model-value", "title"]);
183
+ };
184
+ }
185
+ }, ne = /* @__PURE__ */ z(M, [["__scopeId", "data-v-c63f456e"]]);
186
+ export {
187
+ ne as default
188
+ };
@@ -8,7 +8,7 @@ const S = { class: "dialog-footer" }, N = {
8
8
  },
9
9
  emits: ["update:visible", "refresh", "update:modelValue"],
10
10
  setup(m, { emit: f }) {
11
- const v = g(() => import("./index-adf3ff12.js").then((t) => t.i)), n = f, o = m;
11
+ const v = g(() => import("./index-a4e6b7a2.js").then((t) => t.i)), n = f, o = m;
12
12
  let e = y();
13
13
  C(
14
14
  () => o.visible,
@@ -57,7 +57,8 @@ const e = [
57
57
  // { key: '关联子表', value: 'associatedChildTable' },
58
58
  ], S = [
59
59
  { key: "默认值", value: "default" },
60
- { key: "dynamic形式", value: "dynamic" }
60
+ { key: "dynamic形式", value: "dynamic" },
61
+ { key: "匹配", value: "match" }
61
62
  ], T = [
62
63
  { key: "数组", value: "array" },
63
64
  { key: "字符串", value: "string" },
@@ -1,5 +1,5 @@
1
1
  import { ref as d, watch as y, resolveComponent as _, openBlock as r, createElementBlock as m, 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-adf3ff12.js";
2
+ import { _ as P } from "./index-a4e6b7a2.js";
3
3
  import "vue-router";
4
4
  import "js-base64";
5
5
  import "element-plus";
@@ -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-adf3ff12.js";
2
+ import { _ as k, u as w } from "./index-a4e6b7a2.js";
3
3
  import "vue-router";
4
4
  import "js-base64";
5
5
  import "element-plus";
@@ -1,10 +1,10 @@
1
- import { defineAsyncComponent as K, inject as g, reactive as ye, ref as R, watch as be, resolveComponent as m, resolveDirective as _e, openBlock as d, createBlock as i, withCtx as h, createElementVNode as W, createVNode as x, unref as l, createTextVNode as A, toDisplayString as N, withDirectives as he, createElementBlock as D, Fragment as U, renderList as M, mergeProps as b, createCommentVNode as G, resolveDynamicComponent as Ve, isRef as ge, toRaw as Fe } from "vue";
2
- import { _ as Ce, u as De, P as Te, a as Ke } from "./index-adf3ff12.js";
3
- import { ElNotification as Ne } from "element-plus";
1
+ import { defineAsyncComponent as T, inject as F, reactive as ge, ref as $, watch as Ve, resolveComponent as m, resolveDirective as z, openBlock as d, createBlock as i, withCtx as h, createElementVNode as W, createVNode as G, unref as l, createTextVNode as x, toDisplayString as N, withDirectives as J, createElementBlock as D, Fragment as w, renderList as A, mergeProps as b, createCommentVNode as Q, resolveDynamicComponent as Fe, isRef as Ce, toRaw as De } from "vue";
2
+ import { _ as Ke, u as Te, P as Ne, a as we } from "./index-a4e6b7a2.js";
3
+ import { ElNotification as Ue } from "element-plus";
4
4
  import "vue-router";
5
5
  import "js-base64";
6
6
  import "monaco-editor";
7
- const Ue = { class: "no-config-field" }, we = { class: "dialog-footer" }, ke = {
7
+ const ke = { class: "no-config-field" }, Le = { class: "dialog-footer" }, ve = {
8
8
  __name: "index",
9
9
  props: {
10
10
  visible: { type: Boolean, default: !1 },
@@ -12,163 +12,172 @@ const Ue = { class: "no-config-field" }, we = { class: "dialog-footer" }, ke = {
12
12
  data: { type: Object, default: () => ({}) }
13
13
  },
14
14
  emits: ["update:visible", "refresh"],
15
- setup(T, { emit: J }) {
16
- const Q = K(() => import("./index-adf3ff12.js").then((o) => o.f)), X = K(() => import("./index-b0157be1.js")), Z = K(() => import("./index-adf3ff12.js").then((o) => o.e)), I = K(() => import("./index-adf3ff12.js").then((o) => o.d)), { t: c } = De(), E = g("request"), ee = g("loadComponents"), O = g("formatDataType"), q = g("globalProps"), le = g("stringToBoolean"), y = g("getFieldUiProps"), Y = J, f = T;
17
- let F = ye((() => ({
15
+ setup(K, { emit: X }) {
16
+ const Z = T(() => import("./index-a4e6b7a2.js").then((o) => o.f)), I = T(() => import("./index-21ab1ef2.js")), ee = T(() => import("./index-a4e6b7a2.js").then((o) => o.e)), le = T(() => import("./index-a4e6b7a2.js").then((o) => o.d)), { t: c } = Te(), M = F("request"), oe = F("loadComponents"), q = F("formatDataType"), E = F("globalProps"), ae = F("stringToBoolean"), y = F("getFieldUiProps"), te = F("disposeRequestData"), O = X, u = K;
17
+ let g = ge((() => ({
18
+ dialogLoading: !1,
18
19
  btnLoading: !1
19
- }))()), w = R([]), t = R({}), k = R(null), oe = {};
20
- const ae = (o) => o.formColumnCol == null || o.customFiledsComponentes[o.customFiledsComponentes.customComponentName] ? 24 : o.formColumnCol ? o.formColumnCol : 24 / o.formRow, te = (o) => {
20
+ }))()), U = $([]), t = $({}), k = $(null), de = {};
21
+ const se = (o) => o.formColumnCol == null || o.customFiledsComponentes[o.customFiledsComponentes.customComponentName] ? 24 : o.formColumnCol ? o.formColumnCol : 24 / o.formRow, re = (o) => {
21
22
  if (["input", "textarea"].includes(o.fieldType))
22
23
  return "blur";
23
24
  if (["select", "multipleSelect", "datetimerange", "treeSelect", "provinceCascade"].includes(o.fieldType))
24
25
  return "change";
25
- }, de = (o) => {
26
+ }, ne = (o) => {
26
27
  if (!["input", "textarea"].includes(o) && ["multipleSelect", "dateRange"].includes(o))
27
28
  return [];
28
- }, re = (o, u) => {
29
- if (["string"].includes(u))
29
+ }, ie = (o, p) => {
30
+ if (["string"].includes(p))
30
31
  return o.join(";");
31
- if (["number"].includes(u))
32
+ if (["number"].includes(p))
32
33
  return Number(o);
33
- if (["array"].includes(u))
34
+ if (["array"].includes(p))
34
35
  return o;
35
- }, se = (o) => {
36
+ }, ce = (o) => {
36
37
  if (["multipleSelect"].includes(o.fieldType))
37
- return f.data.rowData[o.fieldKey] ? f.data.rowData[o.fieldKey].split(";") : [];
38
+ return u.data.rowData[o.fieldKey] ? u.data.rowData[o.fieldKey].split(";") : [];
38
39
  if (["dateRange"].includes(o.fieldType)) {
39
- const s = o.fieldKey.split("&");
40
- return f.data.rowData[o.fieldKey] = s.map((_) => f.data.rowData[_]), f.data.rowData[o.fieldKey];
40
+ const _ = o.fieldKey.split("&");
41
+ return u.data.rowData[o.fieldKey] = _.map((n) => u.data.rowData[n]), u.data.rowData[o.fieldKey];
41
42
  }
42
- const u = f.data.rowData[o.fieldKey];
43
- return u === "true" || u === "false" ? le(u) : u;
44
- }, ne = (o) => E({ url: f.data.dataItem.requestUrl, method: "post", data: o });
45
- be(
46
- () => f.visible,
47
- async (o, u) => {
48
- o && (f.data.formList.sort((s, _) => s.sort - _.sort).forEach(async (s) => {
49
- oe[s.fieldKey] = { submitFieldType: s.fieldSubmitType, isFormSetValue: s.isFormSetValue }, t.value[s.fieldKey] = Object.keys(f.data.rowData).length && s.isFormSetValue ? se(s) : de(s.fieldType);
50
- const { isFiledCustom: _, customComponentName: p, customComponentUrl: C } = s.customFiledsComponentes;
51
- if (_ && !s.customFiledsComponentes[p]) {
52
- const V = await ee(C, p);
53
- s.customFiledsComponentes[p] = V;
43
+ const p = u.data.rowData[o.fieldKey];
44
+ return p === "true" || p === "false" ? ae(p) : p;
45
+ }, ue = (o) => M({ url: u.data.dataItem.requestUrl, method: "post", data: o });
46
+ Ve(
47
+ () => u.visible,
48
+ async (o, p) => {
49
+ if (o)
50
+ try {
51
+ g.dialogLoading = !0;
52
+ const _ = await te(u.data.formList, u.data.rowData, !1, !0);
53
+ u.data.formList.sort((n, f) => n.sort - f.sort).forEach(async (n) => {
54
+ const f = _.find((r) => n.fieldName == r.fieldName && n.fieldKey == r.fieldKey);
55
+ f && (n.dataList = (f == null ? void 0 : f.dataList) ?? []), de[n.fieldKey] = { submitFieldType: n.fieldSubmitType, isFormSetValue: n.isFormSetValue }, t.value[n.fieldKey] = Object.keys(u.data.rowData).length && n.isFormSetValue ? ce(n) : ne(n.fieldType);
56
+ const { isFiledCustom: C, customComponentName: V, customComponentUrl: s } = n.customFiledsComponentes;
57
+ if (C && !n.customFiledsComponentes[V]) {
58
+ const r = await oe(s, V);
59
+ n.customFiledsComponentes[V] = r;
60
+ }
61
+ }), console.log(u.data.formList), U.value = u.data.formList || [], g.dialogLoading = !1;
62
+ } catch {
63
+ g.dialogLoading = !1, ƒ;
54
64
  }
55
- }), w.value = f.data.formList || []);
56
65
  }
57
66
  );
58
- const ie = (o) => {
59
- v(), o();
60
- }, v = () => {
61
- w.value = [], k.value.resetFields(), Y("update:visible", !1);
62
- }, ce = (o) => {
63
- o && o.validate((u) => {
64
- if (u) {
65
- F.btnLoading = !0;
66
- const { dataItem: s, rowData: _ } = f.data;
67
- let p = { ...Fe(t.value) };
68
- Object.keys(p).forEach((r) => {
69
- r.includes("&") ? p[r].split("&").forEach((P, S) => {
70
- p[P] = p[r][S];
71
- }) : Array.isArray(p[r]) && (p[r] = re(p[r], "string"));
67
+ const fe = (o) => {
68
+ L(), o();
69
+ }, L = () => {
70
+ U.value = [], k.value.resetFields(), O("update:visible", !1);
71
+ }, pe = (o) => {
72
+ o && o.validate((p) => {
73
+ if (p) {
74
+ g.btnLoading = !0;
75
+ const { dataItem: _, rowData: n } = u.data;
76
+ let f = { ...De(t.value) };
77
+ Object.keys(f).forEach((s) => {
78
+ s.includes("&") ? f[s].split("&").forEach((v, P) => {
79
+ f[v] = f[s][P];
80
+ }) : Array.isArray(f[s]) && (f[s] = ie(f[s], "string"));
72
81
  });
73
- const C = s.submitFields.filter((r) => r.matchType == "default").reduce((r, n) => (n.submitFieldType === "string" && (r[n.submitFieldName] = n.matchFieldName.toString()), r), {}), V = s.submitFields.filter((r) => r.matchType == "match").reduce((r, n) => (Reflect.has(n, "submitFieldMatchOrigin") && n.submitFieldMatchOrigin != "rowData" ? Reflect.has(q.matchData, n.submitFieldMatchOrigin) && (r[n.submitFieldName] = O(n.submitFieldType, q.matchData[n.submitFieldMatchOrigin][n.matchFieldName])) : r[n.submitFieldName] = O(n.submitFieldType, _[n.matchFieldName]), r), {});
74
- ne({
75
- ...p,
82
+ const C = _.submitFields.filter((s) => s.matchType == "default").reduce((s, r) => (r.submitFieldType === "string" && (s[r.submitFieldName] = r.matchFieldName.toString()), s), {}), V = _.submitFields.filter((s) => s.matchType == "match").reduce((s, r) => (Reflect.has(r, "submitFieldMatchOrigin") && r.submitFieldMatchOrigin != "rowData" ? Reflect.has(E.matchData, r.submitFieldMatchOrigin) && (s[r.submitFieldName] = q(r.submitFieldType, E.matchData[r.submitFieldMatchOrigin][r.matchFieldName])) : s[r.submitFieldName] = q(r.submitFieldType, n[r.matchFieldName]), s), {});
83
+ ue({
84
+ ...f,
76
85
  ...C,
77
86
  ...V
78
- }).then((r) => {
87
+ }).then((s) => {
79
88
  try {
80
- Ne({ title: c("act.tip"), message: c("act.saveSuccessfully"), type: "success", duration: 2500 }), v(), Y("refresh");
81
- } catch (n) {
82
- console.error(n);
89
+ Ue({ title: c("act.tip"), message: c("act.saveSuccessfully"), type: "success", duration: 2500 }), L(), O("refresh");
90
+ } catch (r) {
91
+ console.error(r);
83
92
  }
84
- F.btnLoading = !1;
85
- }).catch((r) => {
86
- console.error(r), F.btnLoading = !1;
93
+ g.btnLoading = !1;
94
+ }).catch((s) => {
95
+ console.error(s), g.btnLoading = !1;
87
96
  });
88
97
  }
89
98
  });
90
99
  };
91
- return (o, u) => {
92
- var j;
93
- const s = m("el-input"), _ = m("el-option"), p = m("el-select"), C = m("el-select-v2"), V = m("el-date-picker"), r = m("el-cascader"), n = m("el-switch"), P = m("el-form-item"), S = m("el-col"), ue = m("el-row"), fe = m("el-form"), B = m("el-button"), pe = m("el-dialog"), me = _e("debounce");
94
- return d(), i(pe, {
95
- "model-value": f.visible,
96
- title: f.title,
100
+ return (o, p) => {
101
+ var B;
102
+ const _ = m("el-input"), n = m("el-option"), f = m("el-select"), C = m("el-select-v2"), V = m("el-date-picker"), s = m("el-cascader"), r = m("el-switch"), v = m("el-form-item"), P = m("el-col"), me = m("el-row"), ye = m("el-form"), Y = m("el-button"), be = m("el-dialog"), _e = z("loading"), he = z("debounce");
103
+ return d(), i(be, {
104
+ "model-value": u.visible,
105
+ title: u.title,
97
106
  top: "5vh",
98
- width: (j = T.data.formConfig) == null ? void 0 : j.dialogWidth,
107
+ width: (B = K.data.formConfig) == null ? void 0 : B.dialogWidth,
99
108
  draggable: "",
100
109
  overflow: "",
101
110
  "append-to-body": "",
102
111
  "destroy-on-close": "",
103
112
  "close-on-click-modal": !1,
104
- "before-close": ie
113
+ "before-close": fe
105
114
  }, {
106
115
  footer: h(() => [
107
- W("span", we, [
108
- x(B, {
109
- loading: l(F).btnLoading,
110
- onClick: v
116
+ W("span", Le, [
117
+ G(Y, {
118
+ loading: l(g).btnLoading,
119
+ onClick: L
111
120
  }, {
112
121
  default: h(() => [
113
- A(N(l(c)("act.cancel")), 1)
122
+ x(N(l(c)("act.cancel")), 1)
114
123
  ]),
115
124
  _: 1
116
125
  }, 8, ["loading"]),
117
- he((d(), i(B, {
126
+ J((d(), i(Y, {
118
127
  type: "primary",
119
- loading: l(F).btnLoading,
120
- onClick: u[1] || (u[1] = (L) => ce(l(k)))
128
+ loading: l(g).btnLoading,
129
+ onClick: p[1] || (p[1] = (S) => pe(l(k)))
121
130
  }, {
122
131
  default: h(() => [
123
- A(N(l(c)("act.save")), 1)
132
+ x(N(l(c)("act.save")), 1)
124
133
  ]),
125
134
  _: 1
126
135
  }, 8, ["loading"])), [
127
- [me]
136
+ [he]
128
137
  ])
129
138
  ])
130
139
  ]),
131
140
  default: h(() => {
132
- var L, H;
141
+ var S, j;
133
142
  return [
134
- x(fe, {
143
+ J((d(), i(ye, {
135
144
  ref_key: "formRef",
136
145
  ref: k,
137
146
  model: l(t),
138
147
  "label-suffix": ":",
139
- "label-width": (L = T.data.formConfig) == null ? void 0 : L.formLabelWidth,
140
- "label-position": (H = T.data.formConfig) == null ? void 0 : H.formLabelPosition
148
+ "label-width": (S = K.data.formConfig) == null ? void 0 : S.formLabelWidth,
149
+ "label-position": (j = K.data.formConfig) == null ? void 0 : j.formLabelPosition
141
150
  }, {
142
151
  default: h(() => [
143
- x(ue, { gutter: 40 }, {
152
+ G(me, { gutter: 40 }, {
144
153
  default: h(() => [
145
- (d(!0), D(U, null, M(l(w), (e, z) => (d(), i(S, {
146
- span: ae(e),
147
- key: z
154
+ (d(!0), D(w, null, A(l(U), (e, H) => (d(), i(P, {
155
+ span: se(e),
156
+ key: H
148
157
  }, {
149
158
  default: h(() => [
150
- e.customFiledsComponentes.isFiledCustom ? (d(), D(U, { key: 1 }, [
151
- e.customFiledsComponentes[e.customFiledsComponentes.customComponentName] ? (d(), i(Ve(e.customFiledsComponentes[e.customFiledsComponentes.customComponentName]), {
159
+ e.customFiledsComponentes.isFiledCustom ? (d(), D(w, { key: 1 }, [
160
+ e.customFiledsComponentes[e.customFiledsComponentes.customComponentName] ? (d(), i(Fe(e.customFiledsComponentes[e.customFiledsComponentes.customComponentName]), {
152
161
  key: 0,
153
162
  fieldCofnigItem: e,
154
- rowData: f.data.rowData,
163
+ rowData: u.data.rowData,
155
164
  form: l(t),
156
- "onUpdate:form": u[0] || (u[0] = (a) => ge(t) ? t.value = a : t = a)
165
+ "onUpdate:form": p[0] || (p[0] = (a) => Ce(t) ? t.value = a : t = a)
157
166
  }, null, 40, ["fieldCofnigItem", "rowData", "form"])) : (d(), D("div", {
158
167
  class: "no-config",
159
- key: z
168
+ key: H
160
169
  }, [
161
- W("span", Ue, "【" + N(e.fieldName) + "】", 1),
162
- A(N(l(c)("act.fieldCustom")), 1)
170
+ W("span", ke, "【" + N(e.fieldName) + "】", 1),
171
+ x(N(l(c)("act.fieldCustom")), 1)
163
172
  ]))
164
- ], 64)) : (d(), i(P, {
173
+ ], 64)) : (d(), i(v, {
165
174
  key: 0,
166
175
  label: e.fieldName,
167
176
  prop: e.fieldKey,
168
- rules: [{ required: e.isFormFieldRequired, message: l(c)("act.requiredMessage"), trigger: te(e) }]
177
+ rules: [{ required: e.isFormFieldRequired, message: l(c)("act.requiredMessage"), trigger: re(e) }]
169
178
  }, {
170
179
  default: h(() => [
171
- e.fieldType === "input" ? (d(), i(s, b({
180
+ e.fieldType === "input" ? (d(), i(_, b({
172
181
  key: 0,
173
182
  modelValue: l(t)[e.fieldKey],
174
183
  "onUpdate:modelValue": (a) => l(t)[e.fieldKey] = a,
@@ -177,8 +186,8 @@ const Ue = { class: "no-config-field" }, we = { class: "dialog-footer" }, ke = {
177
186
  ref_for: !0
178
187
  }, l(y)(e), {
179
188
  disabled: e.isFormDisabled
180
- }), null, 16, ["modelValue", "onUpdate:modelValue", "placeholder", "disabled"])) : G("", !0),
181
- e.fieldType === "inputNumber" ? (d(), i(l(Q), b({
189
+ }), null, 16, ["modelValue", "onUpdate:modelValue", "placeholder", "disabled"])) : Q("", !0),
190
+ e.fieldType === "inputNumber" ? (d(), i(l(Z), b({
182
191
  key: 1,
183
192
  modelValue: l(t)[e.fieldKey],
184
193
  "onUpdate:modelValue": (a) => l(t)[e.fieldKey] = a,
@@ -187,7 +196,7 @@ const Ue = { class: "no-config-field" }, we = { class: "dialog-footer" }, ke = {
187
196
  ref_for: !0
188
197
  }, l(y)(e), {
189
198
  disabled: e.isFormDisabled
190
- }), null, 16, ["modelValue", "onUpdate:modelValue", "placeholder", "disabled"])) : e.fieldType === "textarea" ? (d(), i(s, b({
199
+ }), null, 16, ["modelValue", "onUpdate:modelValue", "placeholder", "disabled"])) : e.fieldType === "textarea" ? (d(), i(_, b({
191
200
  key: 2,
192
201
  modelValue: l(t)[e.fieldKey],
193
202
  "onUpdate:modelValue": (a) => l(t)[e.fieldKey] = a,
@@ -197,7 +206,7 @@ const Ue = { class: "no-config-field" }, we = { class: "dialog-footer" }, ke = {
197
206
  }, l(y)(e), {
198
207
  type: "textarea",
199
208
  disabled: e.isFormDisabled
200
- }), null, 16, ["modelValue", "onUpdate:modelValue", "placeholder", "disabled"])) : e.fieldType === "selectIcon" ? (d(), i(l(X), b({
209
+ }), null, 16, ["modelValue", "onUpdate:modelValue", "placeholder", "disabled"])) : e.fieldType === "selectIcon" ? (d(), i(l(I), b({
201
210
  key: 3,
202
211
  modelValue: l(t)[e.fieldKey],
203
212
  "onUpdate:modelValue": (a) => l(t)[e.fieldKey] = a,
@@ -208,14 +217,14 @@ const Ue = { class: "no-config-field" }, we = { class: "dialog-footer" }, ke = {
208
217
  disabled: e.isFormDisabled
209
218
  }), {
210
219
  default: h(() => [
211
- (d(!0), D(U, null, M(e.dataList, (a, $) => (d(), i(_, {
212
- key: $,
220
+ (d(!0), D(w, null, A(e.dataList, (a, R) => (d(), i(n, {
221
+ key: R,
213
222
  label: a.key,
214
223
  value: a.value
215
224
  }, null, 8, ["label", "value"]))), 128))
216
225
  ]),
217
226
  _: 2
218
- }, 1040, ["modelValue", "onUpdate:modelValue", "icons", "placeholder", "disabled"])) : ["select", "multipleSelect"].includes(e.fieldType) ? (d(), i(p, b({
227
+ }, 1040, ["modelValue", "onUpdate:modelValue", "icons", "placeholder", "disabled"])) : ["select", "multipleSelect"].includes(e.fieldType) ? (d(), i(f, b({
219
228
  key: 4,
220
229
  modelValue: l(t)[e.fieldKey],
221
230
  "onUpdate:modelValue": (a) => l(t)[e.fieldKey] = a,
@@ -228,8 +237,8 @@ const Ue = { class: "no-config-field" }, we = { class: "dialog-footer" }, ke = {
228
237
  disabled: e.isFormDisabled
229
238
  }), {
230
239
  default: h(() => [
231
- (d(!0), D(U, null, M(e.dataList, (a, $) => (d(), i(_, {
232
- key: $,
240
+ (d(!0), D(w, null, A(e.dataList, (a, R) => (d(), i(n, {
241
+ key: R,
233
242
  label: a.key,
234
243
  value: a.value
235
244
  }, null, 8, ["label", "value"]))), 128))
@@ -240,7 +249,7 @@ const Ue = { class: "no-config-field" }, we = { class: "dialog-footer" }, ke = {
240
249
  modelValue: l(t)[e.fieldKey],
241
250
  "onUpdate:modelValue": (a) => l(t)[e.fieldKey] = a,
242
251
  options: e.dataList,
243
- props: { ...l(Te) },
252
+ props: { ...l(Ne) },
244
253
  placeholder: `${l(c)("act.selectPlaceholder")}${e.fieldName}`,
245
254
  clearable: "",
246
255
  filterable: "",
@@ -269,39 +278,39 @@ const Ue = { class: "no-config-field" }, we = { class: "dialog-footer" }, ke = {
269
278
  ref_for: !0
270
279
  }, l(y)(e), {
271
280
  disabled: e.isFormDisabled
272
- }), null, 16, ["modelValue", "onUpdate:modelValue", "start-placeholder", "end-placeholder", "disabled"])) : e.fieldType === "provinceCascade" ? (d(), i(r, b({
281
+ }), null, 16, ["modelValue", "onUpdate:modelValue", "start-placeholder", "end-placeholder", "disabled"])) : e.fieldType === "provinceCascade" ? (d(), i(s, b({
273
282
  key: 8,
274
283
  modelValue: l(t)[e.fieldKey],
275
284
  "onUpdate:modelValue": (a) => l(t)[e.fieldKey] = a,
276
285
  options: e.dataList,
277
- props: l(Ke),
286
+ props: l(we),
278
287
  clearable: "",
279
288
  filterable: "",
280
289
  placeholder: `${l(c)("act.selectPlaceholder")}${e.fieldName}`,
281
290
  ref_for: !0
282
291
  }, l(y)(e), {
283
292
  disabled: e.isFormDisabled
284
- }), null, 16, ["modelValue", "onUpdate:modelValue", "options", "props", "placeholder", "disabled"])) : e.fieldType === "switch" ? (d(), i(n, {
293
+ }), null, 16, ["modelValue", "onUpdate:modelValue", "options", "props", "placeholder", "disabled"])) : e.fieldType === "switch" ? (d(), i(r, {
285
294
  key: 9,
286
295
  modelValue: l(t)[e.fieldKey],
287
296
  "onUpdate:modelValue": (a) => l(t)[e.fieldKey] = a,
288
297
  "active-value": !0,
289
298
  "inactive-value": !1
290
- }, null, 8, ["modelValue", "onUpdate:modelValue"])) : e.fieldType === "upload" ? (d(), i(l(Z), b({
299
+ }, null, 8, ["modelValue", "onUpdate:modelValue"])) : e.fieldType === "upload" ? (d(), i(l(ee), b({
291
300
  key: 10,
292
301
  class: "form-upload",
293
302
  modelValue: l(t)[e.fieldKey],
294
303
  "onUpdate:modelValue": (a) => l(t)[e.fieldKey] = a,
295
- request: l(E),
304
+ request: l(M),
296
305
  ref_for: !0
297
- }, l(y)(e)), null, 16, ["modelValue", "onUpdate:modelValue", "request"])) : e.fieldType === "editor" ? (d(), i(l(I), b({
306
+ }, l(y)(e)), null, 16, ["modelValue", "onUpdate:modelValue", "request"])) : e.fieldType === "editor" ? (d(), i(l(le), b({
298
307
  key: 11,
299
308
  modelValue: l(t)[e.fieldKey],
300
309
  "onUpdate:modelValue": (a) => l(t)[e.fieldKey] = a,
301
310
  disabled: e.isFormDisabled,
302
311
  placeholder: `${l(c)("act.inputPlaceholder")}${e.fieldName}`,
303
312
  ref_for: !0
304
- }, l(y)(e)), null, 16, ["modelValue", "onUpdate:modelValue", "disabled", "placeholder"])) : G("", !0)
313
+ }, l(y)(e)), null, 16, ["modelValue", "onUpdate:modelValue", "disabled", "placeholder"])) : Q("", !0)
305
314
  ]),
306
315
  _: 2
307
316
  }, 1032, ["label", "prop", "rules"]))
@@ -313,14 +322,16 @@ const Ue = { class: "no-config-field" }, we = { class: "dialog-footer" }, ke = {
313
322
  })
314
323
  ]),
315
324
  _: 1
316
- }, 8, ["model", "label-width", "label-position"])
325
+ }, 8, ["model", "label-width", "label-position"])), [
326
+ [_e, l(g).dialogLoading]
327
+ ])
317
328
  ];
318
329
  }),
319
330
  _: 1
320
331
  }, 8, ["model-value", "title", "width"]);
321
332
  };
322
333
  }
323
- }, Ae = /* @__PURE__ */ Ce(ke, [["__scopeId", "data-v-112876c8"]]);
334
+ }, qe = /* @__PURE__ */ Ke(ve, [["__scopeId", "data-v-883ef486"]]);
324
335
  export {
325
- Ae as default
336
+ qe as default
326
337
  };