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-form-item>
<el-row justify="space-between" class="select-time"> <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') + ':'"> <el-form-item :label="$t('report.run_model') + ':'">
{{ runMode }} {{ runMode }}
</el-form-item> </el-form-item>

View File

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