fix(测试跟踪): 右侧评论框折叠的问题

--bug=1016839 --user=宋昌昌 【测试跟踪】测试计划-执行用例页面评论框建议可以折叠起来 https://www.tapd.cn/55049933/s/1245682
This commit is contained in:
song-cc-rock 2022-09-19 18:34:41 +08:00 committed by f2c-ci-robot[bot]
parent 5b9e5934f1
commit 3dbf15dc88
5 changed files with 23 additions and 5 deletions
frontend/src
business/components/track/plan/view/comonents/functional
i18n

View File

@ -10,18 +10,22 @@
<template v-slot:default="scope"> <template v-slot:default="scope">
<el-row> <el-row>
<el-col :span="17"> <el-col :span="fold ? 24 : 17">
<div class="container"> <div class="container">
<el-card> <el-card>
<el-scrollbar> <el-scrollbar>
<el-header> <el-header>
<el-row type="flex" class="head-bar"> <el-row type="flex" class="head-bar">
<el-col :span="4"> <el-col :span="6">
<el-button plain size="mini" <el-button plain size="mini"
icon="el-icon-back" icon="el-icon-back"
@click="cancel">{{ $t('test_track.return') }} @click="cancel">{{ $t('test_track.return') }}
</el-button> </el-button>
<el-button type="primary" size="mini"
@click="handleRightCollapse">
{{fold ? $t('test_track.expand_right_collapse') : $t('test_track.fold_right_collapse')}}
</el-button>
</el-col> </el-col>
<el-col class="head-right" :span="20"> <el-col class="head-right" :span="20">
@ -122,7 +126,7 @@
</el-card> </el-card>
</div> </div>
</el-col> </el-col>
<el-col :span="7"> <el-col :span="7" v-if="!fold">
<div class="comment-card"> <div class="comment-card">
<el-card> <el-card>
<template slot="header"> <template slot="header">
@ -224,7 +228,11 @@ export default {
default: 1 default: 1
}, },
nextPageData: Object, nextPageData: Object,
prePageData: Object prePageData: Object,
fold: {
type: Boolean,
default: false
}
}, },
computed: { computed: {
projectId() { projectId() {
@ -262,6 +270,9 @@ export default {
this.handleClose(); this.handleClose();
this.$emit('refreshTable'); this.$emit('refreshTable');
}, },
handleRightCollapse() {
this.fold = !this.fold;
},
statusChange(status) { statusChange(status) {
this.originalStatus = this.testCase.status; this.originalStatus = this.testCase.status;
this.testCase.status = status; this.testCase.status = status;

View File

@ -252,6 +252,7 @@
:test-cases="tableData" :test-cases="tableData"
:is-read-only="isReadOnly" :is-read-only="isReadOnly"
:total="total" :total="total"
:fold="false"
@refreshTable="search"/> @refreshTable="search"/>
<batch-edit ref="batchEdit" @batchEdit="batchEdit" <batch-edit ref="batchEdit" @batchEdit="batchEdit"

View File

@ -2002,6 +2002,8 @@ export default {
date: "Date" date: "Date"
}, },
test_track: { test_track: {
fold_right_collapse: 'Fold Right',
expand_right_collapse: 'Expand Right',
sync_add_api_load: 'Synchronously add associated api and load tests', sync_add_api_load: 'Synchronously add associated api and load tests',
next: 'Next', next: 'Next',
total_size: 'Total {0}', total_size: 'Total {0}',

View File

@ -2006,6 +2006,8 @@ export default {
date: "日期" date: "日期"
}, },
test_track: { test_track: {
fold_right_collapse: '右侧折叠',
expand_right_collapse: '右侧展开',
sync_add_api_load: '同步添加关联的接口和性能测试', sync_add_api_load: '同步添加关联的接口和性能测试',
next: '下一条', next: '下一条',
total_size: '共 {0} 条', total_size: '共 {0} 条',

View File

@ -2006,6 +2006,8 @@ export default {
date: "日期" date: "日期"
}, },
test_track: { test_track: {
fold_right_collapse: '右侧折叠',
expand_right_collapse: '右側展開',
sync_add_api_load: '同步添加關聯的接口和性能測試', sync_add_api_load: '同步添加關聯的接口和性能測試',
next: '下一條', next: '下一條',
total_size: '共 {0} 條', total_size: '共 {0} 條',