@das-fed/ui 6.4.0-hot.1 → 6.4.0-hot.3

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.
Files changed (113) hide show
  1. package/package.json +5 -5
  2. package/packages/business-components/app-container/index.js +255 -46
  3. package/packages/business-components/app-container/index.js.gz +0 -0
  4. package/packages/business-components/change-enterprises/index.js +298 -89
  5. package/packages/business-components/change-enterprises/index.js.gz +0 -0
  6. package/packages/business-components/device-panel/index.js +28123 -23289
  7. package/packages/business-components/device-panel/index.js.gz +0 -0
  8. package/packages/business-components/process-form/index.js +1010 -801
  9. package/packages/business-components/process-form/index.js.gz +0 -0
  10. package/packages/business-components/process-log/index.js +3669 -331
  11. package/packages/business-components/process-log/index.js.gz +0 -0
  12. package/packages/business-components/urgent-panel/index.js +2338 -1553
  13. package/packages/business-components/urgent-panel/index.js.gz +0 -0
  14. package/packages/components/alert/index.js +3418 -51
  15. package/packages/components/alert/index.js.gz +0 -0
  16. package/packages/components/autocomplete/index.js +2875 -456
  17. package/packages/components/autocomplete/index.js.gz +0 -0
  18. package/packages/components/breadcrumb/index.js +271 -47
  19. package/packages/components/breadcrumb/index.js.gz +0 -0
  20. package/packages/components/button/index.js +9800 -211
  21. package/packages/components/button/index.js.gz +0 -0
  22. package/packages/components/cascader/index.js +6406 -139
  23. package/packages/components/cascader/index.js.gz +0 -0
  24. package/packages/components/checkbox/index.js +3837 -179
  25. package/packages/components/checkbox/index.js.gz +0 -0
  26. package/packages/components/collapse-panel/index.js +3624 -30
  27. package/packages/components/collapse-panel/index.js.gz +0 -0
  28. package/packages/components/collaspe/index.js +3624 -30
  29. package/packages/components/collaspe/index.js.gz +0 -0
  30. package/packages/components/color-picker/index.js +5346 -106
  31. package/packages/components/color-picker/index.js.gz +0 -0
  32. package/packages/components/date-picker/index.js +13993 -529
  33. package/packages/components/date-picker/index.js.gz +0 -0
  34. package/packages/components/dialog/index.js +1835 -186
  35. package/packages/components/dialog/index.js.gz +0 -0
  36. package/packages/components/drawer/index.js +1614 -38
  37. package/packages/components/drawer/index.js.gz +0 -0
  38. package/packages/components/dropdown/index.js +4615 -54
  39. package/packages/components/dropdown/index.js.gz +0 -0
  40. package/packages/components/empty/index.js +800 -39
  41. package/packages/components/empty/index.js.gz +0 -0
  42. package/packages/components/image-preview/index.js +1283 -34
  43. package/packages/components/image-preview/index.js.gz +0 -0
  44. package/packages/components/image-upload/index.js +11722 -111
  45. package/packages/components/image-upload/index.js.gz +0 -0
  46. package/packages/components/image-viewer/index.js +13168 -386
  47. package/packages/components/image-viewer/index.js.gz +0 -0
  48. package/packages/components/input/index.js +1086 -157
  49. package/packages/components/input/index.js.gz +0 -0
  50. package/packages/components/input-number/index.js +1831 -145
  51. package/packages/components/input-number/index.js.gz +0 -0
  52. package/packages/components/live-player/index.js +3669 -2883
  53. package/packages/components/live-player/index.js.gz +0 -0
  54. package/packages/components/map/index.js +5214 -1190
  55. package/packages/components/map/index.js.gz +0 -0
  56. package/packages/components/menu-aside/index.js +8297 -603
  57. package/packages/components/menu-aside/index.js.gz +0 -0
  58. package/packages/components/menu-header/index.js +10077 -38
  59. package/packages/components/menu-header/index.js.gz +0 -0
  60. package/packages/components/message/index.js +1289 -53
  61. package/packages/components/message/index.js.gz +0 -0
  62. package/packages/components/notification/index.js +3269 -47
  63. package/packages/components/notification/index.js.gz +0 -0
  64. package/packages/components/pagination/index.js +8025 -148
  65. package/packages/components/pagination/index.js.gz +0 -0
  66. package/packages/components/popover/index.js +2495 -44
  67. package/packages/components/popover/index.js.gz +0 -0
  68. package/packages/components/progress/index.js +517 -107
  69. package/packages/components/progress/index.js.gz +0 -0
  70. package/packages/components/radio/index.js +3724 -159
  71. package/packages/components/radio/index.js.gz +0 -0
  72. package/packages/components/scrollbar/index.js +1442 -915
  73. package/packages/components/scrollbar/index.js.gz +0 -0
  74. package/packages/components/search/index.js +5261 -89
  75. package/packages/components/search/index.js.gz +0 -0
  76. package/packages/components/search-form/index.js +1010 -920
  77. package/packages/components/search-form/index.js.gz +0 -0
  78. package/packages/components/select/index.js +10505 -379
  79. package/packages/components/select/index.js.gz +0 -0
  80. package/packages/components/select-list/index.js +1433 -1173
  81. package/packages/components/select-list/index.js.gz +0 -0
  82. package/packages/components/special-range-picker-month/index.js +2645 -196
  83. package/packages/components/special-range-picker-month/index.js.gz +0 -0
  84. package/packages/components/special-range-picker-year/index.js +2710 -259
  85. package/packages/components/special-range-picker-year/index.js.gz +0 -0
  86. package/packages/components/spin/index.js +3534 -48
  87. package/packages/components/spin/index.js.gz +0 -0
  88. package/packages/components/step/index.js +4085 -28
  89. package/packages/components/step/index.js.gz +0 -0
  90. package/packages/components/steps/index.js +4070 -14
  91. package/packages/components/steps/index.js.gz +0 -0
  92. package/packages/components/switch/index.js +547 -31
  93. package/packages/components/switch/index.js.gz +0 -0
  94. package/packages/components/table/index.js +17503 -5201
  95. package/packages/components/table/index.js.gz +0 -0
  96. package/packages/components/tabs/index.js +12630 -172
  97. package/packages/components/tabs/index.js.gz +0 -0
  98. package/packages/components/tag/index.js +325 -55
  99. package/packages/components/tag/index.js.gz +0 -0
  100. package/packages/components/time-line/index.js +3397 -60
  101. package/packages/components/time-line/index.js.gz +0 -0
  102. package/packages/components/tooltip/index.js +2174 -65
  103. package/packages/components/tooltip/index.js.gz +0 -0
  104. package/packages/components/tree/index.js +6747 -1881
  105. package/packages/components/tree/index.js.gz +0 -0
  106. package/packages/components/tree-select/index.js +2778 -358
  107. package/packages/components/tree-select/index.js.gz +0 -0
  108. package/packages/components/upload/index.js +11726 -115
  109. package/packages/components/upload/index.js.gz +0 -0
  110. package/packages/components/virtual-tree/index.js +2928 -86
  111. package/packages/components/virtual-tree/index.js.gz +0 -0
  112. package/packages/components/watermark/index.js +368 -17
  113. package/packages/components/watermark/index.js.gz +0 -0
@@ -1,101 +1,100 @@
1
1
  import '@das-fed/ui/packages/business-components/process-form/style.css';
2
- import { withInstall as qe } from "@das-fed/utils/with-install/index";
3
- import { ref as g, defineComponent as D, watch as L, openBlock as v, createBlock as V, unref as n, withCtx as R, createVNode as _, createElementVNode as Be, createTextVNode as x, toDisplayString as J, createElementBlock as E, Fragment as Z, isRef as X, createSlots as Ie, createCommentVNode as U, h as A, onMounted as Ke, renderList as pe, withDirectives as Pe, resolveDynamicComponent as Ee } from "vue";
4
- import { DasFormRef as Ne, DasForm as ke } from "@das-fed/ui/packages/components/form/index";
5
- import { DasButton as Ae } from "@das-fed/ui/packages/components/button/index";
6
- import { vOverlay as Qe } from "@das-fed/ui/packages/components/overlay/index";
7
- import { createService as P } from "@das-fed/utils/create-api-service";
8
- import { DasUpload as ze } from "@das-fed/ui/packages/components/upload/index";
9
- import { DasFormItem as S } from "@das-fed/ui/packages/components/form-item/index";
10
- import { DasAutocomplete as Ue } from "@das-fed/ui/packages/components/autocomplete/index";
11
- import ne from "dayjs";
12
- import { DasImageViewer as ge } from "@das-fed/ui/packages/components/image-viewer/index";
13
- import { DasInput as Ce } from "@das-fed/ui/packages/components/input/index";
2
+ import { withInstall as Ge } from "@das-fed/utils/with-install/index";
3
+ import { ref as d, defineComponent as D, watch as O, openBlock as h, createBlock as V, unref as l, withCtx as S, createVNode as $, createElementVNode as Xe, createTextVNode as W, toDisplayString as Y, createElementBlock as I, Fragment as ee, isRef as oe, createSlots as et, createCommentVNode as J, h as C, warn as tt, getCurrentInstance as st, inject as _e, computed as x, provide as ot, resolveDynamicComponent as ce, normalizeClass as we, normalizeStyle as Ve, renderSlot as De, onMounted as nt, renderList as ye, withDirectives as at } from "vue";
4
+ import { DasFormRef as it, DasForm as lt } from "@das-fed/ui/packages/components/form/index";
5
+ import { DasButton as rt } from "@das-fed/ui/packages/components/button/index";
6
+ import { vOverlay as ut } from "@das-fed/ui/packages/components/overlay/index";
7
+ import { createService as K } from "@das-fed/utils/create-api-service";
8
+ import { DasUpload as pt } from "@das-fed/ui/packages/components/upload/index";
9
+ import { DasFormItem as M } from "@das-fed/ui/packages/components/form-item/index";
10
+ import { DasAutocomplete as gt } from "@das-fed/ui/packages/components/autocomplete/index";
11
+ import ge from "dayjs";
12
+ import { DasImageViewer as $e } from "@das-fed/ui/packages/components/image-viewer/index";
13
+ import { DasInput as ct } from "@das-fed/ui/packages/components/input/index";
14
14
  import { DasTableColumn as T } from "@das-fed/ui/packages/components/table/index";
15
- import { DasModelTableDialog as xe } from "@das-fed/ui/packages/business-components/model-table-dialog";
16
- import { getProjectInfo as de } from "@das-fed/utils/common-info";
17
- import { i18n as K } from "@das-fed/web/packages/i18n/index";
18
- import { getConfig as Je } from "@das-fed/utils/config";
19
- import { DasRichEditor as ce } from "@das-fed/ui/packages/components/rich-editor/index";
20
- import { DasCollaspe as We } from "@das-fed/ui/packages/components/collaspe/index";
21
- import { DasCollaspePanel as Ye } from "@das-fed/ui/packages/components/collapse-panel/index";
22
- import { ElCol as Ze, ElRow as He } from "element-plus";
15
+ import { DasModelTableDialog as dt } from "@das-fed/ui/packages/business-components/model-table-dialog";
16
+ import { getProjectInfo as Re } from "@das-fed/utils/common-info";
17
+ import { i18n as E } from "@das-fed/web/packages/i18n/index";
18
+ import { getConfig as mt } from "@das-fed/utils/config";
19
+ import { DasRichEditor as Se } from "@das-fed/ui/packages/components/rich-editor/index";
20
+ import { DasCollaspe as ft } from "@das-fed/ui/packages/components/collaspe/index";
21
+ import { DasCollaspePanel as vt } from "@das-fed/ui/packages/components/collapse-panel/index";
23
22
  import "element-plus/theme-chalk/el-row.css";
24
23
  import "element-plus/theme-chalk/el-col.css";
