fix(测试跟踪); 修复测试跟踪里的弹窗左侧树宽度拖拽
This commit is contained in:
parent
a72ba16ee9
commit
3810c01559
|
@ -1,6 +1,6 @@
|
|||
<template>
|
||||
<ms-container>
|
||||
<ms-aside-container :height="'calc(100vh - 20px)'">
|
||||
<ms-aside-container pageKey="EDIT_API_SCENARIO" :height="'calc(100vh - 20px)'">
|
||||
<div @click="showAll" style="overflow-x: hidden">
|
||||
<div class="tip">{{ $t('test_track.plan_view.base_info') }}</div>
|
||||
<el-form
|
||||
|
|
|
@ -1,5 +1,6 @@
|
|||
<template>
|
||||
<test-case-relevance-base
|
||||
pageKey="API_RELEVANCE_DIALOG"
|
||||
:is-across-space="isAcrossSpace"
|
||||
@setProject="setProject"
|
||||
:dialog-title="$t('api_test.definition.api_import')"
|
||||
|
|
|
@ -1,5 +1,6 @@
|
|||
<template>
|
||||
<test-case-relevance-base
|
||||
pageKey="SCENARIO_RELEVANCE_DIALOG"
|
||||
:is-across-space="isAcrossSpace"
|
||||
:dialog-title="$t('api_test.automation.scenario_import')"
|
||||
@setProject="setProject"
|
||||
|
|
|
@ -1,5 +1,6 @@
|
|||
<template>
|
||||
<test-case-relevance-base
|
||||
pageKey="API_FUNC_RELEVANCE_DIALOG"
|
||||
@setProject="setProject"
|
||||
@save="save"
|
||||
:plan-id="planId"
|
||||
|
|
|
@ -19,16 +19,9 @@
|
|||
</el-header>
|
||||
|
||||
<el-container class="main-content">
|
||||
<el-aside class="ms-aside-container"
|
||||
:style="{
|
||||
'min-width': '300px',
|
||||
'max-width': '600px',
|
||||
'height': calHeight,
|
||||
'max-height': calHeight,
|
||||
}">
|
||||
<ms-aside-container :min-height="calHeight" :enableAsideHidden="false" :height="calHeight" min-width="300px" max-width="600px" :pageKey="pageKey">
|
||||
<slot name="aside"></slot>
|
||||
<ms-horizontal-drag-bar v-if="draggable"/>
|
||||
</el-aside>
|
||||
</ms-aside-container>
|
||||
|
||||
|
||||
<el-container>
|
||||
|
@ -48,13 +41,15 @@
|
|||
import MsHorizontalDragBar from "metersphere-frontend/src/components/dragbar/MsLeft2RightDragBar"
|
||||
import MsDialogFooter from 'metersphere-frontend/src/components/MsDialogFooter';
|
||||
import SelectMenu from '@/business/commons/SelectMenu';
|
||||
import MsAsideContainer from 'metersphere-frontend/src/components/MsAsideContainer';
|
||||
|
||||
export default {
|
||||
name: 'RelevanceDialog',
|
||||
components: {
|
||||
SelectMenu,
|
||||
MsDialogFooter,
|
||||
MsHorizontalDragBar
|
||||
MsHorizontalDragBar,
|
||||
MsAsideContainer
|
||||
},
|
||||
data() {
|
||||
return {
|
||||
|
@ -75,6 +70,9 @@ export default {
|
|||
draggable: {
|
||||
type: Boolean,
|
||||
default: true
|
||||
},
|
||||
pageKey: {
|
||||
type: String
|
||||
}
|
||||
},
|
||||
computed: {
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
<template>
|
||||
<relevance-dialog :width="width" :title="dialogTitle" ref="relevanceDialog" :full-screen="isFullScreen">
|
||||
<relevance-dialog :width="width" :page-key="pageKey" :title="dialogTitle" ref="relevanceDialog" :full-screen="isFullScreen">
|
||||
<!-- todo -->
|
||||
<template slot="headerBtn" v-if="$slots.headerBtn">
|
||||
<div>
|
||||
|
@ -119,6 +119,9 @@ export default {
|
|||
type: Boolean,
|
||||
default: true,
|
||||
},
|
||||
pageKey: {
|
||||
type: String,
|
||||
},
|
||||
},
|
||||
methods: {
|
||||
refreshNode() {
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
<template>
|
||||
<ms-container v-if="isShow && !loading">
|
||||
<ms-aside-container >
|
||||
<ms-aside-container pageKey="API_EDIT_BASE_INFO" >
|
||||
<api-base-info
|
||||
ref="apiBaseInfo"
|
||||
:api-template="apiTemplate"
|
||||
|
@ -158,7 +158,7 @@ export default {
|
|||
MsApiCaseList,
|
||||
ApiBaseInfo,
|
||||
MsMainContainer: () => import('metersphere-frontend/src/components/MsMainContainer'),
|
||||
MsAsideContainer: () => import('./CustomAsideContainer.vue'),
|
||||
MsAsideContainer: () => import('metersphere-frontend/src/components/MsAsideContainer'),
|
||||
MsContainer: () => import('metersphere-frontend/src/components/MsContainer'),
|
||||
},
|
||||
data() {
|
||||
|
|
|
@ -1,5 +1,6 @@
|
|||
<template>
|
||||
<test-case-relevance-base
|
||||
pageKey="API_CASE_RELEVANCE_DIALOG"
|
||||
@setProject="setProject"
|
||||
@save="saveCaseRelevance"
|
||||
:multiple-project="false"
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
:width="asideHidden ? '0' : defaultWidth"
|
||||
class="ms-aside-container"
|
||||
:id="id"
|
||||
:style="{ 'min-width': minWidth, 'max-width': maxWidth }"
|
||||
:style="{ 'min-width': minWidth, 'max-width': maxWidth, 'min-height': minHeight }"
|
||||
>
|
||||
<div
|
||||
v-if="enableAsideHidden"
|
||||
|
@ -53,6 +53,10 @@ export default {
|
|||
type: String,
|
||||
default: null,
|
||||
},
|
||||
minHeight: {
|
||||
type: String,
|
||||
default: null,
|
||||
},
|
||||
enableAutoHeight: {
|
||||
type: Boolean,
|
||||
default: false,
|
||||
|
|
|
@ -17,16 +17,10 @@
|
|||
</el-header>
|
||||
|
||||
<el-container v-if="dialogVisible" class="main-content">
|
||||
<el-aside class="ms-aside-container"
|
||||
:style="{
|
||||
'min-width': '300px',
|
||||
'max-width': '600px',
|
||||
'height': calHeight,
|
||||
'max-height': calHeight,
|
||||
}">
|
||||
|
||||
<ms-aside-container :min-height="calHeight" :enableAsideHidden="false" :height="calHeight" min-width="300px" max-width="600px" :pageKey="pageKey">
|
||||
<slot name="aside"></slot>
|
||||
<ms-horizontal-drag-bar v-if="draggable"/>
|
||||
</el-aside>
|
||||
</ms-aside-container>
|
||||
|
||||
<el-container>
|
||||
<el-main class="case-content">
|
||||
|
@ -47,6 +41,7 @@
|
|||
import MsHorizontalDragBar from "metersphere-frontend/src/components/dragbar/MsLeft2RightDragBar"
|
||||
import MsDialogFooter from 'metersphere-frontend/src/components/MsDialogFooter'
|
||||
import SelectMenu from "@/business/common/SelectMenu";
|
||||
import MsAsideContainer from 'metersphere-frontend/src/components/MsAsideContainer';
|
||||
|
||||
export default {
|
||||
name: "RelevanceDialog",
|
||||
|
@ -54,6 +49,7 @@ export default {
|
|||
MsHorizontalDragBar,
|
||||
SelectMenu,
|
||||
MsDialogFooter,
|
||||
MsAsideContainer,
|
||||
},
|
||||
data() {
|
||||
return {
|
||||
|
@ -74,6 +70,10 @@ export default {
|
|||
draggable: {
|
||||
type: Boolean,
|
||||
default: true
|
||||
},
|
||||
pageKey: {
|
||||
type: String,
|
||||
default: null
|
||||
}
|
||||
},
|
||||
computed: {
|
||||
|
|
|
@ -5,6 +5,7 @@
|
|||
ref="relevanceDialog"
|
||||
@close="handleCloseEven"
|
||||
:full-screen="isFullScreen"
|
||||
:pageKey="pageKey"
|
||||
>
|
||||
<!-- todo -->
|
||||
<template slot="headerBtn" v-if="$slots.headerBtn">
|
||||
|
@ -143,6 +144,12 @@ export default {
|
|||
return true;
|
||||
},
|
||||
},
|
||||
pageKey: {
|
||||
type: String,
|
||||
default() {
|
||||
return "TEST_TRACK_TEST_CASE_RELEVANCE_BASE";
|
||||
},
|
||||
},
|
||||
},
|
||||
methods: {
|
||||
refreshNode() {
|
||||
|
|
|
@ -1,7 +1,6 @@
|
|||
<template>
|
||||
<ms-container>
|
||||
|
||||
<ms-aside-container v-if="showAside">
|
||||
<ms-aside-container v-if="showAside" pageKey="TEST_PLAN_COMMON_COMP">
|
||||
<slot name="aside"></slot>
|
||||
</ms-aside-container>
|
||||
|
||||
|
@ -10,7 +9,6 @@
|
|||
</ms-main-container>
|
||||
|
||||
<slot></slot>
|
||||
|
||||
</ms-container>
|
||||
</template>
|
||||
|
||||
|
@ -21,18 +19,17 @@ import MsContainer from "metersphere-frontend/src/components/MsContainer";
|
|||
|
||||
export default {
|
||||
name: "MsTestPlanCommonComponent",
|
||||
components: {MsContainer, MsAsideContainer, MsMainContainer},
|
||||
components: { MsContainer, MsAsideContainer, MsMainContainer },
|
||||
props: {
|
||||
showAside: {
|
||||
type: Boolean,
|
||||
default: true
|
||||
}
|
||||
}
|
||||
default: true,
|
||||
},
|
||||
},
|
||||
};
|
||||
</script>
|
||||
|
||||
<style scoped>
|
||||
|
||||
.ms-main-container {
|
||||
height: calc(100vh - 132px) !important;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue