epic-designer-gold 0.0.41 → 0.0.42
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-B6yshoNY.cjs +1 -0
- package/dist/{attributeView-DPFdUi2O.js → attributeView-CAOGzcXM.js} +2 -2
- package/dist/form-6cUK-Ari.js +72 -0
- package/dist/form-CthzLIgs.cjs +1 -0
- package/dist/{index-C4sdhgF2.js → index-0GtpyUBx.js} +1 -1
- package/dist/{index-CCTMCqiz.js → index-0zDuNn0Q.js} +140 -137
- package/dist/{index-DeY6yw0s.cjs → index-1BndYxTQ.cjs} +1 -1
- package/dist/{index-98NOkcrB.cjs → index-B7QH_s16.cjs} +1 -1
- package/dist/{index-BnYEEWhA.js → index-BIPDvTGu.js} +263 -259
- package/dist/{index-C-XUgjda.js → index-BKDRMrcc.js} +1 -1
- package/dist/{index-Cd9n7QSg.js → index-BOfEIfM3.js} +3 -3
- package/dist/index-BSLudrcT.cjs +1 -0
- package/dist/{index-CbiXuuBq.js → index-BVceGSkj.js} +1 -1
- package/dist/index-BcocZhQo.js +4 -0
- package/dist/index-BenbgJD8.cjs +1 -0
- package/dist/index-Bf2Sxe2E.cjs +1 -0
- package/dist/index-BwdkCtpc.cjs +10 -0
- package/dist/{index-D9mE7-Ar.js → index-C4TbiUcL.js} +2 -2
- package/dist/index-CMCtBfv5.cjs +1 -0
- package/dist/index-CMwJOFFP.cjs +1 -0
- package/dist/index-CYfnscUn.cjs +1 -0
- package/dist/index-CcZa7MK_.cjs +1 -0
- package/dist/index-CucdgcqX.cjs +1 -0
- package/dist/{index-Bm_2TXSs.js → index-DDo1LIxZ.js} +64 -59
- package/dist/{index-ooVzYa5L.js → index-DNeYX6HK.js} +1 -1
- package/dist/{index-BdghL1e1.js → index-DR3BiPsn.js} +2 -2
- package/dist/index-DlubD1cY.cjs +1 -0
- package/dist/{index-fHt4-rMq.js → index-DmyFFubg.js} +2 -2
- package/dist/index-HNPgHrkl.cjs +1 -0
- package/dist/{index-B0pq3LvX.js → index-L6-BEKnU.js} +2 -2
- package/dist/{index-ASoFJnMl.js → index-XUQ1VGQg.js} +1 -1
- package/dist/index-sKJ91s0r.cjs +1 -0
- package/dist/index.cjs +1 -1
- package/dist/index.js +2 -2
- package/dist/js.cookie-BH1G_HRi.cjs +6 -0
- package/dist/{axios-ITY6Uw7A.js → js.cookie-oHpRFPCO.js} +604 -532
- package/dist/outline-6Qt3qlWm.cjs +1 -0
- package/dist/{outline-yy4pIEi3.js → outline-CNayBNNC.js} +2 -2
- package/dist/sign-Bfrdd-6m.cjs +1 -0
- package/dist/{sign-DZvUIxel.js → sign-CJJd-ctq.js} +33 -32
- package/dist/style.css +1 -1
- package/dist/{styleView-BC3ElYAX.js → styleView-5U84Umnq.js} +2 -2
- package/dist/styleView-Ds-PuzkJ.cjs +1 -0
- package/dist/tree.vue_vue_type_script_setup_true_lang-BjjL_VlR.cjs +1 -0
- package/dist/{tree.vue_vue_type_script_setup_true_lang-uR4G8wa_.js → tree.vue_vue_type_script_setup_true_lang-BntCm43E.js} +1 -1
- package/dist/ui/elementPlus/index.cjs +1 -1
- package/dist/ui/elementPlus/index.js +2 -2
- package/package.json +1 -1
- package/dist/attributeView-BqbSwDZ-.cjs +0 -1
- package/dist/axios-CYGTE3lR.cjs +0 -6
- package/dist/form-2lbtG-zj.js +0 -74
- package/dist/form-BM53wx9g.cjs +0 -1
- package/dist/index-1afOcXnV.cjs +0 -1
- package/dist/index-B03W7FZR.cjs +0 -1
- package/dist/index-BJlPL6eL.cjs +0 -1
- package/dist/index-BMLwTmDA.cjs +0 -1
- package/dist/index-Bjg8-hj_.cjs +0 -1
- package/dist/index-C6ceZM1C.cjs +0 -1
- package/dist/index-CDp439PR.cjs +0 -10
- package/dist/index-CRSk-fAu.cjs +0 -1
- package/dist/index-DUwQsRO_.cjs +0 -1
- package/dist/index-DpzLP1Zp.cjs +0 -1
- package/dist/index-DqXlNyYv.js +0 -4
- package/dist/index-FyzG-Fup.cjs +0 -1
- package/dist/index-RaG5yFdp.cjs +0 -1
- package/dist/outline-CJSEUbgc.cjs +0 -1
- package/dist/sign-BS8owiJT.cjs +0 -1
- package/dist/styleView-DT4vsrXY.cjs +0 -1
- package/dist/tree.vue_vue_type_script_setup_true_lang-RWTXU6lO.cjs +0 -1
|
@@ -1,29 +1,29 @@
|
|
|
1
|
-
import { defineComponent as te, ref as O, reactive as oe, onMounted as ue, openBlock as m, createElementBlock as v, createVNode as
|
|
2
|
-
import { p, E as J, a as se } from "./
|
|
3
|
-
import { ElMessage as
|
|
1
|
+
import { defineComponent as te, ref as O, reactive as oe, onMounted as ue, openBlock as m, createElementBlock as v, createVNode as l, 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 b, createCommentVNode as B } from "vue";
|
|
2
|
+
import { p, E as J, a as se, b as re } from "./js.cookie-oHpRFPCO.js";
|
|
3
|
+
import { ElMessage as k } from "element-plus";
|
|
4
4
|
import { _ as g } from "./icon.vue_vue_type_script_setup_true_lang-D3QdcReY.js";
|
|
5
|
-
const
|
|
5
|
+
const ie = { class: "e-data-source" }, me = { class: "icon-numbers" }, ve = { class: "drawer-content" }, pe = { class: "drawer-content-left" }, ce = ["onClick"], fe = { class: "source-item-title" }, ye = ["onClick"], be = { class: "drawer-content-right" }, ge = { class: "content" }, he = {
|
|
6
6
|
key: 0,
|
|
7
7
|
class: "content-empty"
|
|
8
|
-
},
|
|
8
|
+
}, Ve = {
|
|
9
9
|
key: 1,
|
|
10
10
|
class: "content-form"
|
|
11
|
-
},
|
|
11
|
+
}, ke = { class: "form-flex" }, _e = { class: "form-item" }, Le = { class: "form-item-title" }, Se = {
|
|
12
12
|
key: 0,
|
|
13
13
|
class: "form-item-content"
|
|
14
|
-
},
|
|
14
|
+
}, Ce = { class: "form-item" }, we = { class: "form-item-title" }, Ne = {
|
|
15
15
|
key: 0,
|
|
16
16
|
class: "form-item-content"
|
|
17
|
-
},
|
|
17
|
+
}, Oe = { class: "form-item" }, Ue = { class: "form-item-title" }, Ee = {
|
|
18
18
|
key: 0,
|
|
19
19
|
class: "form-item-content"
|
|
20
|
-
},
|
|
20
|
+
}, De = { class: "content-right-btn" }, Fe = /* @__PURE__ */ te({
|
|
21
21
|
__name: "index",
|
|
22
22
|
emits: ["update:modelValue", "update:sourceData"],
|
|
23
|
-
setup(
|
|
24
|
-
const c = p.getComponent("button"),
|
|
23
|
+
setup(Je, { emit: Te }) {
|
|
24
|
+
const c = p.getComponent("button"), F = p.getComponent("Drawer"), N = p.getComponent("input"), _ = p.getComponent("FormItem"), K = p.getComponent("Form"), j = p.getComponent("RadioGroup"), U = p.getComponent("RadioButton"), L = p.getComponent("select");
|
|
25
25
|
p.getComponent("switch");
|
|
26
|
-
const
|
|
26
|
+
const T = O(), q = {
|
|
27
27
|
GET: "#67c23a",
|
|
28
28
|
POST: "#e6a23c",
|
|
29
29
|
PUT: "#409eff",
|
|
@@ -33,32 +33,32 @@ const re = { class: "e-data-source" }, ie = { class: "icon-numbers" }, me = { cl
|
|
|
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
|
+
}), P = O(!1), f = O([]), e = O(), S = [
|
|
37
37
|
{
|
|
38
38
|
label: "1",
|
|
39
39
|
value: "1"
|
|
40
40
|
}
|
|
41
41
|
];
|
|
42
|
-
function
|
|
43
|
-
|
|
42
|
+
function A() {
|
|
43
|
+
P.value = !0;
|
|
44
44
|
}
|
|
45
|
-
function
|
|
45
|
+
function G() {
|
|
46
46
|
const o = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789";
|
|
47
47
|
return o.charAt(Math.floor(Math.random() * o.length));
|
|
48
48
|
}
|
|
49
|
-
function
|
|
50
|
-
let
|
|
49
|
+
function I(o) {
|
|
50
|
+
let a = "";
|
|
51
51
|
for (let u = 0; u < o; u++)
|
|
52
|
-
|
|
53
|
-
return
|
|
52
|
+
a += G();
|
|
53
|
+
return a;
|
|
54
54
|
}
|
|
55
|
-
function
|
|
55
|
+
function z() {
|
|
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: `数据源_${I(5)}`,
|
|
62
62
|
method: "get",
|
|
63
63
|
params: {},
|
|
64
64
|
paramsList: [],
|
|
@@ -70,8 +70,8 @@ const re = { class: "e-data-source" }, ie = { class: "icon-numbers" }, me = { cl
|
|
|
70
70
|
}, f.value.push(e.value)) : e.value.id || x();
|
|
71
71
|
}
|
|
72
72
|
function H(o) {
|
|
73
|
-
var
|
|
74
|
-
!e.value || e.value.id || !Object.keys(e.value).length ? (f.value = JSON.parse(JSON.stringify(p.getSourceData())), ((
|
|
73
|
+
var a;
|
|
74
|
+
!e.value || e.value.id || !Object.keys(e.value).length ? (f.value = JSON.parse(JSON.stringify(p.getSourceData())), ((a = e.value) == null ? void 0 : a.id) === o ? e.value = {} : (e.value = f.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) => ({
|
|
@@ -83,7 +83,7 @@ const re = { class: "e-data-source" }, ie = { class: "icon-numbers" }, me = { cl
|
|
|
83
83
|
})))) : x();
|
|
84
84
|
}
|
|
85
85
|
function Q(o) {
|
|
86
|
-
o ? (J.emit("deleteSourceData", o), e.value = {}) : (f.value = f.value.filter((
|
|
86
|
+
o ? (J.emit("deleteSourceData", o), e.value = {}) : (f.value = f.value.filter((a) => a.id !== o), e.value = {});
|
|
87
87
|
}
|
|
88
88
|
function W() {
|
|
89
89
|
var o;
|
|
@@ -112,7 +112,7 @@ const re = { class: "e-data-source" }, ie = { class: "icon-numbers" }, me = { cl
|
|
|
112
112
|
value: ""
|
|
113
113
|
});
|
|
114
114
|
}
|
|
115
|
-
function
|
|
115
|
+
function ae(o) {
|
|
116
116
|
e.value.bodyList.splice(o, 1);
|
|
117
117
|
}
|
|
118
118
|
ue(() => {
|
|
@@ -120,13 +120,13 @@ const re = { class: "e-data-source" }, ie = { class: "icon-numbers" }, me = { cl
|
|
|
120
120
|
}), J.on("updateSource", (o) => {
|
|
121
121
|
f.value = JSON.parse(JSON.stringify(p.getSourceData()));
|
|
122
122
|
});
|
|
123
|
-
async function
|
|
124
|
-
|
|
123
|
+
async function le() {
|
|
124
|
+
T.value.validate(async (o) => {
|
|
125
125
|
if (o)
|
|
126
126
|
try {
|
|
127
|
-
const
|
|
127
|
+
const a = {};
|
|
128
128
|
e.value.paramsList.forEach((r) => {
|
|
129
|
-
|
|
129
|
+
a[r.label] = r.value;
|
|
130
130
|
});
|
|
131
131
|
const u = {};
|
|
132
132
|
e.value.bodyList.forEach((r) => {
|
|
@@ -141,41 +141,44 @@ const re = { class: "e-data-source" }, ie = { class: "icon-numbers" }, me = { cl
|
|
|
141
141
|
// url: formData.value.url,
|
|
142
142
|
// url: "http://localhost:3333/users",
|
|
143
143
|
url: e.value.url,
|
|
144
|
-
params:
|
|
144
|
+
params: a,
|
|
145
145
|
data: u,
|
|
146
|
-
headers:
|
|
146
|
+
headers: {
|
|
147
|
+
...h,
|
|
148
|
+
Authorization: "Bearer " + re.get("Admin-Token")
|
|
149
|
+
}
|
|
147
150
|
});
|
|
148
151
|
if (e.value.dataPath) {
|
|
149
152
|
const C = e.value.dataPath.split(".").reduce((V, d) => V[d], y.data);
|
|
150
|
-
C && C.length ?
|
|
153
|
+
C && C.length ? k({
|
|
151
154
|
message: C.map((V) => ({
|
|
152
155
|
label: V[e.value.dataKey],
|
|
153
156
|
value: V[e.value.dataValue]
|
|
154
157
|
}))
|
|
155
|
-
}) :
|
|
158
|
+
}) : k.info("配置错误");
|
|
156
159
|
} else
|
|
157
|
-
y.data && y.data.length ?
|
|
160
|
+
y.data && y.data.length ? k({
|
|
158
161
|
message: y.data.map((r) => ({
|
|
159
162
|
label: r[e.value.dataKey],
|
|
160
163
|
value: r[e.value.dataValue]
|
|
161
164
|
}))
|
|
162
|
-
}) :
|
|
165
|
+
}) : k.info("配置错误");
|
|
163
166
|
} catch {
|
|
164
|
-
|
|
167
|
+
k.error("请求失败");
|
|
165
168
|
} finally {
|
|
166
169
|
}
|
|
167
170
|
else
|
|
168
|
-
|
|
171
|
+
k.error("请填写必填项");
|
|
169
172
|
});
|
|
170
173
|
}
|
|
171
174
|
async function x() {
|
|
172
|
-
e.value.body = e.value.bodyList.reduce((o,
|
|
173
|
-
(o,
|
|
175
|
+
e.value.body = e.value.bodyList.reduce((o, a) => (o[a.label] = a.value, o), {}), e.value.params = e.value.paramsList.reduce(
|
|
176
|
+
(o, a) => (o[a.label] = a.value, o),
|
|
174
177
|
{}
|
|
175
178
|
), e.value.headers = e.value.headerList.reduce(
|
|
176
|
-
(o,
|
|
179
|
+
(o, a) => (o[a.label] = a.value, o),
|
|
177
180
|
{}
|
|
178
|
-
),
|
|
181
|
+
), T.value.validate((o) => {
|
|
179
182
|
o ? e.value.id ? (J.emit("updateSourceData", {
|
|
180
183
|
...e.value,
|
|
181
184
|
body: JSON.stringify(e.value.body),
|
|
@@ -186,45 +189,45 @@ const re = { class: "e-data-source" }, ie = { class: "icon-numbers" }, me = { cl
|
|
|
186
189
|
body: JSON.stringify(e.value.body),
|
|
187
190
|
params: JSON.stringify(e.value.params),
|
|
188
191
|
headers: JSON.stringify(e.value.headers)
|
|
189
|
-
}), e.value = {}) :
|
|
192
|
+
}), e.value = {}) : k.warning("请先完善表单");
|
|
190
193
|
});
|
|
191
194
|
}
|
|
192
|
-
return (o,
|
|
193
|
-
|
|
195
|
+
return (o, a) => (m(), v("div", ie, [
|
|
196
|
+
l(t(c), {
|
|
194
197
|
class: "btn",
|
|
195
|
-
onClick:
|
|
198
|
+
onClick: A
|
|
196
199
|
}, {
|
|
197
200
|
default: n(() => [
|
|
198
|
-
|
|
201
|
+
l(t(g), {
|
|
199
202
|
name: "icon--epic--window-outline",
|
|
200
203
|
class: "mr-4px"
|
|
201
204
|
}),
|
|
202
|
-
|
|
203
|
-
s("span",
|
|
205
|
+
a[8] || (a[8] = s("span", null, "配置", -1)),
|
|
206
|
+
s("span", me, R(M.value || f.value.length), 1)
|
|
204
207
|
]),
|
|
205
208
|
_: 1
|
|
206
209
|
}),
|
|
207
|
-
|
|
210
|
+
l(t(F), {
|
|
208
211
|
size: 960,
|
|
209
|
-
modelValue:
|
|
210
|
-
"onUpdate:modelValue":
|
|
212
|
+
modelValue: P.value,
|
|
213
|
+
"onUpdate:modelValue": a[7] || (a[7] = (u) => P.value = u),
|
|
211
214
|
"append-to-body": "",
|
|
212
215
|
title: "数据源"
|
|
213
216
|
}, {
|
|
214
217
|
default: n(() => [
|
|
215
|
-
s("div",
|
|
216
|
-
s("div",
|
|
217
|
-
|
|
218
|
+
s("div", ve, [
|
|
219
|
+
s("div", pe, [
|
|
220
|
+
l(t(c), {
|
|
218
221
|
type: "primary",
|
|
219
222
|
class: "btn",
|
|
220
|
-
onClick:
|
|
223
|
+
onClick: z
|
|
221
224
|
}, {
|
|
222
225
|
default: n(() => [
|
|
223
|
-
|
|
226
|
+
l(t(g), {
|
|
224
227
|
name: "icon--epic--add-rounded",
|
|
225
228
|
class: "mr-4px"
|
|
226
229
|
}),
|
|
227
|
-
|
|
230
|
+
a[9] || (a[9] = s("span", null, "新增数据源", -1))
|
|
228
231
|
]),
|
|
229
232
|
_: 1
|
|
230
233
|
}),
|
|
@@ -236,10 +239,10 @@ const re = { class: "e-data-source" }, ie = { class: "icon-numbers" }, me = { cl
|
|
|
236
239
|
key: u.id,
|
|
237
240
|
onClick: (y) => H(u.id)
|
|
238
241
|
}, [
|
|
239
|
-
s("div",
|
|
242
|
+
s("div", fe, [
|
|
240
243
|
s("div", {
|
|
241
244
|
style: ne({
|
|
242
|
-
color:
|
|
245
|
+
color: q[u.method.toLocaleUpperCase()]
|
|
243
246
|
})
|
|
244
247
|
}, R(u.method.toLocaleUpperCase()), 5),
|
|
245
248
|
s("div", null, R(u.apiName), 1)
|
|
@@ -248,18 +251,18 @@ const re = { class: "e-data-source" }, ie = { class: "icon-numbers" }, me = { cl
|
|
|
248
251
|
onClick: (y) => Q(u.id),
|
|
249
252
|
class: "source-item-icon"
|
|
250
253
|
}, [
|
|
251
|
-
|
|
252
|
-
], 8,
|
|
253
|
-
], 10,
|
|
254
|
+
l(t(g), { name: "icon--epic--delete-outline-rounded" })
|
|
255
|
+
], 8, ye)
|
|
256
|
+
], 10, ce);
|
|
254
257
|
}), 128))
|
|
255
258
|
])
|
|
256
259
|
]),
|
|
257
|
-
s("div",
|
|
258
|
-
s("div",
|
|
259
|
-
!e.value || !Object.keys(e.value).length ? (m(), v("div",
|
|
260
|
-
|
|
260
|
+
s("div", be, [
|
|
261
|
+
s("div", ge, [
|
|
262
|
+
!e.value || !Object.keys(e.value).length ? (m(), v("div", he, "请选择数据源")) : (m(), v("div", Ve, [
|
|
263
|
+
l(t(K), {
|
|
261
264
|
ref_key: "ruleFormRef",
|
|
262
|
-
ref:
|
|
265
|
+
ref: T,
|
|
263
266
|
model: e.value,
|
|
264
267
|
"label-position": "top",
|
|
265
268
|
rules: $,
|
|
@@ -268,76 +271,76 @@ const re = { class: "e-data-source" }, ie = { class: "icon-numbers" }, me = { cl
|
|
|
268
271
|
default: n(() => {
|
|
269
272
|
var u, h, y, r, C, V;
|
|
270
273
|
return [
|
|
271
|
-
|
|
274
|
+
l(t(_), {
|
|
272
275
|
prop: "apiName",
|
|
273
276
|
label: "接口名称"
|
|
274
277
|
}, {
|
|
275
278
|
default: n(() => [
|
|
276
|
-
|
|
279
|
+
l(t(N), {
|
|
277
280
|
clearable: "",
|
|
278
281
|
modelValue: e.value.apiName,
|
|
279
|
-
"onUpdate:modelValue":
|
|
282
|
+
"onUpdate:modelValue": a[0] || (a[0] = (d) => e.value.apiName = d),
|
|
280
283
|
placeholder: "请输入接口名称"
|
|
281
284
|
}, null, 8, ["modelValue"])
|
|
282
285
|
]),
|
|
283
286
|
_: 1
|
|
284
287
|
}),
|
|
285
|
-
|
|
288
|
+
l(t(_), {
|
|
286
289
|
prop: "url",
|
|
287
290
|
label: "请求地址"
|
|
288
291
|
}, {
|
|
289
292
|
default: n(() => [
|
|
290
|
-
|
|
293
|
+
l(t(N), {
|
|
291
294
|
modelValue: e.value.url,
|
|
292
|
-
"onUpdate:modelValue":
|
|
295
|
+
"onUpdate:modelValue": a[1] || (a[1] = (d) => e.value.url = d),
|
|
293
296
|
clearable: "",
|
|
294
297
|
placeholder: "请输入完整的请求地址"
|
|
295
298
|
}, null, 8, ["modelValue"])
|
|
296
299
|
]),
|
|
297
300
|
_: 1
|
|
298
301
|
}),
|
|
299
|
-
|
|
302
|
+
l(t(_), {
|
|
300
303
|
label: "请求方法",
|
|
301
304
|
required: ""
|
|
302
305
|
}, {
|
|
303
306
|
default: n(() => [
|
|
304
|
-
|
|
307
|
+
l(t(j), {
|
|
305
308
|
modelValue: e.value.method,
|
|
306
|
-
"onUpdate:modelValue":
|
|
309
|
+
"onUpdate:modelValue": a[2] || (a[2] = (d) => e.value.method = d)
|
|
307
310
|
}, {
|
|
308
311
|
default: n(() => [
|
|
309
|
-
|
|
312
|
+
l(t(U), {
|
|
310
313
|
label: "GET",
|
|
311
314
|
value: "get"
|
|
312
315
|
}, {
|
|
313
|
-
default: n(() =>
|
|
316
|
+
default: n(() => a[10] || (a[10] = [
|
|
314
317
|
b("GET")
|
|
315
318
|
])),
|
|
316
319
|
_: 1
|
|
317
320
|
}),
|
|
318
|
-
|
|
321
|
+
l(t(U), {
|
|
319
322
|
label: "POST",
|
|
320
323
|
value: "post"
|
|
321
324
|
}, {
|
|
322
|
-
default: n(() =>
|
|
325
|
+
default: n(() => a[11] || (a[11] = [
|
|
323
326
|
b("POST")
|
|
324
327
|
])),
|
|
325
328
|
_: 1
|
|
326
329
|
}),
|
|
327
|
-
|
|
330
|
+
l(t(U), {
|
|
328
331
|
label: "PUT",
|
|
329
332
|
value: "put"
|
|
330
333
|
}, {
|
|
331
|
-
default: n(() =>
|
|
334
|
+
default: n(() => a[12] || (a[12] = [
|
|
332
335
|
b("PUT")
|
|
333
336
|
])),
|
|
334
337
|
_: 1
|
|
335
338
|
}),
|
|
336
|
-
|
|
339
|
+
l(t(U), {
|
|
337
340
|
label: "DELETE",
|
|
338
341
|
value: "delete"
|
|
339
342
|
}, {
|
|
340
|
-
default: n(() =>
|
|
343
|
+
default: n(() => a[13] || (a[13] = [
|
|
341
344
|
b("DELETE")
|
|
342
345
|
])),
|
|
343
346
|
_: 1
|
|
@@ -348,45 +351,45 @@ const re = { class: "e-data-source" }, ie = { class: "icon-numbers" }, me = { cl
|
|
|
348
351
|
]),
|
|
349
352
|
_: 1
|
|
350
353
|
}),
|
|
351
|
-
s("div",
|
|
352
|
-
|
|
354
|
+
s("div", ke, [
|
|
355
|
+
l(t(_), {
|
|
353
356
|
prop: "dataKey",
|
|
354
357
|
style: { width: "30%" },
|
|
355
358
|
label: "标签键名"
|
|
356
359
|
}, {
|
|
357
360
|
default: n(() => [
|
|
358
|
-
|
|
361
|
+
l(t(N), {
|
|
359
362
|
modelValue: e.value.dataKey,
|
|
360
|
-
"onUpdate:modelValue":
|
|
363
|
+
"onUpdate:modelValue": a[3] || (a[3] = (d) => e.value.dataKey = d),
|
|
361
364
|
clearable: "",
|
|
362
365
|
placeholder: "请输入标签键名"
|
|
363
366
|
}, null, 8, ["modelValue"])
|
|
364
367
|
]),
|
|
365
368
|
_: 1
|
|
366
369
|
}),
|
|
367
|
-
|
|
370
|
+
l(t(_), {
|
|
368
371
|
prop: "dataValue",
|
|
369
372
|
style: { width: "30%" },
|
|
370
373
|
label: "值键名"
|
|
371
374
|
}, {
|
|
372
375
|
default: n(() => [
|
|
373
|
-
|
|
376
|
+
l(t(N), {
|
|
374
377
|
modelValue: e.value.dataValue,
|
|
375
|
-
"onUpdate:modelValue":
|
|
378
|
+
"onUpdate:modelValue": a[4] || (a[4] = (d) => e.value.dataValue = d),
|
|
376
379
|
clearable: "",
|
|
377
380
|
placeholder: "请输入值键名"
|
|
378
381
|
}, null, 8, ["modelValue"])
|
|
379
382
|
]),
|
|
380
383
|
_: 1
|
|
381
384
|
}),
|
|
382
|
-
|
|
385
|
+
l(t(_), {
|
|
383
386
|
style: { width: "33%" },
|
|
384
387
|
label: "数据位置"
|
|
385
388
|
}, {
|
|
386
389
|
default: n(() => [
|
|
387
|
-
|
|
390
|
+
l(t(N), {
|
|
388
391
|
modelValue: e.value.dataPath,
|
|
389
|
-
"onUpdate:modelValue":
|
|
392
|
+
"onUpdate:modelValue": a[5] || (a[5] = (d) => e.value.dataPath = d),
|
|
390
393
|
clearable: "",
|
|
391
394
|
placeholder: "多层嵌套使用.分隔"
|
|
392
395
|
}, null, 8, ["modelValue"])
|
|
@@ -395,27 +398,27 @@ const re = { class: "e-data-source" }, ie = { class: "icon-numbers" }, me = { cl
|
|
|
395
398
|
})
|
|
396
399
|
]),
|
|
397
400
|
s("div", _e, [
|
|
398
|
-
s("div",
|
|
399
|
-
|
|
400
|
-
|
|
401
|
+
s("div", Le, [
|
|
402
|
+
a[15] || (a[15] = s("div", null, "请求参数", -1)),
|
|
403
|
+
l(t(c), {
|
|
401
404
|
onClick: W,
|
|
402
405
|
text: "",
|
|
403
406
|
type: "primary",
|
|
404
407
|
class: "btn"
|
|
405
408
|
}, {
|
|
406
409
|
default: n(() => [
|
|
407
|
-
|
|
408
|
-
|
|
410
|
+
l(t(g), { name: "icon--epic--add-rounded" }),
|
|
411
|
+
a[14] || (a[14] = b(" 添加 "))
|
|
409
412
|
]),
|
|
410
413
|
_: 1
|
|
411
414
|
})
|
|
412
415
|
]),
|
|
413
|
-
(u = e.value) != null && u.paramsList && ((h = e.value) != null && h.paramsList.length) ? (m(), v("div",
|
|
416
|
+
(u = e.value) != null && u.paramsList && ((h = e.value) != null && h.paramsList.length) ? (m(), v("div", Se, [
|
|
414
417
|
(m(!0), v(E, null, D(e.value.paramsList, (d, w) => (m(), v("div", {
|
|
415
418
|
class: "content-item",
|
|
416
419
|
key: d.value
|
|
417
420
|
}, [
|
|
418
|
-
|
|
421
|
+
l(t(L), {
|
|
419
422
|
modelValue: d.label,
|
|
420
423
|
"onUpdate:modelValue": (i) => d.label = i,
|
|
421
424
|
filterable: "",
|
|
@@ -424,7 +427,7 @@ const re = { class: "e-data-source" }, ie = { class: "icon-numbers" }, me = { cl
|
|
|
424
427
|
options: S,
|
|
425
428
|
placeholder: "参数名"
|
|
426
429
|
}, null, 8, ["modelValue", "onUpdate:modelValue"]),
|
|
427
|
-
|
|
430
|
+
l(t(L), {
|
|
428
431
|
modelValue: d.value,
|
|
429
432
|
"onUpdate:modelValue": (i) => d.value = i,
|
|
430
433
|
filterable: "",
|
|
@@ -433,13 +436,13 @@ const re = { class: "e-data-source" }, ie = { class: "icon-numbers" }, me = { cl
|
|
|
433
436
|
options: S,
|
|
434
437
|
placeholder: "参数值"
|
|
435
438
|
}, null, 8, ["modelValue", "onUpdate:modelValue"]),
|
|
436
|
-
|
|
439
|
+
l(t(c), {
|
|
437
440
|
onClick: (i) => X(w),
|
|
438
441
|
type: "danger",
|
|
439
442
|
circle: ""
|
|
440
443
|
}, {
|
|
441
444
|
default: n(() => [
|
|
442
|
-
|
|
445
|
+
l(t(g), {
|
|
443
446
|
style: { color: "#fff" },
|
|
444
447
|
name: "icon--epic--delete-outline-rounded"
|
|
445
448
|
})
|
|
@@ -447,30 +450,30 @@ const re = { class: "e-data-source" }, ie = { class: "icon-numbers" }, me = { cl
|
|
|
447
450
|
_: 2
|
|
448
451
|
}, 1032, ["onClick"])
|
|
449
452
|
]))), 128))
|
|
450
|
-
])) :
|
|
453
|
+
])) : B("", !0)
|
|
451
454
|
]),
|
|
452
|
-
s("div",
|
|
453
|
-
s("div",
|
|
454
|
-
|
|
455
|
-
|
|
455
|
+
s("div", Ce, [
|
|
456
|
+
s("div", we, [
|
|
457
|
+
a[17] || (a[17] = s("div", null, "请求头", -1)),
|
|
458
|
+
l(t(c), {
|
|
456
459
|
onClick: Y,
|
|
457
460
|
text: "",
|
|
458
461
|
type: "primary",
|
|
459
462
|
class: "btn"
|
|
460
463
|
}, {
|
|
461
464
|
default: n(() => [
|
|
462
|
-
|
|
463
|
-
|
|
465
|
+
l(t(g), { name: "icon--epic--add-rounded" }),
|
|
466
|
+
a[16] || (a[16] = b(" 添加 "))
|
|
464
467
|
]),
|
|
465
468
|
_: 1
|
|
466
469
|
})
|
|
467
470
|
]),
|
|
468
|
-
(y = e.value) != null && y.headerList && ((r = e.value) != null && r.headerList.length) ? (m(), v("div",
|
|
471
|
+
(y = e.value) != null && y.headerList && ((r = e.value) != null && r.headerList.length) ? (m(), v("div", Ne, [
|
|
469
472
|
(m(!0), v(E, null, D(e.value.headerList, (d, w) => (m(), v("div", {
|
|
470
473
|
class: "content-item",
|
|
471
474
|
key: w
|
|
472
475
|
}, [
|
|
473
|
-
|
|
476
|
+
l(t(L), {
|
|
474
477
|
modelValue: d.label,
|
|
475
478
|
"onUpdate:modelValue": (i) => d.label = i,
|
|
476
479
|
filterable: "",
|
|
@@ -479,7 +482,7 @@ const re = { class: "e-data-source" }, ie = { class: "icon-numbers" }, me = { cl
|
|
|
479
482
|
options: S,
|
|
480
483
|
placeholder: "参数名"
|
|
481
484
|
}, null, 8, ["modelValue", "onUpdate:modelValue"]),
|
|
482
|
-
|
|
485
|
+
l(t(L), {
|
|
483
486
|
modelValue: d.value,
|
|
484
487
|
"onUpdate:modelValue": (i) => d.value = i,
|
|
485
488
|
filterable: "",
|
|
@@ -488,13 +491,13 @@ const re = { class: "e-data-source" }, ie = { class: "icon-numbers" }, me = { cl
|
|
|
488
491
|
options: S,
|
|
489
492
|
placeholder: "参数值"
|
|
490
493
|
}, null, 8, ["modelValue", "onUpdate:modelValue"]),
|
|
491
|
-
|
|
494
|
+
l(t(c), {
|
|
492
495
|
onClick: (i) => Z(w),
|
|
493
496
|
type: "danger",
|
|
494
497
|
circle: ""
|
|
495
498
|
}, {
|
|
496
499
|
default: n(() => [
|
|
497
|
-
|
|
500
|
+
l(t(g), {
|
|
498
501
|
style: { color: "#fff" },
|
|
499
502
|
name: "icon--epic--delete-outline-rounded"
|
|
500
503
|
})
|
|
@@ -502,30 +505,30 @@ const re = { class: "e-data-source" }, ie = { class: "icon-numbers" }, me = { cl
|
|
|
502
505
|
_: 2
|
|
503
506
|
}, 1032, ["onClick"])
|
|
504
507
|
]))), 128))
|
|
505
|
-
])) :
|
|
508
|
+
])) : B("", !0)
|
|
506
509
|
]),
|
|
507
|
-
s("div",
|
|
508
|
-
s("div",
|
|
509
|
-
|
|
510
|
-
|
|
510
|
+
s("div", Oe, [
|
|
511
|
+
s("div", Ue, [
|
|
512
|
+
a[19] || (a[19] = s("div", null, "请求体", -1)),
|
|
513
|
+
l(t(c), {
|
|
511
514
|
onClick: ee,
|
|
512
515
|
text: "",
|
|
513
516
|
type: "primary",
|
|
514
517
|
class: "btn"
|
|
515
518
|
}, {
|
|
516
519
|
default: n(() => [
|
|
517
|
-
|
|
518
|
-
|
|
520
|
+
l(t(g), { name: "icon--epic--add-rounded" }),
|
|
521
|
+
a[18] || (a[18] = b(" 添加 "))
|
|
519
522
|
]),
|
|
520
523
|
_: 1
|
|
521
524
|
})
|
|
522
525
|
]),
|
|
523
|
-
(C = e.value) != null && C.bodyList && ((V = e.value) != null && V.bodyList.length) ? (m(), v("div",
|
|
526
|
+
(C = e.value) != null && C.bodyList && ((V = e.value) != null && V.bodyList.length) ? (m(), v("div", Ee, [
|
|
524
527
|
(m(!0), v(E, null, D(e.value.bodyList, (d, w) => (m(), v("div", {
|
|
525
528
|
class: "content-item",
|
|
526
529
|
key: w
|
|
527
530
|
}, [
|
|
528
|
-
|
|
531
|
+
l(t(L), {
|
|
529
532
|
modelValue: d.label,
|
|
530
533
|
"onUpdate:modelValue": (i) => d.label = i,
|
|
531
534
|
filterable: "",
|
|
@@ -534,7 +537,7 @@ const re = { class: "e-data-source" }, ie = { class: "icon-numbers" }, me = { cl
|
|
|
534
537
|
options: S,
|
|
535
538
|
placeholder: "参数名"
|
|
536
539
|
}, null, 8, ["modelValue", "onUpdate:modelValue"]),
|
|
537
|
-
|
|
540
|
+
l(t(L), {
|
|
538
541
|
modelValue: d.value,
|
|
539
542
|
"onUpdate:modelValue": (i) => d.value = i,
|
|
540
543
|
filterable: "",
|
|
@@ -543,13 +546,13 @@ const re = { class: "e-data-source" }, ie = { class: "icon-numbers" }, me = { cl
|
|
|
543
546
|
options: S,
|
|
544
547
|
placeholder: "参数值"
|
|
545
548
|
}, null, 8, ["modelValue", "onUpdate:modelValue"]),
|
|
546
|
-
|
|
547
|
-
onClick:
|
|
549
|
+
l(t(c), {
|
|
550
|
+
onClick: a[6] || (a[6] = (i) => ae(o.i)),
|
|
548
551
|
type: "danger",
|
|
549
552
|
circle: ""
|
|
550
553
|
}, {
|
|
551
554
|
default: n(() => [
|
|
552
|
-
|
|
555
|
+
l(t(g), {
|
|
553
556
|
style: { color: "#fff" },
|
|
554
557
|
name: "icon--epic--delete-outline-rounded"
|
|
555
558
|
})
|
|
@@ -557,23 +560,23 @@ const re = { class: "e-data-source" }, ie = { class: "icon-numbers" }, me = { cl
|
|
|
557
560
|
_: 1
|
|
558
561
|
})
|
|
559
562
|
]))), 128))
|
|
560
|
-
])) :
|
|
563
|
+
])) : B("", !0)
|
|
561
564
|
]),
|
|
562
|
-
s("div",
|
|
563
|
-
|
|
565
|
+
s("div", De, [
|
|
566
|
+
l(t(c), {
|
|
564
567
|
type: "info",
|
|
565
|
-
onClick:
|
|
568
|
+
onClick: le
|
|
566
569
|
}, {
|
|
567
|
-
default: n(() =>
|
|
570
|
+
default: n(() => a[20] || (a[20] = [
|
|
568
571
|
b("请求测试")
|
|
569
572
|
])),
|
|
570
573
|
_: 1
|
|
571
574
|
}),
|
|
572
|
-
|
|
575
|
+
l(t(c), {
|
|
573
576
|
type: "primary",
|
|
574
577
|
onClick: x
|
|
575
578
|
}, {
|
|
576
|
-
default: n(() =>
|
|
579
|
+
default: n(() => a[21] || (a[21] = [
|
|
577
580
|
b("保存")
|
|
578
581
|
])),
|
|
579
582
|
_: 1
|