act-plus 1.1.85 → 1.1.86

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,5 +1,5 @@
1
- import { defineAsyncComponent as ne, inject as D, reactive as re, ref as A, watch as de, resolveComponent as V, resolveDirective as se, openBlock as r, createBlock as i, withCtx as a, createElementVNode as L, createVNode as l, unref as p, createTextVNode as v, withDirectives as ie, createElementBlock as c, Fragment as _, renderList as g, createCommentVNode as T, toDisplayString as pe } from "vue";
2
- import { _ as me, F as fe, l as be, m as ce, S as _e, T as Ve, A as ge, C as ye, n as Ce, U as ve } from "./index-d1b62e93.js";
1
+ import { defineAsyncComponent as ne, inject as D, reactive as re, ref as A, watch as de, resolveComponent as g, resolveDirective as se, openBlock as r, createBlock as i, withCtx as a, createElementVNode as L, createVNode as l, unref as p, createTextVNode as v, withDirectives as ie, createElementBlock as V, Fragment as c, renderList as _, createCommentVNode as T, toDisplayString as pe } from "vue";
2
+ import { _ as me, F as fe, l as be, m as Ve, S as ce, T as ge, A as _e, C as ye, n as Ce, U as ve } from "./index-c6b82d52.js";
3
3
  import "vue-router";
4
4
  import "element-plus";
