fix(测试跟踪): 报告统计和计划列表-操作查看报告-运行环境明细前空白太多

--bug=1029194 --user=白奇 【测试跟踪】报告统计和计划列表-操作查看报告-运行环境明细前空白太多 https://www.tapd.cn/55049933/s/1408510
This commit is contained in:
baiqi 2023-08-25 17:22:55 +08:00 committed by fit2-zhao
parent 4750a60b78
commit 85e91236dd
1 changed files with 9 additions and 8 deletions

View File

@ -23,7 +23,11 @@
</el-row> </el-row>
<el-row <el-row
class="select-time" class="select-time"
v-if="report.envGroupName || (report.projectEnvMap && JSON.stringify(report.projectEnvMap) !== '{}')" v-if="
report.envGroupName ||
(report.projectEnvMap &&
JSON.stringify(report.projectEnvMap) !== '{}')
"
style="display: inline-block" style="display: inline-block"
> >
<div> <div>
@ -31,14 +35,14 @@
{{ $t("commons.environment") + ":" }} {{ $t("commons.environment") + ":" }}
</div> </div>
<div style="float: right"> <div style="float: right">
<div v-if="report.envGroupName" style="margin-left: 42px"> <div v-if="report.envGroupName" style="margin-left: 12px">
<ms-tag <ms-tag
type="danger" type="danger"
:content="$t('workspace.env_group.name')" :content="$t('workspace.env_group.name')"
></ms-tag> ></ms-tag>
{{ report.envGroupName }} {{ report.envGroupName }}
</div> </div>
<div v-else-if="report.projectEnvMap" style="margin-left: 42px"> <div v-else-if="report.projectEnvMap" style="margin-left: 12px">
<div <div
v-for="(values, key) in report.projectEnvMap" v-for="(values, key) in report.projectEnvMap"
:key="key" :key="key"
@ -60,12 +64,9 @@
<el-row justify="space-between" class="select-time" v-else> <el-row justify="space-between" class="select-time" v-else>
<el-col :span="8"> <el-col :span="8">
<el-form-item :label="$t('commons.environment') + ':'"> <el-form-item :label="$t('commons.environment') + ':'">
{{ $t('test_track.report.case_env') }} {{ $t("test_track.report.case_env") }}
</el-form-item> </el-form-item>
</el-col> </el-col>
<el-col :span="8"></el-col>
<el-col :span="8"></el-col>
</el-row> </el-row>
<el-row type="flex" justify="space-between" class="select-time"> <el-row type="flex" justify="space-between" class="select-time">
<el-col :span="8"> <el-col :span="8">