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
@@ -13,95 +13,89 @@ import "../../../node_modules/element-plus/theme-chalk/el-option.css.js";
13
13
  import "../../../node_modules/element-plus/theme-chalk/el-option-group.css.js";
14
14
  import "../../../node_modules/element-plus/theme-chalk/el-popper.css.js";
15
15
  import "../../../node_modules/element-plus/theme-chalk/el-select.css.js";
16
- import { ref as v, computed as z, watch as B, openBlock as _, createElementBlock as C, createVNode as t, unref as a, isRef as I, withCtx as o, createElementVNode as u, Fragment as j, renderList as J, createBlock as G, createTextVNode as d, toDisplayString as D } from "vue";
17
- import { VideoPlay as k, CopyDocument as h, Document as H } from "../../../node_modules/@element-plus/icons-vue/dist/index.js";
18
- import K from "../../components/ParamsConfig.vue2.js";
19
- import { getEditConfigDataFields as M } from "../utils/common.js";
20
- import { JsonViewer as Q } from "../../../node_modules/vue3-json-viewer/dist/vue3-json-viewer.js";
16
+ import { ref as v, watch as $, openBlock as _, createElementBlock as b, createVNode as t, unref as a, isRef as z, withCtx as o, createElementVNode as i, Fragment as B, renderList as I, createBlock as j, createTextVNode as d, toDisplayString as D } from "vue";
17
+ import { VideoPlay as N, CopyDocument as J, Document as G } from "../../../node_modules/@element-plus/icons-vue/dist/index.js";
18
+ import h from "../../components/ParamsConfig.vue2.js";
19
+ import "../../store/index.js";
20
+ import { JsonViewer as H } from "../../../node_modules/vue3-json-viewer/dist/vue3-json-viewer.js";
21
21
  import "../../../node_modules/vue3-json-viewer/dist/vue3-json-viewer.css.js";
22
- import { get as A, post as W, postForm as X } from "../../axios/index.js";
22
+ import { get as K, post as M, postForm as Q } from "../../axios/index.js";
23
23
  import S from "../../utils/env.js";
24
24
  import "../../../node_modules/element-plus/theme-chalk/el-badge.css.js";
25
25
  import "../../../node_modules/element-plus/theme-chalk/el-message.css.js";
26
26
  import "./dataSource.vue2.js";
27
- import Y from "../../../_virtual/_plugin-vue_export-helper.js";
27
+ import A from "../../../_virtual/_plugin-vue_export-helper.js";
28
28
  import { ElMessage as V } from "../../../node_modules/element-plus/es/components/message/index.js";
