fix (接口定义): 快捷调试停止优化
This commit is contained in:
parent
a8cbf1281f
commit
1e0a349687
|
@ -15,7 +15,8 @@ export default {
|
||||||
reportId: String,
|
reportId: String,
|
||||||
runData: Array,
|
runData: Array,
|
||||||
type: String,
|
type: String,
|
||||||
envMap: Map
|
envMap: Map,
|
||||||
|
isStop: Boolean,
|
||||||
},
|
},
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
|
@ -31,6 +32,11 @@ export default {
|
||||||
// 初始化
|
// 初始化
|
||||||
reportId() {
|
reportId() {
|
||||||
this.run()
|
this.run()
|
||||||
|
},
|
||||||
|
isStop() {
|
||||||
|
if (!this.isStop && this.websocket && this.websocket.close instanceof Function) {
|
||||||
|
this.websocket.close();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
|
|
|
@ -25,7 +25,7 @@
|
||||||
</div>
|
</div>
|
||||||
<ms-jmx-step :request="request" :response="responseData"/>
|
<ms-jmx-step :request="request" :response="responseData"/>
|
||||||
<!-- 执行组件 -->
|
<!-- 执行组件 -->
|
||||||
<ms-run :debug="true" :reportId="reportId" :run-data="runData" @runRefresh="runRefresh" ref="runTest"/>
|
<ms-run :debug="true" :reportId="reportId" :isStop="isStop" :run-data="runData" @runRefresh="runRefresh" ref="runTest"/>
|
||||||
</el-card>
|
</el-card>
|
||||||
<div v-if="scenario">
|
<div v-if="scenario">
|
||||||
<el-button style="float: right;margin: 20px" type="primary" @click="handleCommand('save_as_api')"> {{ $t('commons.save') }}</el-button>
|
<el-button style="float: right;margin: 20px" type="primary" @click="handleCommand('save_as_api')"> {{ $t('commons.save') }}</el-button>
|
||||||
|
|
|
@ -45,7 +45,7 @@
|
||||||
<ms-jmx-step :request="request" :response="responseData"/>
|
<ms-jmx-step :request="request" :response="responseData"/>
|
||||||
|
|
||||||
<!-- 执行组件 -->
|
<!-- 执行组件 -->
|
||||||
<ms-run :debug="true" :reportId="reportId" :run-data="runData" @runRefresh="runRefresh" ref="runTest"/>
|
<ms-run :debug="true" :reportId="reportId" :isStop="isStop" :run-data="runData" @runRefresh="runRefresh" ref="runTest"/>
|
||||||
</div>
|
</div>
|
||||||
</el-card>
|
</el-card>
|
||||||
|
|
||||||
|
|
|
@ -26,7 +26,7 @@
|
||||||
<ms-jmx-step :request="request" :response="responseData"/>
|
<ms-jmx-step :request="request" :response="responseData"/>
|
||||||
|
|
||||||
<!-- 执行组件 -->
|
<!-- 执行组件 -->
|
||||||
<ms-run :debug="true" :reportId="reportId" :run-data="runData" @runRefresh="runRefresh" ref="runTest"/>
|
<ms-run :debug="true" :reportId="reportId" :isStop="isStop" :run-data="runData" @runRefresh="runRefresh" ref="runTest"/>
|
||||||
</el-card>
|
</el-card>
|
||||||
<div v-if="scenario">
|
<div v-if="scenario">
|
||||||
<el-button style="float: right;margin: 20px" type="primary" @click="handleCommand('save_as_api')"> {{ $t('commons.save') }}</el-button>
|
<el-button style="float: right;margin: 20px" type="primary" @click="handleCommand('save_as_api')"> {{ $t('commons.save') }}</el-button>
|
||||||
|
|
|
@ -37,7 +37,7 @@
|
||||||
<ms-jmx-step :request="request" :response="responseData"/>
|
<ms-jmx-step :request="request" :response="responseData"/>
|
||||||
|
|
||||||
<!-- 执行组件 -->
|
<!-- 执行组件 -->
|
||||||
<ms-run :debug="true" :reportId="reportId" :run-data="runData" @runRefresh="runRefresh" ref="runTest"/>
|
<ms-run :debug="true" :reportId="reportId" :isStop="isStop" :run-data="runData" @runRefresh="runRefresh" ref="runTest"/>
|
||||||
</el-card>
|
</el-card>
|
||||||
<div v-if="scenario">
|
<div v-if="scenario">
|
||||||
<el-button style="float: right;margin: 20px" type="primary" @click="handleCommand('save_as_api')"> {{ $t('commons.save') }}</el-button>
|
<el-button style="float: right;margin: 20px" type="primary" @click="handleCommand('save_as_api')"> {{ $t('commons.save') }}</el-button>
|
||||||
|
|
Loading…
Reference in New Issue