fix(UI自动化): UI有关环境配置都不展示环境组
--bug=1020968 --user=张大海 【UI测试】场景&指令详情页、场景列表-定时任务设置、测试计划-UI用例列表-批量执行、环境配置-展示环境组 https://www.tapd.cn/55049933/s/1320062
This commit is contained in:
parent
8eac9ef2ec
commit
d769358805
|
@ -2,7 +2,7 @@
|
||||||
<div>
|
<div>
|
||||||
<el-radio-group v-model="radio" style="width: 100%" @change="radioChange" class="radio-change">
|
<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.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>
|
</el-radio-group>
|
||||||
<div v-for="(pe, pIndex) in eventData" :key="pe.id" v-show="radio === ENV_TYPE.JSON">
|
<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;">
|
<el-card shadow="never" style="margin-top: 8px;background: #F5F6F7;border-radius: 4px;">
|
||||||
|
@ -109,6 +109,10 @@ export default {
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
props:{
|
props:{
|
||||||
|
showEnvGroup: {
|
||||||
|
type : Boolean,
|
||||||
|
default: true
|
||||||
|
},
|
||||||
projectIds: Set,
|
projectIds: Set,
|
||||||
projectList:Array,
|
projectList:Array,
|
||||||
projectEnvMap:Object,
|
projectEnvMap:Object,
|
||||||
|
|
|
@ -15,6 +15,7 @@
|
||||||
:project-env-map="projectEnvListMap"
|
:project-env-map="projectEnvListMap"
|
||||||
:environment-type="'JSON'"
|
:environment-type="'JSON'"
|
||||||
:has-option-group="false"
|
:has-option-group="false"
|
||||||
|
:show-env-group="false"
|
||||||
:group-id="runConfig.environmentGroupId"
|
:group-id="runConfig.environmentGroupId"
|
||||||
@setProjectEnvMap="setProjectEnvMap"
|
@setProjectEnvMap="setProjectEnvMap"
|
||||||
ref="envSelectPopover"
|
ref="envSelectPopover"
|
||||||
|
|
Loading…
Reference in New Issue