fix(接口测试): 执行失败后页面状态未刷新问题
--bug=1017809 --user=赵勇 【接口测试】接口自动化执行场景提示执行失败,并且执行按钮状态无法切换 https://www.tapd.cn/55049933/s/1258829
This commit is contained in:
parent
483f9652cf
commit
f989539ace
|
@ -498,6 +498,7 @@ export default {
|
||||||
},
|
},
|
||||||
|
|
||||||
cleanHeartBeat() {
|
cleanHeartBeat() {
|
||||||
|
this.$emit('refresh', this.debugResult);
|
||||||
},
|
},
|
||||||
heartBeat() {
|
heartBeat() {
|
||||||
let msg = {
|
let msg = {
|
||||||
|
|
|
@ -310,6 +310,7 @@
|
||||||
:environment-type="environmentType" :environment-group-id="envGroupId"
|
:environment-type="environmentType" :environment-group-id="envGroupId"
|
||||||
:run-data="debugData"
|
:run-data="debugData"
|
||||||
@runRefresh="runRefresh"
|
@runRefresh="runRefresh"
|
||||||
|
@errorRefresh="errorRefresh"
|
||||||
ref="runTest"/>
|
ref="runTest"/>
|
||||||
<ms-task-center ref="taskCenter" :show-menu="false"/>
|
<ms-task-center ref="taskCenter" :show-menu="false"/>
|
||||||
<mx-relationship-graph-drawer v-xpack :graph-data="graphData" ref="relationshipGraph"/>
|
<mx-relationship-graph-drawer v-xpack :graph-data="graphData" ref="relationshipGraph"/>
|
||||||
|
@ -1162,6 +1163,9 @@ export default {
|
||||||
runRefresh(row) {
|
runRefresh(row) {
|
||||||
this.$set(row, "isStop", false);
|
this.$set(row, "isStop", false);
|
||||||
},
|
},
|
||||||
|
errorRefresh() {
|
||||||
|
this.search();
|
||||||
|
},
|
||||||
run(row) {
|
run(row) {
|
||||||
this.scenarioId = row.id;
|
this.scenarioId = row.id;
|
||||||
this.getApiScenario(row.id).then(() => {
|
this.getApiScenario(row.id).then(() => {
|
||||||
|
|
|
@ -126,7 +126,7 @@
|
||||||
<ms-edit-counter v-if="editData.type=='COUNTER'" ref="counter" :editData.sync="editData"/>
|
<ms-edit-counter v-if="editData.type=='COUNTER'" ref="counter" :editData.sync="editData"/>
|
||||||
<ms-edit-random v-if="editData.type=='RANDOM'" ref="random" :editData.sync="editData"/>
|
<ms-edit-random v-if="editData.type=='RANDOM'" ref="random" :editData.sync="editData"/>
|
||||||
<ms-edit-list-value v-if="editData.type=='LIST'" ref="listValue" :editData="editData"/>
|
<ms-edit-list-value v-if="editData.type=='LIST'" ref="listValue" :editData="editData"/>
|
||||||
<ms-edit-csv v-if="editData.type=='CSV'" ref="csv" :editData.sync="editData"/>
|
<ms-edit-csv v-if="editData.type==='CSV' && !loading" ref="csv" :editData.sync="editData"/>
|
||||||
<div v-if="editData.type" style="float: right">
|
<div v-if="editData.type" style="float: right">
|
||||||
<el-button size="small" style="margin-left: 10px" type="primary" @click="confirmVariable">
|
<el-button size="small" style="margin-left: 10px" type="primary" @click="confirmVariable">
|
||||||
{{ $t('commons.confirm') }}
|
{{ $t('commons.confirm') }}
|
||||||
|
@ -496,8 +496,15 @@ export default {
|
||||||
this.addVariable();
|
this.addVariable();
|
||||||
this.$refs.variableTable.cancelCurrentRow();
|
this.$refs.variableTable.cancelCurrentRow();
|
||||||
}
|
}
|
||||||
|
this.reload();
|
||||||
this.$success(this.$t('commons.save_success'));
|
this.$success(this.$t('commons.save_success'));
|
||||||
},
|
},
|
||||||
|
reload() {
|
||||||
|
this.loading = true;
|
||||||
|
this.$nextTick(() => {
|
||||||
|
this.loading = false;
|
||||||
|
});
|
||||||
|
},
|
||||||
cancelVariable() {
|
cancelVariable() {
|
||||||
this.$refs.variableTable.cancelCurrentRow();
|
this.$refs.variableTable.cancelCurrentRow();
|
||||||
// 清空表单
|
// 清空表单
|
||||||
|
|
Loading…
Reference in New Issue