Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
B
bigDataSystem
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
张伯涛
bigDataSystem
Commits
b804180c
Commit
b804180c
authored
Dec 06, 2024
by
LiXuyang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
我的调用
parent
76b3e0dc
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
22 additions
and
6 deletions
+22
-6
index.vue
src/views/dataService/serviceMarket/myCall/apiTest/index.vue
+22
-6
No files found.
src/views/dataService/serviceMarket/myCall/apiTest/index.vue
View file @
b804180c
...
...
@@ -8,18 +8,24 @@
</BasicTable>
<a-button
type=
"primary"
>
测试
</a-button>
<Tabs
v-model:activeKey=
"activeKey"
>
<TabPane
key=
"1"
tab=
"请求报文"
/>
<TabPane
key=
"1"
tab=
"请求报文"
>
<div
class=
"flex"
style=
"margin: 15px 0"
>
<div
style=
"width: 4px; margin: 4px 0; background-color: #128afa"
></div>
<div
style=
"margin-left: 6px"
>
动态报文
</div>
</div>
<Textarea
:auto-size=
"{ minRow: 6 }"
v-model:value=
"message"
/>
</TabPane>
<TabPane
key=
"2"
tab=
"请求代码"
>
<div
class=
"flex"
style=
"margin: 15px 0"
>
<div
style=
"width: 4px; margin: 4px 0; background-color: #128afa"
></div>
<div
style=
"margin-left: 6px"
>
动态路由地址
</div>
</div>
<Textarea
:
rows=
"6
"
v-model:value=
"address"
/>
<Textarea
:
auto-size=
"{ minRow: 6 }
"
v-model:value=
"address"
/>
<div
class=
"flex"
style=
"margin: 25px 0 15px 0"
>
<span>
返回结果源码
</span>
<BasicHelp
text=
"返回结果源码"
/>
</div>
<Textarea
:
rows=
"6
"
v-model:value=
"resultTxt"
/>
<Textarea
:
auto-size=
"{ minRow: 6 }
"
v-model:value=
"resultTxt"
/>
</TabPane>
</Tabs>
</template>
...
...
@@ -36,10 +42,12 @@
import
{
testTableData
}
from
'@/views/dataService/serviceMarket/myCall/apiTest/testData'
;
import
BasicHelp
from
'@/components/Basic/src/BasicHelp.vue'
;
const
address
=
'curl -X POST‘http://node322:28143/employee′-H
\'
token:
\
n'
+
'7406056a00d65806200fe299d573a49b6bac08938e4ec73143d48caf110723bbc6d0e7efac9e01a2abbadada175b3c6ca3b251fd76cbbefed08f234998b5f7ac
\'
-H
\'
Content-Type:
\
n'
+
const
address
=
"curl -X POST‘http://node322:28143/employee′-H'token:
\n
"
+
"7406056a00d65806200fe299d573a49b6bac08938e4ec73143d48caf110723bbc6d0e7efac9e01a2abbadada175b3c6ca3b251fd76cbbefed08f234998b5f7ac'-H'Content-Type:
\n
"
+
'application/json
\'
-H
\'
Accept:*/*’-d
\'
("departmentID":"1")}"'
;
const
resultTxt
=
'{
\
n'
+
const
resultTxt
=
'{
\
n'
+
'"success":true,
\
n'
+
'"code":200,
\
n'
+
'"message": "success",
\
n'
+
...
...
@@ -50,6 +58,14 @@
'"FirstName"
\
n'
+
'}
\
n'
+
'}'
;
const
message
=
'POST /login HTTP/1.1
\
n'
+
'Host: www.example.com
\
n'
+
'User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/58.0.3029.110 Safari/537.36
\
n'
+
'Accept: application/json
\
n'
+
'Content-Type: application/x-www-form-urlencoded
\
n'
+
'
\
n'
+
'username=admin&password=123456'
;
const
activeKey
=
ref
();
const
[
queryTable
]
=
useTable
({
title
:
'请求参数'
,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment