fix(测试计划): 隐藏临时报告中的运行模式字段

--bug=1024501 --user=宋天阳 【测试跟踪】测试计划-查看临时报告-显示运行模式字段
https://www.tapd.cn/55049933/s/1351252
This commit is contained in:
song-tianyang 2023-03-16 12:17:50 +08:00 committed by 建国
parent 661c0d4dd2
commit 8bf728e75e
2 changed files with 29 additions and 28 deletions

View File

@ -9,7 +9,7 @@
</el-form-item>
<el-row justify="space-between" class="select-time">
<el-col :span="8">
<el-col :span="8" v-if="runMode">
<el-form-item :label="$t('report.run_model') + ':'">
{{ runMode }}
</el-form-item>

View File

@ -6,20 +6,20 @@
@close="close"
:visible.sync="runModeVisible"
>
<div class="mode-container">
<div class="mode-container" style="max-height: 400px; overflow: auto">
<div>
<div>{{ $t("commons.environment") }}</div>
<env-select-popover :project-ids="projectIds"
:project-list="projectList"
:project-env-map="projectEnvListMap"
:environment-type="'JSON'"
:has-option-group="false"
:show-env-group="false"
:group-id="runConfig.environmentGroupId"
@setProjectEnvMap="setProjectEnvMap"
ref="envSelectPopover"
class="mode-row"
<env-select-popover
:project-ids="projectIds"
:project-list="projectList"
:project-env-map="projectEnvListMap"
:environment-type="'JSON'"
:has-option-group="false"
:show-env-group="false"
:group-id="runConfig.environmentGroupId"
@setProjectEnvMap="setProjectEnvMap"
ref="envSelectPopover"
class="mode-row"
></env-select-popover>
</div>
@ -73,7 +73,7 @@
<span v-if="runConfig.retryEnable">
<el-tooltip placement="top" style="margin: 0 4px 0 2px">
<div slot="content">{{ $t("run_mode.retry_message") }}</div>
<i class="el-icon-question" style="cursor: pointer"/>
<i class="el-icon-question" style="cursor: pointer" />
</el-tooltip>
<span style="margin-left: 10px">
{{ $t("run_mode.retry") }}
@ -111,13 +111,11 @@
<div class="other-content">
<div class="sub-item-row">
<el-radio-group v-model="runConfig.reportType">
<el-radio label="iddReport">{{
$t("run_mode.idd_report")
}}
<el-radio label="iddReport"
>{{ $t("run_mode.idd_report") }}
</el-radio>
<el-radio label="setReport">{{
$t("run_mode.set_report")
}}
<el-radio label="setReport"
>{{ $t("run_mode.set_report") }}
</el-radio>
</el-radio-group>
</div>
@ -137,7 +135,7 @@
<span v-if="runConfig.retryEnable">
<el-tooltip placement="top" style="margin: 0 4px 0 2px">
<div slot="content">{{ $t("run_mode.retry_message") }}</div>
<i class="el-icon-question" style="cursor: pointer"/>
<i class="el-icon-question" style="cursor: pointer" />
</el-tooltip>
<span style="margin-left: 10px">
{{ $t("run_mode.retry") }}
@ -184,20 +182,24 @@
</div>
<template v-slot:footer>
<ms-dialog-footer @cancel="close" @confirm="handleRunBatch"/>
<ms-dialog-footer @cancel="close" @confirm="handleRunBatch" />
</template>
</el-dialog>
</template>
<script>
import MsDialogFooter from 'metersphere-frontend/src/components/MsDialogFooter'
import {getCurrentProjectID, getOwnerProjects, strMapToObj} from "@/business/utils/sdk-utils";
import MsDialogFooter from "metersphere-frontend/src/components/MsDialogFooter";
import {
getCurrentProjectID,
getOwnerProjects,
strMapToObj,
} from "@/business/utils/sdk-utils";
import EnvSelectPopover from "@/business/plan/env/EnvSelectPopover";
import {testPlanUiScenarioCaseEnv} from "@/api/remote/ui/test-plan-ui-scenario-case";
import { testPlanUiScenarioCaseEnv } from "@/api/remote/ui/test-plan-ui-scenario-case";
export default {
name: "UiRunMode",
components: {MsDialogFooter, EnvSelectPopover},
components: { MsDialogFooter, EnvSelectPopover },
data() {
return {
runModeVisible: false,
@ -298,8 +300,7 @@ export default {
this.$emit("close");
},
getWsProjects() {
getOwnerProjects()
.then((res) => {
getOwnerProjects().then((res) => {
this.projectList = res.data;
});
},