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