fix: 单接口调试
This commit is contained in:
parent
064304ba28
commit
263aba9b57
|
@ -132,7 +132,6 @@
|
||||||
LEFT JOIN user ON user.id = r.user_id
|
LEFT JOIN user ON user.id = r.user_id
|
||||||
<where>
|
<where>
|
||||||
r.id = #{id}
|
r.id = #{id}
|
||||||
AND r.status != 'Debug'
|
|
||||||
</where>
|
</where>
|
||||||
ORDER BY r.update_time DESC
|
ORDER BY r.update_time DESC
|
||||||
</select>
|
</select>
|
||||||
|
|
|
@ -1 +1 @@
|
||||||
Subproject commit fadab72bb656a3a2644e43bf46783c1f6cd96d4f
|
Subproject commit 356bb744a72304067b9222cb0cb2be01d4ebff2a
|
|
@ -1,7 +1,7 @@
|
||||||
<template>
|
<template>
|
||||||
<div class="request-form">
|
<div class="request-form">
|
||||||
<component @runDebug="runDebug" :is="component" :is-read-only="isReadOnly" :request="request" :scenario="scenario"/>
|
<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>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
|
@ -10,10 +10,11 @@ import {Request, RequestFactory, Scenario} from "../../model/ScenarioModel";
|
||||||
import MsApiHttpRequestForm from "./ApiHttpRequestForm";
|
import MsApiHttpRequestForm from "./ApiHttpRequestForm";
|
||||||
import MsApiDubboRequestForm from "./ApiDubboRequestForm";
|
import MsApiDubboRequestForm from "./ApiDubboRequestForm";
|
||||||
import MsScenarioResults from "../../../report/components/ScenarioResults";
|
import MsScenarioResults from "../../../report/components/ScenarioResults";
|
||||||
|
import MsRequestResultTail from "../../../report/components/RequestResultTail";
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
name: "MsApiRequestForm",
|
name: "MsApiRequestForm",
|
||||||
components: {MsScenarioResults, MsApiDubboRequestForm, MsApiHttpRequestForm},
|
components: {MsRequestResultTail, MsScenarioResults, MsApiDubboRequestForm, MsApiHttpRequestForm},
|
||||||
props: {
|
props: {
|
||||||
scenario: Scenario,
|
scenario: Scenario,
|
||||||
request: Request,
|
request: Request,
|
||||||
|
@ -66,12 +67,13 @@ export default {
|
||||||
try {
|
try {
|
||||||
res = JSON.parse(report.content);
|
res = JSON.parse(report.content);
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
console.log(report.content)
|
|
||||||
throw e;
|
throw e;
|
||||||
}
|
}
|
||||||
if (res) {
|
if (res) {
|
||||||
this.debugReportLoading = false;
|
this.debugReportLoading = false;
|
||||||
this.request.debugReport = res;
|
this.request.debugReport = res;
|
||||||
|
this.request.debugScenario = res.scenarios[0];
|
||||||
|
this.request.debugRequestResult = this.request.debugScenario.requestResults[0];
|
||||||
this.deleteReport(this.debugReportId)
|
this.deleteReport(this.debugReportId)
|
||||||
} else {
|
} else {
|
||||||
setTimeout(this.getReport, 2000)
|
setTimeout(this.getReport, 2000)
|
||||||
|
|
Loading…
Reference in New Issue