fix(测试跟踪): 测试计划报告目录与左侧菜单重叠

This commit is contained in:
chenjianxing 2022-07-26 18:33:27 +08:00 committed by jianxing
parent 4893808334
commit 008c213346
3 changed files with 42 additions and 9 deletions

View File

@ -24,13 +24,33 @@
<test-plan-functional v-if="activeIndex === 'functional'" :redirectCharType="redirectCharType" <test-plan-functional v-if="activeIndex === 'functional'" :redirectCharType="redirectCharType"
:clickType="clickType" :plan-id="planId" :version-enable="versionEnable" :plan-status="currentPlan.status" :clickType="clickType" :plan-id="planId" :version-enable="versionEnable" :plan-status="currentPlan.status"
ref="testPlanFunctional"/> ref="testPlanFunctional"/>
<test-plan-api v-if="activeIndex === 'api'" :redirectCharType="redirectCharType" :clickType="clickType" <test-plan-api
:plan-id="planId" :version-enable="versionEnable" :plan-status="currentPlan.status"/> v-if="activeIndex === 'api'"
<test-plan-ui v-if="activeIndex === 'ui'" :redirectCharType="redirectCharType" :clickType="clickType" :redirectCharType="redirectCharType"
:plan-id="planId" :version-enable="versionEnable" :plan-status="currentPlan.status"/> :clickType="clickType"
<test-plan-load v-if="activeIndex === 'load'" :redirectCharType="redirectCharType" :clickType="clickType" :plan-id="planId"
:plan-id="planId" :version-enable="versionEnable" :plan-status="currentPlan.status"/> :version-enable="versionEnable"
<test-plan-report-content class="plan-report" v-if="activeIndex === 'report'" :plan-id="planId" :version-enable="versionEnable"/> :plan-status="currentPlan.status"/>
<test-plan-ui
v-if="activeIndex === 'ui'"
:redirectCharType="redirectCharType"
:clickType="clickType"
:plan-id="planId"
:version-enable="versionEnable"
:plan-status="currentPlan.status"/>
<test-plan-load
v-if="activeIndex === 'load'"
:redirectCharType="redirectCharType"
:clickType="clickType"
:plan-id="planId"
:version-enable="versionEnable"
:plan-status="currentPlan.status"/>
<test-plan-report-content
class="plan-report"
v-if="activeIndex === 'report'"
:need-move-bar="true"
:plan-id="planId"
:version-enable="versionEnable"/>
<is-change-confirm <is-change-confirm
@confirm="changeConfirm" @confirm="changeConfirm"

View File

@ -19,6 +19,7 @@
</ms-main-container> </ms-main-container>
<test-plan-report-navigation-bar <test-plan-report-navigation-bar
:api-enable="apiEnable" :api-enable="apiEnable"
:need-move-bar="needMoveBar"
:summary-enable="summaryEnable" :summary-enable="summaryEnable"
:functional-enable="functionalEnable" :functional-enable="functionalEnable"
:load-enable="loadEnable" :load-enable="loadEnable"
@ -71,7 +72,8 @@ export default {
isTemplate: Boolean, isTemplate: Boolean,
isDb: Boolean, isDb: Boolean,
shareId: String, shareId: String,
reportId: String reportId: String,
needMoveBar: Boolean
}, },
data() { data() {
return { return {

View File

@ -1,6 +1,12 @@
<template> <template>
<div> <div>
<ms-drawer class="drawer-content" :visible="true" :size="10" direction="left" :show-full-screen="false" :is-show-close="false"> <ms-drawer class="drawer-content"
direction="left"
:class="{'move-bar' : needMoveBar}"
:visible="true"
:size="10"
:show-full-screen="false"
:is-show-close="false">
<div class="title-item" > <div class="title-item" >
<span class="title-name">{{$t('test_track.report.content')}}</span> <span class="title-name">{{$t('test_track.report.content')}}</span>
<el-tabs tab-position="right" v-model="activeName"> <el-tabs tab-position="right" v-model="activeName">
@ -28,6 +34,7 @@ export default {
functionalEnable: Boolean, functionalEnable: Boolean,
apiEnable: Boolean, apiEnable: Boolean,
loadEnable: Boolean, loadEnable: Boolean,
needMoveBar: Boolean
}, },
data() { data() {
return { return {
@ -177,6 +184,10 @@ export default {
overflow: visible !important; overflow: visible !important;
} }
.move-bar {
margin-left: 50px;
}
.drawer-content { .drawer-content {
width: 0px !important; width: 0px !important;
padding: 0px !important; padding: 0px !important;