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.
- package/es/package.json.js +66 -0
- package/es/src/assets/approvalHistory.png.js +4 -0
- package/es/src/assets/logo.png.js +4 -0
- package/es/src/components/DataSourceSelect.vue.js +2 -1
- package/es/src/components/OptionConfig.vue.js +3 -2
- package/es/src/components/OptionConfig.vue2.js +2 -2
- package/es/src/components/ParamsConfig.vue.js +2 -2
- package/es/src/components/ParamsConfig.vue2.js +31 -32
- package/es/src/components/ValueSelector.vue2.js +49 -39
- package/es/src/layout/header/index.vue.js +95 -84
- package/es/src/packages/advancedFilter/ValueInput.vue2.js +57 -60
- package/es/src/packages/dataSource/dataSource.vue.js +98 -105
- package/es/src/packages/dialog/index.vue.js +443 -322
- package/es/src/packages/event/index.vue2.js +44 -44
- package/es/src/packages/event/useEventDialog.js +2 -2
- package/es/src/packages/eventFlow/dialog/action/FormSubmit.vue2.js +47 -54
- package/es/src/packages/eventFlow/dialog/action/Page.vue.js +42 -49
- package/es/src/packages/form/aside/index.js +27 -2
- package/es/src/packages/form/aside/roleSelect.js +156 -0
- package/es/src/packages/form/aside/userSelect.js +206 -0
- package/es/src/packages/form/components/ApprovalHistory.vue.js +73 -0
- package/es/src/packages/form/components/ApprovalHistory.vue2.js +4 -0
- package/es/src/packages/form/components/ComponentPreviewWrapper.vue.js +51 -41
- package/es/src/packages/form/components/H2Wrapper.vue.js +13 -10
- package/es/src/packages/form/index.vue.js +140 -130
- package/es/src/packages/form/property/approvalHistory.vue.js +178 -0
- package/es/src/packages/form/property/index.vue.js +23 -22
- package/es/src/packages/form/property/subTable.vue.js +37 -43
- package/es/src/packages/form/property/widgets.vue.js +258 -202
- package/es/src/packages/table/aside/index.js +2 -1
- package/es/src/packages/table/default.js +24 -21
- package/es/src/packages/table/property/widgets.vue.js +63 -47
- package/es/style.css +1 -1
- 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,
|
|
17
|
-
import { VideoPlay as
|
|
18
|
-
import
|
|
19
|
-
import
|
|
20
|
-
import { JsonViewer as
|
|
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
|
|
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
|
|
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
|
|
30
|
-
import { ElFormItem as
|
|
31
|
-
import { ElInput as
|
|
32
|
-
import { ElRadio as
|
|
33
|
-
import { ElIcon as
|
|
34
|
-
import { ElButton as
|
|
35
|
-
import { ElTag as
|
|
36
|
-
import { ElTabPane as
|
|
37
|
-
import { ElScrollbar as
|
|
38
|
-
const
|
|
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
|
-
},
|
|
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
|
-
},
|
|
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),
|
|
51
|
-
for (const
|
|
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:
|
|
54
|
-
value: S.servers[
|
|
53
|
+
label: n,
|
|
54
|
+
value: S.servers[n]
|
|
55
55
|
});
|
|
56
|
-
|
|
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
|
-
|
|
59
|
+
u.value = "", T.value = 0;
|
|
66
60
|
},
|
|
67
61
|
{ deep: !0 }
|
|
68
62
|
);
|
|
69
|
-
async function
|
|
70
|
-
var g,
|
|
71
|
-
const
|
|
72
|
-
if (!
|
|
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 (!
|
|
70
|
+
if (!n.url) {
|
|
77
71
|
V.warning("请输入请求URL");
|
|
78
72
|
return;
|
|
79
73
|
}
|
|
80
|
-
c.value = !0,
|
|
74
|
+
c.value = !0, u.value = "";
|
|
81
75
|
const e = Date.now();
|
|
82
76
|
try {
|
|
83
|
-
const
|
|
84
|
-
(q.requestConfigData.params || []).forEach((
|
|
85
|
-
|
|
77
|
+
const s = {};
|
|
78
|
+
(q.requestConfigData.params || []).forEach((f) => {
|
|
79
|
+
f.key && (s[f.key] = f.value);
|
|
86
80
|
});
|
|
87
|
-
const m = `${
|
|
88
|
-
let
|
|
89
|
-
if (
|
|
90
|
-
const
|
|
91
|
-
|
|
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
|
-
|
|
94
|
-
|
|
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:
|
|
91
|
+
data: p.data || p
|
|
98
92
|
};
|
|
99
|
-
} catch (
|
|
100
|
-
|
|
93
|
+
} catch (s) {
|
|
94
|
+
u.value = {
|
|
101
95
|
success: !1,
|
|
102
|
-
error:
|
|
103
|
-
status: ((g =
|
|
104
|
-
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
|
|
113
|
-
navigator.clipboard.writeText(JSON.stringify(
|
|
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 (
|
|
120
|
-
const g =
|
|
121
|
-
return _(),
|
|
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) =>
|
|
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(
|
|
122
|
+
t(L, { height: "540px" }, {
|
|
129
123
|
default: o(() => [
|
|
130
|
-
t(
|
|
124
|
+
t(k, {
|
|
131
125
|
label: "请求配置",
|
|
132
126
|
name: "requestConfig"
|
|
133
127
|
}, {
|
|
134
128
|
default: o(() => [
|
|
135
|
-
|
|
136
|
-
t(
|
|
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(
|
|
136
|
+
t(s, { label: "服务名称" }, {
|
|
143
137
|
default: o(() => [
|
|
144
|
-
t(
|
|
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),
|
|
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(
|
|
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(
|
|
165
|
+
t(s, { label: "请求方式" }, {
|
|
172
166
|
default: o(() => [
|
|
173
|
-
t(
|
|
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(
|
|
190
|
+
t(s, { label: "内容类型" }, {
|
|
197
191
|
default: o(() => [
|
|
198
|
-
t(
|
|
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(
|
|
215
|
+
t(s, { label: "请求参数" }, {
|
|
222
216
|
default: o(() => [
|
|
223
|
-
t(
|
|
217
|
+
t(h, {
|
|
224
218
|
modelValue: r.requestConfigData.params,
|
|
225
|
-
"onUpdate:modelValue": e[4] || (e[4] = (l) => r.requestConfigData.params = l)
|
|
226
|
-
|
|
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
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
t(
|
|
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(
|
|
233
|
+
t(a(N))
|
|
241
234
|
]),
|
|
242
235
|
_: 1
|
|
243
236
|
}),
|
|
244
237
|
e[10] || (e[10] = d(" 请求测试 ", -1))
|
|
245
238
|
]),
|
|
246
|
-
t(
|
|
239
|
+
t(U, {
|
|
247
240
|
size: "small",
|
|
248
241
|
type: "primary",
|
|
249
|
-
icon: a(
|
|
242
|
+
icon: a(N),
|
|
250
243
|
loading: a(c),
|
|
251
|
-
onClick:
|
|
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(
|
|
260
|
-
|
|
261
|
-
e[12] || (e[12] =
|
|
262
|
-
|
|
263
|
-
t(
|
|
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(
|
|
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
|
-
|
|
277
|
-
t(
|
|
278
|
-
type: a(
|
|
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(
|
|
275
|
+
d(D(a(u).status) + " " + D(a(u).statusText || ""), 1)
|
|
283
276
|
]),
|
|
284
277
|
_: 1
|
|
285
278
|
}, 8, ["type"]),
|
|
286
|
-
|
|
279
|
+
i("span", ye, "耗时: " + D(a(T)) + "ms", 1)
|
|
287
280
|
]),
|
|
288
|
-
t(a(
|
|
289
|
-
value: a(
|
|
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
|
-
])) : (_(),
|
|
295
|
-
t(
|
|
287
|
+
])) : (_(), b("div", Ce, [
|
|
288
|
+
t(C, { class: "empty-icon" }, {
|
|
296
289
|
default: o(() => [
|
|
297
|
-
t(a(
|
|
290
|
+
t(a(G))
|
|
298
291
|
]),
|
|
299
292
|
_: 1
|
|
300
293
|
}),
|
|
301
|
-
e[13] || (e[13] =
|
|
294
|
+
e[13] || (e[13] = i("span", null, "暂无响应数据,点击发送请求进行测试", -1))
|
|
302
295
|
]))
|
|
303
296
|
])
|
|
304
297
|
]),
|
|
305
298
|
_: 1
|
|
306
299
|
}),
|
|
307
|
-
t(
|
|
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
|
-
},
|
|
318
|
+
}, lt = /* @__PURE__ */ A(be, [["__scopeId", "data-v-08787ccd"]]);
|
|
326
319
|
export {
|
|
327
|
-
|
|
320
|
+
lt as default
|
|
328
321
|
};
|