fix(测试跟踪): 测试计划管理功能用例页面去掉全屏显示按钮

--bug=1025721 --user=陈建星 【测试跟踪】测试计划-关联功能用例弹框页面的全屏显示功能不生效(没有这个功能) https://www.tapd.cn/55049933/s/1365620
This commit is contained in:
chenjianxing 2023-04-23 14:38:38 +08:00 committed by jianxing
parent ffd903b7ca
commit 287b384d67
5 changed files with 22 additions and 4 deletions

View File

@ -12,6 +12,7 @@
:enable-cancel="false" :enable-cancel="false"
@confirm="save" @confirm="save"
btn-size="mini" btn-size="mini"
:enable-full-screen="false"
@fullScreen="isFullScreen = !isFullScreen"> @fullScreen="isFullScreen = !isFullScreen">
<template #other> <template #other>
<table-select-count-bar :count="selectCounts" style="float: left; margin: 5px" /> <table-select-count-bar :count="selectCounts" style="float: left; margin: 5px" />

View File

@ -4,7 +4,7 @@
title title
}}</span> }}</span>
<div style="top: 20px; right: 50px; position: absolute"> <div style="top: 20px; right: 50px; position: absolute" v-if="enableFullScreen">
<el-tooltip <el-tooltip
effect="dark" effect="dark"
:content="$t('commons.full_screen_editing')" :content="$t('commons.full_screen_editing')"
@ -61,7 +61,13 @@ export default {
hideButton: Boolean, hideButton: Boolean,
enableCancel: Boolean, enableCancel: Boolean,
isButtonSaving: Boolean, isButtonSaving: Boolean,
isFullScreen:Boolean, isFullScreen: Boolean,
enableFullScreen: {
type: Boolean,
default() {
return true;
},
},
}, },
created(){ created(){
if(this.isFullScreen) { if(this.isFullScreen) {

View File

@ -19,7 +19,8 @@
@confirm="save" @confirm="save"
btn-size="mini" btn-size="mini"
@fullScreen="isFullScreen = !isFullScreen" @fullScreen="isFullScreen = !isFullScreen"
:is-full-screen.sync="isFullScreen" :enable-full-screen="false"
:is-full-screen.sync="enableFullScreen"
> >
<template #other> <template #other>
<table-select-count-bar <table-select-count-bar
@ -135,6 +136,12 @@ export default {
type: Boolean, type: Boolean,
default: true, default: true,
}, },
enableFullScreen: {
type: Boolean,
default() {
return true;
},
},
}, },
methods: { methods: {
refreshNode() { refreshNode() {

View File

@ -3,6 +3,7 @@
<test-case-relevance-base <test-case-relevance-base
@setProject="setProject" @setProject="setProject"
@save="saveCaseRelevance" @save="saveCaseRelevance"
:enable-full-screen="false"
:flag="isTestPlan" :flag="isTestPlan"
:multiple-project="multipleProject" :multiple-project="multipleProject"
:is-saving="isSaving" :is-saving="isSaving"

View File

@ -9,7 +9,10 @@
<template slot="title" :slot-scope="$t('test_track.review_view.relevance_case')" v-if="!$slots.headerBtn"> <template slot="title" :slot-scope="$t('test_track.review_view.relevance_case')" v-if="!$slots.headerBtn">
<ms-dialog-header :title="$t('test_track.review_view.relevance_case')" @cancel="dialogFormVisible = false" <ms-dialog-header :title="$t('test_track.review_view.relevance_case')" @cancel="dialogFormVisible = false"
@confirm="saveReviewRelevance" @fullScreen="fullScreen" :is-full-screen.sync="isFullScreen"> @confirm="saveReviewRelevance"
@fullScreen="fullScreen"
:enable-full-screen="false"
:is-full-screen.sync="isFullScreen">
<template #other> <template #other>
<table-select-count-bar :count="selectCounts" style="float: left; margin: 5px;"/> <table-select-count-bar :count="selectCounts" style="float: left; margin: 5px;"/>
</template> </template>