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