29
- import { ElOption as Z, ElSelect as ee } from "../../../node_modules/element-plus/es/components/select/index.js";
30
- import { ElFormItem as te, ElForm as oe } from "../../../node_modules/element-plus/es/components/form/index.js";
31
- import { ElInput as ae } from "../../../node_modules/element-plus/es/components/input/index.js";
32
- import { ElRadio as le, ElRadioGroup as se } from "../../../node_modules/element-plus/es/components/radio/index.js";
33
- import { ElIcon as ne } from "../../../node_modules/element-plus/es/components/icon/index.js";
34
- import { ElButton as re } from "../../../node_modules/element-plus/es/components/button/index.js";
35
- import { ElTag as ie } from "../../../node_modules/element-plus/es/components/tag/index.js";
36
- import { ElTabPane as ue, ElTabs as me } from "../../../node_modules/element-plus/es/components/tabs/index.js";
37
- import { ElScrollbar as de } from "../../../node_modules/element-plus/es/components/scrollbar/index.js";
38
- const fe = { class: "data-source" }, pe = { class: "config-section" }, ce = { class: "test-section" }, ve = { class: "section-header" }, _e = { class: "section-title" }, ge = {
29
+ import { ElOption as W, ElSelect as X } from "../../../node_modules/element-plus/es/components/select/index.js";
30
+ import { ElFormItem as Y, ElForm as Z } from "../../../node_modules/element-plus/es/components/form/index.js";
31
+ import { ElInput as ee } from "../../../node_modules/element-plus/es/components/input/index.js";
32
+ import { ElRadio as te, ElRadioGroup as oe } from "../../../node_modules/element-plus/es/components/radio/index.js";
33
+ import { ElIcon as ae } from "../../../node_modules/element-plus/es/components/icon/index.js";
34
+ import { ElButton as le } from "../../../node_modules/element-plus/es/components/button/index.js";
35
+ import { ElTag as se } from "../../../node_modules/element-plus/es/components/tag/index.js";
36
+ import { ElTabPane as ne, ElTabs as re } from "../../../node_modules/element-plus/es/components/tabs/index.js";
37
+ import { ElScrollbar as ue } from "../../../node_modules/element-plus/es/components/scrollbar/index.js";
38
+ const ie = { class: "data-source" }, me = { class: "config-section" }, de = { class: "test-section" }, pe = { class: "section-header" }, fe = { class: "section-title" }, ce = {
39
39
  key: 0,
40
40
  class: "response-area"
41
- }, be = { class: "response-title" }, ye = { class: "response-actions" }, Ce = { class: "response-status" }, De = { class: "response-time" }, Ve = {
41
+ }, ve = { class: "response-title" }, _e = { class: "response-actions" }, ge = { class: "response-status" }, ye = { class: "response-time" }, Ce = {
42
42
  key: 1,
43
43
  class: "empty-response"
44
- }, qe = {
44
+ }, be = {
45
45
  __name: "dataSource",
46
46
  props: {
47
47
  requestConfigData: Object
48
48
  },
49
49
  setup(r) {
50
- const q = r, E = v("requestConfig"), c = v(!1), i = v(""), T = v(0), x = v([]);
51
- for (const s in S.servers)
50
+ const q = r, E = v("requestConfig"), c = v(!1), u = v(""), T = v(0), x = v([]);
51
+ for (const n in S.servers)
52
52
  x.value.push({
53
- label: s,
54
- value: S.servers[s]
53
+ label: n,
54
+ value: S.servers[n]
55
55
  });
56
- const R = z(() => (M() || []).map((e) => ({
57
- id: e.id,
58
- label: e.label,
59
- fieldName: e.fieldName,
60
- fieldType: e.fieldType
61
- })));
62
- B(
56
+ $(
63
57
  () => q.requestConfigData,
64
58
  () => {
65
- i.value = "", T.value = 0;
59
+ u.value = "", T.value = 0;
66
60
  },
67
61
  { deep: !0 }
68
62
  );
69
- async function F() {
70
- var g, b;
71
- const s = q.requestConfigData;
72
- if (!s.serverName) {
63
+ async function R() {
64
+ var g, y;
65
+ const n = q.requestConfigData;
66
+ if (!n.serverName) {
73
67
  V.warning("请选择服务");
74
68
  return;
75
69
  }
76
- if (!s.url) {
70
+ if (!n.url) {
77
71
  V.warning("请输入请求URL");
78
72
  return;
79
73
  }
80
- c.value = !0, i.value = "";
74
+ c.value = !0, u.value = "";
81
75
  const e = Date.now();
82
76
  try {
83
- const n = {};
84
- (q.requestConfigData.params || []).forEach((p) => {
85
- p.key && (n[p.key] = p.value);
77
+ const s = {};
78
+ (q.requestConfigData.params || []).forEach((f) => {
79
+ f.key && (s[f.key] = f.value);
86
80
  });
87
- const m = `${s.serverName ? `/${s.serverName}` : ""}${s.url}`;
88
- let f;
89
- if (s.method === "get") {
90
- const p = new URLSearchParams(n).toString(), y = p ? `${m}?${p}` : m;
91
- f = await A(y, c.value);
81
+ const m = `${n.serverName ? `/${n.serverName}` : ""}${n.url}`;
82
+ let p;
83
+ if (n.method === "get") {
84
+ const f = new URLSearchParams(s).toString(), C = f ? `${m}?${f}` : m;
85
+ p = await K(C, c.value);
92
86
  } else
93
- s.contentType === "json" ? f = await W(m, n, c.value) : f = await X(m, n, c.value);
94
- i.value = {
87
+ n.contentType === "json" ? p = await M(m, s, c.value) : p = await Q(m, s, c.value);
88
+ u.value = {
95
89
  status: 200,
96
90
  statusText: "OK",
97
- data: f.data || f
91
+ data: p.data || p
98
92
  };
99
- } catch (n) {
100
- i.value = {
93
+ } catch (s) {
94
+ u.value = {
101
95
  success: !1,
102
- error: n.message || "未知错误",
103
- status: ((g = n.response) == null ? void 0 : g.status) || 0,
104
- statusText: ((b = n.response) == null ? void 0 : b.statusText) || "网络错误"
96
+ error: s.message || "未知错误",
97
+ status: ((g = s.response) == null ? void 0 : g.status) || 0,
98
+ statusText: ((y = s.response) == null ? void 0 : y.statusText) || "网络错误"
105
99
  };
106
100
  } finally {
107
101
  T.value = Date.now() - e, c.value = !1;
@@ -109,45 +103,45 @@ const fe = { class: "data-source" }, pe = { class: "config-section" }, ce = { cl
109
103
  }
110
104
  function O() {
111
105
  var e;
112
- const s = ((e = i.value) == null ? void 0 : e.data) || i.value;
113
- navigator.clipboard.writeText(JSON.stringify(s, null, 2)).then(() => {
106
+ const n = ((e = u.value) == null ? void 0 : e.data) || u.value;
107
+ navigator.clipboard.writeText(JSON.stringify(n, null, 2)).then(() => {
114
108
  V.success("复制成功");
115
109
  }).catch(() => {
116
110
  V.error("复制失败");
117
111
  });
118
112
  }
119
- return (s, e) => {
120
- const g = Z, b = ee, n = te, w = ae, m = le, f = se, p = oe, y = ne, N = re, L = ie, U = ue, P = de, $ = me;
121
- return _(), C("div", fe, [
122
- t($, {
113
+ return (n, e) => {
114
+ const g = W, y = X, s = Y, w = ee, m = te, p = oe, f = Z, C = ae, U = le, F = se, k = ne, L = ue, P = re;
115
+ return _(), b("div", ie, [
116
+ t(P, {
123
117
  modelValue: a(E),
124
- "onUpdate:modelValue": e[5] || (e[5] = (l) => I(E) ? E.value = l : null),
118
+ "onUpdate:modelValue": e[5] || (e[5] = (l) => z(E) ? E.value = l : null),
125
119
  class: "data-source-tab"
126
120
  }, {
127
121
  default: o(() => [
128
- t(P, { height: "540px" }, {
122
+ t(L, { height: "540px" }, {
129
123
  default: o(() => [
130
- t(U, {
124
+ t(k, {
131
125
  label: "请求配置",
132
126
  name: "requestConfig"
133
127
  }, {
134
128
  default: o(() => [
135
- u("div", pe, [
136
- t(p, {
129
+ i("div", me, [
130
+ t(f, {
137
131
  "label-width": "auto",
138
132
  model: r.requestConfigData,
139
133
  size: "small"
140
134
  }, {
141
135
  default: o(() => [
142
- t(n, { label: "服务名称" }, {
136
+ t(s, { label: "服务名称" }, {
143
137
  default: o(() => [
144
- t(b, {
138
+ t(y, {
145
139
  modelValue: r.requestConfigData.serverName,
146
140
  "onUpdate:modelValue": e[0] || (e[0] = (l) => r.requestConfigData.serverName = l),
147
141
  placeholder: "请选择服务"
148
142
  }, {
149
143
  default: o(() => [
150
- (_(!0), C(j, null, J(a(x), (l) => (_(), G(g, {
144
+ (_(!0), b(B, null, I(a(x), (l) => (_(), j(g, {
151
145
  key: l.value,
152
146
  label: l.label,
153
147
  value: l.value
@@ -158,7 +152,7 @@ const fe = { class: "data-source" }, pe = { class: "config-section" }, ce = { cl
158
152
  ]),
159
153
  _: 1
160
154
  }),
161
- t(n, { label: "请求URL" }, {
155
+ t(s, { label: "请求URL" }, {
162
156
  default: o(() => [
163
157
  t(w, {
164
158
  modelValue: r.requestConfigData.url,
@@ -168,9 +162,9 @@ const fe = { class: "data-source" }, pe = { class: "config-section" }, ce = { cl
168
162
  ]),
169
163
  _: 1
170
164
  }),
171
- t(n, { label: "请求方式" }, {
165
+ t(s, { label: "请求方式" }, {
172
166
  default: o(() => [
173
- t(f, {
167
+ t(p, {
174
168
  modelValue: r.requestConfigData.method,
175
169
  "onUpdate:modelValue": e[2] || (e[2] = (l) => r.requestConfigData.method = l)
176
170
  }, {
@@ -193,9 +187,9 @@ const fe = { class: "data-source" }, pe = { class: "config-section" }, ce = { cl
193
187
  ]),
194
188
  _: 1
195
189
  }),
196
- t(n, { label: "内容类型" }, {
190
+ t(s, { label: "内容类型" }, {
197
191
  default: o(() => [
198
- t(f, {
192
+ t(p, {
199
193
  modelValue: r.requestConfigData.contentType,
200
194
  "onUpdate:modelValue": e[3] || (e[3] = (l) => r.requestConfigData.contentType = l)
201
195
  }, {
@@ -218,13 +212,12 @@ const fe = { class: "data-source" }, pe = { class: "config-section" }, ce = { cl
218
212
  ]),
219
213
  _: 1
220
214
  }),
221
- t(n, { label: "请求参数" }, {
215
+ t(s, { label: "请求参数" }, {
222
216
  default: o(() => [
223
- t(K, {
217
+ t(h, {
224
218
  modelValue: r.requestConfigData.params,
225
- "onUpdate:modelValue": e[4] || (e[4] = (l) => r.requestConfigData.params = l),
226
- "available-fields": a(R)
227
- }, null, 8, ["modelValue", "available-fields"])
219
+ "onUpdate:modelValue": e[4] || (e[4] = (l) => r.requestConfigData.params = l)
220
+ }, null, 8, ["modelValue"])
228
221
  ]),
229
222
  _: 1
230
223
  })
@@ -232,23 +225,23 @@ const fe = { class: "data-source" }, pe = { class: "config-section" }, ce = { cl
232
225
  _: 1
233
226
  }, 8, ["model"])
234
227
  ]),
235
- u("div", ce, [
236
- u("div", ve, [
237
- u("span", _e, [
238
- t(y, { class: "section-icon" }, {
228
+ i("div", de, [
229
+ i("div", pe, [
230
+ i("span", fe, [
231
+ t(C, { class: "section-icon" }, {
239
232
  default: o(() => [
240
- t(a(k))
233
+ t(a(N))
241
234
  ]),
242
235
  _: 1
243
236
  }),
244
237
  e[10] || (e[10] = d(" 请求测试 ", -1))
245
238
  ]),
246
- t(N, {
239
+ t(U, {
247
240
  size: "small",
248
241
  type: "primary",
249
- icon: a(k),
242
+ icon: a(N),
250
243
  loading: a(c),
251
- onClick: F
244
+ onClick: R
252
245
  }, {
253
246
  default: o(() => [
254
247
  d(D(a(c) ? "请求中..." : "测试请求"), 1)
@@ -256,14 +249,14 @@ const fe = { class: "data-source" }, pe = { class: "config-section" }, ce = { cl
256
249
  _: 1
257
250
  }, 8, ["icon", "loading"])
258
251
  ]),
259
- a(i) ? (_(), C("div", ge, [
260
- u("div", be, [
261
- e[12] || (e[12] = u("span", null, "响应结果", -1)),
262
- u("div", ye, [
263
- t(N, {
252
+ a(u) ? (_(), b("div", ce, [
253
+ i("div", ve, [
254
+ e[12] || (e[12] = i("span", null, "响应结果", -1)),
255
+ i("div", _e, [
256
+ t(U, {
264
257
  size: "small",
265
258
  text: "",
266
- icon: a(h),
259
+ icon: a(J),
267
260
  onClick: O
268
261
  }, {
269
262
  default: o(() => [...e[11] || (e[11] = [
@@ -273,38 +266,38 @@ const fe = { class: "data-source" }, pe = { class: "config-section" }, ce = { cl
273
266
  }, 8, ["icon"])
274
267
  ])
275
268
  ]),
276
- u("div", Ce, [
277
- t(L, {
278
- type: a(i).status >= 200 && a(i).status < 300 ? "success" : "danger",
269
+ i("div", ge, [
270
+ t(F, {
271
+ type: a(u).status >= 200 && a(u).status < 300 ? "success" : "danger",
279
272
  size: "small"
280
273
  }, {
281
274
  default: o(() => [
282
- d(D(a(i).status) + " " + D(a(i).statusText || ""), 1)
275
+ d(D(a(u).status) + " " + D(a(u).statusText || ""), 1)
283
276
  ]),
284
277
  _: 1
285
278
  }, 8, ["type"]),
286
- u("span", De, "耗时: " + D(a(T)) + "ms", 1)
279
+ i("span", ye, "耗时: " + D(a(T)) + "ms", 1)
287
280
  ]),
288
- t(a(Q), {
289
- value: a(i).data,
281
+ t(a(H), {
282
+ value: a(u).data,
290
283
  "expand-depth": 1,
291
284
  boxed: "",
292
285
  "show-array-index": !1
293
286
  }, null, 8, ["value"])
294
- ])) : (_(), C("div", Ve, [
295
- t(y, { class: "empty-icon" }, {
287
+ ])) : (_(), b("div", Ce, [
288
+ t(C, { class: "empty-icon" }, {
296
289
  default: o(() => [
297
- t(a(H))
290
+ t(a(G))
298
291
  ]),
299
292
  _: 1
300
293
  }),
301
- e[13] || (e[13] = u("span", null, "暂无响应数据,点击发送请求进行测试", -1))
294
+ e[13] || (e[13] = i("span", null, "暂无响应数据,点击发送请求进行测试", -1))
302
295
  ]))
303
296
  ])
304
297
  ]),
305
298
  _: 1
306
299
  }),
307
- t(U, {
300
+ t(k, {
308
301
  label: "数据处理",
309
302
  name: "dataHandler"
310
303
  }, {
@@ -322,7 +315,7 @@ const fe = { class: "data-source" }, pe = { class: "config-section" }, ce = { cl
322
315
  ]);
323
316
  };
324
317
  }
325
- }, rt = /* @__PURE__ */ Y(qe, [["__scopeId", "data-v-37337f73"]]);
318
+ }, lt = /* @__PURE__ */ A(be, [["__scopeId", "data-v-08787ccd"]]);
326
319
  export {
327
- rt as default
320
+ lt as default
328
321
  };