refactor(测试跟踪): 测试计划创建缺陷弹框添加全屏按钮

--bug=1027287 --user=陈建星 [测试跟踪] github#25003测试计划,执行功能用例,点击添加缺陷,弹出的页面太小,尤其是如果用户MS对接了jira,会出现字段布局变形不好用的情况。 https://www.tapd.cn/55049933/s/1385661
This commit is contained in:
jianxing 2023-06-25 17:53:30 +08:00 committed by fit2-zhao
parent 7c46e47274
commit c4a6ff257e
4 changed files with 25 additions and 3 deletions

View File

@ -4,7 +4,7 @@
title
}}</span>
<div style="top: 20px; right: 50px; position: absolute" v-if="enableFullScreen">
<div class="full-ico" v-if="enableFullScreen">
<el-tooltip
effect="dark"
:content="$t('commons.full_screen_editing')"
@ -111,4 +111,11 @@ export default {
font-size: 13px;
color: #8c939d;
}
.full-ico {
top: 20px;
right: 50px;
position: absolute;
cursor: pointer;
}
</style>

View File

@ -4,6 +4,7 @@
:width="width"
:visible="visible"
destroy-on-close
:fullscreen="fullScreen"
:append-to-body="appendToBody"
@close="handleClose">
@ -64,6 +65,10 @@ export default {
type: Boolean,
default: false
},
fullScreen: {
type: Boolean,
default: false
}
},
methods: {
handleConfirm() {

View File

@ -3,9 +3,16 @@
width="60%"
:visible.sync="visible"
@confirm="confirm"
:full-screen="isFullScreen"
:title="$t('test_track.issue.create_issue')"
append-to-body
ref="msEditDialog">
<ms-dialog-header
hide-button
btn-size="mini"
@fullScreen="isFullScreen = !isFullScreen">
</ms-dialog-header>
<template>
<issue-edit-detail :plan-case-id="planCaseId" :is-minder="isMinder" :plan-id="planId" :case-id="caseId" :is-case-edit="true" @refresh="refresh" @close="handleClose" ref="issueEditDetail"/>
</template>
@ -17,12 +24,14 @@ import TemplateComponentEditHeader from "@/business/plan/view/comonents/report/T
import IssueEditDetail from "@/business/issue/IssueEditDetail";
import MsEditDialog from "metersphere-frontend/src/components/MsEditDialog";
import {getCurrentProjectID} from "metersphere-frontend/src/utils/token";
import MsDialogHeader from "metersphere-frontend/src/components/MsDialogHeader";
export default {
name: "TestPlanIssueEdit",
components: {MsEditDialog, IssueEditDetail, TemplateComponentEditHeader},
components: {MsEditDialog, IssueEditDetail, TemplateComponentEditHeader, MsDialogHeader},
data() {
return {
visible: false
visible: false,
isFullScreen: false
}
},
computed: {

View File

@ -1,6 +1,7 @@
<template>
<ms-drawer-component
:enableSelect="false"
size="90%"
:title="$t('test_track.issue.create_issue')"
@confirm="confirm"
@saveAndReset="saveAndReset"