fix(接口测试): 修复场景步骤最大化后选择环境失效问题

--bug=1013822 --user=赵勇 [接口测试]接口自动化-创建新场景-关联了多个接口case-全屏显示后选择运行环境未生效 https://www.tapd.cn/55049933/s/1174481
This commit is contained in:
fit2-zhao 2022-06-07 10:15:49 +08:00 committed by f2c-ci-robot[bot]
parent 82516434f7
commit a5bfe31668
1 changed files with 6 additions and 1 deletions

View File

@ -38,7 +38,7 @@
<el-checkbox v-model="cookieShare" @change="setCookieShare">共享cookie</el-checkbox> <el-checkbox v-model="cookieShare" @change="setCookieShare">共享cookie</el-checkbox>
<el-checkbox v-model="sampleError" @change="setOnSampleError" style="margin-right: 10px">{{ $t('commons.failure_continues') }}</el-checkbox> <el-checkbox v-model="sampleError" @change="setOnSampleError" style="margin-right: 10px">{{ $t('commons.failure_continues') }}</el-checkbox>
<env-popover :disabled="scenarioDefinition.length < 1" :isReadOnly="scenarioDefinition.length < 1" <env-popover :disabled="scenarioDefinition.length < 1" :isReadOnly="scenarioDefinition.length < 1"
:env-map="projectEnvMap" :project-ids="projectIds" @setProjectEnvMap="setProjectEnvMap" :env-map="projectEnvMap" :project-ids="projectIds" @setProjectEnvMap="setProjectEnvMap" @setEnvGroup="setEnvGroup"
:environment-type.sync="envType" :group-id="envGroupId" :environment-type.sync="envType" :group-id="envGroupId"
@showPopover="showPopover" :project-list="projectList" ref="envPopover" class="ms-right" :has-option-group="true" @showPopover="showPopover" :project-list="projectList" ref="envPopover" class="ms-right" :has-option-group="true"
:result="envResult"/> :result="envResult"/>
@ -892,6 +892,11 @@ export default {
}, },
setProjectEnvMap(projectEnvMap) { setProjectEnvMap(projectEnvMap) {
this.projectEnvMap = projectEnvMap; this.projectEnvMap = projectEnvMap;
this.$emit("setProjectEnvMap",projectEnvMap);
},
setEnvGroup(id) {
this.envGroupId = id;
this.$emit("setEnvGroup",id);
}, },
refReload(data, node) { refReload(data, node) {
this.selectedTreeNode = data; this.selectedTreeNode = data;