Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
MeterSphere
metersphere
提交
263aba9b
M
metersphere
项目概览
MeterSphere
/
metersphere
上一次同步 大约 3 年
通知
25
Star
1
Fork
1
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
M
metersphere
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
263aba9b
编写于
8月 17, 2020
作者:
C
chenjianxing
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
fix: 单接口调试
上级
064304ba
变更
3
隐藏空白更改
内联
并排
Showing
3 changed file
with
6 addition
and
5 deletion
+6
-5
backend/src/main/java/io/metersphere/base/mapper/ext/ExtApiTestReportMapper.xml
...io/metersphere/base/mapper/ext/ExtApiTestReportMapper.xml
+0
-1
backend/src/main/java/io/metersphere/xpack
backend/src/main/java/io/metersphere/xpack
+1
-1
frontend/src/business/components/api/test/components/request/ApiRequestForm.vue
...components/api/test/components/request/ApiRequestForm.vue
+5
-3
未找到文件。
backend/src/main/java/io/metersphere/base/mapper/ext/ExtApiTestReportMapper.xml
浏览文件 @
263aba9b
...
...
@@ -132,7 +132,6 @@
LEFT JOIN user ON user.id = r.user_id
<where>
r.id = #{id}
AND r.status != 'Debug'
</where>
ORDER BY r.update_time DESC
</select>
...
...
xpack
@
356bb744
比较
fadab72b
...
356bb744
Subproject commit
fadab72bb656a3a2644e43bf46783c1f6cd96d4f
Subproject commit
356bb744a72304067b9222cb0cb2be01d4ebff2a
frontend/src/business/components/api/test/components/request/ApiRequestForm.vue
浏览文件 @
263aba9b
<
template
>
<div
class=
"request-form"
>
<component
@
runDebug=
"runDebug"
:is=
"component"
:is-read-only=
"isReadOnly"
:request=
"request"
:scenario=
"scenario"
/>
<ms-
scenario-results
v-loading=
"debugReportLoading"
v-if=
"isCompleted"
:scenarios=
"isCompleted ? request.debugReport.scenarios : []
"
/>
<ms-
request-result-tail
v-loading=
"debugReportLoading"
v-if=
"isCompleted"
:request=
"request.debugRequestResult ? request.debugRequestResult :
{responseResult: {}, subRequestResults: []}" :scenario-name="request.debugScenario ? request.debugScenario.name : ''
"/>
</div>
</
template
>
...
...
@@ -10,10 +10,11 @@ import {Request, RequestFactory, Scenario} from "../../model/ScenarioModel";
import
MsApiHttpRequestForm
from
"
./ApiHttpRequestForm
"
;
import
MsApiDubboRequestForm
from
"
./ApiDubboRequestForm
"
;
import
MsScenarioResults
from
"
../../../report/components/ScenarioResults
"
;
import
MsRequestResultTail
from
"
../../../report/components/RequestResultTail
"
;
export
default
{
name
:
"
MsApiRequestForm
"
,
components
:
{
MsScenarioResults
,
MsApiDubboRequestForm
,
MsApiHttpRequestForm
},
components
:
{
Ms
RequestResultTail
,
Ms
ScenarioResults
,
MsApiDubboRequestForm
,
MsApiHttpRequestForm
},
props
:
{
scenario
:
Scenario
,
request
:
Request
,
...
...
@@ -66,12 +67,13 @@ export default {
try
{
res
=
JSON
.
parse
(
report
.
content
);
}
catch
(
e
)
{
console
.
log
(
report
.
content
)
throw
e
;
}
if
(
res
)
{
this
.
debugReportLoading
=
false
;
this
.
request
.
debugReport
=
res
;
this
.
request
.
debugScenario
=
res
.
scenarios
[
0
];
this
.
request
.
debugRequestResult
=
this
.
request
.
debugScenario
.
requestResults
[
0
];
this
.
deleteReport
(
this
.
debugReportId
)
}
else
{
setTimeout
(
this
.
getReport
,
2000
)
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录