25
- const Q = "v1", Ge = P(`/workflow/form/form/${Q}`), Xe = P(`/workflow/form/formDef/${Q}`);
26
- P(`/workflow/api/user/${Q}`);
27
- const me = P(`/workflow/api/extend/${Q}`), et = P(`/workflow/flow/def/${Q}`), tt = P(`/workflow/form/customQuery/${Q}`), N = P(`/api/enterpriseright/permission/${Q}`), le = P(`/api/space-manage/space-tree/${Q}`), st = Ge.get("/formDesign"), ot = Xe.get("/get"), at = me.get("/report-config");
28
- me.get("/application-report");
29
- const it = et.get("/getBindRelationByDefKey"), nt = tt.get("/getByAlias"), lt = N.get("/organization/authTree"), rt = N.post("/user/list"), ut = N.post("/data/user-query"), pt = N.get("/role/list"), gt = N.post("/data/role-ids"), dt = N.get("/organization/organizationpage"), ct = N.get("/station/list"), mt = N.get("/position/list"), ee = N.post("/organization/detailbyids"), ft = le.get("/controller/area-children"), vt = le.get("/controller/fuzzy-tree-all"), yt = le.get("/controller/space"), te = g(""), ht = (a, e, t) => {
30
- const { setDetailData: s, getFormData: f, setFormData: d, formRule: c } = t, r = g([]), o = g([]), l = g([]), i = g(!1), u = Ne(), p = (h) => Object.keys(h).length === 0, m = async (h) => {
31
- const [y, b] = await st({ formId: h }).run();
32
- if (y) return;
33
- const q = JSON.parse(b.bos);
34
- te.value = q[0].alias, o.value.length && o.value.forEach((z) => {
35
- z.formKey === b.formKey && d(b.formKey, te.value, z.id);
24
+ const Q = "v1", yt = K(`/workflow/form/form/${Q}`), ht = K(`/workflow/form/formDef/${Q}`);
25
+ K(`/workflow/api/user/${Q}`);
26
+ const Me = K(`/workflow/api/extend/${Q}`), bt = K(`/workflow/flow/def/${Q}`), _t = K(`/workflow/form/customQuery/${Q}`), k = K(`/api/enterpriseright/permission/${Q}`), de = K(`/api/space-manage/space-tree/${Q}`), wt = yt.get("/formDesign"), Vt = ht.get("/get"), Dt = Me.get("/report-config");
27
+ Me.get("/application-report");
28
+ const $t = bt.get("/getBindRelationByDefKey"), Rt = _t.get("/getByAlias"), St = k.get("/organization/authTree"), Mt = k.post("/user/list"), Lt = k.post("/data/user-query"), Ot = k.get("/role/list"), Tt = k.post("/data/role-ids"), jt = k.get("/organization/organizationpage"), Nt = k.get("/station/list"), Ft = k.get("/position/list"), ne = k.post("/organization/detailbyids"), qt = de.get("/controller/area-children"), Bt = de.get("/controller/fuzzy-tree-all"), Pt = de.get("/controller/space"), ae = d(""), Et = (s, e, t) => {
29
+ const { setDetailData: o, getFormData: m, setFormData: g, formRule: r } = t, p = d([]), n = d([]), a = d([]), i = d(!1), u = it(), c = (y) => Object.keys(y).length === 0, f = async (y) => {
30
+ const [b, w] = await wt({ formId: y }).run();
31
+ if (b) return;
32
+ const q = JSON.parse(w.bos);
33
+ ae.value = q[0].alias, n.value.length && n.value.forEach((z) => {
34
+ z.formKey === w.formKey && g(w.formKey, ae.value, z.id);
36
35
  });
37
- const [k, W] = await ot({ formDefId: b.defId }).run();
38
- l.value = JSON.parse(W.value.expand).list, o.value.length || d(b.formKey, te.value), p(a.data) && (i.value = !0), p(a.data) || (s(a.data), a.flowKey && (r.value = a.data.button_list ? JSON.parse(a.data.button_list) : []), i.value = !0);
36
+ const [A, Z] = await Vt({ formDefId: w.defId }).run();
37
+ a.value = JSON.parse(Z.value.expand).list, n.value.length || g(w.formKey, ae.value), c(s.data) && (i.value = !0), c(s.data) || (o(s.data), s.flowKey && (p.value = s.data.button_list ? JSON.parse(s.data.button_list) : []), i.value = !0);
39
38
  };
40
39
  return {
41
40
  isShowPage: i,
42
- formJsonList: l,
43
- btnList: r,
41
+ formJsonList: a,
42
+ btnList: p,
44
43
  formRef: u,
45
- getForm: m,
44
+ getForm: f,
46
45
  getBtnSet: async () => {
47
- if (a.formConfigurationId) {
48
- const [h, y] = await at({ id: a.formConfigurationId }).run();
49
- if (h) return;
50
- o.value = y.reports, r.value = y.reports[0].buttons.filter((b) => !(a.isView && b.event !== "LINK")), m(y.reports[0].formId);
46
+ if (s.formConfigurationId) {
47
+ const [y, b] = await Dt({ id: s.formConfigurationId }).run();
48
+ if (y) return;
49
+ n.value = b.reports, p.value = b.reports[0].buttons.filter((w) => !(s.isView && w.event !== "LINK")), f(b.reports[0].formId);
51
50
  }
52
- if (a.flowKey) {
53
- const [h, y] = await it({ flowKey: a.flowKey }).run();
54
- if (h) return;
55
- m(y.pcForm.pcFormId);
51
+ if (s.flowKey) {
52
+ const [y, b] = await $t({ flowKey: s.flowKey }).run();
53
+ if (y) return;
54
+ f(b.pcForm.pcFormId);
56
55
  }
57
56
  },
58
- handleClick: (h) => {
59
- var y;
60
- (y = u.value) == null || y.validate(async (b) => {
61
- b && (e("handleClick", h, f()), h.event === "LINK" && o.value.forEach((q) => {
62
- h.eventTarget === q.formKey && (r.value = q.buttons.filter((k) => !(a.isView && k.event !== "LINK")), i.value = !1, c.value = {}, m(q.formId));
57
+ handleClick: (y) => {
58
+ var b;
59
+ (b = u.value) == null || b.validate(async (w) => {
60
+ w && (e("handleClick", y, m()), y.event === "LINK" && n.value.forEach((q) => {
61
+ y.eventTarget === q.formKey && (p.value = q.buttons.filter((A) => !(s.isView && A.event !== "LINK")), i.value = !1, r.value = {}, f(q.formId));
63
62
  }));
64
63
  });
65
64
  },
66
- validateFormData: () => new Promise((h, y) => {
67
- var b;
68
- (b = u.value) == null || b.validate((q) => {
69
- const k = f();
70
- h({
65
+ validateFormData: () => new Promise((y, b) => {
66
+ var w;
67
+ (w = u.value) == null || w.validate((q) => {
68
+ const A = m();
69
+ y({
71
70
  result: q,
72
- data: k
71
+ data: A
73
72
  });
74
73
  });
75
74
  })
76
75
  };
77
- }, $ = (a) => {
78
- var e = new RegExp("<.+?>", "g"), t = a.replace(e, "").replace(/&nbsp;/g, "");
76
+ }, j = (s) => {
77
+ var e = new RegExp("<.+?>", "g"), t = s.replace(e, "").replace(/&nbsp;/g, "");
79
78
  return t;
80
- }, Y = async (a, e) => {
81
- const [t, s] = await nt({ alias: a }).run();
82
- if (!t && s.url) {
83
- const f = e.filter((l) => l.defaultType == 2), d = g({});
84
- f.forEach((l) => {
85
- d.value[l.field] = l.defaultValue;
79
+ }, X = async (s, e) => {
80
+ const [t, o] = await Rt({ alias: s }).run();
81
+ if (!t && o.url) {
82
+ const m = e.filter((a) => a.defaultType == 2), g = d({});
83
+ m.forEach((a) => {
84
+ g.value[a.field] = a.defaultValue;
86
85
  });
87
- const c = s.requestType === "POST" ? P(s.url).post("") : P(s.url).get(""), [r, o] = await c({}, { params: d.value }).run();
88
- return r ? void 0 : o;
86
+ const r = o.requestType === "POST" ? K(o.url).post("") : K(o.url).get(""), [p, n] = await r({}, { params: g.value }).run();
87
+ return p ? void 0 : n;
89
88
  }
90
- }, j = async (a) => {
91
- const e = g(!1);
92
- return a.forEach((t) => {
89
+ }, F = async (s) => {
90
+ const e = d(!1);
91
+ return s.forEach((t) => {
93
92
  t.key === "required" && (e.value = !0);
94
93
  }), e.value;
95
- }, bt = {
94
+ }, Kt = {
96
95
  name: "attachment"
97
- }, _t = /* @__PURE__ */ D({
98
- ...bt,
96
+ }, It = /* @__PURE__ */ D({
97
+ ...Kt,
99
98
  props: {
100
99
  setting: { default: () => ({
101
100
  icon: "",
@@ -109,36 +108,36 @@ const it = et.get("/getBindRelationByDefKey"), nt = tt.get("/getByAlias"), lt =
109
108
  marginRight: { default: "80px" },
110
109
  store: {}
111
110
  },
112
- setup(a) {
113
- const e = a, { setData: t, getData: s, setFormRule: f } = e.store || {}, d = g();
114
- e.setting.options.tip && (d.value = $(e.setting.options.tip));
115
- const c = g([{ name: "111", sizeText: "9.4KB" }]);
116
- return c.value || t(e.setting.name, null), L(c, (r) => {
117
- t(e.setting.name, JSON.stringify(r));
118
- }), (r, o) => (v(), V(n(S), {
111
+ setup(s) {
112
+ const e = s, { setData: t, getData: o, setFormRule: m } = e.store || {}, g = d();
113
+ e.setting.options.tip && (g.value = j(e.setting.options.tip));
114
+ const r = d([{ name: "111", sizeText: "9.4KB" }]);
115
+ return r.value || t(e.setting.name, null), O(r, (p) => {
116
+ t(e.setting.name, JSON.stringify(p));
117
+ }), (p, n) => (h(), V(l(M), {
119
118
  col: e.span,
120
- marginRight: r.marginRight,
121
- label: r.setting.desc,
119
+ marginRight: p.marginRight,
120
+ label: p.setting.desc,
122
121
  type: "custom",
123
- helpMessage: d.value
122
+ helpMessage: g.value
124
123
  }, {
125
- default: R(() => [
126
- _(n(ze), {
124
+ default: S(() => [
125
+ $(l(pt), {
127
126
  style: { width: "100%" },
128
- modelValue: c.value,
129
- "onUpdate:modelValue": o[0] || (o[0] = (l) => c.value = l)
127
+ modelValue: r.value,
128
+ "onUpdate:modelValue": n[0] || (n[0] = (a) => r.value = a)
130
129
  }, null, 8, ["modelValue"])
131
130
  ]),
132
131
  _: 1
133
132
  }, 8, ["col", "marginRight", "label", "helpMessage"]));
134
133
  }
135
- }), fe = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
134
+ }), Le = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
136
135
  __proto__: null,
137
- default: _t
138
- }, Symbol.toStringTag, { value: "Module" })), Vt = {
136
+ default: It
137
+ }, Symbol.toStringTag, { value: "Module" })), kt = {
139
138
  name: "autocomplete"
140
- }, wt = /* @__PURE__ */ D({
141
- ...Vt,
139
+ }, At = /* @__PURE__ */ D({
140
+ ...kt,
142
141
  props: {
143
142
  setting: { default: () => ({
144
143
  icon: "",
@@ -152,54 +151,54 @@ const it = et.get("/getBindRelationByDefKey"), nt = tt.get("/getByAlias"), lt =
152
151
  marginRight: { default: "80px" },
153
152
  store: {}
154
153
  },
155
- setup(a) {
156
- const e = a, { setData: t, getData: s, setFormRule: f } = e.store || {}, d = g(!1);
157
- j(e.setting.options.validateList).then((p) => {
158
- d.value = p;
154
+ setup(s) {
155
+ const e = s, { setData: t, getData: o, setFormRule: m } = e.store || {}, g = d(!1);
156
+ F(e.setting.options.validateList).then((c) => {
157
+ g.value = c;
159
158
  });
160
- const c = e.setting.options.customQuery.valueBind ? e.setting.options.customQuery.valueBind : "value", r = e.setting.options.children ? e.setting.options.children : "children", o = !!e.setting.options.fillInFullPath, l = g([]);
161
- e.setting.options.customQuery.alias ? Y(e.setting.options.customQuery.alias, e.setting.options.customQuery.conditionfield).then((p) => {
162
- l.value = p;
163
- }) : l.value = e.setting.options.options;
164
- const i = g();
165
- e.setting.options.tip && (i.value = $(e.setting.options.tip));
166
- const u = g("");
167
- return u.value = s(e.setting.name) || u.value, u.value || t(e.setting.name, null), e.setting.options.validateList.length && f(e.setting.name, e.setting.options.validateList), L(u, (p) => {
168
- t(e.setting.name, p.toString());
169
- }), (p, m) => (v(), V(n(S), {
159
+ const r = e.setting.options.customQuery.valueBind ? e.setting.options.customQuery.valueBind : "value", p = e.setting.options.children ? e.setting.options.children : "children", n = !!e.setting.options.fillInFullPath, a = d([]);
160
+ e.setting.options.customQuery.alias ? X(e.setting.options.customQuery.alias, e.setting.options.customQuery.conditionfield).then((c) => {
161
+ a.value = c;
162
+ }) : a.value = e.setting.options.options;
163
+ const i = d();
164
+ e.setting.options.tip && (i.value = j(e.setting.options.tip));
165
+ const u = d("");
166
+ return u.value = o(e.setting.name) || u.value, u.value || t(e.setting.name, null), e.setting.options.validateList.length && m(e.setting.name, e.setting.options.validateList), O(u, (c) => {
167
+ t(e.setting.name, c.toString());
168
+ }), (c, f) => (h(), V(l(M), {
170
169
  col: e.span,
171
- marginRight: p.marginRight,
170
+ marginRight: c.marginRight,
172
171
  prop: e.setting.name,
173
172
  modelValue: u.value,
174
- "onUpdate:modelValue": m[1] || (m[1] = (w) => u.value = w),
175
- label: p.setting.desc,
173
+ "onUpdate:modelValue": f[1] || (f[1] = (R) => u.value = R),
174
+ label: c.setting.desc,
176
175
  type: "custom",
177
176
  helpMessage: i.value,
178
- required: d.value
177
+ required: g.value
179
178
  }, {
180
- default: R(() => [
181
- _(n(Ue), {
179
+ default: S(() => [
180
+ $(l(gt), {
182
181
  modelValue: u.value,
183
- "onUpdate:modelValue": m[0] || (m[0] = (w) => u.value = w),
184
- options: l.value,
182
+ "onUpdate:modelValue": f[0] || (f[0] = (R) => u.value = R),
183
+ options: a.value,
185
184
  isView: e.isView,
186
185
  width: "100%",
187
- fieldNames: { label: n(c), children: n(r) },
188
- showFullPath: n(o),
189
- placeholder: p.setting.options.placeholder,
186
+ fieldNames: { label: l(r), children: l(p) },
187
+ showFullPath: l(n),
188
+ placeholder: c.setting.options.placeholder,
190
189
  clearable: ""
191
190
  }, null, 8, ["modelValue", "options", "isView", "fieldNames", "showFullPath", "placeholder"])
192
191
  ]),
193
192
  _: 1
194
193
  }, 8, ["col", "marginRight", "prop", "modelValue", "label", "helpMessage", "required"]));
195
194
  }
196
- }), ve = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
195
+ }), Oe = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
197
196
  __proto__: null,
198
- default: wt
199
- }, Symbol.toStringTag, { value: "Module" })), Dt = {
197
+ default: At
198
+ }, Symbol.toStringTag, { value: "Module" })), Ct = {
200
199
  name: "checkbox"
201
- }, Rt = /* @__PURE__ */ D({
202
- ...Dt,
200
+ }, Qt = /* @__PURE__ */ D({
201
+ ...Ct,
203
202
  props: {
204
203
  setting: { default: () => ({
205
204
  icon: "",
@@ -213,46 +212,46 @@ const it = et.get("/getBindRelationByDefKey"), nt = tt.get("/getByAlias"), lt =
213
212
  marginRight: { default: "80px" },
214
213
  store: {}
215
214
  },
216
- setup(a) {
217
- const e = a, { setData: t, getData: s, setFormRule: f } = e.store || {}, d = g(!1);
218
- j(e.setting.options.validateList).then((u) => {
219
- d.value = u;
215
+ setup(s) {
216
+ const e = s, { setData: t, getData: o, setFormRule: m } = e.store || {}, g = d(!1);
217
+ F(e.setting.options.validateList).then((u) => {
218
+ g.value = u;
220
219
  });
221
- const c = e.setting.options.customQuery.valueBind ? e.setting.options.customQuery.valueBind : "key", r = e.setting.options.customQuery.labelBind ? e.setting.options.customQuery.labelBind : "value", o = g([]);
222
- e.setting.options.customQuery.alias ? Y(e.setting.options.customQuery.alias, e.setting.options.customQuery.conditionfield).then((u) => {
223
- o.value = u;
224
- }) : o.value = e.setting.options.options;
225
- const l = g();
226
- e.setting.options.tip && (l.value = $(e.setting.options.tip)());
227
- const i = g([]);
220
+ const r = e.setting.options.customQuery.valueBind ? e.setting.options.customQuery.valueBind : "key", p = e.setting.options.customQuery.labelBind ? e.setting.options.customQuery.labelBind : "value", n = d([]);
221
+ e.setting.options.customQuery.alias ? X(e.setting.options.customQuery.alias, e.setting.options.customQuery.conditionfield).then((u) => {
222
+ n.value = u;
223
+ }) : n.value = e.setting.options.options;
224
+ const a = d();
225
+ e.setting.options.tip && (a.value = j(e.setting.options.tip)());
226
+ const i = d([]);
228
227
  return setTimeout(() => {
229
- s(e.setting.name) && (i.value = s(e.setting.name).split(",")), e.setting.options.formulasDiyJs && (i.value = e.setting.options.formulasDiyJs.split(",")), i.value.length || i.value || t(e.setting.name, null);
230
- }, 50), e.setting.options.validateList.length && f(e.setting.name, e.setting.options.validateList), L(i, (u) => {
228
+ o(e.setting.name) && (i.value = o(e.setting.name).split(",")), e.setting.options.formulasDiyJs && (i.value = e.setting.options.formulasDiyJs.split(",")), i.value.length || i.value || t(e.setting.name, null);
229
+ }, 50), e.setting.options.validateList.length && m(e.setting.name, e.setting.options.validateList), O(i, (u) => {
231
230
  t(e.setting.name, u.toString());
232
- }), (u, p) => (v(), V(n(S), {
231
+ }), (u, c) => (h(), V(l(M), {
233
232
  col: e.span,
234
233
  marginRight: u.marginRight,
235
234
  modelValue: i.value,
236
- "onUpdate:modelValue": p[0] || (p[0] = (m) => i.value = m),
235
+ "onUpdate:modelValue": c[0] || (c[0] = (f) => i.value = f),
237
236
  layout: u.setting.options.inline ? "vertical" : "default",
238
237
  label: u.setting.desc,
239
238
  prop: e.setting.name,
240
239
  type: "checkbox",
241
- options: o.value,
240
+ options: n.value,
242
241
  isView: e.isView,
243
- optionsValueKey: n(c),
244
- optionsLabelKey: n(r),
245
- helpMessage: l.value,
246
- required: d.value
242
+ optionsValueKey: l(r),
243
+ optionsLabelKey: l(p),
244
+ helpMessage: a.value,
245
+ required: g.value
247
246
  }, null, 8, ["col", "marginRight", "modelValue", "layout", "label", "prop", "options", "isView", "optionsValueKey", "optionsLabelKey", "helpMessage", "required"]));
248
247
  }
249
- }), ye = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
248
+ }), Te = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
250
249
  __proto__: null,
251
- default: Rt
252
- }, Symbol.toStringTag, { value: "Module" })), St = {
250
+ default: Qt
251
+ }, Symbol.toStringTag, { value: "Module" })), zt = {
253
252
  name: "date"
254
- }, Mt = /* @__PURE__ */ D({
255
- ...St,
253
+ }, Ut = /* @__PURE__ */ D({
254
+ ...zt,
256
255
  props: {
257
256
  setting: { default: () => ({
258
257
  icon: "",
@@ -266,45 +265,45 @@ const it = et.get("/getBindRelationByDefKey"), nt = tt.get("/getByAlias"), lt =
266
265
  marginRight: { default: "80px" },
267
266
  store: {}
268
267
  },
269
- setup(a) {
270
- const e = a, { setData: t, getData: s, setFormRule: f } = e.store || {}, d = g(!1);
271
- j(e.setting.options.validateList).then((l) => {
272
- d.value = l;
268
+ setup(s) {
269
+ const e = s, { setData: t, getData: o, setFormRule: m } = e.store || {}, g = d(!1);
270
+ F(e.setting.options.validateList).then((a) => {
271
+ g.value = a;
273
272
  });
274
- const c = e.setting.options.format === "yyyy-MM-dd" ? "YYYY/MM/DD" : "YYYY/MM/DD HH:mm:ss", r = g();
275
- e.setting.options.tip && (r.value = $(e.setting.options.tip));
276
- const o = g();
273
+ const r = e.setting.options.format === "yyyy-MM-dd" ? "YYYY/MM/DD" : "YYYY/MM/DD HH:mm:ss", p = d();
274
+ e.setting.options.tip && (p.value = j(e.setting.options.tip));
275
+ const n = d();
277
276
  if (setTimeout(() => {
278
- o.value = s(e.setting.name) || e.setting.options.formulasDiyJs || o.value, o.value || t(e.setting.name, null);
277
+ n.value = o(e.setting.name) || e.setting.options.formulasDiyJs || n.value, n.value || t(e.setting.name, null);
279
278
  }, 50), e.setting.options.showCurrentDate) {
280
- let l = /* @__PURE__ */ new Date();
281
- l.setDate(l.getDate() + e.setting.options.day), o.value = ne(l.getTime()).format(c), t(e.setting.name, o.value);
279
+ let a = /* @__PURE__ */ new Date();
280
+ a.setDate(a.getDate() + e.setting.options.day), n.value = ge(a.getTime()).format(r), t(e.setting.name, n.value);
282
281
  }
283
- return e.setting.options.validateList.length && f(e.setting.name, e.setting.options.validateList), L(o, (l) => {
284
- t(e.setting.name, l);
285
- }), (l, i) => (v(), V(n(S), {
282
+ return e.setting.options.validateList.length && m(e.setting.name, e.setting.options.validateList), O(n, (a) => {
283
+ t(e.setting.name, a);
284
+ }), (a, i) => (h(), V(l(M), {
286
285
  col: e.span,
287
- marginRight: l.marginRight,
288
- modelValue: o.value,
289
- "onUpdate:modelValue": i[0] || (i[0] = (u) => o.value = u),
290
- label: l.setting.desc,
286
+ marginRight: a.marginRight,
287
+ modelValue: n.value,
288
+ "onUpdate:modelValue": i[0] || (i[0] = (u) => n.value = u),
289
+ label: a.setting.desc,
291
290
  prop: e.setting.name,
292
291
  type: e.setting.options.format === "yyyy/MM/dd" ? "date" : "dateTime",
293
- format: n(c),
294
- valueFormat: n(c),
292
+ format: l(r),
293
+ valueFormat: l(r),
295
294
  isView: e.isView,
296
- placeholder: l.setting.options.placeholder,
297
- helpMessage: r.value,
298
- required: d.value
295
+ placeholder: a.setting.options.placeholder,
296
+ helpMessage: p.value,
297
+ required: g.value
299
298
  }, null, 8, ["col", "marginRight", "modelValue", "label", "prop", "type", "format", "valueFormat", "isView", "placeholder", "helpMessage", "required"]));
300
299
  }
301
- }), he = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
300
+ }), je = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
302
301
  __proto__: null,
303
- default: Mt
304
- }, Symbol.toStringTag, { value: "Module" })), Lt = {
302
+ default: Ut
303
+ }, Symbol.toStringTag, { value: "Module" })), xt = {
305
304
  name: "dropdown"
306
- }, Tt = /* @__PURE__ */ D({
307
- ...Lt,
305
+ }, Jt = /* @__PURE__ */ D({
306
+ ...xt,
308
307
  props: {
309
308
  setting: { default: () => ({
310
309
  icon: "",
@@ -318,50 +317,50 @@ const it = et.get("/getBindRelationByDefKey"), nt = tt.get("/getByAlias"), lt =
318
317
  marginRight: { default: "80px" },
319
318
  store: {}
320
319
  },
321
- setup(a) {
322
- const e = a, { setData: t, getData: s, setFormRule: f } = e.store || {}, d = g(!1);
323
- j(e.setting.options.validateList).then((m) => {
324
- d.value = m;
320
+ setup(s) {
321
+ const e = s, { setData: t, getData: o, setFormRule: m } = e.store || {}, g = d(!1);
322
+ F(e.setting.options.validateList).then((f) => {
323
+ g.value = f;
325
324
  });
326
- const c = g(""), r = e.setting.options.customQuery.valueBind ? e.setting.options.customQuery.valueBind : "key", o = e.setting.options.customQuery.labelBind ? e.setting.options.customQuery.labelBind : "value", l = e.setting.options.customQuery.PId || "children", i = g([]);
327
- e.setting.options.customQuery.alias && Y(e.setting.options.customQuery.alias, e.setting.options.customQuery.conditionfield).then((m) => {
328
- i.value = m;
325
+ const r = d(""), p = e.setting.options.customQuery.valueBind ? e.setting.options.customQuery.valueBind : "key", n = e.setting.options.customQuery.labelBind ? e.setting.options.customQuery.labelBind : "value", a = e.setting.options.customQuery.PId || "children", i = d([]);
326
+ e.setting.options.customQuery.alias && X(e.setting.options.customQuery.alias, e.setting.options.customQuery.conditionfield).then((f) => {
327
+ i.value = f;
329
328
  });
330
- const u = g();
331
- e.setting.options.tip && (u.value = $(e.setting.options.tip));
332
- const p = g();
333
- return p.value = e.setting.options.multiple ? [] : "", e.setting.options.multiple && s(e.setting.name) ? p.value = s(e.setting.name).split(",") : p.value = s(e.setting.name) || p.value, p.value || t(e.setting.name, null), e.setting.options.validateList.length && f(e.setting.name, e.setting.options.validateList), L(p, (m) => {
334
- t(e.setting.name, m.toString());
335
- }), (m, w) => (v(), V(n(S), {
329
+ const u = d();
330
+ e.setting.options.tip && (u.value = j(e.setting.options.tip));
331
+ const c = d();
332
+ return c.value = e.setting.options.multiple ? [] : "", e.setting.options.multiple && o(e.setting.name) ? c.value = o(e.setting.name).split(",") : c.value = o(e.setting.name) || c.value, c.value || t(e.setting.name, null), e.setting.options.validateList.length && m(e.setting.name, e.setting.options.validateList), O(c, (f) => {
333
+ t(e.setting.name, f.toString());
334
+ }), (f, R) => (h(), V(l(M), {
336
335
  col: e.span,
337
- marginRight: m.marginRight,
338
- modelValue: p.value,
339
- "onUpdate:modelValue": w[0] || (w[0] = (F) => p.value = F),
340
- keyword: c.value,
341
- "onUpdate:keyword": w[1] || (w[1] = (F) => c.value = F),
342
- label: m.setting.desc,
336
+ marginRight: f.marginRight,
337
+ modelValue: c.value,
338
+ "onUpdate:modelValue": R[0] || (R[0] = (v) => c.value = v),
339
+ keyword: r.value,
340
+ "onUpdate:keyword": R[1] || (R[1] = (v) => r.value = v),
341
+ label: f.setting.desc,
343
342
  type: "treeSelect",
344
- "node-key": m.setting.options.customQuery.valueBind,
345
- placeholder: m.setting.options.placeholder,
346
- mode: m.setting.options.multiple ? "multiple" : "",
343
+ "node-key": f.setting.options.customQuery.valueBind,
344
+ placeholder: f.setting.options.placeholder,
345
+ mode: f.setting.options.multiple ? "multiple" : "",
347
346
  prop: e.setting.name,
348
- filter: m.setting.options.filterable,
347
+ filter: f.setting.options.filterable,
349
348
  selectAttrs: { allowClear: !0 },
350
349
  options: i.value,
351
350
  isView: e.isView,
352
351
  helpMessage: u.value,
353
- props: { label: n(o), value: n(r), children: n(l) },
354
- "check-strictly": !m.setting.options.cascade,
355
- required: d.value
352
+ props: { label: l(n), value: l(p), children: l(a) },
353
+ "check-strictly": !f.setting.options.cascade,
354
+ required: g.value
356
355
  }, null, 8, ["col", "marginRight", "modelValue", "keyword", "label", "node-key", "placeholder", "mode", "prop", "filter", "options", "isView", "helpMessage", "props", "check-strictly", "required"]));
357
356
  }
358
- }), be = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
357
+ }), Ne = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
359
358
  __proto__: null,
360
- default: Tt
361
- }, Symbol.toStringTag, { value: "Module" })), $t = { class: "form-image" }, Ot = {
359
+ default: Jt
360
+ }, Symbol.toStringTag, { value: "Module" })), Wt = { class: "form-image" }, Yt = {
362
361
  name: "imageViewer"
363
- }, Ft = /* @__PURE__ */ D({
364
- ...Ot,
362
+ }, Zt = /* @__PURE__ */ D({
363
+ ...Yt,
365
364
  props: {
366
365
  setting: { default: () => ({
367
366
  icon: "",
@@ -375,47 +374,47 @@ const it = et.get("/getBindRelationByDefKey"), nt = tt.get("/getByAlias"), lt =
375
374
  marginRight: { default: "80px" },
376
375
  store: {}
377
376
  },
378
- setup(a) {
379
- const e = a, { setData: t, getData: s, setFormRule: f } = e.store || {}, d = g(!1);
380
- j(e.setting.options.validateList).then((i) => {
381
- d.value = i;
377
+ setup(s) {
378
+ const e = s, { setData: t, getData: o, setFormRule: m } = e.store || {}, g = d(!1);
379
+ F(e.setting.options.validateList).then((i) => {
380
+ g.value = i;
382
381
  });
383
- const c = g("normal");
384
- e.isView && (c.value = "info");
385
- const r = g();
386
- e.setting.options.tip && (r.value = $(e.setting.options.tip));
387
- const o = g();
388
- o.value = e.setting.options.file.limit > 1 ? [] : "", e.setting.options.file.limit > 1 && s(e.setting.name) ? o.value = s(e.setting.name).split(",") : o.value = s(e.setting.name) || o.value, o.value || t(e.setting.name, null);
389
- const l = (i) => {
382
+ const r = d("normal");
383
+ e.isView && (r.value = "info");
384
+ const p = d();
385
+ e.setting.options.tip && (p.value = j(e.setting.options.tip));
386
+ const n = d();
387
+ n.value = e.setting.options.file.limit > 1 ? [] : "", e.setting.options.file.limit > 1 && o(e.setting.name) ? n.value = o(e.setting.name).split(",") : n.value = o(e.setting.name) || n.value, n.value || t(e.setting.name, null);
388
+ const a = (i) => {
390
389
  setTimeout(() => {
391
- t(e.setting.name, o.value.toString());
390
+ t(e.setting.name, n.value.toString());
392
391
  }, 100);
393
392
  };
394
- return e.setting.options.validateList.length && f(e.setting.name, e.setting.options.validateList), L(o.value, (i) => {
395
- const u = i.map((p) => {
396
- let m = "";
397
- return p.indexOf("/oss/") != -1 ? m = p : m = `/oss/${p}`, m;
393
+ return e.setting.options.validateList.length && m(e.setting.name, e.setting.options.validateList), O(n.value, (i) => {
394
+ const u = i.map((c) => {
395
+ let f = "";
396
+ return c.indexOf("/oss/") != -1 ? f = c : f = `/oss/${c}`, f;
398
397
  });
399
398
  setTimeout(() => {
400
399
  t(e.setting.name, u.join(","));
401
400
  }, 100);
402
- }), (i, u) => (v(), V(n(S), {
403
- modelValue: o.value,
404
- "onUpdate:modelValue": u[2] || (u[2] = (p) => o.value = p),
401
+ }), (i, u) => (h(), V(l(M), {
402
+ modelValue: n.value,
403
+ "onUpdate:modelValue": u[2] || (u[2] = (c) => n.value = c),
405
404
  "margin-bottom": "0",
406
405
  prop: e.setting.name,
407
406
  label: i.setting.desc,
408
407
  type: "custom",
409
- helpMessage: r.value,
410
- required: d.value
408
+ helpMessage: p.value,
409
+ required: g.value
411
410
  }, {
412
- default: R(() => [
413
- Be("div", $t, [
414
- _(n(ge), {
415
- modelValue: o.value,
416
- "onUpdate:modelValue": u[0] || (u[0] = (p) => o.value = p),
417
- status: c.value,
418
- "onUpdate:status": u[1] || (u[1] = (p) => c.value = p),
411
+ default: S(() => [
412
+ Xe("div", Wt, [
413
+ $(l($e), {
414
+ modelValue: n.value,
415
+ "onUpdate:modelValue": u[0] || (u[0] = (c) => n.value = c),
416
+ status: r.value,
417
+ "onUpdate:status": u[1] || (u[1] = (c) => r.value = c),
419
418
  maxSize: "6",
420
419
  "limit-num": i.setting.options.file.limit,
421
420
  prop: e.setting.name,
@@ -427,26 +426,26 @@ const it = et.get("/getBindRelationByDefKey"), nt = tt.get("/getByAlias"), lt =
427
426
  "show-image-name": "",
428
427
  needDownloadBtn: i.setting.options.file.allowDownload == !0,
429
428
  needPreview: i.setting.options.file.allowPreview == !0,
430
- onImageUpload: l,
431
- required: d.value
429
+ onImageUpload: a,
430
+ required: g.value
432
431
  }, null, 8, ["modelValue", "status", "limit-num", "prop", "needDownloadBtn", "needPreview", "required"])
433
432
  ])
434
433
  ]),
435
434
  _: 1
436
435
  }, 8, ["modelValue", "prop", "label", "helpMessage", "required"]));
437
436
  }
438
- }), re = (a, e) => {
439
- const t = a.__vccOpts || a;
440
- for (const [s, f] of e)
441
- t[s] = f;
437
+ }), me = (s, e) => {
438
+ const t = s.__vccOpts || s;
439
+ for (const [o, m] of e)
440
+ t[o] = m;
442
441
  return t;
443
- }, jt = /* @__PURE__ */ re(Ft, [["__scopeId", "data-v-e26b3898"]]), _e = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
442
+ }, Ht = /* @__PURE__ */ me(Zt, [["__scopeId", "data-v-e26b3898"]]), Fe = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
444
443
  __proto__: null,
445
- default: jt
446
- }, Symbol.toStringTag, { value: "Module" })), qt = {
444
+ default: Ht
445
+ }, Symbol.toStringTag, { value: "Module" })), Gt = {
447
446
  name: "input"
448
- }, Bt = /* @__PURE__ */ D({
449
- ...qt,
447
+ }, Xt = /* @__PURE__ */ D({
448
+ ...Gt,
450
449
  props: {
451
450
  setting: { default: () => ({
452
451
  icon: "",
@@ -460,43 +459,43 @@ const it = et.get("/getBindRelationByDefKey"), nt = tt.get("/getByAlias"), lt =
460
459
  marginRight: { default: "80px" },
461
460
  store: {}
462
461
  },
463
- setup(a) {
464
- const e = a, { setData: t, getData: s, setFormRule: f } = e.store || {}, d = g(!1);
465
- j(e.setting.options.validateList).then((o) => {
466
- d.value = o;
462
+ setup(s) {
463
+ const e = s, { setData: t, getData: o, setFormRule: m } = e.store || {}, g = d(!1);
464
+ F(e.setting.options.validateList).then((n) => {
465
+ g.value = n;
467
466
  });
468
- const c = g();
469
- e.setting.options.tip && (c.value = $(e.setting.options.tip));
470
- const r = g("");
467
+ const r = d();
468
+ e.setting.options.tip && (r.value = j(e.setting.options.tip));
469
+ const p = d("");
471
470
  return setTimeout(() => {
472
- r.value = s(e.setting.name) || e.setting.options.formulasDiyJs || r.value, r.value || t(e.setting.name, null);
473
- }, 50), e.setting.options.validateList.length && f(e.setting.name, e.setting.options.validateList), L(r, (o) => {
474
- e.setting.options.dataType === "number" && !isNaN(o) ? t(e.setting.name, Number(o)) : t(e.setting.name, o);
475
- }), (o, l) => (v(), V(n(S), {
471
+ p.value = o(e.setting.name) || e.setting.options.formulasDiyJs || p.value, p.value || t(e.setting.name, null);
472
+ }, 50), e.setting.options.validateList.length && m(e.setting.name, e.setting.options.validateList), O(p, (n) => {
473
+ e.setting.options.dataType === "number" && !isNaN(n) ? t(e.setting.name, Number(n)) : t(e.setting.name, n);
474
+ }), (n, a) => (h(), V(l(M), {
476
475
  col: e.span,
477
- marginRight: o.marginRight,
476
+ marginRight: n.marginRight,
478
477
  prop: e.setting.name,
479
- modelValue: r.value,
480
- "onUpdate:modelValue": l[1] || (l[1] = (i) => r.value = i),
481
- label: o.setting.desc,
478
+ modelValue: p.value,
479
+ "onUpdate:modelValue": a[1] || (a[1] = (i) => p.value = i),
480
+ label: n.setting.desc,
482
481
  type: "custom",
483
- helpMessage: c.value,
484
- required: d.value
482
+ helpMessage: r.value,
483
+ required: g.value
485
484
  }, {
486
- default: R(() => [
487
- _(n(Ce), {
488
- modelValue: r.value,
489
- "onUpdate:modelValue": l[0] || (l[0] = (i) => r.value = i),
490
- width: o.setting.options.width,
491
- disabled: o.setting.options.isInputEdit,
492
- isView: o.setting.options.isReadonly || e.isView,
493
- placeholder: o.setting.options.placeholder
485
+ default: S(() => [
486
+ $(l(ct), {
487
+ modelValue: p.value,
488
+ "onUpdate:modelValue": a[0] || (a[0] = (i) => p.value = i),
489
+ width: n.setting.options.width,
490
+ disabled: n.setting.options.isInputEdit,
491
+ isView: n.setting.options.isReadonly || e.isView,
492
+ placeholder: n.setting.options.placeholder
494
493
  }, {
495
- prepend: R(() => [
496
- x(J(o.setting.options.bindPreAndSufFixjson.preFix), 1)
494
+ prepend: S(() => [
495
+ W(Y(n.setting.options.bindPreAndSufFixjson.preFix), 1)
497
496
  ]),
498
- append: R(() => [
499
- x(J(o.setting.options.bindPreAndSufFixjson.sufSix), 1)
497
+ append: S(() => [
498
+ W(Y(n.setting.options.bindPreAndSufFixjson.sufSix), 1)
500
499
  ]),
501
500
  _: 1
502
501
  }, 8, ["modelValue", "width", "disabled", "isView", "placeholder"])
@@ -504,13 +503,13 @@ const it = et.get("/getBindRelationByDefKey"), nt = tt.get("/getByAlias"), lt =
504
503
  _: 1
505
504
  }, 8, ["col", "marginRight", "prop", "modelValue", "label", "helpMessage", "required"]));
506
505
  }
507
- }), Ve = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
506
+ }), qe = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
508
507
  __proto__: null,
509
- default: Bt
510
- }, Symbol.toStringTag, { value: "Module" })), It = {
508
+ default: Xt
509
+ }, Symbol.toStringTag, { value: "Module" })), es = {
511
510
  name: "number"
512
- }, Kt = /* @__PURE__ */ D({
513
- ...It,
511
+ }, ts = /* @__PURE__ */ D({
512
+ ...es,
514
513
  props: {
515
514
  setting: { default: () => ({
516
515
  icon: "",
@@ -524,43 +523,43 @@ const it = et.get("/getBindRelationByDefKey"), nt = tt.get("/getByAlias"), lt =
524
523
  marginRight: { default: "80px" },
525
524
  store: {}
526
525
  },
527
- setup(a) {
528
- const e = a, { setData: t, getData: s, setFormRule: f } = e.store || {}, d = g(!1);
529
- j(e.setting.options.validateList).then((o) => {
530
- d.value = o;
526
+ setup(s) {
527
+ const e = s, { setData: t, getData: o, setFormRule: m } = e.store || {}, g = d(!1);
528
+ F(e.setting.options.validateList).then((n) => {
529
+ g.value = n;
531
530
  });
532
- const c = g();
533
- e.setting.options.tip && (c.value = $(e.setting.options.tip));
534
- const r = g(0);
531
+ const r = d();
532
+ e.setting.options.tip && (r.value = j(e.setting.options.tip));
533
+ const p = d(0);
535
534
  return setTimeout(() => {
536
- r.value = s(e.setting.name) || e.setting.options.formulasDiyJs || r.value, r.value || t(e.setting.name, null);
537
- }, 50), e.setting.options.validateList.length && f(e.setting.name, e.setting.options.validateList), L(r, (o) => {
538
- t(e.setting.name, o);
539
- }), (o, l) => (v(), V(n(S), {
535
+ p.value = o(e.setting.name) || e.setting.options.formulasDiyJs || p.value, p.value || t(e.setting.name, null);
536
+ }, 50), e.setting.options.validateList.length && m(e.setting.name, e.setting.options.validateList), O(p, (n) => {
537
+ t(e.setting.name, n);
538
+ }), (n, a) => (h(), V(l(M), {
540
539
  col: e.span,
541
- marginRight: o.marginRight,
542
- modelValue: r.value,
543
- "onUpdate:modelValue": l[0] || (l[0] = (i) => r.value = i),
540
+ marginRight: n.marginRight,
541
+ modelValue: p.value,
542
+ "onUpdate:modelValue": a[0] || (a[0] = (i) => p.value = i),
544
543
  style: { width: "100%" },
545
- label: o.setting.desc,
544
+ label: n.setting.desc,
546
545
  type: "inputNumber",
547
546
  prop: e.setting.name,
548
- max: o.setting.options.max,
549
- min: o.setting.options.min,
550
- step: o.setting.options.step,
547
+ max: n.setting.options.max,
548
+ min: n.setting.options.min,
549
+ step: n.setting.options.step,
551
550
  isView: e.isView,
552
- precision: o.setting.options.decimalDigits,
553
- helpMessage: c.value,
554
- required: d.value
551
+ precision: n.setting.options.decimalDigits,
552
+ helpMessage: r.value,
553
+ required: g.value
555
554
  }, null, 8, ["col", "marginRight", "modelValue", "label", "prop", "max", "min", "step", "isView", "precision", "helpMessage", "required"]));
556
555
  }
557
- }), we = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
556
+ }), Be = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
558
557
  __proto__: null,
559
- default: Kt
560
- }, Symbol.toStringTag, { value: "Module" })), Pt = {
558
+ default: ts
559
+ }, Symbol.toStringTag, { value: "Module" })), ss = {
561
560
  name: "radio"
562
- }, Et = /* @__PURE__ */ D({
563
- ...Pt,
561
+ }, os = /* @__PURE__ */ D({
562
+ ...ss,
564
563
  props: {
565
564
  setting: { default: () => ({
566
565
  icon: "",
@@ -574,47 +573,47 @@ const it = et.get("/getBindRelationByDefKey"), nt = tt.get("/getByAlias"), lt =
574
573
  marginRight: { default: "80px" },
575
574
  store: {}
576
575
  },
577
- setup(a) {
578
- const e = a, { setData: t, getData: s, setFormRule: f } = e.store || {}, d = g(!1);
579
- j(e.setting.options.validateList).then((u) => {
580
- d.value = u;
576
+ setup(s) {
577
+ const e = s, { setData: t, getData: o, setFormRule: m } = e.store || {}, g = d(!1);
578
+ F(e.setting.options.validateList).then((u) => {
579
+ g.value = u;
581
580
  });
582
- const c = e.setting.options.customQuery.valueBind ? e.setting.options.customQuery.valueBind : "key", r = e.setting.options.customQuery.labelBind ? e.setting.options.customQuery.labelBind : "value", o = g([]);
583
- e.setting.options.customQuery.alias ? Y(e.setting.options.customQuery.alias, e.setting.options.customQuery.conditionfield).then((u) => {
584
- o.value = u;
585
- }) : o.value = e.setting.options.options;
586
- const l = g();
587
- e.setting.options.tip && (l.value = $(e.setting.options.tip));
588
- const i = g(null);
581
+ const r = e.setting.options.customQuery.valueBind ? e.setting.options.customQuery.valueBind : "key", p = e.setting.options.customQuery.labelBind ? e.setting.options.customQuery.labelBind : "value", n = d([]);
582
+ e.setting.options.customQuery.alias ? X(e.setting.options.customQuery.alias, e.setting.options.customQuery.conditionfield).then((u) => {
583
+ n.value = u;
584
+ }) : n.value = e.setting.options.options;
585
+ const a = d();
586
+ e.setting.options.tip && (a.value = j(e.setting.options.tip));
587
+ const i = d(null);
589
588
  return setTimeout(() => {
590
- i.value = s(e.setting.name) || e.setting.options.formulasDiyJs || i.value, i.value || t(e.setting.name, null);
591
- }, 50), e.setting.options.validateList.length && f(e.setting.name, e.setting.options.validateList), L(i, (u) => {
589
+ i.value = o(e.setting.name) || e.setting.options.formulasDiyJs || i.value, i.value || t(e.setting.name, null);
590
+ }, 50), e.setting.options.validateList.length && m(e.setting.name, e.setting.options.validateList), O(i, (u) => {
592
591
  t(e.setting.name, u);
593
- }), (u, p) => (v(), V(n(S), {
592
+ }), (u, c) => (h(), V(l(M), {
594
593
  col: e.span,
595
594
  marginRight: u.marginRight,
596
595
  modelValue: i.value,
597
- "onUpdate:modelValue": p[0] || (p[0] = (m) => i.value = m),
596
+ "onUpdate:modelValue": c[0] || (c[0] = (f) => i.value = f),
598
597
  layout: u.setting.options.inline ? "vertical" : "default",
599
598
  label: u.setting.desc,
600
599
  type: "radio",
601
600
  prop: e.setting.name,
602
- options: o.value,
601
+ options: n.value,
603
602
  isView: e.isView,
604
- optionsValueKey: n(c),
605
- optionsLabelKey: n(r),
606
- helpMessage: l.value,
607
- required: d.value,
603
+ optionsValueKey: l(r),
604
+ optionsLabelKey: l(p),
605
+ helpMessage: a.value,
606
+ required: g.value,
608
607
  isSetTimeout: !0
609
608
  }, null, 8, ["col", "marginRight", "modelValue", "layout", "label", "prop", "options", "isView", "optionsValueKey", "optionsLabelKey", "helpMessage", "required"]));
610
609
  }
611
- }), De = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
610
+ }), Pe = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
612
611
  __proto__: null,
613
- default: Et
614
- }, Symbol.toStringTag, { value: "Module" })), Nt = {
612
+ default: os
613
+ }, Symbol.toStringTag, { value: "Module" })), ns = {
615
614
  name: "select"
616
- }, kt = /* @__PURE__ */ D({
617
- ...Nt,
615
+ }, as = /* @__PURE__ */ D({
616
+ ...ns,
618
617
  props: {
619
618
  setting: { default: () => ({
620
619
  icon: "",
@@ -628,27 +627,27 @@ const it = et.get("/getBindRelationByDefKey"), nt = tt.get("/getByAlias"), lt =
628
627
  marginRight: { default: "80px" },
629
628
  store: {}
630
629
  },
631
- setup(a) {
632
- const e = a, { setData: t, getData: s, setFormRule: f } = e.store || {}, d = g(!1);
633
- j(e.setting.options.validateList).then((u) => {
634
- d.value = u;
630
+ setup(s) {
631
+ const e = s, { setData: t, getData: o, setFormRule: m } = e.store || {}, g = d(!1);
632
+ F(e.setting.options.validateList).then((u) => {
633
+ g.value = u;
635
634
  });
636
- const c = e.setting.options.customQuery.valueBind ? e.setting.options.customQuery.valueBind : "key", r = e.setting.options.customQuery.labelBind ? e.setting.options.customQuery.labelBind : "value", o = g([]);
637
- e.setting.options.customQuery.alias ? Y(e.setting.options.customQuery.alias, e.setting.options.customQuery.conditionfield).then((u) => {
638
- o.value = u;
639
- }) : o.value = e.setting.options.options;
640
- const l = g();
641
- e.setting.options.tip && (l.value = $(e.setting.options.tip));
642
- const i = g();
635
+ const r = e.setting.options.customQuery.valueBind ? e.setting.options.customQuery.valueBind : "key", p = e.setting.options.customQuery.labelBind ? e.setting.options.customQuery.labelBind : "value", n = d([]);
636
+ e.setting.options.customQuery.alias ? X(e.setting.options.customQuery.alias, e.setting.options.customQuery.conditionfield).then((u) => {
637
+ n.value = u;
638
+ }) : n.value = e.setting.options.options;
639
+ const a = d();
640
+ e.setting.options.tip && (a.value = j(e.setting.options.tip));
641
+ const i = d();
643
642
  return i.value = e.setting.options.multiple ? [] : "", setTimeout(() => {
644
- e.setting.options.multiple && (s(e.setting.name) || e.setting.options.formulasDiyJs) ? (s(e.setting.name) && (i.value = s(e.setting.name).split(",")), e.setting.options.formulasDiyJs && (i.value = e.setting.options.formulasDiyJs.split(","))) : i.value = s(e.setting.name) || e.setting.options.formulasDiyJs || i.value, i.value || t(e.setting.name, null);
645
- }, 50), e.setting.options.validateList.length && f(e.setting.name, e.setting.options.validateList), L(i, (u) => {
643
+ e.setting.options.multiple && (o(e.setting.name) || e.setting.options.formulasDiyJs) ? (o(e.setting.name) && (i.value = o(e.setting.name).split(",")), e.setting.options.formulasDiyJs && (i.value = e.setting.options.formulasDiyJs.split(","))) : i.value = o(e.setting.name) || e.setting.options.formulasDiyJs || i.value, i.value || t(e.setting.name, null);
644
+ }, 50), e.setting.options.validateList.length && m(e.setting.name, e.setting.options.validateList), O(i, (u) => {
646
645
  t(e.setting.name, u.toString());
647
- }), (u, p) => (v(), V(n(S), {
646
+ }), (u, c) => (h(), V(l(M), {
648
647
  col: e.span,
649
648
  marginRight: u.marginRight,
650
649
  modelValue: i.value,
651
- "onUpdate:modelValue": p[0] || (p[0] = (m) => i.value = m),
650
+ "onUpdate:modelValue": c[0] || (c[0] = (f) => i.value = f),
652
651
  label: u.setting.desc,
653
652
  type: "select",
654
653
  prop: e.setting.name,
@@ -657,60 +656,60 @@ const it = et.get("/getBindRelationByDefKey"), nt = tt.get("/getByAlias"), lt =
657
656
  showSearch: u.setting.options.filterable,
658
657
  allowClear: !0,
659
658
  isView: e.isView,
660
- options: o.value,
661
- optionsValueKey: n(c),
662
- optionsLabelKey: n(r),
663
- helpMessage: l.value,
664
- required: d.value
659
+ options: n.value,
660
+ optionsValueKey: l(r),
661
+ optionsLabelKey: l(p),
662
+ helpMessage: a.value,
663
+ required: g.value
665
664
  }, null, 8, ["col", "marginRight", "modelValue", "label", "prop", "placeholder", "mode", "showSearch", "isView", "options", "optionsValueKey", "optionsLabelKey", "helpMessage", "required"]));
666
665
  }
667
- }), Re = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
666
+ }), Ee = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
668
667
  __proto__: null,
669
- default: kt
670
- }, Symbol.toStringTag, { value: "Module" })), At = (a) => {
671
- const e = de().id, t = g(!1), s = a.options.selector.type.alias.replace("eip-", "").replace("-selector", ""), f = g([]), d = g(""), c = {
672
- user: K("用户选择器").value,
673
- org: K("组织选择器").value,
674
- role: K("角色选择器").value,
675
- job: K("职务选择器").value,
676
- post: K("岗位选择器").value
677
- }, r = {
668
+ default: as
669
+ }, Symbol.toStringTag, { value: "Module" })), is = (s) => {
670
+ const e = Re().id, t = d(!1), o = s.options.selector.type.alias.replace("eip-", "").replace("-selector", ""), m = d([]), g = d(""), r = {
671
+ user: E("用户选择器").value,
672
+ org: E("组织选择器").value,
673
+ role: E("角色选择器").value,
674
+ job: E("职务选择器").value,
675
+ post: E("岗位选择器").value
676
+ }, p = {
678
677
  user: "id",
679
678
  org: "id",
680
679
  role: "id",
681
680
  job: "positionId",
682
681
  post: "stationId"
683
- }, o = {
684
- 1: K("正常").value,
685
- 2: K("锁定").value,
686
- 3: K("禁用").value
687
- }, l = {
688
- 0: K("普通").value,
689
- 1: K("管理员").value
682
+ }, n = {
683
+ 1: E("正常").value,
684
+ 2: E("锁定").value,
685
+ 3: E("禁用").value
686
+ }, a = {
687
+ 0: E("普通").value,
688
+ 1: E("管理员").value
690
689
  }, i = {
691
- 0: K("无效").value,
692
- 1: K("有效").value
690
+ 0: E("无效").value,
691
+ 1: E("有效").value
693
692
  }, u = {
694
- user: ut,
695
- org: ee,
696
- role: gt,
697
- job: ee,
698
- post: ee
699
- }, p = c[s], m = g({});
700
- return s === "org" ? m.value = {
693
+ user: Lt,
694
+ org: ne,
695
+ role: Tt,
696
+ job: ne,
697
+ post: ne
698
+ }, c = r[o], f = d({});
699
+ return o === "org" ? f.value = {
701
700
  left: !1,
702
701
  content: {}
703
- } : m.value = {
702
+ } : f.value = {
704
703
  left: {
705
- api: lt,
704
+ api: St,
706
705
  params: {
707
706
  projectId: e,
708
707
  parentId: e
709
708
  }
710
709
  },
711
710
  content: {}
712
- }, s === "user" && (m.value.content = {
713
- api: rt,
711
+ }, o === "user" && (f.value.content = {
712
+ api: Mt,
714
713
  searchKey: "groupId",
715
714
  params: {
716
715
  status: 1
@@ -718,13 +717,13 @@ const it = et.get("/getBindRelationByDefKey"), nt = tt.get("/getByAlias"), lt =
718
717
  selectListProps: {
719
718
  data: []
720
719
  }
721
- }), s === "org" && (m.value.content = {
722
- api: dt,
720
+ }), o === "org" && (f.value.content = {
721
+ api: jt,
723
722
  selectListProps: {
724
723
  data: []
725
724
  }
726
- }), s === "role" && (m.value.content = {
727
- api: pt,
725
+ }), o === "role" && (f.value.content = {
726
+ api: Ot,
728
727
  searchKey: "orgId",
729
728
  params: {
730
729
  status: 1
@@ -732,8 +731,8 @@ const it = et.get("/getBindRelationByDefKey"), nt = tt.get("/getByAlias"), lt =
732
731
  selectListProps: {
733
732
  data: []
734
733
  }
735
- }), s === "job" && (m.value.content = {
736
- api: mt,
734
+ }), o === "job" && (f.value.content = {
735
+ api: Ft,
737
736
  searchKey: "groupId",
738
737
  props: {
739
738
  rowKey: "positionId"
@@ -741,8 +740,8 @@ const it = et.get("/getBindRelationByDefKey"), nt = tt.get("/getByAlias"), lt =
741
740
  selectListProps: {
742
741
  data: []
743
742
  }
744
- }), s === "post" && (m.value.content = {
745
- api: ct,
743
+ }), o === "post" && (f.value.content = {
744
+ api: Nt,
746
745
  searchKey: "groupId",
747
746
  props: {
748
747
  rowKey: "stationId"
@@ -750,77 +749,77 @@ const it = et.get("/getBindRelationByDefKey"), nt = tt.get("/getByAlias"), lt =
750
749
  selectListProps: {
751
750
  data: []
752
751
  }
753
- }), m.value.content.multiple = !a.options.selector.isSingle, {
752
+ }), f.value.content.multiple = !s.options.selector.isSingle, {
754
753
  dialogVisible: t,
755
- title: p,
756
- searchName: d,
757
- selectorType: s,
758
- selectOptions: f,
759
- tableOptions: m,
760
- userStatusMap: o,
761
- roleTypeMap: l,
754
+ title: c,
755
+ searchName: g,
756
+ selectorType: o,
757
+ selectOptions: m,
758
+ tableOptions: f,
759
+ userStatusMap: n,
760
+ roleTypeMap: a,
762
761
  roleStatusMap: i,
763
762
  openDialog: () => {
764
- d.value = "", t.value = !0;
765
- let h = r[s];
766
- m.value.content.selectListProps.data = f.value.map((y) => ({ name: y.label, [h]: y.value }));
763
+ g.value = "", t.value = !0;
764
+ let y = p[o];
765
+ f.value.content.selectListProps.data = m.value.map((b) => ({ name: b.label, [y]: b.value }));
767
766
  },
768
- confirm: (h) => {
769
- let y = r[s];
770
- f.value = h.map((b) => ({ label: b.name, value: b[y] }));
767
+ confirm: (y) => {
768
+ let b = p[o];
769
+ m.value = y.map((w) => ({ label: w.name, value: w[b] }));
771
770
  },
772
- getDetail: async (h) => {
773
- const y = u[s];
774
- let b = {};
775
- const q = h.split(",");
776
- s === "user" && (b = { userIds: q }), s === "role" ? b = { ids: q } : b = q;
777
- const [k, W] = await y().run(b);
778
- k || (f.value = W.map((z) => ({ label: z.name, value: z.id })));
771
+ getDetail: async (y) => {
772
+ const b = u[o];
773
+ let w = {};
774
+ const q = y.split(",");
775
+ o === "user" && (w = { userIds: q }), o === "role" ? w = { ids: q } : w = q;
776
+ const [A, Z] = await b().run(w);
777
+ A || (m.value = Z.map((z) => ({ label: z.name, value: z.id })));
779
778
  }
780
779
  };
781
- }, Qt = () => {
782
- const a = g(""), e = g(""), t = g([]), s = g("");
780
+ }, ls = () => {
781
+ const s = d(""), e = d(""), t = d([]), o = d("");
783
782
  return {
784
- spacePath: a,
783
+ spacePath: s,
785
784
  spaceName: e,
786
785
  spaceTreeData: t,
787
- searchSpace: s,
788
- changeSpace: (o, l) => {
789
- a.value = l[0].path, e.value = l[0].pathName;
786
+ searchSpace: o,
787
+ changeSpace: (n, a) => {
788
+ s.value = a[0].path, e.value = a[0].pathName;
790
789
  },
791
- spaceLoad: async (o) => {
792
- let l = {
790
+ spaceLoad: async (n) => {
791
+ let a = {
793
792
  pageSize: 1e4,
794
793
  pageIndex: 1,
795
- projectId: de().id,
794
+ projectId: Re().id,
796
795
  //项目id
797
796
  spaceId: ""
798
797
  // orgId:getProjectInfo().id
799
798
  };
800
- l.spaceId = o != null && o.id ? o.id : "";
801
- let i = ft;
802
- const [u, p] = await i(l).run();
803
- return u ? {} : p;
799
+ a.spaceId = n != null && n.id ? n.id : "";
800
+ let i = qt;
801
+ const [u, c] = await i(a).run();
802
+ return u ? {} : c;
804
803
  },
805
- filterSpaceTree: async (o) => {
806
- if (!o) return [];
807
- let l = vt;
804
+ filterSpaceTree: async (n) => {
805
+ if (!n) return [];
806
+ let a = Bt;
808
807
  const i = {
809
- name: o
810
- }, [u, p] = await l(i).run();
811
- return u ? {} : (p.forEach((m) => {
812
- m.path.startsWith("/0") && (m.path = m.path.slice(2) + `/${m.id}`), m._name = m.nodeName ? m.nodeName : m.name;
813
- }), p);
808
+ name: n
809
+ }, [u, c] = await a(i).run();
810
+ return u ? {} : (c.forEach((f) => {
811
+ f.path.startsWith("/0") && (f.path = f.path.slice(2) + `/${f.id}`), f._name = f.nodeName ? f.nodeName : f.name;
812
+ }), c);
814
813
  },
815
- getSpaceDetail: async (o) => {
816
- const [l, i] = await yt().run({ spaceId: o });
817
- l || (a.value = i.path);
814
+ getSpaceDetail: async (n) => {
815
+ const [a, i] = await Pt().run({ spaceId: n });
816
+ a || (s.value = i.path);
818
817
  }
819
818
  };
820
- }, zt = {
819
+ }, rs = {
821
820
  name: "selector"
822
- }, Ut = /* @__PURE__ */ D({
823
- ...zt,
821
+ }, us = /* @__PURE__ */ D({
822
+ ...rs,
824
823
  props: {
825
824
  setting: { default: () => ({
826
825
  icon: "",
@@ -834,149 +833,149 @@ const it = et.get("/getBindRelationByDefKey"), nt = tt.get("/getByAlias"), lt =
834
833
  marginRight: { default: "80px" },
835
834
  store: {}
836
835
  },
837
- setup(a) {
838
- const e = a, { setData: t, getData: s, setFormRule: f } = e.store || {}, {
839
- dialogVisible: d,
840
- title: c,
841
- searchName: r,
842
- tableOptions: o,
843
- selectorType: l,
836
+ setup(s) {
837
+ const e = s, { setData: t, getData: o, setFormRule: m } = e.store || {}, {
838
+ dialogVisible: g,
839
+ title: r,
840
+ searchName: p,
841
+ tableOptions: n,
842
+ selectorType: a,
844
843
  selectOptions: i,
845
844
  userStatusMap: u,
846
- roleTypeMap: p,
847
- roleStatusMap: m,
848
- openDialog: w,
849
- confirm: F,
850
- getDetail: C
851
- } = At(e.setting), { spacePath: h, spaceName: y, searchSpace: b, changeSpace: q, spaceLoad: k, filterSpaceTree: W, getSpaceDetail: z } = Qt(), H = g(!1);
852
- j(e.setting.options.validateList).then((B) => {
853
- H.value = B;
845
+ roleTypeMap: c,
846
+ roleStatusMap: f,
847
+ openDialog: R,
848
+ confirm: v,
849
+ getDetail: _
850
+ } = is(e.setting), { spacePath: y, spaceName: b, searchSpace: w, changeSpace: q, spaceLoad: A, filterSpaceTree: Z, getSpaceDetail: z } = ls(), te = d(!1);
851
+ F(e.setting.options.validateList).then((B) => {
852
+ te.value = B;
854
853
  });
855
- const M = g(""), G = g();
856
- return e.setting.options.tip && (G.value = $(e.setting.options.tip)), e.setting.options.validateList.length && f(e.setting.name, e.setting.options.validateList), l !== "position" ? (M.value = s(e.setting.name) ? s(e.setting.name) : M.value, M.value && C(M.value), M.value.length || t(e.setting.name, null), L(i, (B) => {
857
- M.value = B.map((I) => I.value).toString(), t(e.setting.name, M.value);
858
- })) : (M.value = s(e.setting.name) ? s(e.setting.name) : M.value, M.value && z(M.value), M.value || t(e.setting.name, null), L(M, (B) => {
854
+ const L = d(""), se = d();
855
+ return e.setting.options.tip && (se.value = j(e.setting.options.tip)), e.setting.options.validateList.length && m(e.setting.name, e.setting.options.validateList), a !== "position" ? (L.value = o(e.setting.name) ? o(e.setting.name) : L.value, L.value && _(L.value), L.value.length || t(e.setting.name, null), O(i, (B) => {
856
+ L.value = B.map((P) => P.value).toString(), t(e.setting.name, L.value);
857
+ })) : (L.value = o(e.setting.name) ? o(e.setting.name) : L.value, L.value && z(L.value), L.value || t(e.setting.name, null), O(L, (B) => {
859
858
  t(e.setting.name, B);
860
- }), L(y, (B) => {
859
+ }), O(b, (B) => {
861
860
  t(e.setting.options.selector.type.positionName, B);
862
- })), (B, I) => (v(), E(Z, null, [
863
- n(l) != "position" ? (v(), V(n(S), {
861
+ })), (B, P) => (h(), I(ee, null, [
862
+ l(a) != "position" ? (h(), V(l(M), {
864
863
  key: 0,
865
864
  col: e.span,
866
865
  marginRight: B.marginRight,
867
- modelValue: M.value,
868
- "onUpdate:modelValue": I[1] || (I[1] = (O) => M.value = O),
866
+ modelValue: L.value,
867
+ "onUpdate:modelValue": P[1] || (P[1] = (N) => L.value = N),
869
868
  prop: e.setting.name,
870
869
  label: B.setting.desc,
871
870
  type: "inputDialogSelect",
872
- options: n(i),
873
- helpMessage: G.value,
871
+ options: l(i),
872
+ helpMessage: se.value,
874
873
  isView: e.isView,
875
- required: H.value,
876
- onOpenDialog: n(w)
874
+ required: te.value,
875
+ onOpenDialog: l(R)
877
876
  }, {
878
- default: R(() => [
879
- _(n(xe), {
880
- modelValue: n(d),
881
- "onUpdate:modelValue": I[0] || (I[0] = (O) => X(d) ? d.value = O : null),
882
- options: n(o),
883
- onConfirm: n(F),
884
- title: n(c)
885
- }, Ie({ _: 2 }, [
886
- n(l) === "user" ? {
877
+ default: S(() => [
878
+ $(l(dt), {
879
+ modelValue: l(g),
880
+ "onUpdate:modelValue": P[0] || (P[0] = (N) => oe(g) ? g.value = N : null),
881
+ options: l(n),
882
+ onConfirm: l(v),
883
+ title: l(r)
884
+ }, et({ _: 2 }, [
885
+ l(a) === "user" ? {
887
886
  name: "table-column",
888
- fn: R(() => [
889
- _(n(T), {
887
+ fn: S(() => [
888
+ $(l(T), {
890
889
  label: "姓名",
891
890
  prop: "name"
892
891
  }),
893
- _(n(T), {
892
+ $(l(T), {
894
893
  label: "账号",
895
894
  prop: "userName"
896
895
  }),
897
- _(n(T), {
896
+ $(l(T), {
898
897
  label: "手机号",
899
898
  prop: "sensitivePhone"
900
899
  }),
901
- _(n(T), { label: "状态" }, {
902
- default: R(({ row: O }) => [
903
- x(J(n(u)[O.status]), 1)
900
+ $(l(T), { label: "状态" }, {
901
+ default: S(({ row: N }) => [
902
+ W(Y(l(u)[N.status]), 1)
904
903
  ]),
905
904
  _: 1
906
905
  })
907
906
  ]),
908
907
  key: "0"
909
908
  } : void 0,
910
- n(l) === "org" ? {
909
+ l(a) === "org" ? {
911
910
  name: "table-column",
912
- fn: R(() => [
913
- _(n(T), {
911
+ fn: S(() => [
912
+ $(l(T), {
914
913
  label: "组织名称",
915
914
  prop: "name"
916
915
  }),
917
- _(n(T), {
916
+ $(l(T), {
918
917
  label: "组织编码",
919
918
  prop: "code"
920
919
  }),
921
- _(n(T), {
920
+ $(l(T), {
922
921
  label: "组织类型",
923
922
  prop: "typeName"
924
923
  })
925
924
  ]),
926
925
  key: "1"
927
926
  } : void 0,
928
- n(l) === "role" ? {
927
+ l(a) === "role" ? {
929
928
  name: "table-column",
930
- fn: R(() => [
931
- _(n(T), {
929
+ fn: S(() => [
930
+ $(l(T), {
932
931
  label: "角色名称",
933
932
  prop: "name"
934
933
  }),
935
- _(n(T), { label: "角色类型" }, {
936
- default: R(({ row: O }) => [
937
- x(J(n(p)[O.type]), 1)
934
+ $(l(T), { label: "角色类型" }, {
935
+ default: S(({ row: N }) => [
936
+ W(Y(l(c)[N.type]), 1)
938
937
  ]),
939
938
  _: 1
940
939
  }),
941
- _(n(T), { label: "角色状态" }, {
942
- default: R(({ row: O }) => [
943
- x(J(n(m)[O.status]), 1)
940
+ $(l(T), { label: "角色状态" }, {
941
+ default: S(({ row: N }) => [
942
+ W(Y(l(f)[N.status]), 1)
944
943
  ]),
945
944
  _: 1
946
945
  })
947
946
  ]),
948
947
  key: "2"
949
948
  } : void 0,
950
- n(l) === "job" ? {
949
+ l(a) === "job" ? {
951
950
  name: "table-column",
952
- fn: R(() => [
953
- _(n(T), {
951
+ fn: S(() => [
952
+ $(l(T), {
954
953
  label: "职务名称",
955
954
  prop: "name"
956
955
  }),
957
- _(n(T), {
956
+ $(l(T), {
958
957
  label: "职务编码",
959
958
  prop: "code"
960
959
  }),
961
- _(n(T), {
960
+ $(l(T), {
962
961
  label: "所属组织路径",
963
962
  prop: "groupName"
964
963
  })
965
964
  ]),
966
965
  key: "3"
967
966
  } : void 0,
968
- n(l) === "post" ? {
967
+ l(a) === "post" ? {
969
968
  name: "table-column",
970
- fn: R(() => [
971
- _(n(T), {
969
+ fn: S(() => [
970
+ $(l(T), {
972
971
  label: "岗位名称",
973
972
  prop: "name"
974
973
  }),
975
- _(n(T), {
974
+ $(l(T), {
976
975
  label: "岗位编码",
977
976
  prop: "code"
978
977
  }),
979
- _(n(T), {
978
+ $(l(T), {
980
979
  label: "所属组织路径",
981
980
  prop: "groupName"
982
981
  })
@@ -986,8 +985,8 @@ const it = et.get("/getBindRelationByDefKey"), nt = tt.get("/getByAlias"), lt =
986
985
  ]), 1032, ["modelValue", "options", "onConfirm", "title"])
987
986
  ]),
988
987
  _: 1
989
- }, 8, ["col", "marginRight", "modelValue", "prop", "label", "options", "helpMessage", "isView", "required", "onOpenDialog"])) : U("", !0),
990
- n(l) == "position" ? (v(), V(n(S), {
988
+ }, 8, ["col", "marginRight", "modelValue", "prop", "label", "options", "helpMessage", "isView", "required", "onOpenDialog"])) : J("", !0),
989
+ l(a) == "position" ? (h(), V(l(M), {
991
990
  key: 1,
992
991
  col: e.span,
993
992
  marginRight: B.marginRight,
@@ -996,38 +995,38 @@ const it = et.get("/getBindRelationByDefKey"), nt = tt.get("/getByAlias"), lt =
996
995
  type: "treeSelect",
997
996
  "node-key": "id",
998
997
  showFullPath: !0,
999
- helpMessage: G.value,
1000
- required: H.value,
1001
- modelValue: M.value,
1002
- "onUpdate:modelValue": I[2] || (I[2] = (O) => M.value = O),
1003
- keyword: n(b),
1004
- "onUpdate:keyword": I[3] || (I[3] = (O) => X(b) ? b.value = O : null),
1005
- path: n(h),
1006
- "onUpdate:path": I[4] || (I[4] = (O) => X(h) ? h.value = O : null),
998
+ helpMessage: se.value,
999
+ required: te.value,
1000
+ modelValue: L.value,
1001
+ "onUpdate:modelValue": P[2] || (P[2] = (N) => L.value = N),
1002
+ keyword: l(w),
1003
+ "onUpdate:keyword": P[3] || (P[3] = (N) => oe(w) ? w.value = N : null),
1004
+ path: l(y),
1005
+ "onUpdate:path": P[4] || (P[4] = (N) => oe(y) ? y.value = N : null),
1007
1006
  isView: e.isView,
1008
- load: n(k),
1009
- search: n(W),
1007
+ load: l(A),
1008
+ search: l(Z),
1010
1009
  props: {
1011
1010
  isLeaf: "leaf",
1012
1011
  label: "name"
1013
1012
  },
1014
- onChange: n(q)
1015
- }, null, 8, ["col", "marginRight", "label", "prop", "helpMessage", "required", "modelValue", "keyword", "path", "isView", "load", "search", "onChange"])) : U("", !0)
1013
+ onChange: l(q)
1014
+ }, null, 8, ["col", "marginRight", "label", "prop", "helpMessage", "required", "modelValue", "keyword", "path", "isView", "load", "search", "onChange"])) : J("", !0)
1016
1015
  ], 64));
1017
1016
  }
1018
- }), Se = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1017
+ }), Ke = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1019
1018
  __proto__: null,
1020
- default: Ut
1021
- }, Symbol.toStringTag, { value: "Module" })), Ct = {
1019
+ default: us
1020
+ }, Symbol.toStringTag, { value: "Module" })), ps = {
1022
1021
  key: 0,
1023
1022
  class: "form-image"
1024
- }, xt = {
1023
+ }, gs = {
1025
1024
  key: 1,
1026
1025
  style: { "margin-bottom": "10px" }
1027
- }, Jt = {
1026
+ }, cs = {
1028
1027
  name: "soundRecording"
1029
- }, Wt = /* @__PURE__ */ D({
1030
- ...Jt,
1028
+ }, ds = /* @__PURE__ */ D({
1029
+ ...cs,
1031
1030
  props: {
1032
1031
  setting: { default: () => ({
1033
1032
  icon: "",
@@ -1041,50 +1040,50 @@ const it = et.get("/getBindRelationByDefKey"), nt = tt.get("/getByAlias"), lt =
1041
1040
  marginRight: { default: "80px" },
1042
1041
  store: {}
1043
1042
  },
1044
- setup(a) {
1045
- const e = a, { setData: t, getData: s, setFormRule: f } = e.store || {}, { baseURL: d } = Je(), c = g(!1);
1046
- j(e.setting.options.validateList).then((i) => {
1047
- c.value = i;
1043
+ setup(s) {
1044
+ const e = s, { setData: t, getData: o, setFormRule: m } = e.store || {}, { baseURL: g } = mt(), r = d(!1);
1045
+ F(e.setting.options.validateList).then((i) => {
1046
+ r.value = i;
1048
1047
  });
1049
- const r = g("info"), o = g();
1050
- e.setting.options.tip && (o.value = $(e.setting.options.tip));
1051
- const l = g();
1052
- if (s(e.setting.name)) {
1053
- const i = JSON.parse(s(e.setting.name));
1054
- l.value = d + i[0].url;
1048
+ const p = d("info"), n = d();
1049
+ e.setting.options.tip && (n.value = j(e.setting.options.tip));
1050
+ const a = d();
1051
+ if (o(e.setting.name)) {
1052
+ const i = JSON.parse(o(e.setting.name));
1053
+ a.value = g + i[0].url;
1055
1054
  }
1056
- return e.setting.options.validateList.length && f(e.setting.name, e.setting.options.validateList), (i, u) => e.isView ? (v(), V(n(S), {
1055
+ return e.setting.options.validateList.length && m(e.setting.name, e.setting.options.validateList), (i, u) => e.isView ? (h(), V(l(M), {
1057
1056
  key: 0,
1058
- modelValue: l.value,
1059
- "onUpdate:modelValue": u[2] || (u[2] = (p) => l.value = p),
1057
+ modelValue: a.value,
1058
+ "onUpdate:modelValue": u[2] || (u[2] = (c) => a.value = c),
1060
1059
  "margin-bottom": "0",
1061
1060
  prop: e.setting.name,
1062
1061
  label: i.setting.desc,
1063
1062
  type: "custom",
1064
- helpMessage: o.value,
1065
- required: c.value
1063
+ helpMessage: n.value,
1064
+ required: r.value
1066
1065
  }, {
1067
- default: R(() => [
1068
- l.value ? (v(), E("div", Ct, [
1069
- _(n(ge), {
1070
- modelValue: l.value,
1071
- "onUpdate:modelValue": u[0] || (u[0] = (p) => l.value = p),
1072
- status: r.value,
1073
- "onUpdate:status": u[1] || (u[1] = (p) => r.value = p),
1074
- required: c.value
1066
+ default: S(() => [
1067
+ a.value ? (h(), I("div", ps, [
1068
+ $(l($e), {
1069
+ modelValue: a.value,
1070
+ "onUpdate:modelValue": u[0] || (u[0] = (c) => a.value = c),
1071
+ status: p.value,
1072
+ "onUpdate:status": u[1] || (u[1] = (c) => p.value = c),
1073
+ required: r.value
1075
1074
  }, null, 8, ["modelValue", "status", "required"])
1076
- ])) : (v(), E("div", xt, "-"))
1075
+ ])) : (h(), I("div", gs, "-"))
1077
1076
  ]),
1078
1077
  _: 1
1079
- }, 8, ["modelValue", "prop", "label", "helpMessage", "required"])) : U("", !0);
1078
+ }, 8, ["modelValue", "prop", "label", "helpMessage", "required"])) : J("", !0);
1080
1079
  }
1081
- }), Yt = /* @__PURE__ */ re(Wt, [["__scopeId", "data-v-044dd90f"]]), Me = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1080
+ }), ms = /* @__PURE__ */ me(ds, [["__scopeId", "data-v-044dd90f"]]), Ie = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1082
1081
  __proto__: null,
1083
- default: Yt
1084
- }, Symbol.toStringTag, { value: "Module" })), Zt = {
1082
+ default: ms
1083
+ }, Symbol.toStringTag, { value: "Module" })), fs = {
1085
1084
  name: "switch"
1086
- }, Ht = /* @__PURE__ */ D({
1087
- ...Zt,
1085
+ }, vs = /* @__PURE__ */ D({
1086
+ ...fs,
1088
1087
  props: {
1089
1088
  setting: { default: () => ({
1090
1089
  icon: "",
@@ -1098,42 +1097,42 @@ const it = et.get("/getBindRelationByDefKey"), nt = tt.get("/getByAlias"), lt =
1098
1097
  marginRight: { default: "80px" },
1099
1098
  store: {}
1100
1099
  },
1101
- setup(a) {
1102
- const e = a, { setData: t, getData: s, setFormRule: f } = e.store || {}, d = g(!1);
1103
- j(e.setting.options.validateList).then((o) => {
1104
- d.value = o;
1100
+ setup(s) {
1101
+ const e = s, { setData: t, getData: o, setFormRule: m } = e.store || {}, g = d(!1);
1102
+ F(e.setting.options.validateList).then((n) => {
1103
+ g.value = n;
1105
1104
  });
1106
- const c = g();
1107
- e.setting.options.tip && (c.value = $(e.setting.options.tip));
1108
- const r = g();
1105
+ const r = d();
1106
+ e.setting.options.tip && (r.value = j(e.setting.options.tip));
1107
+ const p = d();
1109
1108
  return setTimeout(() => {
1110
- r.value = s(e.setting.name) || e.setting.options.formulasDiyJs || r.value, r.value || t(e.setting.name, null);
1111
- }, 50), e.setting.options.validateList.length && f(e.setting.name, e.setting.options.validateList), L(r, (o) => {
1112
- t(e.setting.name, o);
1113
- }), (o, l) => (v(), V(n(S), {
1109
+ p.value = o(e.setting.name) || e.setting.options.formulasDiyJs || p.value, p.value || t(e.setting.name, null);
1110
+ }, 50), e.setting.options.validateList.length && m(e.setting.name, e.setting.options.validateList), O(p, (n) => {
1111
+ t(e.setting.name, n);
1112
+ }), (n, a) => (h(), V(l(M), {
1114
1113
  col: e.span,
1115
- marginRight: o.marginRight,
1116
- modelValue: r.value,
1117
- "onUpdate:modelValue": l[0] || (l[0] = (i) => r.value = i),
1118
- label: o.setting.desc,
1114
+ marginRight: n.marginRight,
1115
+ modelValue: p.value,
1116
+ "onUpdate:modelValue": a[0] || (a[0] = (i) => p.value = i),
1117
+ label: n.setting.desc,
1119
1118
  type: "switch",
1120
1119
  prop: e.setting.name,
1121
- activeValue: o.setting.options.activeValue,
1122
- inactiveValue: o.setting.options.inactiveValue,
1123
- activeText: o.setting.options.activeText,
1124
- inactiveText: o.setting.options.inactiveText,
1125
- helpMessage: c.value,
1126
- required: d.value,
1120
+ activeValue: n.setting.options.activeValue,
1121
+ inactiveValue: n.setting.options.inactiveValue,
1122
+ activeText: n.setting.options.activeText,
1123
+ inactiveText: n.setting.options.inactiveText,
1124
+ helpMessage: r.value,
1125
+ required: g.value,
1127
1126
  isView: e.isView
1128
1127
  }, null, 8, ["col", "marginRight", "modelValue", "label", "prop", "activeValue", "inactiveValue", "activeText", "inactiveText", "helpMessage", "required", "isView"]));
1129
1128
  }
1130
- }), Le = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1129
+ }), ke = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1131
1130
  __proto__: null,
1132
- default: Ht
1133
- }, Symbol.toStringTag, { value: "Module" })), Gt = {
1131
+ default: vs
1132
+ }, Symbol.toStringTag, { value: "Module" })), ys = {
1134
1133
  name: "text"
1135
- }, Xt = /* @__PURE__ */ D({
1136
- ...Gt,
1134
+ }, hs = /* @__PURE__ */ D({
1135
+ ...ys,
1137
1136
  props: {
1138
1137
  setting: { default: () => ({
1139
1138
  icon: "",
@@ -1147,38 +1146,38 @@ const it = et.get("/getBindRelationByDefKey"), nt = tt.get("/getByAlias"), lt =
1147
1146
  marginRight: { default: "80px" },
1148
1147
  store: {}
1149
1148
  },
1150
- setup(a) {
1151
- const e = a, { setData: t, getData: s, setFormRule: f } = e.store || {}, d = g();
1152
- e.setting.options.tip && (d.value = $(e.setting.options.tip));
1153
- const c = g();
1154
- return c.value = e.setting.options.textValue, c.value = s(e.setting.name) || c.value, c.value || t(e.setting.name, null), L(c, (r) => {
1155
- t(e.setting.name, r);
1156
- }), (r, o) => (v(), V(n(S), {
1149
+ setup(s) {
1150
+ const e = s, { setData: t, getData: o, setFormRule: m } = e.store || {}, g = d();
1151
+ e.setting.options.tip && (g.value = j(e.setting.options.tip));
1152
+ const r = d();
1153
+ return r.value = e.setting.options.textValue, r.value = o(e.setting.name) || r.value, r.value || t(e.setting.name, null), O(r, (p) => {
1154
+ t(e.setting.name, p);
1155
+ }), (p, n) => (h(), V(l(M), {
1157
1156
  col: e.span,
1158
- marginRight: r.marginRight,
1159
- modelValue: c.value,
1160
- "onUpdate:modelValue": o[1] || (o[1] = (l) => c.value = l),
1161
- label: r.setting.desc,
1157
+ marginRight: p.marginRight,
1158
+ modelValue: r.value,
1159
+ "onUpdate:modelValue": n[1] || (n[1] = (a) => r.value = a),
1160
+ label: p.setting.desc,
1162
1161
  type: "custom",
1163
- helpMessage: d.value
1162
+ helpMessage: g.value
1164
1163
  }, {
1165
- default: R(() => [
1166
- _(n(ce), {
1164
+ default: S(() => [
1165
+ $(l(Se), {
1167
1166
  type: "text",
1168
- modelValue: c.value,
1169
- "onUpdate:modelValue": o[0] || (o[0] = (l) => c.value = l)
1167
+ modelValue: r.value,
1168
+ "onUpdate:modelValue": n[0] || (n[0] = (a) => r.value = a)
1170
1169
  }, null, 8, ["modelValue"])
1171
1170
  ]),
1172
1171
  _: 1
1173
1172
  }, 8, ["col", "marginRight", "modelValue", "label", "helpMessage"]));
1174
1173
  }
1175
- }), Te = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1174
+ }), Ae = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1176
1175
  __proto__: null,
1177
- default: Xt
1178
- }, Symbol.toStringTag, { value: "Module" })), es = {
1176
+ default: hs
1177
+ }, Symbol.toStringTag, { value: "Module" })), bs = {
1179
1178
  name: "textarea"
1180
- }, ts = /* @__PURE__ */ D({
1181
- ...es,
1179
+ }, _s = /* @__PURE__ */ D({
1180
+ ...bs,
1182
1181
  props: {
1183
1182
  setting: { default: () => ({
1184
1183
  icon: "",
@@ -1192,29 +1191,29 @@ const it = et.get("/getBindRelationByDefKey"), nt = tt.get("/getByAlias"), lt =
1192
1191
  marginRight: { default: "80px" },
1193
1192
  store: {}
1194
1193
  },
1195
- setup(a) {
1196
- const e = a, { setData: t, getData: s, setFormRule: f } = e.store || {}, d = g(!1);
1197
- j(e.setting.options.validateList).then((i) => {
1198
- d.value = i;
1194
+ setup(s) {
1195
+ const e = s, { setData: t, getData: o, setFormRule: m } = e.store || {}, g = d(!1);
1196
+ F(e.setting.options.validateList).then((i) => {
1197
+ g.value = i;
1199
1198
  });
1200
- const c = g();
1201
- e.setting.options.tip && (c.value = $(e.setting.options.tip));
1202
- const r = g("");
1199
+ const r = d();
1200
+ e.setting.options.tip && (r.value = j(e.setting.options.tip));
1201
+ const p = d("");
1203
1202
  setTimeout(() => {
1204
- r.value = s(e.setting.name) || e.setting.options.formulasDiyJs || r.value, r.value || t(e.setting.name, null);
1203
+ p.value = o(e.setting.name) || e.setting.options.formulasDiyJs || p.value, p.value || t(e.setting.name, null);
1205
1204
  }, 50);
1206
- const o = g(), l = g();
1207
- return o.value = e.setting.options.initialFrameWidth ? e.setting.options.initialFrameWidth + "px" : "", l.value = e.setting.options.initialFrameHeight ? e.setting.options.initialFrameHeight + "px" : "", e.setting.options.validateList.length && f(e.setting.name, e.setting.options.validateList), L(r, (i) => {
1205
+ const n = d(), a = d();
1206
+ return n.value = e.setting.options.initialFrameWidth ? e.setting.options.initialFrameWidth + "px" : "", a.value = e.setting.options.initialFrameHeight ? e.setting.options.initialFrameHeight + "px" : "", e.setting.options.validateList.length && m(e.setting.name, e.setting.options.validateList), O(p, (i) => {
1208
1207
  t(e.setting.name, i);
1209
- }), (i, u) => (v(), E(Z, null, [
1210
- i.setting.options.isEditor ? U("", !0) : (v(), V(n(S), {
1208
+ }), (i, u) => (h(), I(ee, null, [
1209
+ i.setting.options.isEditor ? J("", !0) : (h(), V(l(M), {
1211
1210
  key: 0,
1212
1211
  col: e.span,
1213
1212
  marginRight: i.marginRight,
1214
1213
  label: i.setting.desc,
1215
1214
  type: "textarea",
1216
- modelValue: r.value,
1217
- "onUpdate:modelValue": u[0] || (u[0] = (p) => r.value = p),
1215
+ modelValue: p.value,
1216
+ "onUpdate:modelValue": u[0] || (u[0] = (c) => p.value = c),
1218
1217
  prop: e.setting.name,
1219
1218
  placeholder: i.setting.options.placeholder,
1220
1219
  disabled: i.setting.options.isInputEdit,
@@ -1224,42 +1223,42 @@ const it = et.get("/getBindRelationByDefKey"), nt = tt.get("/getByAlias"), lt =
1224
1223
  maxRows: 3
1225
1224
  },
1226
1225
  "show-word-limit": "",
1227
- helpMessage: c.value,
1228
- required: d.value
1226
+ helpMessage: r.value,
1227
+ required: g.value
1229
1228
  }, null, 8, ["col", "marginRight", "label", "modelValue", "prop", "placeholder", "disabled", "isView", "helpMessage", "required"])),
1230
- i.setting.options.isEditor ? (v(), V(n(S), {
1229
+ i.setting.options.isEditor ? (h(), V(l(M), {
1231
1230
  key: 1,
1232
- modelValue: r.value,
1233
- "onUpdate:modelValue": u[2] || (u[2] = (p) => r.value = p),
1231
+ modelValue: p.value,
1232
+ "onUpdate:modelValue": u[2] || (u[2] = (c) => p.value = c),
1234
1233
  prop: e.setting.name,
1235
- contentWidth: o.value,
1234
+ contentWidth: n.value,
1236
1235
  label: i.setting.desc,
1237
1236
  type: "custom",
1238
- helpMessage: c.value,
1239
- required: d.value,
1237
+ helpMessage: r.value,
1238
+ required: g.value,
1240
1239
  readOnly: e.isView
1241
1240
  }, {
1242
- default: R(() => [
1243
- _(n(ce), {
1241
+ default: S(() => [
1242
+ $(l(Se), {
1244
1243
  ref: "editor",
1245
- width: o.value,
1246
- height: l.value,
1247
- modelValue: r.value,
1248
- "onUpdate:modelValue": u[1] || (u[1] = (p) => r.value = p),
1244
+ width: n.value,
1245
+ height: a.value,
1246
+ modelValue: p.value,
1247
+ "onUpdate:modelValue": u[1] || (u[1] = (c) => p.value = c),
1249
1248
  placeholder: i.setting.options.placeholder
1250
1249
  }, null, 8, ["width", "height", "modelValue", "placeholder"])
1251
1250
  ]),
1252
1251
  _: 1
1253
- }, 8, ["modelValue", "prop", "contentWidth", "label", "helpMessage", "required", "readOnly"])) : U("", !0)
1252
+ }, 8, ["modelValue", "prop", "contentWidth", "label", "helpMessage", "required", "readOnly"])) : J("", !0)
1254
1253
  ], 64));
1255
1254
  }
1256
- }), $e = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1255
+ }), Ce = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1257
1256
  __proto__: null,
1258
- default: ts
1259
- }, Symbol.toStringTag, { value: "Module" })), ss = {
1257
+ default: _s
1258
+ }, Symbol.toStringTag, { value: "Module" })), ws = {
1260
1259
  name: "time"
1261
- }, os = /* @__PURE__ */ D({
1262
- ...ss,
1260
+ }, Vs = /* @__PURE__ */ D({
1261
+ ...ws,
1263
1262
  props: {
1264
1263
  setting: { default: () => ({
1265
1264
  icon: "",
@@ -1273,36 +1272,36 @@ const it = et.get("/getBindRelationByDefKey"), nt = tt.get("/getByAlias"), lt =
1273
1272
  marginRight: { default: "80px" },
1274
1273
  store: {}
1275
1274
  },
1276
- setup(a) {
1277
- const e = a, { setData: t, getData: s, setFormRule: f } = e.store || {}, d = g(!1);
1278
- j(e.setting.options.validateList).then((o) => {
1279
- d.value = o;
1275
+ setup(s) {
1276
+ const e = s, { setData: t, getData: o, setFormRule: m } = e.store || {}, g = d(!1);
1277
+ F(e.setting.options.validateList).then((n) => {
1278
+ g.value = n;
1280
1279
  });
1281
- const c = g();
1282
- e.setting.options.tip && (c.value = $(e.setting.options.tip));
1283
- const r = g();
1280
+ const r = d();
1281
+ e.setting.options.tip && (r.value = j(e.setting.options.tip));
1282
+ const p = d();
1284
1283
  return setTimeout(() => {
1285
- const o = ne().format("YYYY-MM-DD ");
1286
- s(e.setting.name) && (r.value = s(e.setting.name)), e.setting.options.formulasDiyJs && (r.value = ne(o + e.setting.options.formulasDiyJs)), r.value || t(e.setting.name, null);
1287
- }, 50), e.setting.options.validateList.length && f(e.setting.name, e.setting.options.validateList), L(r, (o) => {
1288
- t(e.setting.name, o);
1289
- }), (o, l) => (v(), V(n(S), {
1284
+ const n = ge().format("YYYY-MM-DD ");
1285
+ o(e.setting.name) && (p.value = o(e.setting.name)), e.setting.options.formulasDiyJs && (p.value = ge(n + e.setting.options.formulasDiyJs)), p.value || t(e.setting.name, null);
1286
+ }, 50), e.setting.options.validateList.length && m(e.setting.name, e.setting.options.validateList), O(p, (n) => {
1287
+ t(e.setting.name, n);
1288
+ }), (n, a) => (h(), V(l(M), {
1290
1289
  col: e.span,
1291
- marginRight: o.marginRight,
1292
- modelValue: r.value,
1293
- "onUpdate:modelValue": l[0] || (l[0] = (i) => r.value = i),
1290
+ marginRight: n.marginRight,
1291
+ modelValue: p.value,
1292
+ "onUpdate:modelValue": a[0] || (a[0] = (i) => p.value = i),
1294
1293
  prop: e.setting.name,
1295
- label: o.setting.desc,
1294
+ label: n.setting.desc,
1296
1295
  type: "time",
1297
- helpMessage: c.value,
1296
+ helpMessage: r.value,
1298
1297
  isView: e.isView,
1299
- required: d.value
1298
+ required: g.value
1300
1299
  }, null, 8, ["col", "marginRight", "modelValue", "prop", "label", "helpMessage", "isView", "required"]));
1301
1300
  }
1302
- }), Oe = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1301
+ }), Qe = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1303
1302
  __proto__: null,
1304
- default: os
1305
- }, Symbol.toStringTag, { value: "Module" })), as = D({
1303
+ default: Vs
1304
+ }, Symbol.toStringTag, { value: "Module" })), Ds = D({
1306
1305
  name: "accordion",
1307
1306
  props: {
1308
1307
  columns: {
@@ -1318,34 +1317,34 @@ const it = et.get("/getBindRelationByDefKey"), nt = tt.get("/getByAlias"), lt =
1318
1317
  type: Object
1319
1318
  }
1320
1319
  },
1321
- setup(a) {
1322
- const e = g([]), t = a.columns.map((s) => {
1323
- const f = s.list.map(
1324
- (d) => A(ue[d.ctrlType], { setting: d, isView: a.isView, store: a.store })
1320
+ setup(s) {
1321
+ const e = d([]), t = s.columns.map((o) => {
1322
+ const m = o.list.map(
1323
+ (g) => C(ve[g.ctrlType], { setting: g, isView: s.isView, store: s.store })
1325
1324
  );
1326
- return s.isOpen == !0 && e.value.push(s.idKey), A(
1327
- Ye,
1325
+ return o.isOpen == !0 && e.value.push(o.idKey), C(
1326
+ vt,
1328
1327
  {
1329
- header: s.span,
1330
- key: `${s.idKey}`
1328
+ header: o.span,
1329
+ key: `${o.idKey}`
1331
1330
  },
1332
- A("div", f)
1331
+ C("div", m)
1333
1332
  );
1334
1333
  });
1335
- return () => A(
1334
+ return () => C(
1336
1335
  "div",
1337
1336
  { class: "accordion-layout" },
1338
- A(
1339
- We,
1340
- { activeKey: e.value, collapsible: a.options.accordion ? "" : "disabled" },
1337
+ C(
1338
+ ft,
1339
+ { activeKey: e.value, collapsible: s.options.accordion ? "" : "disabled" },
1341
1340
  t
1342
1341
  )
1343
1342
  );
1344
1343
  }
1345
- }), is = {
1344
+ }), $s = {
1346
1345
  name: "accordion"
1347
- }, ns = /* @__PURE__ */ D({
1348
- ...is,
1346
+ }, Rs = /* @__PURE__ */ D({
1347
+ ...$s,
1349
1348
  props: {
1350
1349
  setting: { default: () => ({
1351
1350
  name: "",
@@ -1372,8 +1371,8 @@ const it = et.get("/getBindRelationByDefKey"), nt = tt.get("/getByAlias"), lt =
1372
1371
  isView: { type: Boolean },
1373
1372
  store: {}
1374
1373
  },
1375
- setup(a) {
1376
- return (e, t) => (v(), V(n(as), {
1374
+ setup(s) {
1375
+ return (e, t) => (h(), V(l(Ds), {
1377
1376
  columns: e.setting.columns,
1378
1377
  options: e.setting.options,
1379
1378
  isView: e.isView,
@@ -1381,10 +1380,220 @@ const it = et.get("/getBindRelationByDefKey"), nt = tt.get("/getByAlias"), lt =
1381
1380
  style: { "margin-bottom": "10px" }
1382
1381
  }, null, 8, ["columns", "options", "isView", "store"]));
1383
1382
  }
1384
- }), ls = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1383
+ }), Ss = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1385
1384
  __proto__: null,
1386
- default: ns
1387
- }, Symbol.toStringTag, { value: "Module" })), rs = D({
1385
+ default: Rs
1386
+ }, Symbol.toStringTag, { value: "Module" }));
1387
+ /**
1388
+ * @vue/shared v3.4.35
1389
+ * (c) 2018-present Yuxi (Evan) You and Vue contributors
1390
+ * @license MIT
1391
+ **/
1392
+ process.env.NODE_ENV !== "production" && Object.freeze({});
1393
+ process.env.NODE_ENV !== "production" && Object.freeze([]);
1394
+ const Ms = Object.prototype.hasOwnProperty, he = (s, e) => Ms.call(s, e), fe = (s) => s !== null && typeof s == "object";
1395
+ function Ls(s) {
1396
+ for (var e = -1, t = s == null ? 0 : s.length, o = {}; ++e < t; ) {
1397
+ var m = s[e];
1398
+ o[m[0]] = m[1];
1399
+ }
1400
+ return o;
1401
+ }
1402
+ const be = (s) => typeof s == "number", ze = "__epPropKey", H = (s) => s, Os = (s) => fe(s) && !!s[ze], Ts = (s, e) => {
1403
+ if (!fe(s) || Os(s))
1404
+ return s;
1405
+ const { values: t, required: o, default: m, type: g, validator: r } = s, n = {
1406
+ type: g,
1407
+ required: !!o,
1408
+ validator: t || r ? (a) => {
1409
+ let i = !1, u = [];
1410
+ if (t && (u = Array.from(t), he(s, "default") && u.push(m), i || (i = u.includes(a))), r && (i || (i = r(a))), !i && u.length > 0) {
1411
+ const c = [...new Set(u)].map((f) => JSON.stringify(f)).join(", ");
1412
+ tt(`Invalid prop: validation failed${e ? ` for prop "${e}"` : ""}. Expected one of [${c}], got value ${JSON.stringify(a)}.`);
1413
+ }
1414
+ return i;
1415
+ } : void 0,
1416
+ [ze]: !0
1417
+ };
1418
+ return he(s, "default") && (n.default = m), n;
1419
+ }, Ue = (s) => Ls(Object.entries(s).map(([e, t]) => [
1420
+ e,
1421
+ Ts(t, e)
1422
+ ])), xe = (s, e) => (s.install = (t) => {
1423
+ for (const o of [s, ...Object.values({})])
1424
+ t.component(o.name, o);
1425
+ }, s), G = (s) => s, ie = "el", js = "is-", U = (s, e, t, o, m) => {
1426
+ let g = `${s}-${e}`;
1427
+ return t && (g += `-${t}`), o && (g += `__${o}`), m && (g += `--${m}`), g;
1428
+ }, Ns = Symbol("namespaceContextKey"), Fs = (s) => {
1429
+ const e = st() ? _e(Ns, d(ie)) : d(ie);
1430
+ return x(() => l(e) || ie);
1431
+ }, Je = (s, e) => {
1432
+ const t = Fs();
1433
+ return {
1434
+ namespace: t,
1435
+ b: (v = "") => U(t.value, s, v, "", ""),
1436
+ e: (v) => v ? U(t.value, s, "", v, "") : "",
1437
+ m: (v) => v ? U(t.value, s, "", "", v) : "",
1438
+ be: (v, _) => v && _ ? U(t.value, s, v, _, "") : "",
1439
+ em: (v, _) => v && _ ? U(t.value, s, "", v, _) : "",
1440
+ bm: (v, _) => v && _ ? U(t.value, s, v, "", _) : "",
1441
+ bem: (v, _, y) => v && _ && y ? U(t.value, s, v, _, y) : "",
1442
+ is: (v, ..._) => {
1443
+ const y = _.length >= 1 ? _[0] : !0;
1444
+ return v && y ? `${js}${v}` : "";
1445
+ },
1446
+ cssVar: (v) => {
1447
+ const _ = {};
1448
+ for (const y in v)
1449
+ v[y] && (_[`--${t.value}-${y}`] = v[y]);
1450
+ return _;
1451
+ },
1452
+ cssVarName: (v) => `--${t.value}-${v}`,
1453
+ cssVarBlock: (v) => {
1454
+ const _ = {};
1455
+ for (const y in v)
1456
+ v[y] && (_[`--${t.value}-${s}-${y}`] = v[y]);
1457
+ return _;
1458
+ },
1459
+ cssVarBlockName: (v) => `--${t.value}-${s}-${v}`
1460
+ };
1461
+ };
1462
+ var We = (s, e) => {
1463
+ const t = s.__vccOpts || s;
1464
+ for (const [o, m] of e)
1465
+ t[o] = m;
1466
+ return t;
1467
+ };
1468
+ const Ye = Symbol("rowContextKey"), qs = [
1469
+ "start",
1470
+ "center",
1471
+ "end",
1472
+ "space-around",
1473
+ "space-between",
1474
+ "space-evenly"
1475
+ ], Bs = ["top", "middle", "bottom"], Ps = Ue({
1476
+ tag: {
1477
+ type: String,
1478
+ default: "div"
1479
+ },
1480
+ gutter: {
1481
+ type: Number,
1482
+ default: 0
1483
+ },
1484
+ justify: {
1485
+ type: String,
1486
+ values: qs,
1487
+ default: "start"
1488
+ },
1489
+ align: {
1490
+ type: String,
1491
+ values: Bs
1492
+ }
1493
+ }), Es = D({
1494
+ name: "ElRow"
1495
+ }), Ks = /* @__PURE__ */ D({
1496
+ ...Es,
1497
+ props: Ps,
1498
+ setup(s) {
1499
+ const e = s, t = Je("row"), o = x(() => e.gutter);
1500
+ ot(Ye, {
1501
+ gutter: o
1502
+ });
1503
+ const m = x(() => {
1504
+ const r = {};
1505
+ return e.gutter && (r.marginRight = r.marginLeft = `-${e.gutter / 2}px`), r;
1506
+ }), g = x(() => [
1507
+ t.b(),
1508
+ t.is(`justify-${e.justify}`, e.justify !== "start"),
1509
+ t.is(`align-${e.align}`, !!e.align)
1510
+ ]);
1511
+ return (r, p) => (h(), V(ce(r.tag), {
1512
+ class: we(l(g)),
1513
+ style: Ve(l(m))
1514
+ }, {
1515
+ default: S(() => [
1516
+ De(r.$slots, "default")
1517
+ ]),
1518
+ _: 3
1519
+ }, 8, ["class", "style"]));
1520
+ }
1521
+ });
1522
+ var Is = /* @__PURE__ */ We(Ks, [["__file", "/home/runner/work/element-plus/element-plus/packages/components/row/src/row.vue"]]);
1523
+ const ks = xe(Is), As = Ue({
1524
+ tag: {
1525
+ type: String,
1526
+ default: "div"
1527
+ },
1528
+ span: {
1529
+ type: Number,
1530
+ default: 24
1531
+ },
1532
+ offset: {
1533
+ type: Number,
1534
+ default: 0
1535
+ },
1536
+ pull: {
1537
+ type: Number,
1538
+ default: 0
1539
+ },
1540
+ push: {
1541
+ type: Number,
1542
+ default: 0
1543
+ },
1544
+ xs: {
1545
+ type: H([Number, Object]),
1546
+ default: () => G({})
1547
+ },
1548
+ sm: {
1549
+ type: H([Number, Object]),
1550
+ default: () => G({})
1551
+ },
1552
+ md: {
1553
+ type: H([Number, Object]),
1554
+ default: () => G({})
1555
+ },
1556
+ lg: {
1557
+ type: H([Number, Object]),
1558
+ default: () => G({})
1559
+ },
1560
+ xl: {
1561
+ type: H([Number, Object]),
1562
+ default: () => G({})
1563
+ }
1564
+ }), Cs = D({
1565
+ name: "ElCol"
1566
+ }), Qs = /* @__PURE__ */ D({
1567
+ ...Cs,
1568
+ props: As,
1569
+ setup(s) {
1570
+ const e = s, { gutter: t } = _e(Ye, { gutter: x(() => 0) }), o = Je("col"), m = x(() => {
1571
+ const r = {};
1572
+ return t.value && (r.paddingLeft = r.paddingRight = `${t.value / 2}px`), r;
1573
+ }), g = x(() => {
1574
+ const r = [];
1575
+ return ["span", "offset", "pull", "push"].forEach((a) => {
1576
+ const i = e[a];
1577
+ be(i) && (a === "span" ? r.push(o.b(`${e[a]}`)) : i > 0 && r.push(o.b(`${a}-${e[a]}`)));
1578
+ }), ["xs", "sm", "md", "lg", "xl"].forEach((a) => {
1579
+ be(e[a]) ? r.push(o.b(`${a}-${e[a]}`)) : fe(e[a]) && Object.entries(e[a]).forEach(([i, u]) => {
1580
+ r.push(i !== "span" ? o.b(`${a}-${i}-${u}`) : o.b(`${a}-${u}`));
1581
+ });
1582
+ }), t.value && r.push(o.is("guttered")), [o.b(), r];
1583
+ });
1584
+ return (r, p) => (h(), V(ce(r.tag), {
1585
+ class: we(l(g)),
1586
+ style: Ve(l(m))
1587
+ }, {
1588
+ default: S(() => [
1589
+ De(r.$slots, "default")
1590
+ ]),
1591
+ _: 3
1592
+ }, 8, ["class", "style"]));
1593
+ }
1594
+ });
1595
+ var zs = /* @__PURE__ */ We(Qs, [["__file", "/home/runner/work/element-plus/element-plus/packages/components/col/src/col.vue"]]);
1596
+ const Us = xe(zs), xs = D({
1388
1597
  name: "grid",
1389
1598
  props: {
1390
1599
  columns: {
@@ -1399,24 +1608,24 @@ const it = et.get("/getBindRelationByDefKey"), nt = tt.get("/getByAlias"), lt =
1399
1608
  type: Object
1400
1609
  }
1401
1610
  },
1402
- setup(a) {
1611
+ setup(s) {
1403
1612
  let e = 0;
1404
- const t = a.columns.map((s) => {
1405
- const f = s.list.map((d) => {
1406
- e += s.span;
1407
- const c = e == 24 ? "0px" : "80px";
1408
- return e == 24 && (e = 0), A(cs[d.ctrlType], {
1409
- setting: d,
1410
- isView: a.isView,
1411
- store: a.store,
1613
+ const t = s.columns.map((o) => {
1614
+ const m = o.list.map((g) => {
1615
+ e += o.span;
1616
+ const r = e == 24 ? "0px" : "80px";
1617
+ return e == 24 && (e = 0), C(Hs[g.ctrlType], {
1618
+ setting: g,
1619
+ isView: s.isView,
1620
+ store: s.store,
1412
1621
  class: "grid-item-layout",
1413
- marginRight: c
1622
+ marginRight: r
1414
1623
  });
1415
1624
  });
1416
- return A(Ze, { span: s.span }, f);
1625
+ return C(Us, { span: o.span }, m);
1417
1626
  });
1418
- return () => A(
1419
- He,
1627
+ return () => C(
1628
+ ks,
1420
1629
  {
1421
1630
  class: "grid-layout"
1422
1631
  // gutter: 0,
@@ -1424,10 +1633,10 @@ const it = et.get("/getBindRelationByDefKey"), nt = tt.get("/getByAlias"), lt =
1424
1633
  t
1425
1634
  );
1426
1635
  }
1427
- }), us = {
1636
+ }), Js = {
1428
1637
  name: "grid"
1429
- }, ps = /* @__PURE__ */ D({
1430
- ...us,
1638
+ }, Ws = /* @__PURE__ */ D({
1639
+ ...Js,
1431
1640
  props: {
1432
1641
  setting: { default: () => ({
1433
1642
  name: "",
@@ -1451,126 +1660,126 @@ const it = et.get("/getBindRelationByDefKey"), nt = tt.get("/getByAlias"), lt =
1451
1660
  isView: { type: Boolean },
1452
1661
  store: {}
1453
1662
  },
1454
- setup(a) {
1455
- const e = a;
1456
- return (t, s) => (v(), V(n(rs), {
1663
+ setup(s) {
1664
+ const e = s;
1665
+ return (t, o) => (h(), V(l(xs), {
1457
1666
  columns: t.setting.columns,
1458
1667
  isView: e.isView,
1459
1668
  store: t.store
1460
1669
  }, null, 8, ["columns", "isView", "store"]));
1461
1670
  }
1462
- }), gs = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1671
+ }), Ys = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1463
1672
  __proto__: null,
1464
- default: ps
1465
- }, Symbol.toStringTag, { value: "Module" })), se = /* @__PURE__ */ Object.assign({ "./base/attachment.vue": fe, "./base/autocomplete.vue": ve, "./base/checkbox.vue": ye, "./base/date.vue": he, "./base/dropdown.vue": be, "./base/imageViewer.vue": _e, "./base/input.vue": Ve, "./base/number.vue": we, "./base/radio.vue": De, "./base/select.vue": Re, "./base/selector.vue": Se, "./base/soundRecording.vue": Me, "./base/switch.vue": Le, "./base/text.vue": Te, "./base/textarea.vue": $e, "./base/time.vue": Oe, "./layout/accordion/accordion.vue": ls, "./layout/grid/gridLayout.vue": gs }), oe = /* @__PURE__ */ Object.assign({ "./base/attachment.vue": fe, "./base/autocomplete.vue": ve, "./base/checkbox.vue": ye, "./base/date.vue": he, "./base/dropdown.vue": be, "./base/imageViewer.vue": _e, "./base/input.vue": Ve, "./base/number.vue": we, "./base/radio.vue": De, "./base/select.vue": Re, "./base/selector.vue": Se, "./base/soundRecording.vue": Me, "./base/switch.vue": Le, "./base/text.vue": Te, "./base/textarea.vue": $e, "./base/time.vue": Oe }), ae = /* @__PURE__ */ Object.assign({}), ie = /* @__PURE__ */ Object.assign({}), ue = {}, Fe = {}, je = {}, ds = {};
1466
- Object.keys(oe).map((a) => Fe[oe[a].default.name] = oe[a].default);
1467
- Object.keys(ae).map((a) => je[ae[a].default.name] = ae[a].default);
1468
- Object.keys(ie).map((a) => ds[ie[a].default.name] = ie[a].default);
1469
- Object.keys(se).map((a) => ue[se[a].default.name] = se[a].default);
1470
- const cs = { ...Fe, ...je }, ms = (a, e, t, s) => {
1471
- (!e || e.toString() === "") && parseInt(e) !== 0 ? t(new Error(`${s.name}`)) : t();
1472
- }, fs = (a, e, t, s) => {
1473
- e !== "" && e.length > parseInt(s.value) ? t(new Error(`${s.name}不能超过${s.value}`)) : t();
1474
- }, vs = (a, e, t, s) => {
1475
- e !== "" && e.length < parseInt(s.value) ? t(new Error(`${s.name}不能少于${s.value}`)) : t();
1476
- }, ys = (a, e, t, s) => {
1673
+ default: Ws
1674
+ }, Symbol.toStringTag, { value: "Module" })), le = /* @__PURE__ */ Object.assign({ "./base/attachment.vue": Le, "./base/autocomplete.vue": Oe, "./base/checkbox.vue": Te, "./base/date.vue": je, "./base/dropdown.vue": Ne, "./base/imageViewer.vue": Fe, "./base/input.vue": qe, "./base/number.vue": Be, "./base/radio.vue": Pe, "./base/select.vue": Ee, "./base/selector.vue": Ke, "./base/soundRecording.vue": Ie, "./base/switch.vue": ke, "./base/text.vue": Ae, "./base/textarea.vue": Ce, "./base/time.vue": Qe, "./layout/accordion/accordion.vue": Ss, "./layout/grid/gridLayout.vue": Ys }), re = /* @__PURE__ */ Object.assign({ "./base/attachment.vue": Le, "./base/autocomplete.vue": Oe, "./base/checkbox.vue": Te, "./base/date.vue": je, "./base/dropdown.vue": Ne, "./base/imageViewer.vue": Fe, "./base/input.vue": qe, "./base/number.vue": Be, "./base/radio.vue": Pe, "./base/select.vue": Ee, "./base/selector.vue": Ke, "./base/soundRecording.vue": Ie, "./base/switch.vue": ke, "./base/text.vue": Ae, "./base/textarea.vue": Ce, "./base/time.vue": Qe }), ue = /* @__PURE__ */ Object.assign({}), pe = /* @__PURE__ */ Object.assign({}), ve = {}, Ze = {}, He = {}, Zs = {};
1675
+ Object.keys(re).map((s) => Ze[re[s].default.name] = re[s].default);
1676
+ Object.keys(ue).map((s) => He[ue[s].default.name] = ue[s].default);
1677
+ Object.keys(pe).map((s) => Zs[pe[s].default.name] = pe[s].default);
1678
+ Object.keys(le).map((s) => ve[le[s].default.name] = le[s].default);
1679
+ const Hs = { ...Ze, ...He }, Gs = (s, e, t, o) => {
1680
+ (!e || e.toString() === "") && parseInt(e) !== 0 ? t(new Error(`${o.name}`)) : t();
1681
+ }, Xs = (s, e, t, o) => {
1682
+ e !== "" && e.length > parseInt(o.value) ? t(new Error(`${o.name}不能超过${o.value}`)) : t();
1683
+ }, eo = (s, e, t, o) => {
1684
+ e !== "" && e.length < parseInt(o.value) ? t(new Error(`${o.name}不能少于${o.value}`)) : t();
1685
+ }, to = (s, e, t, o) => {
1477
1686
  if (e !== "" && !/^1[3456789]\d{9}$/.test(e))
1478
1687
  return t(new Error("手机号码格式不正确,请重新输入")), !1;
1479
1688
  t();
1480
- }, hs = (a, e, t) => {
1689
+ }, so = (s, e, t) => {
1481
1690
  if (e !== "" && !/^[A-Za-z0-9\u4e00-\u9fa5]+@[a-zA-Z0-9_-]+(\.[a-zA-Z0-9_-]+)+$/.test(e))
1482
1691
  return t(new Error("电子邮箱格式不正确,请重新输入")), !1;
1483
1692
  t();
1484
- }, bs = (a, e, t) => {
1693
+ }, oo = (s, e, t) => {
1485
1694
  if (e !== "" && !/^-?\d+$/.test(e))
1486
1695
  return t(new Error("请输入整数")), !1;
1487
1696
  t();
1488
- }, _s = (a, e, t, s) => {
1489
- if (e !== "" && e != s.value)
1697
+ }, no = (s, e, t, o) => {
1698
+ if (e !== "" && e != o.value)
1490
1699
  return t(new Error("请输入相同的值")), !1;
1491
1700
  t();
1492
- }, Vs = (a, e, t, s) => {
1493
- e === "" ? t() : /^[+-]?\d*\.?\d*$/.test(e) ? e < parseFloat(s.value) ? t(new Error(`${s.name}不能小于${s.value}`)) : t() : t(new Error("请输入数字"));
1494
- }, ws = (a, e, t, s) => {
1495
- e === "" ? t() : /^[+-]?\d*\.?\d*$/.test(e) ? e > parseFloat(s.value) ? t(new Error(`${s.name}不能大于${s.value}`)) : t() : t(new Error("请输入数字"));
1496
- }, Ds = (a, e, t, s) => {
1497
- const f = /^[+-]?(\d*\.\d+([eE]?[+-]?\d+)?|\d+[eE][+-]?\d+)$/, d = /^-?\d+$/;
1498
- e === "" ? t() : f.test(e) || d.test(e) ? e >= parseFloat(s.start) && e <= parseFloat(s.end) ? t() : t(new Error(`只能输入指定数字范围${s.start}-${s.end}`)) : t(new Error("请输入数字"));
1499
- }, Rs = (a, e, t, s) => {
1500
- e === "" || parseFloat(e) === parseFloat(s.value) ? t() : t(new Error(`只能输入指定的值${s.value}`));
1501
- }, Ss = (a, e, t, s) => {
1502
- e === "" ? t() : /^-?\d+$/.test(e) ? Math.abs(e).toString().length === parseInt(s.value) ? t() : t(new Error(`只能输入${s.value}位数数字`)) : t(new Error("请输入整数"));
1503
- }, Ms = (a, e, t) => {
1701
+ }, ao = (s, e, t, o) => {
1702
+ e === "" ? t() : /^[+-]?\d*\.?\d*$/.test(e) ? e < parseFloat(o.value) ? t(new Error(`${o.name}不能小于${o.value}`)) : t() : t(new Error("请输入数字"));
1703
+ }, io = (s, e, t, o) => {
1704
+ e === "" ? t() : /^[+-]?\d*\.?\d*$/.test(e) ? e > parseFloat(o.value) ? t(new Error(`${o.name}不能大于${o.value}`)) : t() : t(new Error("请输入数字"));
1705
+ }, lo = (s, e, t, o) => {
1706
+ const m = /^[+-]?(\d*\.\d+([eE]?[+-]?\d+)?|\d+[eE][+-]?\d+)$/, g = /^-?\d+$/;
1707
+ e === "" ? t() : m.test(e) || g.test(e) ? e >= parseFloat(o.start) && e <= parseFloat(o.end) ? t() : t(new Error(`只能输入指定数字范围${o.start}-${o.end}`)) : t(new Error("请输入数字"));
1708
+ }, ro = (s, e, t, o) => {
1709
+ e === "" || parseFloat(e) === parseFloat(o.value) ? t() : t(new Error(`只能输入指定的值${o.value}`));
1710
+ }, uo = (s, e, t, o) => {
1711
+ e === "" ? t() : /^-?\d+$/.test(e) ? Math.abs(e).toString().length === parseInt(o.value) ? t() : t(new Error(`只能输入${o.value}位数数字`)) : t(new Error("请输入整数"));
1712
+ }, po = (s, e, t) => {
1504
1713
  if (e !== "" && !/^[a-zA-Z]{1,}$/.test(e))
1505
1714
  return t(new Error("只能输入字母")), !1;
1506
1715
  t();
1507
- }, Ls = (a, e, t) => {
1716
+ }, go = (s, e, t) => {
1508
1717
  if (e !== "" && !/^[a-zA-Z ]{1,}$/.test(e))
1509
1718
  return t(new Error("只能输入字母空格")), !1;
1510
1719
  t();
1511
- }, Ts = (a, e, t) => {
1720
+ }, co = (s, e, t) => {
1512
1721
  if (e !== "" && !/^[0-9a-zA-Z_-]{1,}$/.test(e))
1513
1722
  return t(new Error("只能输入字母数字横线下划线")), !1;
1514
1723
  t();
1515
- }, $s = (a, e, t) => {
1724
+ }, mo = (s, e, t) => {
1516
1725
  if (e !== "" && !/^[0-9a-zA-Z]{1,}$/.test(e))
1517
1726
  return t(new Error("只能输入字母数字")), !1;
1518
1727
  t();
1519
- }, Os = (a, e, t, s) => {
1520
- const f = new RegExp(s.value);
1521
- if (e !== "" && !f.test(e))
1728
+ }, fo = (s, e, t, o) => {
1729
+ const m = new RegExp(o.value);
1730
+ if (e !== "" && !m.test(e))
1522
1731
  return t(new Error("校验失败")), !1;
1523
1732
  t();
1524
- }, Fs = {
1525
- required: ms,
1526
- min: vs,
1527
- max: fs,
1528
- email: hs,
1529
- min_value: Vs,
1530
- max_value: ws,
1531
- confirmed: _s,
1532
- numeric: bs,
1533
- between: Ds,
1534
- is: Rs,
1535
- digits: Ss,
1536
- mobile: ys,
1537
- alpha: Ms,
1538
- alpha_spaces: Ls,
1539
- alpha_dash: Ts,
1540
- alpha_num: $s,
1541
- regex: Os
1542
- }, js = () => {
1543
- const a = g({}), e = g([]), t = g([]), s = g(""), f = g({});
1544
- return { data: a, formData: e, formRule: f, setData: (p, m) => {
1545
- e.value.forEach((w) => {
1546
- w.formKey === s.value && (w.data[p] = m);
1733
+ }, vo = {
1734
+ required: Gs,
1735
+ min: eo,
1736
+ max: Xs,
1737
+ email: so,
1738
+ min_value: ao,
1739
+ max_value: io,
1740
+ confirmed: no,
1741
+ numeric: oo,
1742
+ between: lo,
1743
+ is: ro,
1744
+ digits: uo,
1745
+ mobile: to,
1746
+ alpha: po,
1747
+ alpha_spaces: go,
1748
+ alpha_dash: co,
1749
+ alpha_num: mo,
1750
+ regex: fo
1751
+ }, yo = () => {
1752
+ const s = d({}), e = d([]), t = d([]), o = d(""), m = d({});
1753
+ return { data: s, formData: e, formRule: m, setData: (c, f) => {
1754
+ e.value.forEach((R) => {
1755
+ R.formKey === o.value && (R.data[c] = f);
1547
1756
  });
1548
- }, setDetailData: (p) => {
1549
- a.value = p, e.value.forEach((m) => {
1550
- m.formKey === s.value && (m.data = p);
1757
+ }, setDetailData: (c) => {
1758
+ s.value = c, e.value.forEach((f) => {
1759
+ f.formKey === o.value && (f.data = c);
1551
1760
  });
1552
- }, getData: (p) => a.value[p], setFormData: (p, m, w) => {
1553
- s.value = p, t.value.includes(p) ? e.value.forEach((F) => {
1554
- F.formKey === p && (a.value = F.data);
1555
- }) : (t.value.push(p), e.value.push({
1556
- formKey: p,
1557
- boKey: m,
1558
- reportId: w || null,
1761
+ }, getData: (c) => s.value[c], setFormData: (c, f, R) => {
1762
+ o.value = c, t.value.includes(c) ? e.value.forEach((v) => {
1763
+ v.formKey === c && (s.value = v.data);
1764
+ }) : (t.value.push(c), e.value.push({
1765
+ formKey: c,
1766
+ boKey: f,
1767
+ reportId: R || null,
1559
1768
  data: {}
1560
1769
  }));
1561
- }, getFormData: () => e.value, setFormRule: (p, m) => {
1562
- f.value[p] = [], m.forEach((w) => {
1563
- f.value[p].push({
1564
- validator: (F, C, h) => Fs[w.key](F, C, h, w)
1770
+ }, getFormData: () => e.value, setFormRule: (c, f) => {
1771
+ m.value[c] = [], f.forEach((R) => {
1772
+ m.value[c].push({
1773
+ validator: (v, _, y) => vo[R.key](v, _, y, R)
1565
1774
  });
1566
1775
  });
1567
1776
  }, clearData: () => {
1568
- a.value = {}, e.value = [], t.value = [], f.value = {};
1777
+ s.value = {}, e.value = [], t.value = [], m.value = {};
1569
1778
  } };
1570
- }, qs = { class: "custom-page" }, Bs = {
1779
+ }, ho = { class: "custom-page" }, bo = {
1571
1780
  key: 0,
1572
1781
  class: "btn-box"
1573
- }, Is = { class: "content-box" }, Ks = /* @__PURE__ */ D({
1782
+ }, _o = { class: "content-box" }, wo = /* @__PURE__ */ D({
1574
1783
  __name: "App",
1575
1784
  props: {
1576
1785
  formConfigurationId: {},
@@ -1579,60 +1788,60 @@ const cs = { ...Fe, ...je }, ms = (a, e, t, s) => {
1579
1788
  data: {}
1580
1789
  },
1581
1790
  emits: ["handleClick"],
1582
- setup(a, { expose: e, emit: t }) {
1583
- const s = js(), { formRule: f, clearData: d } = s, c = a, r = t, { formJsonList: o, isShowPage: l, btnList: i, formRef: u, getForm: p, getBtnSet: m, handleClick: w, validateFormData: F } = ht(
1584
- c,
1791
+ setup(s, { expose: e, emit: t }) {
1792
+ const o = yo(), { formRule: m, clearData: g } = o, r = s, p = t, { formJsonList: n, isShowPage: a, btnList: i, formRef: u, getForm: c, getBtnSet: f, handleClick: R, validateFormData: v } = Et(
1585
1793
  r,
1586
- s
1794
+ p,
1795
+ o
1587
1796
  );
1588
- return Ke(async () => {
1589
- m();
1797
+ return nt(async () => {
1798
+ f();
1590
1799
  }), e({
1591
- validateFormData: F,
1592
- clearData: d
1593
- }), (C, h) => (v(), E("div", qs, [
1594
- n(i).length > 0 ? (v(), E("div", Bs, [
1595
- (v(!0), E(Z, null, pe(n(i), (y) => (v(), V(n(Ae), {
1596
- key: y.id,
1800
+ validateFormData: v,
1801
+ clearData: g
1802
+ }), (_, y) => (h(), I("div", ho, [
1803
+ l(i).length > 0 ? (h(), I("div", bo, [
1804
+ (h(!0), I(ee, null, ye(l(i), (b) => (h(), V(l(rt), {
1805
+ key: b.id,
1597
1806
  style: { "margin-right": "20px" },
1598
1807
  "btn-type": "primary",
1599
- onClick: (b) => n(w)(y)
1808
+ onClick: (w) => l(R)(b)
1600
1809
  }, {
1601
- default: R(() => [
1602
- x(J(y.name), 1)
1810
+ default: S(() => [
1811
+ W(Y(b.name), 1)
1603
1812
  ]),
1604
1813
  _: 2
1605
1814
  }, 1032, ["onClick"]))), 128))
1606
- ])) : U("", !0),
1607
- Pe((v(), E("div", Is, [
1608
- n(l) ? (v(), V(n(ke), {
1815
+ ])) : J("", !0),
1816
+ at((h(), I("div", _o, [
1817
+ l(a) ? (h(), V(l(lt), {
1609
1818
  key: 0,
1610
1819
  ref_key: "formRef",
1611
1820
  ref: u,
1612
1821
  cols: 24,
1613
1822
  "margin-right": "80px",
1614
- rules: n(f),
1615
- form: n(s).data,
1823
+ rules: l(m),
1824
+ form: l(o).data,
1616
1825
  class: "form-preview-page",
1617
1826
  alignType: "horizontal"
1618
1827
  }, {
1619
- default: R(() => [
1620
- (v(!0), E(Z, null, pe(n(o), (y) => (v(), V(Ee(n(ue)[y.ctrlType]), {
1621
- key: y.name,
1622
- setting: y,
1623
- isView: c.isView,
1624
- store: n(s)
1828
+ default: S(() => [
1829
+ (h(!0), I(ee, null, ye(l(n), (b) => (h(), V(ce(l(ve)[b.ctrlType]), {
1830
+ key: b.name,
1831
+ setting: b,
1832
+ isView: r.isView,
1833
+ store: l(o)
1625
1834
  }, null, 8, ["setting", "isView", "store"]))), 128))
1626
1835
  ]),
1627
1836
  _: 1
1628
- }, 8, ["rules", "form"])) : U("", !0)
1837
+ }, 8, ["rules", "form"])) : J("", !0)
1629
1838
  ])), [
1630
- [n(Qe)]
1839
+ [l(ut)]
1631
1840
  ])
1632
1841
  ]));
1633
1842
  }
1634
- }), Ps = /* @__PURE__ */ re(Ks, [["__scopeId", "data-v-993c1451"]]), lo = qe(Ps);
1843
+ }), Vo = /* @__PURE__ */ me(wo, [["__scopeId", "data-v-993c1451"]]), Uo = Ge(Vo);
1635
1844
  export {
1636
- lo as DasProcessForm,
1637
- lo as default
1845
+ Uo as DasProcessForm,
1846
+ Uo as default
1638
1847
  };