5
5
  const Te = { slot: "prepend" }, Se = { class: "dialog-footer" }, Ue = {
@@ -11,7 +11,7 @@ const Te = { slot: "prepend" }, Se = { class: "dialog-footer" }, Ue = {
11
11
  },
12
12
  emits: ["update:visible", "refresh"],
13
13
  setup(M, { emit: Q }) {
14
- const W = ne(() => import("./dialogSiteComponentsParams-dab1bf57.js")), E = Q, P = M, h = D("pageKey")(), O = D("conditionList")(), Y = D("configData")();
14
+ const W = ne(() => import("./dialogSiteComponentsParams-d1974596.js")), E = Q, P = M, h = D("pageKey")(), O = D("conditionList")(), Y = D("configData")();
15
15
  let S = re((() => ({
16
16
  btnLoading: !1,
17
17
  showSiteComponentsParamsDialog: !1
@@ -28,6 +28,7 @@ const Te = { slot: "prepend" }, Se = { class: "dialog-footer" }, Ue = {
28
28
  postRequestParams: [],
29
29
  useScenes: [],
30
30
  formColumnCol: 12,
31
+ fieldDefaultValue: "",
31
32
  formCustomComponentes: [],
32
33
  customTableHeaderName: "",
33
34
  customTableHeaderUrl: "",
@@ -44,15 +45,15 @@ const Te = { slot: "prepend" }, Se = { class: "dialog-footer" }, Ue = {
44
45
  isTableCellSort: !0
45
46
  }), R = ve, w = A(null), u = A(x()), K = () => ["select", "selectIcon", "multipleSelect", "treeSelect", "provinceCascade", "switch", "virtualizedSelect", "virtualizedMultipleSelect"].includes(
46
47
  u.value.fieldType
47
- ), $ = () => u.value.useScenes.includes("tableSearch") && u.value.fieldType !== "time", B = () => u.value.useScenes.includes("tableShow"), I = () => u.value.fieldType && u.value.fieldType !== "implicit" && u.value.useScenes.some((m) => !["tableSearch", "tableShow"].some((t) => t == m));
48
+ ), $ = () => u.value.useScenes.includes("tableSearch") && u.value.fieldType !== "time", B = () => u.value.useScenes.includes("tableShow"), I = () => u.value.fieldType && u.value.fieldType !== "implicit" && u.value.useScenes.some((f) => !["tableSearch", "tableShow"].some((t) => t == f));
48
49
  de(
49
50
  () => P.visible,
50
- async (m, t) => {
51
- if (m) {
52
- const f = (Y.value.buttons || []).filter((o) => o.permissionCode != 1001).map((o) => ({ key: o.btnName, value: o.permissionCode }));
51
+ async (f, t) => {
52
+ if (f) {
53
+ const m = (Y.value.buttons || []).filter((o) => o.permissionCode != 1001).map((o) => ({ key: o.btnName, value: o.permissionCode }));
53
54
  R.some((o) => {
54
55
  if (o.label === "表单配置")
55
- return o.options = f, !0;
56
+ return o.options = m, !0;
56
57
  });
57
58
  const { data: n } = P;
58
59
  if (!n.fieldName)
@@ -71,13 +72,13 @@ const Te = { slot: "prepend" }, Se = { class: "dialog-footer" }, Ue = {
71
72
  );
72
73
  const j = () => {
73
74
  u.value.postRequestParams.push({ submitName: "", submitValue: "", submitType: "default", submitMatchType: "", paramsType: "" });
74
- }, H = (m) => {
75
- u.value.postRequestParams.splice(m, 1);
76
- }, z = (m) => {
75
+ }, H = (f) => {
76
+ u.value.postRequestParams.splice(f, 1);
77
+ }, z = (f) => {
77
78
  u.value.postRequestParams = [];
78
- }, G = (m) => {
79
- const t = R.find((n) => n.label === "表格配置").options, f = R.find((n) => n.label === "表单配置").options;
80
- u.value.formCustomComponentes = [...t, ...f].filter((n) => m.includes(n.value)).map((n) => {
79
+ }, G = (f) => {
80
+ const t = R.find((n) => n.label === "表格配置").options, m = R.find((n) => n.label === "表单配置").options;
81
+ u.value.formCustomComponentes = [...t, ...m].filter((n) => f.includes(n.value)).map((n) => {
81
82
  const o = u.value.formCustomComponentes.find((b) => b.permissionCode == n.value);
82
83
  return {
83
84
  btnName: n.key,
@@ -88,23 +89,23 @@ const Te = { slot: "prepend" }, Se = { class: "dialog-footer" }, Ue = {
88
89
  isFieldCustom: (o == null ? void 0 : o.isFieldCustom) || !1
89
90
  };
90
91
  });
91
- }, J = (m, t) => {
92
+ }, J = (f, t) => {
92
93
  t.customComponentName = void 0, t.customComponentUrl = void 0;
93
- }, X = (m) => {
94
- N(), m();
94
+ }, X = (f) => {
95
+ N(), f();
95
96
  }, N = () => {
96
97
  u.value = x(), w.value.resetFields(), E("update:visible", !1);
97
- }, Z = (m) => {
98
- m && m.validate((t) => {
99
- t && (S.btnLoading = !0, u.value.formCustomComponentes.forEach((f) => {
100
- delete f.isFiledCustom;
98
+ }, Z = (f) => {
99
+ f && f.validate((t) => {
100
+ t && (S.btnLoading = !0, u.value.formCustomComponentes.forEach((m) => {
101
+ delete m.isFiledCustom;
101
102
  }), E("refresh", JSON.parse(JSON.stringify(u.value)), () => {
102
103
  N();
103
104
  }), S.btnLoading = !1);
104
105
  });
105
106
  };
106
- return (m, t) => {
107
- const f = V("el-input"), n = V("el-form-item"), o = V("el-col"), b = V("el-option"), y = V("el-select"), U = V("el-button"), C = V("el-row"), k = V("el-divider"), ee = V("el-option-group"), q = V("el-switch"), le = V("el-input-number"), ae = V("el-form"), te = V("el-scrollbar"), ue = V("el-dialog"), oe = se("debounce");
107
+ return (f, t) => {
108
+ const m = g("el-input"), n = g("el-form-item"), o = g("el-col"), b = g("el-option"), y = g("el-select"), U = g("el-button"), C = g("el-row"), k = g("el-divider"), ee = g("el-option-group"), q = g("el-switch"), le = g("el-input-number"), ae = g("el-form"), te = g("el-scrollbar"), ue = g("el-dialog"), oe = se("debounce");
108
109
  return r(), i(ue, {
109
110
  "model-value": P.visible,
110
111
  title: P.title,
@@ -121,7 +122,7 @@ const Te = { slot: "prepend" }, Se = { class: "dialog-footer" }, Ue = {
121
122
  onClick: N,
122
123
  loading: p(S).btnLoading
123
124
  }, {
124
- default: a(() => [...t[29] || (t[29] = [
125
+ default: a(() => [...t[30] || (t[30] = [
125
126
  v("取消", -1)
126
127
  ])]),
127
128
  _: 1
@@ -129,9 +130,9 @@ const Te = { slot: "prepend" }, Se = { class: "dialog-footer" }, Ue = {
129
130
  ie((r(), i(U, {
130
131
  type: "primary",
131
132
  loading: p(S).btnLoading,
132
- onClick: t[22] || (t[22] = (e) => Z(w.value))
133
+ onClick: t[23] || (t[23] = (e) => Z(w.value))
133
134
  }, {
134
- default: a(() => [...t[30] || (t[30] = [
135
+ default: a(() => [...t[31] || (t[31] = [
135
136
  v("保存", -1)
136
137
  ])]),
137
138
  _: 1
@@ -164,7 +165,7 @@ const Te = { slot: "prepend" }, Se = { class: "dialog-footer" }, Ue = {
164
165
  prop: "fieldName"
165
166
  }, {
166
167
  default: a(() => [
167
- l(f, {
168
+ l(m, {
168
169
  modelValue: u.value.fieldName,
169
170
  "onUpdate:modelValue": t[0] || (t[0] = (e) => u.value.fieldName = e),
170
171
  placeholder: "请输入",
@@ -184,7 +185,7 @@ const Te = { slot: "prepend" }, Se = { class: "dialog-footer" }, Ue = {
184
185
  prop: "fieldKey"
185
186
  }, {
186
187
  default: a(() => [
187
- l(f, {
188
+ l(m, {
188
189
  modelValue: u.value.fieldKey,
189
190
  "onUpdate:modelValue": t[1] || (t[1] = (e) => u.value.fieldKey = e),
190
191
  placeholder: "请输入",
@@ -212,7 +213,7 @@ const Te = { slot: "prepend" }, Se = { class: "dialog-footer" }, Ue = {
212
213
  filterable: ""
213
214
  }, {
214
215
  default: a(() => [
215
- (r(!0), c(_, null, g(p(fe), (e) => (r(), i(b, {
216
+ (r(!0), V(c, null, _(p(fe), (e) => (r(), i(b, {
216
217
  key: e.value,
217
218
  label: e.key,
218
219
  value: e.value
@@ -238,7 +239,7 @@ const Te = { slot: "prepend" }, Se = { class: "dialog-footer" }, Ue = {
238
239
  type: "primary",
239
240
  onClick: t[3] || (t[3] = (e) => p(S).showSiteComponentsParamsDialog = !0)
240
241
  }, {
241
- default: a(() => [...t[23] || (t[23] = [
242
+ default: a(() => [...t[24] || (t[24] = [
242
243
  v("设置props", -1)
243
244
  ])]),
244
245
  _: 1
@@ -268,7 +269,7 @@ const Te = { slot: "prepend" }, Se = { class: "dialog-footer" }, Ue = {
268
269
  prop: "fieldRequestUrl"
269
270
  }, {
270
271
  default: a(() => [
271
- l(f, {
272
+ l(m, {
272
273
  placeholder: "请输入",
273
274
  modelValue: u.value.fieldRequestUrl,
274
275
  "onUpdate:modelValue": t[7] || (t[7] = (e) => u.value.fieldRequestUrl = e),
@@ -283,7 +284,7 @@ const Te = { slot: "prepend" }, Se = { class: "dialog-footer" }, Ue = {
283
284
  onChange: z
284
285
  }, {
285
286
  default: a(() => [
286
- (r(!0), c(_, null, g(p(be), (e) => (r(), i(b, {
287
+ (r(!0), V(c, null, _(p(be), (e) => (r(), i(b, {
287
288
  key: e.value,
288
289
  label: e.key,
289
290
  value: e.value
@@ -303,10 +304,10 @@ const Te = { slot: "prepend" }, Se = { class: "dialog-footer" }, Ue = {
303
304
  ]),
304
305
  _: 1
305
306
  })) : T("", !0),
306
- u.value.fieldRequestType == "POST" ? (r(), c(_, { key: 1 }, [
307
+ u.value.fieldRequestType == "POST" ? (r(), V(c, { key: 1 }, [
307
308
  l(k, { "content-position": "left" }, {
308
309
  default: a(() => [
309
- t[24] || (t[24] = v(" POST参数配置 ", -1)),
310
+ t[25] || (t[25] = v(" POST参数配置 ", -1)),
310
311
  l(U, {
311
312
  class: "add-icon-btn",
312
313
  type: "primary",
@@ -317,7 +318,7 @@ const Te = { slot: "prepend" }, Se = { class: "dialog-footer" }, Ue = {
317
318
  ]),
318
319
  _: 1
319
320
  }),
320
- (r(!0), c(_, null, g(u.value.postRequestParams, (e, s) => (r(), i(C, { key: s }, {
321
+ (r(!0), V(c, null, _(u.value.postRequestParams, (e, s) => (r(), i(C, { key: s }, {
321
322
  default: a(() => [
322
323
  l(o, { span: 5 }, {
323
324
  default: a(() => [
@@ -327,7 +328,7 @@ const Te = { slot: "prepend" }, Se = { class: "dialog-footer" }, Ue = {
327
328
  prop: "postRequestParams." + s + ".submitName"
328
329
  }, {
329
330
  default: a(() => [
330
- l(f, {
331
+ l(m, {
331
332
  modelValue: e.submitName,
332
333
  "onUpdate:modelValue": (d) => e.submitName = d,
333
334
  placeholder: "请输入提交字段名",
@@ -347,7 +348,7 @@ const Te = { slot: "prepend" }, Se = { class: "dialog-footer" }, Ue = {
347
348
  prop: "postRequestParams." + s + ".submitValue"
348
349
  }, {
349
350
  default: a(() => [
350
- l(f, {
351
+ l(m, {
351
352
  placeholder: "请输入值",
352
353
  modelValue: e.submitValue,
353
354
  "onUpdate:modelValue": (d) => e.submitValue = d,
@@ -361,7 +362,7 @@ const Te = { slot: "prepend" }, Se = { class: "dialog-footer" }, Ue = {
361
362
  style: { width: "120px" }
362
363
  }, {
363
364
  default: a(() => [
364
- (r(!0), c(_, null, g(p(ce), (d, F) => (r(), i(b, {
365
+ (r(!0), V(c, null, _(p(Ve), (d, F) => (r(), i(b, {
365
366
  key: F,
366
367
  label: d.key,
367
368
  value: d.value
@@ -398,7 +399,7 @@ const Te = { slot: "prepend" }, Se = { class: "dialog-footer" }, Ue = {
398
399
  style: { width: "120px" }
399
400
  }, {
400
401
  default: a(() => [
401
- (r(!0), c(_, null, g(p(O), (d, F) => (r(), i(b, {
402
+ (r(!0), V(c, null, _(p(O), (d, F) => (r(), i(b, {
402
403
  key: F,
403
404
  label: d.key,
404
405
  value: d.value
@@ -428,7 +429,7 @@ const Te = { slot: "prepend" }, Se = { class: "dialog-footer" }, Ue = {
428
429
  clearable: ""
429
430
  }, {
430
431
  default: a(() => [
431
- (r(!0), c(_, null, g(p(_e), (d, F) => (r(), i(b, {
432
+ (r(!0), V(c, null, _(p(ce), (d, F) => (r(), i(b, {
432
433
  key: F,
433
434
  label: d.key,
434
435
  value: d.value
@@ -481,12 +482,12 @@ const Te = { slot: "prepend" }, Se = { class: "dialog-footer" }, Ue = {
481
482
  onChange: G
482
483
  }, {
483
484
  default: a(() => [
484
- (r(!0), c(_, null, g(p(R), (e) => (r(), i(ee, {
485
+ (r(!0), V(c, null, _(p(R), (e) => (r(), i(ee, {
485
486
  key: e.label,
486
487
  label: e.label
487
488
  }, {
488
489
  default: a(() => [
489
- (r(!0), c(_, null, g(e.options, (s) => (r(), i(b, {
490
+ (r(!0), V(c, null, _(e.options, (s) => (r(), i(b, {
490
491
  key: s.key,
491
492
  label: s.key,
492
493
  value: s.value
@@ -509,7 +510,7 @@ const Te = { slot: "prepend" }, Se = { class: "dialog-footer" }, Ue = {
509
510
  $() ? (r(), i(C, { key: 2 }, {
510
511
  default: a(() => [
511
512
  l(k, { "content-position": "left" }, {
512
- default: a(() => [...t[25] || (t[25] = [
513
+ default: a(() => [...t[26] || (t[26] = [
513
514
  v("查询模块", -1)
514
515
  ])]),
515
516
  _: 1
@@ -530,7 +531,7 @@ const Te = { slot: "prepend" }, Se = { class: "dialog-footer" }, Ue = {
530
531
  filterable: ""
531
532
  }, {
532
533
  default: a(() => [
533
- (r(!0), c(_, null, g(p(O), (e, s) => (r(), i(b, {
534
+ (r(!0), V(c, null, _(p(O), (e, s) => (r(), i(b, {
534
535
  key: s,
535
536
  label: e.key,
536
537
  value: e.value
@@ -552,7 +553,7 @@ const Te = { slot: "prepend" }, Se = { class: "dialog-footer" }, Ue = {
552
553
  prop: "tableQueryDefaultValue"
553
554
  }, {
554
555
  default: a(() => [
555
- l(f, {
556
+ l(m, {
556
557
  modelValue: u.value.tableQueryDefaultValue,
557
558
  "onUpdate:modelValue": t[10] || (t[10] = (e) => u.value.tableQueryDefaultValue = e),
558
559
  placeholder: "请输入",
@@ -570,7 +571,7 @@ const Te = { slot: "prepend" }, Se = { class: "dialog-footer" }, Ue = {
570
571
  B() ? (r(), i(C, { key: 3 }, {
571
572
  default: a(() => [
572
573
  l(k, { "content-position": "left" }, {
573
- default: a(() => [...t[26] || (t[26] = [
574
+ default: a(() => [...t[27] || (t[27] = [
574
575
  v("表格模块", -1)
575
576
  ])]),
576
577
  _: 1
@@ -583,7 +584,7 @@ const Te = { slot: "prepend" }, Se = { class: "dialog-footer" }, Ue = {
583
584
  prop: "tableCellWidth"
584
585
  }, {
585
586
  default: a(() => [
586
- l(f, {
587
+ l(m, {
587
588
  placeholder: "请输入",
588
589
  modelValue: u.value.tableCellWidth,
589
590
  "onUpdate:modelValue": t[12] || (t[12] = (e) => u.value.tableCellWidth = e)
@@ -596,7 +597,7 @@ const Te = { slot: "prepend" }, Se = { class: "dialog-footer" }, Ue = {
596
597
  style: { width: "100px" }
597
598
  }, {
598
599
  default: a(() => [
599
- (r(!0), c(_, null, g(p(Ve), (e, s) => (r(), i(b, {
600
+ (r(!0), V(c, null, _(p(ge), (e, s) => (r(), i(b, {
600
601
  key: s,
601
602
  label: e.key,
602
603
  value: e.value
@@ -629,7 +630,7 @@ const Te = { slot: "prepend" }, Se = { class: "dialog-footer" }, Ue = {
629
630
  filterable: ""
630
631
  }, {
631
632
  default: a(() => [
632
- (r(!0), c(_, null, g(p(ge), (e, s) => (r(), i(b, {
633
+ (r(!0), V(c, null, _(p(_e), (e, s) => (r(), i(b, {
633
634
  key: s,
634
635
  label: e.key,
635
636
  value: e.value
@@ -659,7 +660,7 @@ const Te = { slot: "prepend" }, Se = { class: "dialog-footer" }, Ue = {
659
660
  filterable: ""
660
661
  }, {
661
662
  default: a(() => [
662
- (r(!0), c(_, null, g(p(ye), (e, s) => (r(), i(b, {
663
+ (r(!0), V(c, null, _(p(ye), (e, s) => (r(), i(b, {
663
664
  key: s,
664
665
  label: e.key,
665
666
  value: e.value
@@ -713,7 +714,7 @@ const Te = { slot: "prepend" }, Se = { class: "dialog-footer" }, Ue = {
713
714
  I() ? (r(), i(C, { key: 4 }, {
714
715
  default: a(() => [
715
716
  l(k, { "content-position": "left" }, {
716
- default: a(() => [...t[27] || (t[27] = [
717
+ default: a(() => [...t[28] || (t[28] = [
717
718
  v("表单模块", -1)
718
719
  ])]),
719
720
  _: 1
@@ -785,7 +786,7 @@ const Te = { slot: "prepend" }, Se = { class: "dialog-footer" }, Ue = {
785
786
  clearable: ""
786
787
  }, {
787
788
  default: a(() => [
788
- (r(!0), c(_, null, g(p(Ce), (e, s) => (r(), i(b, {
789
+ (r(!0), V(c, null, _(p(Ce), (e, s) => (r(), i(b, {
789
790
  key: s,
790
791
  label: e.key,
791
792
  value: e.value
@@ -816,17 +817,37 @@ const Te = { slot: "prepend" }, Se = { class: "dialog-footer" }, Ue = {
816
817
  })
817
818
  ]),
818
819
  _: 1
820
+ }),
821
+ l(o, { span: 6 }, {
822
+ default: a(() => [
823
+ l(n, {
824
+ label: "默认值",
825
+ rules: [{ required: !1, message: "必填项", trigger: "change" }],
826
+ prop: "fieldDefaultValue"
827
+ }, {
828
+ default: a(() => [
829
+ l(m, {
830
+ modelValue: u.value.fieldDefaultValue,
831
+ "onUpdate:modelValue": t[22] || (t[22] = (e) => u.value.fieldDefaultValue = e),
832
+ placeholder: "请输入",
833
+ clearable: ""
834
+ }, null, 8, ["modelValue"])
835
+ ]),
836
+ _: 1
837
+ })
838
+ ]),
839
+ _: 1
819
840
  })
820
841
  ]),
821
842
  _: 1
822
843
  })) : T("", !0),
823
844
  l(k, { "content-position": "left" }, {
824
- default: a(() => [...t[28] || (t[28] = [
845
+ default: a(() => [...t[29] || (t[29] = [
825
846
  v("不同场景自定义字段组件", -1)
826
847
  ])]),
827
848
  _: 1
828
849
  }),
829
- (r(!0), c(_, null, g(u.value.formCustomComponentes, (e, s) => (r(), i(C, { key: s }, {
850
+ (r(!0), V(c, null, _(u.value.formCustomComponentes, (e, s) => (r(), i(C, { key: s }, {
830
851
  default: a(() => [
831
852
  l(o, { span: 2 }, {
832
853
  default: a(() => [
@@ -858,7 +879,7 @@ const Te = { slot: "prepend" }, Se = { class: "dialog-footer" }, Ue = {
858
879
  prop: `formCustomComponentes.${s}.customComponentName`
859
880
  }, {
860
881
  default: a(() => [
861
- l(f, {
882
+ l(m, {
862
883
  modelValue: e.customComponentName,
863
884
  "onUpdate:modelValue": (d) => e.customComponentName = d,
864
885
  placeholder: "请输入",
@@ -888,7 +909,7 @@ const Te = { slot: "prepend" }, Se = { class: "dialog-footer" }, Ue = {
888
909
  prop: `formCustomComponentes.${s}.customComponentUrl`
889
910
  }, {
890
911
  default: a(() => [
891
- l(f, {
912
+ l(m, {
892
913
  modelValue: e.customComponentUrl,
893
914
  "onUpdate:modelValue": (d) => e.customComponentUrl = d,
894
915
  placeholder: "请输入",
@@ -914,7 +935,7 @@ const Te = { slot: "prepend" }, Se = { class: "dialog-footer" }, Ue = {
914
935
  }, 8, ["model-value", "title"]);
915
936
  };
916
937
  }
917
- }, we = /* @__PURE__ */ me(Ue, [["__scopeId", "data-v-f51a212e"]]);
938
+ }, we = /* @__PURE__ */ me(Ue, [["__scopeId", "data-v-571cf929"]]);
918
939
  export {
919
940
  we as default
920
941
  };