fix(环境管理): 修复环境更新或清除后选中数据无法回显问题 #1005471

--bug=1005471 --user=赵勇 【环境配置】选中环境... https://www.tapd.cn/55049933/s/1030097
This commit is contained in:
fit2-zhao 2021-07-28 14:19:53 +08:00 committed by fit2-zhao
parent 1ffbee6435
commit 861ddfec53
1 changed files with 285 additions and 283 deletions

View File

@ -46,7 +46,7 @@
</el-form-item>
</div>
<div class="ms-border">
<el-table :data="httpConfig.conditions" highlight-current-row @current-change="selectRow">
<el-table :data="httpConfig.conditions" highlight-current-row @current-change="selectRow" ref="envTable">
<el-table-column prop="socket" :label="$t('load_test.domain')" show-overflow-tooltip width="180">
<template v-slot:default="{row}">
{{ getUrl(row) }}
@ -267,9 +267,11 @@
this.condition = {type: "NONE", details: [new KeyValue({name: "", value: "contains"})], protocol: "http", socket: "", domain: "", headers: [new KeyValue()]};
this.reload();
}
this.$refs.envTable.setCurrentRow(-1);
},
clear() {
this.condition = {type: "NONE", details: [new KeyValue({name: "", value: "contains"})], protocol: "http", socket: "", domain: "", headers: [new KeyValue()]};
this.$refs.envTable.setCurrentRow(-1);
},
reload() {
this.loading = true