fec-dev-designer 1.1.2 → 5.1.2

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 (34) hide show
  1. package/es/package.json.js +66 -0
  2. package/es/src/assets/approvalHistory.png.js +4 -0
  3. package/es/src/assets/logo.png.js +4 -0
  4. package/es/src/components/DataSourceSelect.vue.js +2 -1
  5. package/es/src/components/OptionConfig.vue.js +3 -2
  6. package/es/src/components/OptionConfig.vue2.js +2 -2
  7. package/es/src/components/ParamsConfig.vue.js +2 -2
  8. package/es/src/components/ParamsConfig.vue2.js +31 -32
  9. package/es/src/components/ValueSelector.vue2.js +49 -39
  10. package/es/src/layout/header/index.vue.js +95 -84
  11. package/es/src/packages/advancedFilter/ValueInput.vue2.js +57 -60
  12. package/es/src/packages/dataSource/dataSource.vue.js +98 -105
  13. package/es/src/packages/dialog/index.vue.js +443 -322
  14. package/es/src/packages/event/index.vue2.js +44 -44
  15. package/es/src/packages/event/useEventDialog.js +2 -2
  16. package/es/src/packages/eventFlow/dialog/action/FormSubmit.vue2.js +47 -54
  17. package/es/src/packages/eventFlow/dialog/action/Page.vue.js +42 -49
  18. package/es/src/packages/form/aside/index.js +27 -2
  19. package/es/src/packages/form/aside/roleSelect.js +156 -0
  20. package/es/src/packages/form/aside/userSelect.js +206 -0
  21. package/es/src/packages/form/components/ApprovalHistory.vue.js +73 -0
  22. package/es/src/packages/form/components/ApprovalHistory.vue2.js +4 -0
  23. package/es/src/packages/form/components/ComponentPreviewWrapper.vue.js +51 -41
  24. package/es/src/packages/form/components/H2Wrapper.vue.js +13 -10
  25. package/es/src/packages/form/index.vue.js +140 -130
  26. package/es/src/packages/form/property/approvalHistory.vue.js +178 -0
  27. package/es/src/packages/form/property/index.vue.js +23 -22
  28. package/es/src/packages/form/property/subTable.vue.js +37 -43
  29. package/es/src/packages/form/property/widgets.vue.js +258 -202
  30. package/es/src/packages/table/aside/index.js +2 -1
  31. package/es/src/packages/table/default.js +24 -21
  32. package/es/src/packages/table/property/widgets.vue.js +63 -47
  33. package/es/style.css +1 -1
  34. package/package.json +1 -1
@@ -15,7 +15,7 @@ import "../../../node_modules/element-plus/theme-chalk/el-scrollbar.css.js";
15
15
  import "../../../node_modules/element-plus/theme-chalk/el-dropdown.css.js";
16
16
  import "../../../node_modules/element-plus/theme-chalk/el-dropdown-menu.css.js";
17
17
  import "../../../node_modules/element-plus/theme-chalk/el-dropdown-item.css.js";
18
- import { mergeModels as K, useModel as Q, ref as p, watch as W, resolveComponent as $, openBlock as d, createBlock as w, withCtx as o, createElementVNode as a, createVNode as l, createTextVNode as g, createElementBlock as _, Fragment as V, renderList as D, toDisplayString as b, normalizeClass as X, normalizeStyle as Y } from "vue";
18
+ import { mergeModels as K, useModel as Q, ref as p, watch as W, resolveComponent as $, openBlock as d, createBlock as w, withCtx as o, createElementVNode as a, createVNode as n, createTextVNode as g, createElementBlock as _, Fragment as V, renderList as D, toDisplayString as b, normalizeClass as X, normalizeStyle as Y } from "vue";
19
19
  import Z from "../eventFlow/index.vue.js";
20
20
  import ee from "../eventFlow/defaultProcessData.js";
21
21
  import { cloneDeep as B } from "../utils/common.js";
@@ -24,8 +24,8 @@ import "../../../node_modules/element-plus/theme-chalk/el-message.css.js";
24
24
  import "./index.vue.js";
