act-plus 1.1.36 → 1.1.37

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 { 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-a4e6b7a2.js";
2
+ import { _ as P } from "./index-42b5a2b1.js";
3
3
  import "vue-router";
4
4
  import "js-base64";
5
5
  import "element-plus";
@@ -1,5 +1,5 @@
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";
1
+ import { defineAsyncComponent as K, inject as F, reactive as ge, ref as $, watch as Ve, resolveComponent as y, resolveDirective as H, openBlock as d, createBlock as n, 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 _, createCommentVNode as Q, resolveDynamicComponent as Fe, isRef as Ce, toRaw as De } from "vue";
2
+ import { _ as Te, u as Ke, P as Ne, a as we } from "./index-42b5a2b1.js";
3
3
  import { ElNotification as Ue } from "element-plus";
4
4
  import "vue-router";
5
5
  import "js-base64";
@@ -12,8 +12,8 @@ const ke = { class: "no-config-field" }, Le = { class: "dialog-footer" }, ve = {
12
12
  data: { type: Object, default: () => ({}) }
13
13
  },
14
14
  emits: ["update:visible", "refresh"],
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;
15
+ setup(T, { emit: X }) {
16
+ const Z = K(() => import("./index-42b5a2b1.js").then((o) => o.f)), I = K(() => import("./index-585f3f09.js")), ee = K(() => import("./index-42b5a2b1.js").then((o) => o.e)), le = K(() => import("./index-42b5a2b1.js").then((o) => o.d)), { t: u } = Ke(), M = F("request"), oe = F("loadComponents"), q = F("formatDataType"), E = F("globalProps"), ae = F("stringToBoolean"), b = F("getFieldUiProps"), te = F("disposeRequestData"), O = X, f = T;
17
17
  let g = ge((() => ({
18
18
  dialogLoading: !1,
19
19
  btnLoading: !1
@@ -23,42 +23,46 @@ const ke = { class: "no-config-field" }, Le = { class: "dialog-footer" }, ve = {
23
23
  return "blur";
24
24
  if (["select", "multipleSelect", "datetimerange", "treeSelect", "provinceCascade"].includes(o.fieldType))
25
25
  return "change";
26
- }, ne = (o) => {
26
+ }, ie = (o) => {
27
27
  if (!["input", "textarea"].includes(o) && ["multipleSelect", "dateRange"].includes(o))
28
28
  return [];
29
- }, ie = (o, p) => {
30
- if (["string"].includes(p))
29
+ }, ne = (o, c) => {
30
+ if (["string"].includes(c))
31
31
  return o.join(";");
32
- if (["number"].includes(p))
32
+ if (["number"].includes(c))
33
33
  return Number(o);
34
- if (["array"].includes(p))
34
+ if (["array"].includes(c))
35
35
  return o;
36
36
  }, ce = (o) => {
37
37
  if (["multipleSelect"].includes(o.fieldType))
38
- return u.data.rowData[o.fieldKey] ? u.data.rowData[o.fieldKey].split(";") : [];
38
+ return f.data.rowData[o.fieldKey] ? f.data.rowData[o.fieldKey].split(";") : [];
39
39
  if (["dateRange"].includes(o.fieldType)) {
40
- const _ = o.fieldKey.split("&");
41
- return u.data.rowData[o.fieldKey] = _.map((n) => u.data.rowData[n]), u.data.rowData[o.fieldKey];
40
+ const m = o.fieldKey.split("&");
41
+ return f.data.rowData[o.fieldKey] = m.map((i) => f.data.rowData[i]), f.data.rowData[o.fieldKey];
42
42
  }
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 });
43
+ let c = f.data.rowData[o.fieldKey];
44
+ if (["select", "virtualizedSelect"].includes(o.fieldType)) {
45
+ const m = b(o);
46
+ o.dataList && typeof o.dataList[0][m["value-key"] ? m["value-key"] : "value"] == "string" && (c = c.toString());
47
+ }
48
+ return (c === "true" || c === "false") && (c = ae(c)), c;
49
+ }, ue = (o) => M({ url: f.data.dataItem.requestUrl, method: "post", data: o });
46
50
  Ve(
47
- () => u.visible,
48
- async (o, p) => {
51
+ () => f.visible,
52
+ async (o, c) => {
49
53
  if (o)
50
54
  try {
51
55
  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]) {
56
+ const m = await te(f.data.formList, f.data.rowData, !1, !0);
57
+ f.data.formList.sort((i, p) => i.sort - p.sort).forEach(async (i) => {
58
+ const p = m.find((r) => i.fieldName == r.fieldName && i.fieldKey == r.fieldKey);
59
+ p && (i.dataList = (p == null ? void 0 : p.dataList) ?? []), de[i.fieldKey] = { submitFieldType: i.fieldSubmitType, isFormSetValue: i.isFormSetValue }, t.value[i.fieldKey] = Object.keys(f.data.rowData).length && i.isFormSetValue ? ce(i) : ie(i.fieldType);
60
+ const { isFiledCustom: C, customComponentName: V, customComponentUrl: s } = i.customFiledsComponentes;
61
+ if (C && !i.customFiledsComponentes[V]) {
58
62
  const r = await oe(s, V);
59
- n.customFiledsComponentes[V] = r;
63
+ i.customFiledsComponentes[V] = r;
60
64
  }
61
- }), console.log(u.data.formList), U.value = u.data.formList || [], g.dialogLoading = !1;
65
+ }), console.log(f.data.formList), U.value = f.data.formList || [], g.dialogLoading = !1;
62
66
  } catch {
63
67
  g.dialogLoading = !1, ƒ;
64
68
  }
@@ -69,24 +73,24 @@ const ke = { class: "no-config-field" }, Le = { class: "dialog-footer" }, ve = {
69
73
  }, L = () => {
70
74
  U.value = [], k.value.resetFields(), O("update:visible", !1);
71
75
  }, pe = (o) => {
72
- o && o.validate((p) => {
73
- if (p) {
76
+ o && o.validate((c) => {
77
+ if (c) {
74
78
  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"));
79
+ const { dataItem: m, rowData: i } = f.data;
80
+ let p = { ...De(t.value) };
81
+ Object.keys(p).forEach((s) => {
82
+ s.includes("&") ? s.split("&").forEach((v, P) => {
83
+ p[v] = p[s][P];
84
+ }) : Array.isArray(p[s]) && (p[s] = ne(p[s], "string"));
81
85
  });
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), {});
86
+ const C = m.submitFields.filter((s) => s.matchType == "default").reduce((s, r) => (r.submitFieldType === "string" && (s[r.submitFieldName] = r.matchFieldName.toString()), s), {}), V = m.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, i[r.matchFieldName]), s), {});
83
87
  ue({
84
- ...f,
88
+ ...p,
85
89
  ...C,
86
90
  ...V
87
91
  }).then((s) => {
88
92
  try {
89
- Ue({ title: c("act.tip"), message: c("act.saveSuccessfully"), type: "success", duration: 2500 }), L(), O("refresh");
93
+ Ue({ title: u("act.tip"), message: u("act.saveSuccessfully"), type: "success", duration: 2500 }), L(), O("refresh");
90
94
  } catch (r) {
91
95
  console.error(r);
92
96
  }
@@ -97,14 +101,14 @@ const ke = { class: "no-config-field" }, Le = { class: "dialog-footer" }, ve = {
97
101
  }
98
102
  });
99
103
  };
100
- return (o, p) => {
104
+ return (o, c) => {
101
105
  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,
106
+ const m = y("el-input"), i = y("el-option"), p = y("el-select"), C = y("el-select-v2"), V = y("el-date-picker"), s = y("el-cascader"), r = y("el-switch"), v = y("el-form-item"), P = y("el-col"), me = y("el-row"), ye = y("el-form"), Y = y("el-button"), be = y("el-dialog"), _e = H("loading"), he = H("debounce");
107
+ return d(), n(be, {
108
+ "model-value": f.visible,
109
+ title: f.title,
106
110
  top: "5vh",
107
- width: (B = K.data.formConfig) == null ? void 0 : B.dialogWidth,
111
+ width: (B = T.data.formConfig) == null ? void 0 : B.dialogWidth,
108
112
  draggable: "",
109
113
  overflow: "",
110
114
  "append-to-body": "",
@@ -119,17 +123,17 @@ const ke = { class: "no-config-field" }, Le = { class: "dialog-footer" }, ve = {
119
123
  onClick: L
120
124
  }, {
121
125
  default: h(() => [
122
- x(N(l(c)("act.cancel")), 1)
126
+ x(N(l(u)("act.cancel")), 1)
123
127
  ]),
124
128
  _: 1
125
129
  }, 8, ["loading"]),
126
- J((d(), i(Y, {
130
+ J((d(), n(Y, {
127
131
  type: "primary",
128
132
  loading: l(g).btnLoading,
129
- onClick: p[1] || (p[1] = (S) => pe(l(k)))
133
+ onClick: c[1] || (c[1] = (S) => pe(l(k)))
130
134
  }, {
131
135
  default: h(() => [
132
- x(N(l(c)("act.save")), 1)
136
+ x(N(l(u)("act.save")), 1)
133
137
  ]),
134
138
  _: 1
135
139
  }, 8, ["loading"])), [
@@ -140,145 +144,145 @@ const ke = { class: "no-config-field" }, Le = { class: "dialog-footer" }, ve = {
140
144
  default: h(() => {
141
145
  var S, j;
142
146
  return [
143
- J((d(), i(ye, {
147
+ J((d(), n(ye, {
144
148
  ref_key: "formRef",
145
149
  ref: k,
146
150
  model: l(t),
147
151
  "label-suffix": ":",
148
- "label-width": (S = K.data.formConfig) == null ? void 0 : S.formLabelWidth,
149
- "label-position": (j = K.data.formConfig) == null ? void 0 : j.formLabelPosition
152
+ "label-width": (S = T.data.formConfig) == null ? void 0 : S.formLabelWidth,
153
+ "label-position": (j = T.data.formConfig) == null ? void 0 : j.formLabelPosition
150
154
  }, {
151
155
  default: h(() => [
152
156
  G(me, { gutter: 40 }, {
153
157
  default: h(() => [
154
- (d(!0), D(w, null, A(l(U), (e, H) => (d(), i(P, {
158
+ (d(!0), D(w, null, A(l(U), (e, z) => (d(), n(P, {
155
159
  span: se(e),
156
- key: H
160
+ key: z
157
161
  }, {
158
162
  default: h(() => [
159
163
  e.customFiledsComponentes.isFiledCustom ? (d(), D(w, { key: 1 }, [
160
- e.customFiledsComponentes[e.customFiledsComponentes.customComponentName] ? (d(), i(Fe(e.customFiledsComponentes[e.customFiledsComponentes.customComponentName]), {
164
+ e.customFiledsComponentes[e.customFiledsComponentes.customComponentName] ? (d(), n(Fe(e.customFiledsComponentes[e.customFiledsComponentes.customComponentName]), {
161
165
  key: 0,
162
166
  fieldCofnigItem: e,
163
- rowData: u.data.rowData,
167
+ rowData: f.data.rowData,
164
168
  form: l(t),
165
- "onUpdate:form": p[0] || (p[0] = (a) => Ce(t) ? t.value = a : t = a)
169
+ "onUpdate:form": c[0] || (c[0] = (a) => Ce(t) ? t.value = a : t = a)
166
170
  }, null, 40, ["fieldCofnigItem", "rowData", "form"])) : (d(), D("div", {
167
171
  class: "no-config",
168
- key: H
172
+ key: z
169
173
  }, [
170
174
  W("span", ke, "【" + N(e.fieldName) + "】", 1),
171
- x(N(l(c)("act.fieldCustom")), 1)
175
+ x(N(l(u)("act.fieldCustom")), 1)
172
176
  ]))
173
- ], 64)) : (d(), i(v, {
177
+ ], 64)) : (d(), n(v, {
174
178
  key: 0,
175
179
  label: e.fieldName,
176
180
  prop: e.fieldKey,
177
- rules: [{ required: e.isFormFieldRequired, message: l(c)("act.requiredMessage"), trigger: re(e) }]
181
+ rules: [{ required: e.isFormFieldRequired, message: l(u)("act.requiredMessage"), trigger: re(e) }]
178
182
  }, {
179
183
  default: h(() => [
180
- e.fieldType === "input" ? (d(), i(_, b({
184
+ e.fieldType === "input" ? (d(), n(m, _({
181
185
  key: 0,
182
186
  modelValue: l(t)[e.fieldKey],
183
187
  "onUpdate:modelValue": (a) => l(t)[e.fieldKey] = a,
184
- placeholder: `${l(c)("act.inputPlaceholder")}${e.fieldName}`,
188
+ placeholder: `${l(u)("act.inputPlaceholder")}${e.fieldName}`,
185
189
  clearable: "",
186
190
  ref_for: !0
187
- }, l(y)(e), {
191
+ }, l(b)(e), {
188
192
  disabled: e.isFormDisabled
189
193
  }), null, 16, ["modelValue", "onUpdate:modelValue", "placeholder", "disabled"])) : Q("", !0),
190
- e.fieldType === "inputNumber" ? (d(), i(l(Z), b({
194
+ e.fieldType === "inputNumber" ? (d(), n(l(Z), _({
191
195
  key: 1,
192
196
  modelValue: l(t)[e.fieldKey],
193
197
  "onUpdate:modelValue": (a) => l(t)[e.fieldKey] = a,
194
- placeholder: `${l(c)("act.inputPlaceholder")}${e.fieldName}`,
198
+ placeholder: `${l(u)("act.inputPlaceholder")}${e.fieldName}`,
195
199
  clearable: "",
196
200
  ref_for: !0
197
- }, l(y)(e), {
201
+ }, l(b)(e), {
198
202
  disabled: e.isFormDisabled
199
- }), null, 16, ["modelValue", "onUpdate:modelValue", "placeholder", "disabled"])) : e.fieldType === "textarea" ? (d(), i(_, b({
203
+ }), null, 16, ["modelValue", "onUpdate:modelValue", "placeholder", "disabled"])) : e.fieldType === "textarea" ? (d(), n(m, _({
200
204
  key: 2,
201
205
  modelValue: l(t)[e.fieldKey],
202
206
  "onUpdate:modelValue": (a) => l(t)[e.fieldKey] = a,
203
- placeholder: `${l(c)("act.inputPlaceholder")}${e.fieldName}`,
207
+ placeholder: `${l(u)("act.inputPlaceholder")}${e.fieldName}`,
204
208
  rows: 4,
205
209
  ref_for: !0
206
- }, l(y)(e), {
210
+ }, l(b)(e), {
207
211
  type: "textarea",
208
212
  disabled: e.isFormDisabled
209
- }), null, 16, ["modelValue", "onUpdate:modelValue", "placeholder", "disabled"])) : e.fieldType === "selectIcon" ? (d(), i(l(I), b({
213
+ }), null, 16, ["modelValue", "onUpdate:modelValue", "placeholder", "disabled"])) : e.fieldType === "selectIcon" ? (d(), n(l(I), _({
210
214
  key: 3,
211
215
  modelValue: l(t)[e.fieldKey],
212
216
  "onUpdate:modelValue": (a) => l(t)[e.fieldKey] = a,
213
217
  icons: e.dataList,
214
- placeholder: `${l(c)("act.selectPlaceholder")}${e.fieldName}`,
218
+ placeholder: `${l(u)("act.selectPlaceholder")}${e.fieldName}`,
215
219
  ref_for: !0
216
- }, l(y)(e), {
220
+ }, l(b)(e), {
217
221
  disabled: e.isFormDisabled
218
222
  }), {
219
223
  default: h(() => [
220
- (d(!0), D(w, null, A(e.dataList, (a, R) => (d(), i(n, {
224
+ (d(!0), D(w, null, A(e.dataList, (a, R) => (d(), n(i, {
221
225
  key: R,
222
226
  label: a.key,
223
227
  value: a.value
224
228
  }, null, 8, ["label", "value"]))), 128))
225
229
  ]),
226
230
  _: 2
227
- }, 1040, ["modelValue", "onUpdate:modelValue", "icons", "placeholder", "disabled"])) : ["select", "multipleSelect"].includes(e.fieldType) ? (d(), i(f, b({
231
+ }, 1040, ["modelValue", "onUpdate:modelValue", "icons", "placeholder", "disabled"])) : ["select", "multipleSelect"].includes(e.fieldType) ? (d(), n(p, _({
228
232
  key: 4,
229
233
  modelValue: l(t)[e.fieldKey],
230
234
  "onUpdate:modelValue": (a) => l(t)[e.fieldKey] = a,
231
- placeholder: `${l(c)("act.selectPlaceholder")}${e.fieldName}`,
235
+ placeholder: `${l(u)("act.selectPlaceholder")}${e.fieldName}`,
232
236
  clearable: "",
233
237
  filterable: "",
234
238
  ref_for: !0
235
- }, l(y)(e), {
239
+ }, l(b)(e), {
236
240
  multiple: e.fieldType === "multipleSelect",
237
241
  disabled: e.isFormDisabled
238
242
  }), {
239
243
  default: h(() => [
240
- (d(!0), D(w, null, A(e.dataList, (a, R) => (d(), i(n, {
244
+ (d(!0), D(w, null, A(e.dataList, (a, R) => (d(), n(i, {
241
245
  key: R,
242
246
  label: a.key,
243
247
  value: a.value
244
248
  }, null, 8, ["label", "value"]))), 128))
245
249
  ]),
246
250
  _: 2
247
- }, 1040, ["modelValue", "onUpdate:modelValue", "placeholder", "multiple", "disabled"])) : ["virtualizedSelect", "virtualizedMultipleSelect"].includes(e.fieldType) ? (d(), i(C, b({
251
+ }, 1040, ["modelValue", "onUpdate:modelValue", "placeholder", "multiple", "disabled"])) : ["virtualizedSelect", "virtualizedMultipleSelect"].includes(e.fieldType) ? (d(), n(C, _({
248
252
  key: 5,
249
253
  modelValue: l(t)[e.fieldKey],
250
254
  "onUpdate:modelValue": (a) => l(t)[e.fieldKey] = a,
251
255
  options: e.dataList,
252
256
  props: { ...l(Ne) },
253
- placeholder: `${l(c)("act.selectPlaceholder")}${e.fieldName}`,
257
+ placeholder: `${l(u)("act.selectPlaceholder")}${e.fieldName}`,
254
258
  clearable: "",
255
259
  filterable: "",
256
260
  ref_for: !0
257
- }, l(y)(e), {
261
+ }, l(b)(e), {
258
262
  disabled: e.isFormDisabled,
259
263
  multiple: e.fieldType === "virtualizedMultipleSelect"
260
- }), null, 16, ["modelValue", "onUpdate:modelValue", "options", "props", "placeholder", "disabled", "multiple"])) : e.fieldType === "date" ? (d(), i(V, b({
264
+ }), null, 16, ["modelValue", "onUpdate:modelValue", "options", "props", "placeholder", "disabled", "multiple"])) : e.fieldType === "date" ? (d(), n(V, _({
261
265
  key: 6,
262
266
  modelValue: l(t)[e.fieldKey],
263
267
  "onUpdate:modelValue": (a) => l(t)[e.fieldKey] = a,
264
268
  type: "date",
265
- placeholder: `${l(c)("act.selectPlaceholder")}${l(c)("act.time")}`,
269
+ placeholder: `${l(u)("act.selectPlaceholder")}${l(u)("act.time")}`,
266
270
  "value-format": "YYYY-MM-DD HH:mm:ss",
267
271
  ref_for: !0
268
- }, l(y)(e), {
272
+ }, l(b)(e), {
269
273
  disabled: e.isFormDisabled
270
- }), null, 16, ["modelValue", "onUpdate:modelValue", "placeholder", "disabled"])) : e.fieldType === "dateRange" ? (d(), i(V, b({
274
+ }), null, 16, ["modelValue", "onUpdate:modelValue", "placeholder", "disabled"])) : e.fieldType === "dateRange" ? (d(), n(V, _({
271
275
  key: 7,
272
276
  modelValue: l(t)[e.fieldKey],
273
277
  "onUpdate:modelValue": (a) => l(t)[e.fieldKey] = a,
274
278
  type: "daterange",
275
- "start-placeholder": l(c)("act.startTime"),
276
- "end-placeholder": l(c)("act.endTime"),
279
+ "start-placeholder": l(u)("act.startTime"),
280
+ "end-placeholder": l(u)("act.endTime"),
277
281
  "value-format": "YYYY-MM-DD HH:mm:ss",
278
282
  ref_for: !0
279
- }, l(y)(e), {
283
+ }, l(b)(e), {
280
284
  disabled: e.isFormDisabled
281
- }), null, 16, ["modelValue", "onUpdate:modelValue", "start-placeholder", "end-placeholder", "disabled"])) : e.fieldType === "provinceCascade" ? (d(), i(s, b({
285
+ }), null, 16, ["modelValue", "onUpdate:modelValue", "start-placeholder", "end-placeholder", "disabled"])) : e.fieldType === "provinceCascade" ? (d(), n(s, _({
282
286
  key: 8,
283
287
  modelValue: l(t)[e.fieldKey],
284
288
  "onUpdate:modelValue": (a) => l(t)[e.fieldKey] = a,
@@ -286,31 +290,31 @@ const ke = { class: "no-config-field" }, Le = { class: "dialog-footer" }, ve = {
286
290
  props: l(we),
287
291
  clearable: "",
288
292
  filterable: "",
289
- placeholder: `${l(c)("act.selectPlaceholder")}${e.fieldName}`,
293
+ placeholder: `${l(u)("act.selectPlaceholder")}${e.fieldName}`,
290
294
  ref_for: !0
291
- }, l(y)(e), {
295
+ }, l(b)(e), {
292
296
  disabled: e.isFormDisabled
293
- }), null, 16, ["modelValue", "onUpdate:modelValue", "options", "props", "placeholder", "disabled"])) : e.fieldType === "switch" ? (d(), i(r, {
297
+ }), null, 16, ["modelValue", "onUpdate:modelValue", "options", "props", "placeholder", "disabled"])) : e.fieldType === "switch" ? (d(), n(r, {
294
298
  key: 9,
295
299
  modelValue: l(t)[e.fieldKey],
296
300
  "onUpdate:modelValue": (a) => l(t)[e.fieldKey] = a,
297
301
  "active-value": !0,
298
302
  "inactive-value": !1
299
- }, null, 8, ["modelValue", "onUpdate:modelValue"])) : e.fieldType === "upload" ? (d(), i(l(ee), b({
303
+ }, null, 8, ["modelValue", "onUpdate:modelValue"])) : e.fieldType === "upload" ? (d(), n(l(ee), _({
300
304
  key: 10,
301
305
  class: "form-upload",
302
306
  modelValue: l(t)[e.fieldKey],
303
307
  "onUpdate:modelValue": (a) => l(t)[e.fieldKey] = a,
304
308
  request: l(M),
305
309
  ref_for: !0
306
- }, l(y)(e)), null, 16, ["modelValue", "onUpdate:modelValue", "request"])) : e.fieldType === "editor" ? (d(), i(l(le), b({
310
+ }, l(b)(e)), null, 16, ["modelValue", "onUpdate:modelValue", "request"])) : e.fieldType === "editor" ? (d(), n(l(le), _({
307
311
  key: 11,
308
312
  modelValue: l(t)[e.fieldKey],
309
313
  "onUpdate:modelValue": (a) => l(t)[e.fieldKey] = a,
310
314
  disabled: e.isFormDisabled,
311
- placeholder: `${l(c)("act.inputPlaceholder")}${e.fieldName}`,
315
+ placeholder: `${l(u)("act.inputPlaceholder")}${e.fieldName}`,
312
316
  ref_for: !0
313
- }, l(y)(e)), null, 16, ["modelValue", "onUpdate:modelValue", "disabled", "placeholder"])) : Q("", !0)
317
+ }, l(b)(e)), null, 16, ["modelValue", "onUpdate:modelValue", "disabled", "placeholder"])) : Q("", !0)
314
318
  ]),
315
319
  _: 2
316
320
  }, 1032, ["label", "prop", "rules"]))
@@ -331,7 +335,7 @@ const ke = { class: "no-config-field" }, Le = { class: "dialog-footer" }, ve = {
331
335
  }, 8, ["model-value", "title", "width"]);
332
336
  };
333
337
  }
334
- }, qe = /* @__PURE__ */ Ke(ve, [["__scopeId", "data-v-883ef486"]]);
338
+ }, qe = /* @__PURE__ */ Te(ve, [["__scopeId", "data-v-898d1774"]]);
335
339
  export {
336
340
  qe as default
337
341
  };
@@ -1,5 +1,5 @@
1
1
  import { ref as R, inject as l, watch as j, resolveComponent as C, openBlock as r, createElementBlock as f, Fragment as y, renderList as q, unref as c, createBlock as i, resolveDynamicComponent as O, withCtx as _, createVNode as E, createCommentVNode as u, createTextVNode as B, toDisplayString as k } from "vue";
2
- import { _ as H, u as M } from "./index-a4e6b7a2.js";
2
+ import { _ as H, u as M } from "./index-42b5a2b1.js";
3
3
  import "vue-router";
4
4
  import "js-base64";
5
5
  import "element-plus";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "act-plus",
3
- "version": "1.1.36",
3
+ "version": "1.1.37",
4
4
  "private": false,
5
5
  "description": "act config",
6
6
  "main": "act-plus.js",
package/style.css CHANGED
@@ -1 +1 @@
1
- @charset "UTF-8";.page-container{padding:12px}.form-card .el-card__header{font-size:16px;font-weight:700}.rotate180{transform:rotate(180deg)}.cp{cursor:pointer}.cp:hover{opacity:.8}.ml12{margin-left:12px}.mt12{margin-top:12px}.mt16{margin-top:16px}.mt24{margin-top:24px}.ml6{margin-left:6px!important}.ml4{margin-left:4px!important}.mr6{margin-right:6px}.mr2{margin-right:2px}.mr4{margin-right:4px}.el-table{--el-table-header-bg-color: #eef1f6;--el-table-header-text-color: #1f2d3d;font-size:14px}.el-select,.el-cascader,.el-form--inline .el-form-item{display:block;width:100%}.el-card{height:100%;--el-card-padding: 16px}.el-card__body{height:calc(100% - 45px);box-sizing:border-box}.el-date-editor{--el-date-editor-width: 100%}[data-v-aee5e89e] .el-empty__image{width:100%}.file-image[data-v-aee5e89e]{display:block;width:32px;height:32px;margin:0 auto;border-radius:4px;line-height:32px!important}.no-image[data-v-aee5e89e]{width:100%;height:100%;font-size:12px;background-color:#f5f7fa}.page-container[data-v-356e8a63]{position:relative}.page-container .header-operate[data-v-356e8a63]{position:sticky;top:0;z-index:999}.page-container .submit-box[data-v-356e8a63]{display:flex;align-items:center;justify-content:space-between}.page-container .submit-box-r[data-v-356e8a63]{display:flex;align-items:center}.page-container .submit-box-r .menu-select[data-v-356e8a63]{width:360px;margin:0 24px}.act-table .table-pagination[data-v-3ccfdf86]{padding:12px 4px;justify-content:flex-end}.tox-tinymce-aux{z-index:99999!important}.tinymce.ui.FloatPanel{z-index:99}.mce-content-body[data-mce-placeholder]:not(.mce-visualblocks):before{color:#a8abb2}.upload-container[data-v-f839bee6]{width:100%}.upload-container[data-v-f839bee6] .el-upload-list--picture-card{display:flex;flex:1}.upload-container[data-v-f839bee6] .el-upload.is-drag{width:100%;height:100%}.upload-container .tip-text[data-v-f839bee6]{margin:0;padding:0;font-size:12px;color:#999}.upload-container .file-list[data-v-f839bee6]{display:flex;align-items:center;justify-content:space-between;margin:6px 0;padding:6px 12px;font-size:14px;border-radius:4px;border:1px solid #dcdfe6}.upload-container .file-list[data-v-f839bee6]:hover{cursor:pointer;opacity:.8}.upload-container .file-list:hover .el-file-name[data-v-f839bee6]{text-decoration:underline}.upload-container .file-list-l[data-v-f839bee6]{display:flex;align-items:center;flex:1;width:500px}.upload-container .file-list-image[data-v-f839bee6]{flex-shrink:0;width:40px;height:40px;border-radius:4px}.upload-container .file-list-icon[data-v-f839bee6]{flex-shrink:0;width:40px;height:40px}.upload-container .file-list .el-file-name[data-v-f839bee6]{flex:1;padding:0 12px;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.upload-container .file-list .el-file-operate[data-v-f839bee6]{display:flex;justify-content:flex-end;flex-shrink:0;min-width:82px;margin-left:auto}.upload-container .file-list .el-file-operate>i[data-v-f839bee6]{cursor:pointer;margin-left:12px}.upload-container .file-list .el-file-operate>i[data-v-f839bee6]:hover{opacity:.8}.search-module-container[data-v-39165fde] .el-form-item{margin-bottom:8px}.search-module-container[data-v-39165fde] .el-select__selection{flex-wrap:nowrap}.search-module-container .form-content[data-v-39165fde]{display:grid;grid-template-columns:repeat(var(--table-query-row),1fr);gap:6px;padding:6px 6px 0}.search-module-container .form-content .search-form-btn[data-v-39165fde]{justify-self:end;align-self:start;grid-column-start:var(--table-query-row);grid-column-end:var(--table-query-row)}.search-module-container .expand[data-v-39165fde]{display:flex;margin:0 auto;color:#a4a2a2}.header-operate-container[data-v-b8dfe0ca]{display:flex;align-items:center;justify-content:flex-end}.header-operate-container .el-btn[data-v-b8dfe0ca]{margin:6px}.card-header[data-v-883ef486]{display:flex;align-items:center}.card-header-operate[data-v-883ef486]{margin-left:auto}.no-config[data-v-883ef486]{line-height:32px;font-weight:700}.no-config-field[data-v-883ef486]{margin-left:60px;color:red}.card-header[data-v-be1c5be6]{display:flex;align-items:center}.card-header-operate[data-v-be1c5be6]{margin-left:auto}.add-icon-btn[data-v-ada54450]{cursor:pointer;width:24px;height:24px;margin-left:6px}.table-post-params[data-v-ada54450]{position:relative;margin-bottom:12px}.table-post-params .submit-operate[data-v-ada54450]{position:absolute;top:-20px;right:-10px;display:flex;align-items:center}.table-post-params .submit-operate .match-opreate[data-v-ada54450]{cursor:pointer;width:12px;height:12px}.card-header[data-v-862782ff]{display:flex;align-items:center}.card-header-operate[data-v-862782ff]{margin-left:auto}.form-list[data-v-862782ff]{margin-bottom:24px;border-bottom:1px solid var(--el-color-primary)}.form-list[data-v-862782ff]:last-child{border:none}.config-list-operate[data-v-862782ff]{display:flex;align-items:center;justify-content:flex-end}.card-header[data-v-3440b427]{display:flex;align-items:center}.card-header-operate[data-v-3440b427]{margin-left:auto}.form-list[data-v-3440b427]{margin-bottom:24px;border-bottom:1px solid var(--el-color-primary)}.form-list[data-v-3440b427]:last-child{border:none}.config-list-operate[data-v-3440b427]{display:flex;align-items:center;justify-content:flex-end}.submit-operate[data-v-c63f456e]{display:flex;align-items:center;height:32px;padding-left:12px}.submit-operate .match-opreate[data-v-c63f456e]{cursor:pointer;width:20px;height:20px}.select-icon-popover .icon-list{display:grid;grid-template-columns:repeat(8,1fr)}.select-icon-popover .icon-list .icon-item{display:flex;align-items:center;justify-content:center;margin:4px 0;border:1px solid transparent}.select-icon-popover .icon-list .icon-item .icon-svg{cursor:pointer}.select-icon-popover .icon-list .icon-item-checked{border:1px solid #000}.select-icon-container .icon-value[data-v-308d02d4]{display:flex;align-items:center}.select-icon-container .icon-value .icon-btn[data-v-308d02d4]{margin-left:12px}.add-icon-btn[data-v-bc91dc45]{cursor:pointer;width:24px;height:24px;margin-left:6px}.condition-box[data-v-bc91dc45]{display:flex;justify-content:center}.condition-box[data-v-bc91dc45] .el-form-item__content{flex:0;min-width:300px}.submit-operate[data-v-bc91dc45]{display:flex;align-items:center;height:32px;padding-left:12px}.submit-operate .match-opreate[data-v-bc91dc45]{cursor:pointer;width:20px;height:20px}.add-icon-btn[data-v-9f0c7bbf]{cursor:pointer;width:24px;height:24px;margin-left:6px}.submit-operate[data-v-9f0c7bbf]{display:flex;align-items:center;height:32px;padding-left:12px}.submit-operate .match-opreate[data-v-9f0c7bbf]{cursor:pointer;width:20px;height:20px}
1
+ @charset "UTF-8";.page-container{padding:12px}.form-card .el-card__header{font-size:16px;font-weight:700}.rotate180{transform:rotate(180deg)}.cp{cursor:pointer}.cp:hover{opacity:.8}.ml12{margin-left:12px}.mt12{margin-top:12px}.mt16{margin-top:16px}.mt24{margin-top:24px}.ml6{margin-left:6px!important}.ml4{margin-left:4px!important}.mr6{margin-right:6px}.mr2{margin-right:2px}.mr4{margin-right:4px}.el-table{--el-table-header-bg-color: #eef1f6;--el-table-header-text-color: #1f2d3d;font-size:14px}.el-select,.el-cascader,.el-form--inline .el-form-item{display:block;width:100%}.el-card{height:100%;--el-card-padding: 16px}.el-card__body{height:calc(100% - 45px);box-sizing:border-box}.el-date-editor{--el-date-editor-width: 100%}[data-v-94e140e2] .el-empty__image{width:100%}.table-link[data-v-94e140e2]{cursor:pointer;color:#409eff;text-decoration:underline}.file-image[data-v-94e140e2]{display:block;width:32px;height:32px;margin:0 auto;border-radius:4px;line-height:32px!important}.no-image[data-v-94e140e2]{width:100%;height:100%;font-size:12px;background-color:#f5f7fa}.page-container[data-v-356e8a63]{position:relative}.page-container .header-operate[data-v-356e8a63]{position:sticky;top:0;z-index:999}.page-container .submit-box[data-v-356e8a63]{display:flex;align-items:center;justify-content:space-between}.page-container .submit-box-r[data-v-356e8a63]{display:flex;align-items:center}.page-container .submit-box-r .menu-select[data-v-356e8a63]{width:360px;margin:0 24px}.act-table .table-pagination[data-v-3ccfdf86]{padding:12px 4px;justify-content:flex-end}.tox-tinymce-aux{z-index:99999!important}.tinymce.ui.FloatPanel{z-index:99}.mce-content-body[data-mce-placeholder]:not(.mce-visualblocks):before{color:#a8abb2}.upload-container[data-v-f839bee6]{width:100%}.upload-container[data-v-f839bee6] .el-upload-list--picture-card{display:flex;flex:1}.upload-container[data-v-f839bee6] .el-upload.is-drag{width:100%;height:100%}.upload-container .tip-text[data-v-f839bee6]{margin:0;padding:0;font-size:12px;color:#999}.upload-container .file-list[data-v-f839bee6]{display:flex;align-items:center;justify-content:space-between;margin:6px 0;padding:6px 12px;font-size:14px;border-radius:4px;border:1px solid #dcdfe6}.upload-container .file-list[data-v-f839bee6]:hover{cursor:pointer;opacity:.8}.upload-container .file-list:hover .el-file-name[data-v-f839bee6]{text-decoration:underline}.upload-container .file-list-l[data-v-f839bee6]{display:flex;align-items:center;flex:1;width:500px}.upload-container .file-list-image[data-v-f839bee6]{flex-shrink:0;width:40px;height:40px;border-radius:4px}.upload-container .file-list-icon[data-v-f839bee6]{flex-shrink:0;width:40px;height:40px}.upload-container .file-list .el-file-name[data-v-f839bee6]{flex:1;padding:0 12px;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.upload-container .file-list .el-file-operate[data-v-f839bee6]{display:flex;justify-content:flex-end;flex-shrink:0;min-width:82px;margin-left:auto}.upload-container .file-list .el-file-operate>i[data-v-f839bee6]{cursor:pointer;margin-left:12px}.upload-container .file-list .el-file-operate>i[data-v-f839bee6]:hover{opacity:.8}.search-module-container[data-v-39165fde] .el-form-item{margin-bottom:8px}.search-module-container[data-v-39165fde] .el-select__selection{flex-wrap:nowrap}.search-module-container .form-content[data-v-39165fde]{display:grid;grid-template-columns:repeat(var(--table-query-row),1fr);gap:6px;padding:6px 6px 0}.search-module-container .form-content .search-form-btn[data-v-39165fde]{justify-self:end;align-self:start;grid-column-start:var(--table-query-row);grid-column-end:var(--table-query-row)}.search-module-container .expand[data-v-39165fde]{display:flex;margin:0 auto;color:#a4a2a2}.header-operate-container[data-v-b8dfe0ca]{display:flex;align-items:center;justify-content:flex-end}.header-operate-container .el-btn[data-v-b8dfe0ca]{margin:6px}.card-header[data-v-898d1774]{display:flex;align-items:center}.card-header-operate[data-v-898d1774]{margin-left:auto}.no-config[data-v-898d1774]{line-height:32px;font-weight:700}.no-config-field[data-v-898d1774]{margin-left:60px;color:red}.card-header[data-v-be1c5be6]{display:flex;align-items:center}.card-header-operate[data-v-be1c5be6]{margin-left:auto}.add-icon-btn[data-v-ada54450]{cursor:pointer;width:24px;height:24px;margin-left:6px}.table-post-params[data-v-ada54450]{position:relative;margin-bottom:12px}.table-post-params .submit-operate[data-v-ada54450]{position:absolute;top:-20px;right:-10px;display:flex;align-items:center}.table-post-params .submit-operate .match-opreate[data-v-ada54450]{cursor:pointer;width:12px;height:12px}.card-header[data-v-862782ff]{display:flex;align-items:center}.card-header-operate[data-v-862782ff]{margin-left:auto}.form-list[data-v-862782ff]{margin-bottom:24px;border-bottom:1px solid var(--el-color-primary)}.form-list[data-v-862782ff]:last-child{border:none}.config-list-operate[data-v-862782ff]{display:flex;align-items:center;justify-content:flex-end}.card-header[data-v-3440b427]{display:flex;align-items:center}.card-header-operate[data-v-3440b427]{margin-left:auto}.form-list[data-v-3440b427]{margin-bottom:24px;border-bottom:1px solid var(--el-color-primary)}.form-list[data-v-3440b427]:last-child{border:none}.config-list-operate[data-v-3440b427]{display:flex;align-items:center;justify-content:flex-end}.submit-operate[data-v-c63f456e]{display:flex;align-items:center;height:32px;padding-left:12px}.submit-operate .match-opreate[data-v-c63f456e]{cursor:pointer;width:20px;height:20px}.select-icon-popover .icon-list{display:grid;grid-template-columns:repeat(8,1fr)}.select-icon-popover .icon-list .icon-item{display:flex;align-items:center;justify-content:center;margin:4px 0;border:1px solid transparent}.select-icon-popover .icon-list .icon-item .icon-svg{cursor:pointer}.select-icon-popover .icon-list .icon-item-checked{border:1px solid #000}.select-icon-container .icon-value[data-v-308d02d4]{display:flex;align-items:center}.select-icon-container .icon-value .icon-btn[data-v-308d02d4]{margin-left:12px}.add-icon-btn[data-v-bc91dc45]{cursor:pointer;width:24px;height:24px;margin-left:6px}.condition-box[data-v-bc91dc45]{display:flex;justify-content:center}.condition-box[data-v-bc91dc45] .el-form-item__content{flex:0;min-width:300px}.submit-operate[data-v-bc91dc45]{display:flex;align-items:center;height:32px;padding-left:12px}.submit-operate .match-opreate[data-v-bc91dc45]{cursor:pointer;width:20px;height:20px}.add-icon-btn[data-v-9f0c7bbf]{cursor:pointer;width:24px;height:24px;margin-left:6px}.submit-operate[data-v-9f0c7bbf]{display:flex;align-items:center;height:32px;padding-left:12px}.submit-operate .match-opreate[data-v-9f0c7bbf]{cursor:pointer;width:20px;height:20px}