epic-designer-gold 0.0.8 → 0.0.10
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/dist/{attributeView-DYltJe-a.cjs → attributeView-DU2TCl82.cjs} +1 -1
- package/dist/{attributeView-Dk2EmHZW.js → attributeView-u87puklW.js} +1 -1
- package/dist/{eventView-Ba0hP27z.js → eventView-3jlgsbYv.js} +1 -1
- package/dist/{eventView-BoaACVjO.cjs → eventView-DlM9PXFS.cjs} +1 -1
- package/dist/{index-DF9HRIW0.js → index-B44ldwiI.js} +8 -8
- package/dist/{index-DDJ5D8mV.js → index-BTe6WMoJ.js} +1 -1
- package/dist/index-BZ70tu0m.cjs +1 -0
- package/dist/{index-BeuOcsj8.cjs → index-Bhd9Utr6.cjs} +1 -1
- package/dist/index-Bk1B4RlV.cjs +1 -0
- package/dist/index-BxQ1aSj3.js +215 -0
- package/dist/{index-BVhjDWdX.cjs → index-C9dq3Qx9.cjs} +1 -1
- package/dist/{index-NhfJlz-p.cjs → index-CFryUxKc.cjs} +2 -2
- package/dist/{index-CZVWdeNF.cjs → index-CT6Df8VO.cjs} +1 -1
- package/dist/{index-DHblJXI8.js → index-CYPhbix8.js} +1 -1
- package/dist/{index-MEVHj2X7.cjs → index-CZeYVxo4.cjs} +1 -1
- package/dist/index-CgVTdX64.js +4 -0
- package/dist/{index-YpOtOenY.cjs → index-Cx2JsRRr.cjs} +1 -1
- package/dist/{index-J_nNkP8R.js → index-D6CL7QdF.js} +1 -1
- package/dist/{index-CFXmvMyl.js → index-DZxe3Mh2.js} +1 -1
- package/dist/{index-B70ZM-RH.js → index-DwxSF-EA.js} +1 -1
- package/dist/{index-CZaokqYw.js → index-FHuEonxg.js} +215 -193
- package/dist/{index-Bnxp-82r.js → index-GG-x1fxs.js} +1 -1
- package/dist/{index-BY7CyvD0.cjs → index-KbBptC7N.cjs} +1 -1
- package/dist/{index-B0o9Uauj.cjs → index-TLhJz2ch.cjs} +1 -1
- package/dist/{index-CsXf1tm6.js → index-r1WNNgF-.js} +1 -1
- package/dist/{index-DVWvjN5E.cjs → index-xDLPhT_Q.cjs} +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.js +1 -1
- package/dist/style.css +1 -1
- package/dist/{styleView-AFQHYzcB.cjs → styleView-C7t4u5ue.cjs} +1 -1
- package/dist/{styleView-t3KSRoDD.js → styleView-wqJjZQTl.js} +1 -1
- package/package.json +1 -1
- package/dist/index-BeWY4egz.js +0 -4
- package/dist/index-CmtFrV57.cjs +0 -1
- package/dist/index-D0L7sZbE.cjs +0 -1
- package/dist/index-Khkd8Z00.js +0 -205
|
@@ -1,61 +1,65 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { p as
|
|
3
|
-
import { ElMessage as
|
|
1
|
+
import { defineComponent as te, ref as O, reactive as oe, onMounted as ue, openBlock as m, createElementBlock as p, createVNode as a, unref as t, withCtx as n, createElementVNode as s, toDisplayString as R, Fragment as E, renderList as D, normalizeClass as de, normalizeStyle as ne, createTextVNode as y, createCommentVNode as F } from "vue";
|
|
2
|
+
import { p as v, E as J } from "./pluginManager-D8PM7ICc.js";
|
|
3
|
+
import { ElMessage as k } from "element-plus";
|
|
4
4
|
import { _ as b } from "./icon.vue_vue_type_script_setup_true_lang-D3QdcReY.js";
|
|
5
|
-
import { a as
|
|
6
|
-
const
|
|
5
|
+
import { a as se } from "./axios-CXDYiOMX.js";
|
|
6
|
+
const re = { class: "e-data-source" }, ie = { class: "icon-numbers" }, me = { class: "drawer-content" }, pe = { class: "drawer-content-left" }, ve = ["onClick"], ce = { class: "source-item-title" }, fe = ["onClick"], ye = { class: "drawer-content-right" }, be = { class: "content" }, ge = {
|
|
7
7
|
key: 0,
|
|
8
8
|
class: "content-empty"
|
|
9
|
-
},
|
|
9
|
+
}, he = {
|
|
10
10
|
key: 1,
|
|
11
11
|
class: "content-form"
|
|
12
|
-
},
|
|
12
|
+
}, Ve = { class: "form-flex" }, ke = { class: "form-item" }, _e = { class: "form-item-title" }, Le = {
|
|
13
13
|
key: 0,
|
|
14
14
|
class: "form-item-content"
|
|
15
|
-
},
|
|
15
|
+
}, Se = { class: "form-item" }, Ce = { class: "form-item-title" }, we = {
|
|
16
16
|
key: 0,
|
|
17
17
|
class: "form-item-content"
|
|
18
|
-
},
|
|
18
|
+
}, Ne = { class: "form-item" }, Oe = { class: "form-item-title" }, Ue = {
|
|
19
19
|
key: 0,
|
|
20
20
|
class: "form-item-content"
|
|
21
|
-
},
|
|
21
|
+
}, Ee = { class: "content-right-btn" }, Ke = /* @__PURE__ */ te({
|
|
22
22
|
__name: "index",
|
|
23
23
|
emits: ["update:modelValue", "update:sourceData"],
|
|
24
|
-
setup(
|
|
25
|
-
const
|
|
26
|
-
|
|
27
|
-
const
|
|
24
|
+
setup(De, { emit: Je }) {
|
|
25
|
+
const c = v.getComponent("button"), K = v.getComponent("Drawer"), N = v.getComponent("input"), _ = v.getComponent("FormItem"), j = v.getComponent("Form"), q = v.getComponent("RadioGroup"), U = v.getComponent("RadioButton"), L = v.getComponent("select");
|
|
26
|
+
v.getComponent("switch");
|
|
27
|
+
const x = O(), B = {
|
|
28
|
+
GET: "#67c23a",
|
|
29
|
+
POST: "#e6a23c",
|
|
30
|
+
PUT: "#409eff",
|
|
31
|
+
DELETE: "#f56c6c"
|
|
32
|
+
}, M = O(0), $ = oe({
|
|
28
33
|
apiName: [{ required: !0, message: "请输入接口名称", trigger: "blur" }],
|
|
29
34
|
url: [{ required: !0, message: "请输入请求地址", trigger: "blur" }],
|
|
30
35
|
dataKey: [{ required: !0, message: "请输入标签键名", trigger: "blur" }],
|
|
31
36
|
dataValue: [{ required: !0, message: "请输入值键名", trigger: "blur" }]
|
|
32
|
-
}),
|
|
37
|
+
}), P = O(!1), h = O([]), e = O(), S = [
|
|
33
38
|
{
|
|
34
39
|
label: "1",
|
|
35
40
|
value: "1"
|
|
36
41
|
}
|
|
37
42
|
];
|
|
38
|
-
function
|
|
39
|
-
|
|
43
|
+
function z() {
|
|
44
|
+
P.value = !0;
|
|
40
45
|
}
|
|
41
|
-
function
|
|
46
|
+
function G() {
|
|
42
47
|
const o = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789";
|
|
43
48
|
return o.charAt(Math.floor(Math.random() * o.length));
|
|
44
49
|
}
|
|
45
|
-
function
|
|
46
|
-
let
|
|
50
|
+
function I(o) {
|
|
51
|
+
let l = "";
|
|
47
52
|
for (let u = 0; u < o; u++)
|
|
48
|
-
|
|
49
|
-
return
|
|
53
|
+
l += G();
|
|
54
|
+
return l;
|
|
50
55
|
}
|
|
51
|
-
function
|
|
52
|
-
e.value = {
|
|
56
|
+
function A() {
|
|
57
|
+
console.log("%c [ ]-249", "font-size:13px; background:pink; color:#bf2c9f;", e.value), !e.value || e.value.id || !Object.keys(e.value).length ? (e.value = {
|
|
53
58
|
id: "",
|
|
54
59
|
url: "",
|
|
55
60
|
body: {},
|
|
56
61
|
bodyList: [],
|
|
57
|
-
|
|
58
|
-
apiName: `数据源_${j(5)}`,
|
|
62
|
+
apiName: `数据源_${I(5)}`,
|
|
59
63
|
method: "get",
|
|
60
64
|
params: {},
|
|
61
65
|
paramsList: [],
|
|
@@ -64,11 +68,11 @@ const ne = { class: "e-data-source" }, se = { class: "icon-numbers" }, re = { cl
|
|
|
64
68
|
headerList: [],
|
|
65
69
|
dataPath: "",
|
|
66
70
|
dataValue: "id"
|
|
67
|
-
},
|
|
71
|
+
}, h.value.push(e.value)) : e.value.id || T();
|
|
68
72
|
}
|
|
69
|
-
function
|
|
70
|
-
var
|
|
71
|
-
|
|
73
|
+
function H(o) {
|
|
74
|
+
var l;
|
|
75
|
+
console.log("%c [ ]-271", "font-size:13px; background:pink; color:#bf2c9f;", e.value), !e.value || e.value.id || !Object.keys(e.value).length ? (h.value = JSON.parse(JSON.stringify(v.getSourceData())), ((l = e.value) == null ? void 0 : l.id) === o ? e.value = {} : (e.value = h.value.find((u) => u.id === o), e.value.paramsList = Object.keys(JSON.parse(e.value.params)).map((u) => ({
|
|
72
76
|
label: u,
|
|
73
77
|
value: JSON.parse(e.value.params)[u]
|
|
74
78
|
})), e.value.bodyList = Object.keys(JSON.parse(e.value.body)).map((u) => ({
|
|
@@ -77,53 +81,53 @@ const ne = { class: "e-data-source" }, se = { class: "icon-numbers" }, re = { cl
|
|
|
77
81
|
})), e.value.headerList = Object.keys(JSON.parse(e.value.headers)).map((u) => ({
|
|
78
82
|
label: u,
|
|
79
83
|
value: JSON.parse(e.value.headers)[u]
|
|
80
|
-
})));
|
|
84
|
+
})))) : T();
|
|
81
85
|
}
|
|
82
|
-
function
|
|
86
|
+
function Q(o) {
|
|
83
87
|
J.emit("deleteSourceData", o);
|
|
84
88
|
}
|
|
85
|
-
function
|
|
89
|
+
function W() {
|
|
86
90
|
var o;
|
|
87
91
|
(o = e.value) == null || o.paramsList.push({
|
|
88
92
|
label: "",
|
|
89
93
|
value: ""
|
|
90
94
|
});
|
|
91
95
|
}
|
|
92
|
-
function
|
|
96
|
+
function X(o) {
|
|
93
97
|
e.value.paramsList.splice(o, 1);
|
|
94
98
|
}
|
|
95
|
-
function
|
|
99
|
+
function Y() {
|
|
96
100
|
var o;
|
|
97
101
|
(o = e.value) == null || o.headerList.push({
|
|
98
102
|
label: "",
|
|
99
103
|
value: ""
|
|
100
104
|
});
|
|
101
105
|
}
|
|
102
|
-
function
|
|
106
|
+
function Z(o) {
|
|
103
107
|
e.value.headerList.splice(o, 1);
|
|
104
108
|
}
|
|
105
|
-
function
|
|
109
|
+
function ee() {
|
|
106
110
|
var o;
|
|
107
111
|
(o = e.value) == null || o.bodyList.push({
|
|
108
112
|
label: "",
|
|
109
113
|
value: ""
|
|
110
114
|
});
|
|
111
115
|
}
|
|
112
|
-
function
|
|
116
|
+
function le(o) {
|
|
113
117
|
e.value.bodyList.splice(o, 1);
|
|
114
118
|
}
|
|
115
|
-
|
|
116
|
-
|
|
119
|
+
ue(() => {
|
|
120
|
+
h.value = JSON.parse(JSON.stringify(v.getSourceData()));
|
|
117
121
|
}), J.on("updateSource", (o) => {
|
|
118
|
-
|
|
122
|
+
h.value = JSON.parse(JSON.stringify(v.getSourceData()));
|
|
119
123
|
});
|
|
120
|
-
async function
|
|
121
|
-
|
|
124
|
+
async function ae() {
|
|
125
|
+
x.value.validate(async (o) => {
|
|
122
126
|
if (o)
|
|
123
127
|
try {
|
|
124
|
-
const
|
|
128
|
+
const l = {};
|
|
125
129
|
e.value.paramsList.forEach((r) => {
|
|
126
|
-
|
|
130
|
+
l[r.label] = r.value;
|
|
127
131
|
});
|
|
128
132
|
const u = {};
|
|
129
133
|
e.value.bodyList.forEach((r) => {
|
|
@@ -133,42 +137,47 @@ const ne = { class: "e-data-source" }, se = { class: "icon-numbers" }, re = { cl
|
|
|
133
137
|
e.value.headerList.forEach((r) => {
|
|
134
138
|
g[r.label] = r.value;
|
|
135
139
|
});
|
|
136
|
-
let f = await
|
|
140
|
+
let f = await se({
|
|
137
141
|
method: e.value.method,
|
|
138
142
|
// url: formData.value.url,
|
|
139
|
-
url: "http://localhost:3333/users",
|
|
140
|
-
|
|
143
|
+
// url: "http://localhost:3333/users",
|
|
144
|
+
url: e.value.url,
|
|
145
|
+
params: l,
|
|
141
146
|
data: u,
|
|
142
147
|
headers: g
|
|
143
148
|
});
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
149
|
+
if (e.value.dataPath) {
|
|
150
|
+
const C = e.value.dataPath.split(".").reduce((V, d) => V[d], f.data);
|
|
151
|
+
C && C.length ? k({
|
|
152
|
+
message: C.map((V) => ({
|
|
153
|
+
label: V[e.value.dataKey],
|
|
154
|
+
value: V[e.value.dataValue]
|
|
155
|
+
}))
|
|
156
|
+
}) : k.info("配置错误");
|
|
157
|
+
} else
|
|
158
|
+
f.data && f.data.length ? k({
|
|
159
|
+
message: f.data.map((r) => ({
|
|
160
|
+
label: r[e.value.dataKey],
|
|
161
|
+
value: r[e.value.dataValue]
|
|
162
|
+
}))
|
|
163
|
+
}) : k.info("配置错误");
|
|
155
164
|
} catch {
|
|
156
|
-
|
|
165
|
+
k.error("请求失败");
|
|
157
166
|
} finally {
|
|
158
167
|
}
|
|
159
168
|
else
|
|
160
|
-
|
|
169
|
+
k.error("请填写必填项");
|
|
161
170
|
});
|
|
162
171
|
}
|
|
163
|
-
async function
|
|
164
|
-
e.value.body = e.value.bodyList.reduce((o,
|
|
165
|
-
(o,
|
|
172
|
+
async function T() {
|
|
173
|
+
e.value.body = e.value.bodyList.reduce((o, l) => (o[l.label] = l.value, o), {}), e.value.params = e.value.paramsList.reduce(
|
|
174
|
+
(o, l) => (o[l.label] = l.value, o),
|
|
166
175
|
{}
|
|
167
176
|
), e.value.headers = e.value.headerList.reduce(
|
|
168
|
-
(o,
|
|
177
|
+
(o, l) => (o[l.label] = l.value, o),
|
|
169
178
|
{}
|
|
170
|
-
),
|
|
171
|
-
o
|
|
179
|
+
), x.value.validate((o) => {
|
|
180
|
+
o ? e.value.id ? (J.emit("updateSourceData", {
|
|
172
181
|
...e.value,
|
|
173
182
|
body: JSON.stringify(e.value.body),
|
|
174
183
|
params: JSON.stringify(e.value.params),
|
|
@@ -178,152 +187,159 @@ const ne = { class: "e-data-source" }, se = { class: "icon-numbers" }, re = { cl
|
|
|
178
187
|
body: JSON.stringify(e.value.body),
|
|
179
188
|
params: JSON.stringify(e.value.params),
|
|
180
189
|
headers: JSON.stringify(e.value.headers)
|
|
181
|
-
}), e.value = {}));
|
|
190
|
+
}), e.value = {}) : k.warning("请先完善表单");
|
|
182
191
|
});
|
|
183
192
|
}
|
|
184
|
-
return (o,
|
|
185
|
-
|
|
193
|
+
return (o, l) => (m(), p("div", re, [
|
|
194
|
+
a(t(c), {
|
|
186
195
|
class: "btn",
|
|
187
|
-
onClick:
|
|
196
|
+
onClick: z
|
|
188
197
|
}, {
|
|
189
198
|
default: n(() => [
|
|
190
|
-
|
|
199
|
+
a(t(b), {
|
|
191
200
|
name: "icon--epic--window-outline",
|
|
192
201
|
class: "mr-4px"
|
|
193
202
|
}),
|
|
194
|
-
|
|
195
|
-
s("span",
|
|
203
|
+
l[8] || (l[8] = s("span", null, "配置", -1)),
|
|
204
|
+
s("span", ie, R(M.value || h.value.length), 1)
|
|
196
205
|
]),
|
|
197
206
|
_: 1
|
|
198
207
|
}),
|
|
199
|
-
|
|
200
|
-
size:
|
|
201
|
-
modelValue:
|
|
202
|
-
"onUpdate:modelValue":
|
|
208
|
+
a(t(K), {
|
|
209
|
+
size: 960,
|
|
210
|
+
modelValue: P.value,
|
|
211
|
+
"onUpdate:modelValue": l[7] || (l[7] = (u) => P.value = u),
|
|
203
212
|
"append-to-body": "",
|
|
204
213
|
title: "数据源"
|
|
205
214
|
}, {
|
|
206
215
|
default: n(() => [
|
|
207
|
-
s("div",
|
|
208
|
-
s("div",
|
|
209
|
-
|
|
216
|
+
s("div", me, [
|
|
217
|
+
s("div", pe, [
|
|
218
|
+
a(t(c), {
|
|
210
219
|
type: "primary",
|
|
211
220
|
class: "btn",
|
|
212
|
-
onClick:
|
|
221
|
+
onClick: A
|
|
213
222
|
}, {
|
|
214
223
|
default: n(() => [
|
|
215
|
-
|
|
224
|
+
a(t(b), {
|
|
216
225
|
name: "icon--epic--add-rounded",
|
|
217
226
|
class: "mr-4px"
|
|
218
227
|
}),
|
|
219
|
-
|
|
228
|
+
l[9] || (l[9] = s("span", null, "新增数据源", -1))
|
|
220
229
|
]),
|
|
221
230
|
_: 1
|
|
222
231
|
}),
|
|
223
232
|
s("div", null, [
|
|
224
|
-
(m(!0), p(
|
|
233
|
+
(m(!0), p(E, null, D(h.value, (u) => {
|
|
225
234
|
var g;
|
|
226
235
|
return m(), p("div", {
|
|
227
|
-
class:
|
|
236
|
+
class: de(["source-item", { active: u.id === ((g = e.value) == null ? void 0 : g.id) }]),
|
|
228
237
|
key: u.id,
|
|
229
|
-
onClick: (f) =>
|
|
238
|
+
onClick: (f) => H(u.id)
|
|
230
239
|
}, [
|
|
231
|
-
s("div",
|
|
232
|
-
s("div",
|
|
233
|
-
|
|
240
|
+
s("div", ce, [
|
|
241
|
+
s("div", {
|
|
242
|
+
style: ne({
|
|
243
|
+
color: B[u.method.toLocaleUpperCase()]
|
|
244
|
+
})
|
|
245
|
+
}, R(u.method.toLocaleUpperCase()), 5),
|
|
246
|
+
s("div", null, R(u.apiName), 1)
|
|
234
247
|
]),
|
|
235
248
|
s("div", {
|
|
236
|
-
onClick: (f) =>
|
|
249
|
+
onClick: (f) => Q(u.id),
|
|
237
250
|
class: "source-item-icon"
|
|
238
251
|
}, [
|
|
239
|
-
|
|
240
|
-
], 8,
|
|
241
|
-
], 10,
|
|
252
|
+
a(t(b), { name: "icon--epic--delete-outline-rounded" })
|
|
253
|
+
], 8, fe)
|
|
254
|
+
], 10, ve);
|
|
242
255
|
}), 128))
|
|
243
256
|
])
|
|
244
257
|
]),
|
|
245
|
-
s("div",
|
|
246
|
-
s("div",
|
|
247
|
-
!e.value || !Object.keys(e.value).length ? (m(), p("div",
|
|
248
|
-
|
|
258
|
+
s("div", ye, [
|
|
259
|
+
s("div", be, [
|
|
260
|
+
!e.value || !Object.keys(e.value).length ? (m(), p("div", ge, "请选择数据源")) : (m(), p("div", he, [
|
|
261
|
+
a(t(j), {
|
|
249
262
|
ref_key: "ruleFormRef",
|
|
250
|
-
ref:
|
|
263
|
+
ref: x,
|
|
251
264
|
model: e.value,
|
|
252
265
|
"label-position": "top",
|
|
253
266
|
rules: $,
|
|
254
267
|
"label-width": 120
|
|
255
268
|
}, {
|
|
256
269
|
default: n(() => {
|
|
257
|
-
var u, g, f, r,
|
|
270
|
+
var u, g, f, r, C, V;
|
|
258
271
|
return [
|
|
259
|
-
|
|
272
|
+
a(t(_), {
|
|
260
273
|
prop: "apiName",
|
|
261
274
|
label: "接口名称"
|
|
262
275
|
}, {
|
|
263
276
|
default: n(() => [
|
|
264
|
-
|
|
277
|
+
a(t(N), {
|
|
265
278
|
clearable: "",
|
|
266
279
|
modelValue: e.value.apiName,
|
|
267
|
-
"onUpdate:modelValue":
|
|
280
|
+
"onUpdate:modelValue": l[0] || (l[0] = (d) => e.value.apiName = d),
|
|
281
|
+
placeholder: "请输入接口名称"
|
|
268
282
|
}, null, 8, ["modelValue"])
|
|
269
283
|
]),
|
|
270
284
|
_: 1
|
|
271
285
|
}),
|
|
272
|
-
|
|
286
|
+
a(t(_), {
|
|
273
287
|
prop: "url",
|
|
274
288
|
label: "请求地址"
|
|
275
289
|
}, {
|
|
276
290
|
default: n(() => [
|
|
277
|
-
|
|
291
|
+
a(t(N), {
|
|
278
292
|
modelValue: e.value.url,
|
|
279
|
-
"onUpdate:modelValue":
|
|
293
|
+
"onUpdate:modelValue": l[1] || (l[1] = (d) => e.value.url = d),
|
|
294
|
+
clearable: "",
|
|
295
|
+
placeholder: "请输入完整的请求地址"
|
|
280
296
|
}, null, 8, ["modelValue"])
|
|
281
297
|
]),
|
|
282
298
|
_: 1
|
|
283
299
|
}),
|
|
284
|
-
|
|
300
|
+
a(t(_), {
|
|
285
301
|
label: "请求方法",
|
|
286
302
|
required: ""
|
|
287
303
|
}, {
|
|
288
304
|
default: n(() => [
|
|
289
|
-
|
|
305
|
+
a(t(q), {
|
|
290
306
|
modelValue: e.value.method,
|
|
291
|
-
"onUpdate:modelValue":
|
|
307
|
+
"onUpdate:modelValue": l[2] || (l[2] = (d) => e.value.method = d)
|
|
292
308
|
}, {
|
|
293
309
|
default: n(() => [
|
|
294
|
-
|
|
310
|
+
a(t(U), {
|
|
295
311
|
label: "GET",
|
|
296
312
|
value: "get"
|
|
297
313
|
}, {
|
|
298
|
-
default: n(() =>
|
|
299
|
-
|
|
314
|
+
default: n(() => l[10] || (l[10] = [
|
|
315
|
+
y("GET")
|
|
300
316
|
])),
|
|
301
317
|
_: 1
|
|
302
318
|
}),
|
|
303
|
-
|
|
319
|
+
a(t(U), {
|
|
304
320
|
label: "POST",
|
|
305
321
|
value: "post"
|
|
306
322
|
}, {
|
|
307
|
-
default: n(() =>
|
|
308
|
-
|
|
323
|
+
default: n(() => l[11] || (l[11] = [
|
|
324
|
+
y("POST")
|
|
309
325
|
])),
|
|
310
326
|
_: 1
|
|
311
327
|
}),
|
|
312
|
-
|
|
328
|
+
a(t(U), {
|
|
313
329
|
label: "PUT",
|
|
314
330
|
value: "put"
|
|
315
331
|
}, {
|
|
316
|
-
default: n(() =>
|
|
317
|
-
|
|
332
|
+
default: n(() => l[12] || (l[12] = [
|
|
333
|
+
y("PUT")
|
|
318
334
|
])),
|
|
319
335
|
_: 1
|
|
320
336
|
}),
|
|
321
|
-
|
|
337
|
+
a(t(U), {
|
|
322
338
|
label: "DELETE",
|
|
323
339
|
value: "delete"
|
|
324
340
|
}, {
|
|
325
|
-
default: n(() =>
|
|
326
|
-
|
|
341
|
+
default: n(() => l[13] || (l[13] = [
|
|
342
|
+
y("DELETE")
|
|
327
343
|
])),
|
|
328
344
|
_: 1
|
|
329
345
|
})
|
|
@@ -333,92 +349,98 @@ const ne = { class: "e-data-source" }, se = { class: "icon-numbers" }, re = { cl
|
|
|
333
349
|
]),
|
|
334
350
|
_: 1
|
|
335
351
|
}),
|
|
336
|
-
s("div",
|
|
337
|
-
|
|
352
|
+
s("div", Ve, [
|
|
353
|
+
a(t(_), {
|
|
338
354
|
prop: "dataKey",
|
|
339
355
|
style: { width: "30%" },
|
|
340
356
|
label: "标签键名"
|
|
341
357
|
}, {
|
|
342
358
|
default: n(() => [
|
|
343
|
-
|
|
359
|
+
a(t(N), {
|
|
344
360
|
modelValue: e.value.dataKey,
|
|
345
|
-
"onUpdate:modelValue":
|
|
361
|
+
"onUpdate:modelValue": l[3] || (l[3] = (d) => e.value.dataKey = d),
|
|
362
|
+
clearable: "",
|
|
363
|
+
placeholder: "请输入标签键名"
|
|
346
364
|
}, null, 8, ["modelValue"])
|
|
347
365
|
]),
|
|
348
366
|
_: 1
|
|
349
367
|
}),
|
|
350
|
-
|
|
368
|
+
a(t(_), {
|
|
351
369
|
prop: "dataValue",
|
|
352
370
|
style: { width: "30%" },
|
|
353
371
|
label: "值键名"
|
|
354
372
|
}, {
|
|
355
373
|
default: n(() => [
|
|
356
|
-
|
|
374
|
+
a(t(N), {
|
|
357
375
|
modelValue: e.value.dataValue,
|
|
358
|
-
"onUpdate:modelValue":
|
|
376
|
+
"onUpdate:modelValue": l[4] || (l[4] = (d) => e.value.dataValue = d),
|
|
377
|
+
clearable: "",
|
|
378
|
+
placeholder: "请输入值键名"
|
|
359
379
|
}, null, 8, ["modelValue"])
|
|
360
380
|
]),
|
|
361
381
|
_: 1
|
|
362
382
|
}),
|
|
363
|
-
|
|
383
|
+
a(t(_), {
|
|
364
384
|
style: { width: "33%" },
|
|
365
385
|
label: "数据位置"
|
|
366
386
|
}, {
|
|
367
387
|
default: n(() => [
|
|
368
|
-
|
|
388
|
+
a(t(N), {
|
|
369
389
|
modelValue: e.value.dataPath,
|
|
370
|
-
"onUpdate:modelValue":
|
|
390
|
+
"onUpdate:modelValue": l[5] || (l[5] = (d) => e.value.dataPath = d),
|
|
391
|
+
clearable: "",
|
|
392
|
+
placeholder: "多层嵌套使用.分隔"
|
|
371
393
|
}, null, 8, ["modelValue"])
|
|
372
394
|
]),
|
|
373
395
|
_: 1
|
|
374
396
|
})
|
|
375
397
|
]),
|
|
376
|
-
s("div",
|
|
377
|
-
s("div",
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
onClick:
|
|
398
|
+
s("div", ke, [
|
|
399
|
+
s("div", _e, [
|
|
400
|
+
l[15] || (l[15] = s("div", null, "请求参数", -1)),
|
|
401
|
+
a(t(c), {
|
|
402
|
+
onClick: W,
|
|
381
403
|
text: "",
|
|
382
404
|
type: "primary",
|
|
383
405
|
class: "btn"
|
|
384
406
|
}, {
|
|
385
407
|
default: n(() => [
|
|
386
|
-
|
|
387
|
-
|
|
408
|
+
a(t(b), { name: "icon--epic--add-rounded" }),
|
|
409
|
+
l[14] || (l[14] = y(" 添加 "))
|
|
388
410
|
]),
|
|
389
411
|
_: 1
|
|
390
412
|
})
|
|
391
413
|
]),
|
|
392
|
-
(u = e.value) != null && u.paramsList && ((g = e.value) != null && g.paramsList.length) ? (m(), p("div",
|
|
393
|
-
(m(!0), p(
|
|
414
|
+
(u = e.value) != null && u.paramsList && ((g = e.value) != null && g.paramsList.length) ? (m(), p("div", Le, [
|
|
415
|
+
(m(!0), p(E, null, D(e.value.paramsList, (d, w) => (m(), p("div", {
|
|
394
416
|
class: "content-item",
|
|
395
417
|
key: d.value
|
|
396
418
|
}, [
|
|
397
|
-
|
|
419
|
+
a(t(L), {
|
|
398
420
|
modelValue: d.label,
|
|
399
421
|
"onUpdate:modelValue": (i) => d.label = i,
|
|
400
422
|
filterable: "",
|
|
401
423
|
"allow-create": "",
|
|
402
424
|
style: { width: "42%" },
|
|
403
|
-
options:
|
|
425
|
+
options: S,
|
|
404
426
|
placeholder: "参数名"
|
|
405
427
|
}, null, 8, ["modelValue", "onUpdate:modelValue"]),
|
|
406
|
-
|
|
428
|
+
a(t(L), {
|
|
407
429
|
modelValue: d.value,
|
|
408
430
|
"onUpdate:modelValue": (i) => d.value = i,
|
|
409
431
|
filterable: "",
|
|
410
432
|
"allow-create": "",
|
|
411
433
|
style: { width: "42%" },
|
|
412
|
-
options:
|
|
434
|
+
options: S,
|
|
413
435
|
placeholder: "参数值"
|
|
414
436
|
}, null, 8, ["modelValue", "onUpdate:modelValue"]),
|
|
415
|
-
|
|
416
|
-
onClick: (i) =>
|
|
437
|
+
a(t(c), {
|
|
438
|
+
onClick: (i) => X(w),
|
|
417
439
|
type: "danger",
|
|
418
440
|
circle: ""
|
|
419
441
|
}, {
|
|
420
442
|
default: n(() => [
|
|
421
|
-
|
|
443
|
+
a(t(b), {
|
|
422
444
|
style: { color: "#fff" },
|
|
423
445
|
name: "icon--epic--delete-outline-rounded"
|
|
424
446
|
})
|
|
@@ -426,54 +448,54 @@ const ne = { class: "e-data-source" }, se = { class: "icon-numbers" }, re = { cl
|
|
|
426
448
|
_: 2
|
|
427
449
|
}, 1032, ["onClick"])
|
|
428
450
|
]))), 128))
|
|
429
|
-
])) :
|
|
451
|
+
])) : F("", !0)
|
|
430
452
|
]),
|
|
431
|
-
s("div",
|
|
453
|
+
s("div", Se, [
|
|
432
454
|
s("div", Ce, [
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
onClick:
|
|
455
|
+
l[17] || (l[17] = s("div", null, "请求头", -1)),
|
|
456
|
+
a(t(c), {
|
|
457
|
+
onClick: Y,
|
|
436
458
|
text: "",
|
|
437
459
|
type: "primary",
|
|
438
460
|
class: "btn"
|
|
439
461
|
}, {
|
|
440
462
|
default: n(() => [
|
|
441
|
-
|
|
442
|
-
|
|
463
|
+
a(t(b), { name: "icon--epic--add-rounded" }),
|
|
464
|
+
l[16] || (l[16] = y(" 添加 "))
|
|
443
465
|
]),
|
|
444
466
|
_: 1
|
|
445
467
|
})
|
|
446
468
|
]),
|
|
447
|
-
(f = e.value) != null && f.headerList && ((r = e.value) != null && r.headerList.length) ? (m(), p("div",
|
|
448
|
-
(m(!0), p(
|
|
469
|
+
(f = e.value) != null && f.headerList && ((r = e.value) != null && r.headerList.length) ? (m(), p("div", we, [
|
|
470
|
+
(m(!0), p(E, null, D(e.value.headerList, (d, w) => (m(), p("div", {
|
|
449
471
|
class: "content-item",
|
|
450
|
-
key:
|
|
472
|
+
key: w
|
|
451
473
|
}, [
|
|
452
|
-
|
|
474
|
+
a(t(L), {
|
|
453
475
|
modelValue: d.label,
|
|
454
476
|
"onUpdate:modelValue": (i) => d.label = i,
|
|
455
477
|
filterable: "",
|
|
456
478
|
"allow-create": "",
|
|
457
479
|
style: { width: "42%" },
|
|
458
|
-
options:
|
|
480
|
+
options: S,
|
|
459
481
|
placeholder: "参数名"
|
|
460
482
|
}, null, 8, ["modelValue", "onUpdate:modelValue"]),
|
|
461
|
-
|
|
483
|
+
a(t(L), {
|
|
462
484
|
modelValue: d.value,
|
|
463
485
|
"onUpdate:modelValue": (i) => d.value = i,
|
|
464
486
|
filterable: "",
|
|
465
487
|
"allow-create": "",
|
|
466
488
|
style: { width: "42%" },
|
|
467
|
-
options:
|
|
489
|
+
options: S,
|
|
468
490
|
placeholder: "参数值"
|
|
469
491
|
}, null, 8, ["modelValue", "onUpdate:modelValue"]),
|
|
470
|
-
|
|
471
|
-
onClick: (i) =>
|
|
492
|
+
a(t(c), {
|
|
493
|
+
onClick: (i) => Z(w),
|
|
472
494
|
type: "danger",
|
|
473
495
|
circle: ""
|
|
474
496
|
}, {
|
|
475
497
|
default: n(() => [
|
|
476
|
-
|
|
498
|
+
a(t(b), {
|
|
477
499
|
style: { color: "#fff" },
|
|
478
500
|
name: "icon--epic--delete-outline-rounded"
|
|
479
501
|
})
|
|
@@ -481,54 +503,54 @@ const ne = { class: "e-data-source" }, se = { class: "icon-numbers" }, re = { cl
|
|
|
481
503
|
_: 2
|
|
482
504
|
}, 1032, ["onClick"])
|
|
483
505
|
]))), 128))
|
|
484
|
-
])) :
|
|
506
|
+
])) : F("", !0)
|
|
485
507
|
]),
|
|
486
|
-
s("div",
|
|
487
|
-
s("div",
|
|
488
|
-
|
|
489
|
-
|
|
490
|
-
onClick:
|
|
508
|
+
s("div", Ne, [
|
|
509
|
+
s("div", Oe, [
|
|
510
|
+
l[19] || (l[19] = s("div", null, "请求体", -1)),
|
|
511
|
+
a(t(c), {
|
|
512
|
+
onClick: ee,
|
|
491
513
|
text: "",
|
|
492
514
|
type: "primary",
|
|
493
515
|
class: "btn"
|
|
494
516
|
}, {
|
|
495
517
|
default: n(() => [
|
|
496
|
-
|
|
497
|
-
|
|
518
|
+
a(t(b), { name: "icon--epic--add-rounded" }),
|
|
519
|
+
l[18] || (l[18] = y(" 添加 "))
|
|
498
520
|
]),
|
|
499
521
|
_: 1
|
|
500
522
|
})
|
|
501
523
|
]),
|
|
502
|
-
(
|
|
503
|
-
(m(!0), p(
|
|
524
|
+
(C = e.value) != null && C.bodyList && ((V = e.value) != null && V.bodyList.length) ? (m(), p("div", Ue, [
|
|
525
|
+
(m(!0), p(E, null, D(e.value.bodyList, (d, w) => (m(), p("div", {
|
|
504
526
|
class: "content-item",
|
|
505
|
-
key:
|
|
527
|
+
key: w
|
|
506
528
|
}, [
|
|
507
|
-
|
|
529
|
+
a(t(L), {
|
|
508
530
|
modelValue: d.label,
|
|
509
531
|
"onUpdate:modelValue": (i) => d.label = i,
|
|
510
532
|
filterable: "",
|
|
511
533
|
"allow-create": "",
|
|
512
534
|
style: { width: "42%" },
|
|
513
|
-
options:
|
|
535
|
+
options: S,
|
|
514
536
|
placeholder: "参数名"
|
|
515
537
|
}, null, 8, ["modelValue", "onUpdate:modelValue"]),
|
|
516
|
-
|
|
538
|
+
a(t(L), {
|
|
517
539
|
modelValue: d.value,
|
|
518
540
|
"onUpdate:modelValue": (i) => d.value = i,
|
|
519
541
|
filterable: "",
|
|
520
542
|
"allow-create": "",
|
|
521
543
|
style: { width: "42%" },
|
|
522
|
-
options:
|
|
544
|
+
options: S,
|
|
523
545
|
placeholder: "参数值"
|
|
524
546
|
}, null, 8, ["modelValue", "onUpdate:modelValue"]),
|
|
525
|
-
|
|
526
|
-
onClick:
|
|
547
|
+
a(t(c), {
|
|
548
|
+
onClick: l[6] || (l[6] = (i) => le(o.i)),
|
|
527
549
|
type: "danger",
|
|
528
550
|
circle: ""
|
|
529
551
|
}, {
|
|
530
552
|
default: n(() => [
|
|
531
|
-
|
|
553
|
+
a(t(b), {
|
|
532
554
|
style: { color: "#fff" },
|
|
533
555
|
name: "icon--epic--delete-outline-rounded"
|
|
534
556
|
})
|
|
@@ -536,24 +558,24 @@ const ne = { class: "e-data-source" }, se = { class: "icon-numbers" }, re = { cl
|
|
|
536
558
|
_: 1
|
|
537
559
|
})
|
|
538
560
|
]))), 128))
|
|
539
|
-
])) :
|
|
561
|
+
])) : F("", !0)
|
|
540
562
|
]),
|
|
541
|
-
s("div",
|
|
542
|
-
|
|
563
|
+
s("div", Ee, [
|
|
564
|
+
a(t(c), {
|
|
543
565
|
type: "info",
|
|
544
|
-
onClick:
|
|
566
|
+
onClick: ae
|
|
545
567
|
}, {
|
|
546
|
-
default: n(() =>
|
|
547
|
-
|
|
568
|
+
default: n(() => l[20] || (l[20] = [
|
|
569
|
+
y("请求测试")
|
|
548
570
|
])),
|
|
549
571
|
_: 1
|
|
550
572
|
}),
|
|
551
|
-
|
|
573
|
+
a(t(c), {
|
|
552
574
|
type: "primary",
|
|
553
|
-
onClick:
|
|
575
|
+
onClick: T
|
|
554
576
|
}, {
|
|
555
|
-
default: n(() =>
|
|
556
|
-
|
|
577
|
+
default: n(() => l[21] || (l[21] = [
|
|
578
|
+
y("保存")
|
|
557
579
|
])),
|
|
558
580
|
_: 1
|
|
559
581
|
})
|
|
@@ -573,5 +595,5 @@ const ne = { class: "e-data-source" }, se = { class: "icon-numbers" }, re = { cl
|
|
|
573
595
|
}
|
|
574
596
|
});
|
|
575
597
|
export {
|
|
576
|
-
|
|
598
|
+
Ke as default
|
|
577
599
|
};
|