25
25
  import te from "../../../_virtual/_plugin-vue_export-helper.js";
26
26
  import { ElMessage as oe } from "../../../node_modules/element-plus/es/components/message/index.js";
27
- import { ElIcon as le } from "../../../node_modules/element-plus/es/components/icon/index.js";
28
- import { ElDropdownItem as ne, ElDropdownMenu as ae, ElDropdown as se } from "../../../node_modules/element-plus/es/components/dropdown/index.js";
27
+ import { ElIcon as ne } from "../../../node_modules/element-plus/es/components/icon/index.js";
28
+ import { ElDropdownItem as le, ElDropdownMenu as ae, ElDropdown as se } from "../../../node_modules/element-plus/es/components/dropdown/index.js";
29
29
  import { ElHeader as re, ElMain as ie, ElContainer as de, ElAside as me } from "../../../node_modules/element-plus/es/components/container/index.js";
30
30
  import { ElTabPane as ce, ElTabs as ue } from "../../../node_modules/element-plus/es/components/tabs/index.js";
31
31
  import { ElButton as pe } from "../../../node_modules/element-plus/es/components/button/index.js";
@@ -33,7 +33,7 @@ import { ElDialog as ve } from "../../../node_modules/element-plus/es/components
33
33
  const fe = { class: "el-dropdown-link" }, _e = ["onClick"], we = { class: "event-title" }, ge = { class: "event-method" }, be = { class: "event-label" }, ye = { class: "tab-content" }, Ee = {
34
34
  key: 1,
35
35
  class: "empty-selection"
36
- }, ke = { class: "dialog-footer" }, Ce = {
36
+ }, Ce = { class: "dialog-footer" }, ke = {
37
37
  __name: "index",
38
38
  props: /* @__PURE__ */ K({
39
39
  eventConfig: Object,
@@ -75,17 +75,17 @@ const fe = { class: "el-dropdown-link" }, _e = ["onClick"], we = { class: "event
75
75
  W(v, (t) => {
76
76
  t && (s.value = B(E.eventConfig) || [], s.value.length > 0 && (r.value = 0));
77
77
  });
78
- const f = p("eventFlow"), k = p({}), C = p({}), O = (t, e) => {
79
- t && (k.value[e] = t);
78
+ const f = p("eventFlow"), C = p({}), k = p({}), O = (t, e) => {
79
+ t && (C.value[e] = t);
80
80
  }, T = async () => {
81
81
  var e;
82
- C.value = {};
82
+ k.value = {};
83
83
  const t = [];
84
- for (const [m, u] of Object.entries(k.value))
84
+ for (const [m, u] of Object.entries(C.value))
85
85
  try {
86
86
  u != null && u.validate && await u.validate();
87
87
  } catch (F) {
88
- C.value[m] = !0, t.push({
88
+ k.value[m] = !0, t.push({
89
89
  event: (e = s.value[m]) == null ? void 0 : e.name,
90
90
  errors: F
91
91
  });
@@ -99,7 +99,7 @@ const fe = { class: "el-dropdown-link" }, _e = ["onClick"], we = { class: "event
99
99
  eventFlow: c()
100
100
  }), r.value = s.value.length - 1, f.value = "eventFlow");
101
101
  }, R = (t) => {
102
- s.value.splice(t, 1), delete k.value[t], r.value === t ? (r.value = -1, f.value = "eventFlow") : r.value > t && r.value--;
102
+ s.value.splice(t, 1), delete C.value[t], r.value === t ? (r.value = -1, f.value = "eventFlow") : r.value > t && r.value--;
103
103
  }, z = async () => {
104
104
  try {
105
105
  f.value === "eventFlow" && await T(), E.onConfirm && E.onConfirm(B(s.value)), v.value = !1;
@@ -110,10 +110,10 @@ const fe = { class: "el-dropdown-link" }, _e = ["onClick"], we = { class: "event
110
110
  }
111
111
  };
112
112
  return (t, e) => {
113
- const m = $("arrow-down"), u = le, F = ne, J = ae, P = se, U = re, q = $("Delete"), x = ie, M = de, H = me, N = ce, L = ue, S = pe, G = ve;
113
+ const m = $("arrow-down"), u = ne, F = le, J = ae, P = se, U = re, q = $("Delete"), x = ie, M = de, H = me, N = ce, L = ue, S = pe, G = ve;
114
114
  return d(), w(G, {
115
115
  modelValue: v.value,
116
- "onUpdate:modelValue": e[2] || (e[2] = (n) => v.value = n),
116
+ "onUpdate:modelValue": e[2] || (e[2] = (l) => v.value = l),
117
117
  width: "70%",
118
118
  title: y.title,
119
119
  draggable: "",
@@ -122,16 +122,16 @@ const fe = { class: "el-dropdown-link" }, _e = ["onClick"], we = { class: "event
122
122
  class: "fec-dev-designer-dialog"
123
123
  }, {
124
124
  footer: o(() => [
125
- a("div", ke, [
126
- l(S, {
127
- onClick: e[1] || (e[1] = (n) => v.value = !1)
125
+ a("div", Ce, [
126
+ n(S, {
127
+ onClick: e[1] || (e[1] = (l) => v.value = !1)
128
128
  }, {
129
129
  default: o(() => [...e[6] || (e[6] = [
130
130
  g("取消", -1)
131
131
  ])]),
132
132
  _: 1
133
133
  }),
134
- l(S, {
134
+ n(S, {
135
135
  type: "primary",
136
136
  onClick: z
137
137
  }, {
@@ -143,34 +143,34 @@ const fe = { class: "el-dropdown-link" }, _e = ["onClick"], we = { class: "event
143
143
  ])
144
144
  ]),
145
145
  default: o(() => [
146
- l(M, { style: { border: "1px solid #ebeef5", "border-radius": "4px" } }, {
146
+ n(M, { style: { border: "1px solid #ebeef5", "border-radius": "4px" } }, {
147
147
  default: o(() => [
148
- l(H, { width: "300px" }, {
148
+ n(H, { width: "300px" }, {
149
149
  default: o(() => [
150
- l(M, { style: { height: "600px" } }, {
150
+ n(M, { style: { height: "600px" } }, {
151
151
  default: o(() => [
152
- l(U, {
152
+ n(U, {
153
153
  height: "40px",
154
154
  style: { "background-color": "#f2f2f2" }
155
155
  }, {
156
156
  default: o(() => [
157
- l(P, {
157
+ n(P, {
158
158
  trigger: "click",
159
159
  placement: "bottom-start",
160
160
  style: { height: "100%" }
161
161
  }, {
162
162
  dropdown: o(() => [
163
- l(J, null, {
163
+ n(J, null, {
164
164
  default: o(() => [
165
- (d(!0), _(V, null, D(I.value, (n) => (d(), w(F, {
166
- key: n.name,
167
- disabled: j(n.name),
168
- onClick: (i) => A(n)
165
+ (d(!0), _(V, null, D(I.value, (l) => (d(), w(F, {
166
+ key: l.name,
167
+ disabled: j(l.name),
168
+ onClick: (i) => A(l)
169
169
  }, {
170
170
  default: o(() => [
171
171
  a("div", null, [
172
- a("span", null, b(n.name), 1),
173
- a("span", null, b(n.description), 1)
172
+ a("span", null, b(l.name), 1),
173
+ a("span", null, b(l.description), 1)
174
174
  ])
175
175
  ]),
176
176
  _: 2
@@ -182,9 +182,9 @@ const fe = { class: "el-dropdown-link" }, _e = ["onClick"], we = { class: "event
182
182
  default: o(() => [
183
183
  a("span", fe, [
184
184
  e[3] || (e[3] = g(" 新增事件 ", -1)),
185
- l(u, { class: "el-icon--right" }, {
185
+ n(u, { class: "el-icon--right" }, {
186
186
  default: o(() => [
187
- l(m)
187
+ n(m)
188
188
  ]),
189
189
  _: 1
190
190
  })
@@ -195,15 +195,15 @@ const fe = { class: "el-dropdown-link" }, _e = ["onClick"], we = { class: "event
195
195
  ]),
196
196
  _: 1
197
197
  }),
198
- l(x, { style: { padding: "10px" } }, {
198
+ n(x, { style: { padding: "10px" } }, {
199
199
  default: o(() => [
200
- (d(!0), _(V, null, D(s.value, (n, i) => (d(), _("div", {
200
+ (d(!0), _(V, null, D(s.value, (l, i) => (d(), _("div", {
201
201
  key: i,
202
202
  class: X([
203
203
  "event-menu-item",
204
204
  {
205
205
  "is-active": r.value === i,
206
- "is-error": C.value[i]
206
+ "is-error": k.value[i]
207
207
  }
208
208
  ]),
209
209
  onClick: (h) => r.value = i
@@ -212,16 +212,16 @@ const fe = { class: "el-dropdown-link" }, _e = ["onClick"], we = { class: "event
212
212
  a("div", ge, [
213
213
  a("span", null, [
214
214
  e[4] || (e[4] = g("function ", -1)),
215
- a("span", null, b(n.name), 1)
215
+ a("span", null, b(l.name), 1)
216
216
  ]),
217
- a("span", be, b(n.description), 1)
217
+ a("span", be, b(l.description), 1)
218
218
  ]),
219
- l(u, {
219
+ n(u, {
220
220
  class: "delete-icon",
221
221
  onClick: (h) => R(i)
222
222
  }, {
223
223
  default: o(() => [
224
- l(q)
224
+ n(q)
225
225
  ]),
226
226
  _: 1
227
227
  }, 8, ["onClick"])
@@ -236,26 +236,26 @@ const fe = { class: "el-dropdown-link" }, _e = ["onClick"], we = { class: "event
236
236
  ]),
237
237
  _: 1
238
238
  }),
239
- l(x, { style: { "border-left": "1px solid #ebeef5", padding: "0" } }, {
239
+ n(x, { style: { "border-left": "1px solid #ebeef5", padding: "0" } }, {
240
240
  default: o(() => [
241
241
  r.value !== -1 ? (d(), w(L, {
242
242
  key: 0,
243
243
  modelValue: f.value,
244
- "onUpdate:modelValue": e[0] || (e[0] = (n) => f.value = n),
244
+ "onUpdate:modelValue": e[0] || (e[0] = (l) => f.value = l),
245
245
  class: "event-tabs"
246
246
  }, {
247
247
  default: o(() => [
248
- l(N, {
248
+ n(N, {
249
249
  label: "事件流",
250
250
  name: "eventFlow"
251
251
  }, {
252
252
  default: o(() => [
253
253
  a("div", ye, [
254
- (d(!0), _(V, null, D(s.value, (n, i) => (d(), w(Z, {
254
+ (d(!0), _(V, null, D(s.value, (l, i) => (d(), w(Z, {
255
255
  key: i,
256
256
  ref_for: !0,
257
257
  ref: (h) => O(h, i),
258
- process: n.eventFlow,
258
+ process: l.eventFlow,
259
259
  style: Y({
260
260
  display: r.value === i ? "block" : "none"
261
261
  })
@@ -264,7 +264,7 @@ const fe = { class: "el-dropdown-link" }, _e = ["onClick"], we = { class: "event
264
264
  ]),
265
265
  _: 1
266
266
  }),
267
- l(N, {
267
+ n(N, {
268
268
  label: "自定义",
269
269
  name: "custom"
270
270
  }, {
@@ -289,7 +289,7 @@ const fe = { class: "el-dropdown-link" }, _e = ["onClick"], we = { class: "event
289
289
  }, 8, ["modelValue", "title"]);
290
290
  };
291
291
  }
292
- }, ot = /* @__PURE__ */ te(Ce, [["__scopeId", "data-v-e45fecb2"]]);
292
+ }, ot = /* @__PURE__ */ te(ke, [["__scopeId", "data-v-e45fecb2"]]);
293
293
  export {
294
294
  ot as default
295
295
  };
@@ -1,7 +1,7 @@
1
1
  import o from "./index.vue2.js";
2
- import { ref as t } from "vue";
2
+ import { ref as n } from "vue";
3
3
  function l() {
4
- const e = t(!1);
4
+ const e = n(!1);
5
5
  return {
6
6
  eventDialogVisible: e,
7
7
  openEventDialog: () => {
@@ -1,82 +1,75 @@
1
1
  import "../../../../../node_modules/element-plus/theme-chalk/base.css.js";
2
2
  import "../../../../../node_modules/element-plus/theme-chalk/el-form-item.css.js";
3
3
  import "../../../../../node_modules/element-plus/theme-chalk/el-switch.css.js";
4
- import { computed as f, openBlock as s, createElementBlock as u, Fragment as V, createVNode as o, withCtx as m, createElementVNode as a, unref as p } from "vue";
5
- import c from "../../../../components/DataSourceSelect.vue.js";
6
- import b from "../../../../components/FieldMapping.vue2.js";
7
- import D from "../../../../components/ParamsConfig.vue2.js";
8
- import { getEditConfigDataFields as v } from "../../../utils/common.js";
4
+ import { openBlock as n, createElementBlock as i, Fragment as u, createVNode as e, withCtx as d, createElementVNode as a } from "vue";
5
+ import f from "../../../../components/DataSourceSelect.vue.js";
6
+ import s from "../../../../components/FieldMapping.vue2.js";
7
+ import V from "../../../../components/ParamsConfig.vue2.js";
8
+ import "../../../../store/index.js";
9
9
  import "./FormSubmit.vue.js";
10
- import F from "../../../../../_virtual/_plugin-vue_export-helper.js";
11
- import { ElSwitch as g } from "../../../../../node_modules/element-plus/es/components/switch/index.js";
12
- import { ElFormItem as x } from "../../../../../node_modules/element-plus/es/components/form/index.js";
13
- const E = { class: "desc-content" }, S = { class: "desc-content" }, U = { class: "desc-content" }, w = {
10
+ import p from "../../../../../_virtual/_plugin-vue_export-helper.js";
11
+ import { ElSwitch as c } from "../../../../../node_modules/element-plus/es/components/switch/index.js";
12
+ import { ElFormItem as D } from "../../../../../node_modules/element-plus/es/components/form/index.js";
13
+ const b = { class: "desc-content" }, v = { class: "desc-content" }, F = { class: "desc-content" }, x = {
14
14
  __name: "FormSubmit",
15
15
  props: {
16
16
  formData: Object
17
17
  },
18
- setup(l) {
19
- const r = f(() => (v() || []).map((e) => ({
20
- id: e.id,
21
- label: e.label,
22
- fieldName: e.fieldName,
23
- fieldType: e.fieldType
24
- })));
25
- return (n, e) => {
26
- const i = g, d = x;
27
- return s(), u(V, null, [
28
- o(d, { label: "表单校验" }, {
29
- default: m(() => [
30
- o(i, {
31
- modelValue: l.formData.formValidate,
32
- "onUpdate:modelValue": e[0] || (e[0] = (t) => l.formData.formValidate = t)
18
+ setup(o) {
19
+ return (g, t) => {
20
+ const r = c, m = D;
21
+ return n(), i(u, null, [
22
+ e(m, { label: "表单校验" }, {
23
+ default: d(() => [
24
+ e(r, {
25
+ modelValue: o.formData.formValidate,
26
+ "onUpdate:modelValue": t[0] || (t[0] = (l) => o.formData.formValidate = l)
33
27
  }, null, 8, ["modelValue"])
34
28
  ]),
35
29
  _: 1
36
30
  }),
37
- o(d, { label: "选择数据源" }, {
38
- default: m(() => [
39
- o(c, {
40
- modelValue: l.formData.dataSourceId,
41
- "onUpdate:modelValue": e[1] || (e[1] = (t) => l.formData.dataSourceId = t)
31
+ e(m, { label: "选择数据源" }, {
32
+ default: d(() => [
33
+ e(f, {
34
+ modelValue: o.formData.dataSourceId,
35
+ "onUpdate:modelValue": t[1] || (t[1] = (l) => o.formData.dataSourceId = l)
42
36
  }, null, 8, ["modelValue"])
43
37
  ]),
44
38
  _: 1
45
39
  }),
46
- o(d, { label: "扩展参数" }, {
47
- default: m(() => [
48
- a("div", E, [
49
- e[5] || (e[5] = a("div", { class: "condition-desc" }, " 配置额外的请求参数,用于补充表单上没有的字段。 ", -1)),
50
- o(D, {
51
- modelValue: l.formData.extraParams,
52
- "onUpdate:modelValue": e[2] || (e[2] = (t) => l.formData.extraParams = t),
53
- "available-fields": p(r)
54
- }, null, 8, ["modelValue", "available-fields"])
40
+ e(m, { label: "扩展参数" }, {
41
+ default: d(() => [
42
+ a("div", b, [
43
+ t[5] || (t[5] = a("div", { class: "condition-desc" }, " 配置额外的请求参数,用于补充表单上没有的字段。 ", -1)),
44
+ e(V, {
45
+ modelValue: o.formData.extraParams,
46
+ "onUpdate:modelValue": t[2] || (t[2] = (l) => o.formData.extraParams = l)
47
+ }, null, 8, ["modelValue"])
55
48
  ])
56
49
  ]),
57
50
  _: 1
58
51
  }),
59
- o(d, { label: "字段映射" }, {
60
- default: m(() => [
61
- a("div", S, [
62
- e[6] || (e[6] = a("div", { class: "condition-desc" }, " 当提交的字段与表单字段不一致时,可通过此配置进行映射。 ", -1)),
63
- o(b, {
64
- modelValue: l.formData.fieldMapping,
65
- "onUpdate:modelValue": e[3] || (e[3] = (t) => l.formData.fieldMapping = t)
52
+ e(m, { label: "字段映射" }, {
53
+ default: d(() => [
54
+ a("div", v, [
55
+ t[6] || (t[6] = a("div", { class: "condition-desc" }, " 当提交的字段与表单字段不一致时,可通过此配置进行映射。 ", -1)),
56
+ e(s, {
57
+ modelValue: o.formData.fieldMapping,
58
+ "onUpdate:modelValue": t[3] || (t[3] = (l) => o.formData.fieldMapping = l)
66
59
  }, null, 8, ["modelValue"])
67
60
  ])
68
61
  ]),
69
62
  _: 1
70
63
  }),
71
- o(d, { label: "赋值表单" }, {
72
- default: m(() => [
73
- a("div", U, [
74
- o(i, {
75
- modelValue: l.formData.returnToForm,
76
- "onUpdate:modelValue": e[4] || (e[4] = (t) => l.formData.returnToForm = t),
64
+ e(m, { label: "赋值表单" }, {
65
+ default: d(() => [
66
+ a("div", F, [
67
+ e(r, {
68
+ modelValue: o.formData.returnToForm,
69
+ "onUpdate:modelValue": t[4] || (t[4] = (l) => o.formData.returnToForm = l),
77
70
  style: { width: "100%" }
78
71
  }, null, 8, ["modelValue"]),
79
- e[7] || (e[7] = a("div", { class: "condition-desc" }, " 当开启后,将返回的数据赋值到表单字段及隐藏域中。 ", -1))
72
+ t[7] || (t[7] = a("div", { class: "condition-desc" }, " 当开启后,将返回的数据赋值到表单字段及隐藏域中。 ", -1))
80
73
  ])
81
74
  ]),
82
75
  _: 1
@@ -84,7 +77,7 @@ const E = { class: "desc-content" }, S = { class: "desc-content" }, U = { class:
84
77
  ], 64);
85
78
  };
86
79
  }
87
- }, q = /* @__PURE__ */ F(w, [["__scopeId", "data-v-24a7b471"]]);
80
+ }, j = /* @__PURE__ */ p(x, [["__scopeId", "data-v-fca821f2"]]);
88
81
  export {
89
- q as default
82
+ j as default
90
83
  };
@@ -5,41 +5,35 @@ import "../../../../../node_modules/element-plus/theme-chalk/el-form-item.css.js
5
5
  import "../../../../../node_modules/element-plus/theme-chalk/el-radio.css.js";
6
6
  import "../../../../../node_modules/element-plus/theme-chalk/el-radio-group.css.js";
7
7
  import "../../../../../node_modules/element-plus/theme-chalk/el-radio-button.css.js";
8
- import { computed as p, openBlock as s, createElementBlock as V, Fragment as b, createVNode as l, withCtx as t, unref as D } from "vue";
9
- import c from "../../../../components/ParamsConfig.vue2.js";
10
- import { getEditConfigDataFields as g } from "../../../utils/common.js";
11
- import { ElRadioButton as P, ElRadioGroup as E } from "../../../../../node_modules/element-plus/es/components/radio/index.js";
12
- import { ElFormItem as N } from "../../../../../node_modules/element-plus/es/components/form/index.js";
13
- import { ElSwitch as v } from "../../../../../node_modules/element-plus/es/components/switch/index.js";
14
- import { ElInput as w } from "../../../../../node_modules/element-plus/es/components/input/index.js";
15
- const O = {
8
+ import { openBlock as i, createElementBlock as f, Fragment as p, createVNode as o, withCtx as l } from "vue";
9
+ import V from "../../../../components/ParamsConfig.vue2.js";
10
+ import "../../../../store/index.js";
11
+ import { ElRadioButton as D, ElRadioGroup as b } from "../../../../../node_modules/element-plus/es/components/radio/index.js";
12
+ import { ElFormItem as s } from "../../../../../node_modules/element-plus/es/components/form/index.js";
13
+ import { ElSwitch as P } from "../../../../../node_modules/element-plus/es/components/switch/index.js";
14
+ import { ElInput as g } from "../../../../../node_modules/element-plus/es/components/input/index.js";
15
+ const T = {
16
16
  __name: "Page",
17
17
  props: {
18
18
  formData: Object
19
19
  },
20
- setup(a) {
21
- const d = p(() => (g() || []).map((e) => ({
22
- id: e.id,
23
- label: e.label,
24
- fieldName: e.fieldName,
25
- fieldType: e.fieldType
26
- })));
27
- return (u, e) => {
28
- const n = P, i = E, m = N, r = v, f = w;
29
- return s(), V(b, null, [
30
- l(m, { label: "跳转方式" }, {
31
- default: t(() => [
32
- l(i, {
33
- modelValue: a.formData.transitionType,
34
- "onUpdate:modelValue": e[0] || (e[0] = (o) => a.formData.transitionType = o),
20
+ setup(e) {
21
+ return (c, t) => {
22
+ const n = D, u = b, m = s, r = P, d = g;
23
+ return i(), f(p, null, [
24
+ o(m, { label: "跳转方式" }, {
25
+ default: l(() => [
26
+ o(u, {
27
+ modelValue: e.formData.transitionType,
28
+ "onUpdate:modelValue": t[0] || (t[0] = (a) => e.formData.transitionType = a),
35
29
  size: "small"
36
30
  }, {
37
- default: t(() => [
38
- l(n, {
31
+ default: l(() => [
32
+ o(n, {
39
33
  label: "路由跳转",
40
34
  value: "page"
41
35
  }),
42
- l(n, {
36
+ o(n, {
43
37
  label: "外部链接",
44
38
  value: "external"
45
39
  })
@@ -49,40 +43,39 @@ const O = {
49
43
  ]),
50
44
  _: 1
51
45
  }),
52
- l(m, { label: "打开新页面" }, {
53
- default: t(() => [
54
- l(r, {
55
- modelValue: a.formData.openNewPage,
56
- "onUpdate:modelValue": e[1] || (e[1] = (o) => a.formData.openNewPage = o)
46
+ o(m, { label: "打开新页面" }, {
47
+ default: l(() => [
48
+ o(r, {
49
+ modelValue: e.formData.openNewPage,
50
+ "onUpdate:modelValue": t[1] || (t[1] = (a) => e.formData.openNewPage = a)
57
51
  }, null, 8, ["modelValue"])
58
52
  ]),
59
53
  _: 1
60
54
  }),
61
- l(m, { label: "不可回退当前页" }, {
62
- default: t(() => [
63
- l(r, {
64
- modelValue: a.formData.canNotGoBack,
65
- "onUpdate:modelValue": e[2] || (e[2] = (o) => a.formData.canNotGoBack = o)
55
+ o(m, { label: "不可回退当前页" }, {
56
+ default: l(() => [
57
+ o(r, {
58
+ modelValue: e.formData.canNotGoBack,
59
+ "onUpdate:modelValue": t[2] || (t[2] = (a) => e.formData.canNotGoBack = a)
66
60
  }, null, 8, ["modelValue"])
67
61
  ]),
68
62
  _: 1
69
63
  }),
70
- l(m, { label: "页面地址" }, {
71
- default: t(() => [
72
- l(f, {
73
- modelValue: a.formData.routePath,
74
- "onUpdate:modelValue": e[3] || (e[3] = (o) => a.formData.routePath = o)
64
+ o(m, { label: "页面地址" }, {
65
+ default: l(() => [
66
+ o(d, {
67
+ modelValue: e.formData.routePath,
68
+ "onUpdate:modelValue": t[3] || (t[3] = (a) => e.formData.routePath = a)
75
69
  }, null, 8, ["modelValue"])
76
70
  ]),
77
71
  _: 1
78
72
  }),
79
- l(m, { label: "页面参数" }, {
80
- default: t(() => [
81
- l(c, {
82
- modelValue: a.formData.routeParams,
83
- "onUpdate:modelValue": e[4] || (e[4] = (o) => a.formData.routeParams = o),
84
- "available-fields": D(d)
85
- }, null, 8, ["modelValue", "available-fields"])
73
+ o(m, { label: "页面参数" }, {
74
+ default: l(() => [
75
+ o(V, {
76
+ modelValue: e.formData.routeParams,
77
+ "onUpdate:modelValue": t[4] || (t[4] = (a) => e.formData.routeParams = a)
78
+ }, null, 8, ["modelValue"])
86
79
  ]),
87
80
  _: 1
88
81
  })
@@ -91,5 +84,5 @@ const O = {
91
84
  }
92
85
  };
93
86
  export {
94
- O as default
87
+ T as default
95
88
  };
@@ -1,3 +1,5 @@
1
+ import l from "./userSelect.js";
2
+ import a from "./roleSelect.js";
1
3
  const e = {
2
4
  fieldName: "fieldName",
3
5
  format: "number",
@@ -8,7 +10,7 @@ const e = {
8
10
  dateType: "date",
9
11
  suffixButton: "none",
10
12
  suffixDialogName: "选择"
11
- }, l = [
13
+ }, d = [
12
14
  {
13
15
  title: "基础组件",
14
16
  name: "basic",
@@ -130,10 +132,33 @@ const e = {
130
132
  ...e,
131
133
  showFullPath: !0,
132
134
  maxLevel: 10
135
+ },
136
+ {
137
+ fieldType: "userSelect",
138
+ label: "用户选择",
139
+ ...e,
140
+ dialogConfig: l
141
+ },
142
+ {
143
+ fieldType: "roleSelect",
144
+ label: "角色选择",
145
+ ...e,
146
+ dialogConfig: a
147
+ },
148
+ {
149
+ fieldType: "orgSelect",
150
+ label: "机构选择",
151
+ ...e
152
+ },
153
+ {
154
+ fieldType: "approvalHistory",
155
+ label: "审批历史",
156
+ titleMode: "label",
157
+ appHisDefault: "timeLine"
133
158
  }
134
159
  ]
135
160
  }
136
161
  ];
137
162
  export {
138
- l as default
163
+ d as default
139
164
  };