fix(UI自动化): UI有关环境配置都不展示环境组

--bug=1020968 --user=张大海 【UI测试】场景&指令详情页、场景列表-定时任务设置、测试计划-UI用例列表-批量执行、环境配置-展示环境组 https://www.tapd.cn/55049933/s/1320062
This commit is contained in:
zhangdahai112 2022-12-27 17:55:42 +08:00 committed by zhangdahai112
parent 96c361b0e0
commit 322ab0a9a1
2 changed files with 6 additions and 1 deletions

View File

@ -2,7 +2,7 @@
<div>
<el-radio-group v-model="radio" style="width: 100%" @change="radioChange" class="radio-change">
<el-radio :label="ENV_TYPE.JSON">{{ $t('workspace.env_group.env_list') }}</el-radio>
<el-radio :label="ENV_TYPE.GROUP">{{ $t('workspace.env_group.name') }}<i class="el-icon-tickets mode-span" @click="viewGroup"></i></el-radio>
<el-radio :label="ENV_TYPE.GROUP" v-if="showEnvGroup">{{ $t('workspace.env_group.name') }}<i class="el-icon-tickets mode-span" @click="viewGroup"></i></el-radio>
</el-radio-group>
<div v-for="(pe, pIndex) in eventData" :key="pe.id" v-show="radio === ENV_TYPE.JSON">
<el-card shadow="never" style="margin-top: 8px;background: #F5F6F7;border-radius: 4px;">
@ -110,6 +110,10 @@ export default {
}
},
props:{
showEnvGroup: {
type : Boolean,
default: true
},
projectIds: Set,
projectList:Array,
projectEnvMap:Object,

View File

@ -15,6 +15,7 @@
:project-env-map="projectEnvListMap"
:environment-type="'JSON'"
:has-option-group="false"
:show-env-group="false"
:group-id="runConfig.environmentGroupId"
@setProjectEnvMap="setProjectEnvMap"
ref="envSelectPopover"