fix(测试跟踪): 测试计划历史报告无法编辑总结

--bug=1021649 --user=陈建星 【测试跟踪】测试跟踪-报告-查看报告-报告总结-编辑-无法保存 https://www.tapd.cn/55049933/s/1324587
This commit is contained in:
chenjianxing 2023-01-09 18:50:18 +08:00 committed by jianxing
parent 3db913d829
commit 28f67180b3
2 changed files with 5 additions and 3 deletions

View File

@ -750,7 +750,9 @@ public class TestPlanReportService {
if (testPlanReportContentWithBLOBs.getEndTime() != null) { if (testPlanReportContentWithBLOBs.getEndTime() != null) {
reportDTO.setEndTime(testPlanReportContentWithBLOBs.getEndTime()); reportDTO.setEndTime(testPlanReportContentWithBLOBs.getEndTime());
} }
String summary = testPlanReportContentWithBLOBs.getSummary();
BeanUtils.copyBean(testPlanReportContentWithBLOBs, reportDTO); BeanUtils.copyBean(testPlanReportContentWithBLOBs, reportDTO);
testPlanReportContentWithBLOBs.setSummary(summary);
testPlanReportContentWithBLOBs.setId(id); testPlanReportContentWithBLOBs.setId(id);
testPlanReportContentWithBLOBs.setTestPlanReportId(testPlanReportId); testPlanReportContentWithBLOBs.setTestPlanReportId(testPlanReportId);
if (reportDTO.getFunctionResult() != null) { if (reportDTO.getFunctionResult() != null) {

View File

@ -1,10 +1,10 @@
<template> <template>
<test-plan-report-container id='summary' :title="$t('test_track.report.report_summary')"> <test-plan-report-container id='summary' :title="$t('test_track.report.report_summary')">
<template v-slot:title> <template v-slot:title>
<el-link class="edit-link" v-if="showEdit" @click="isEdit = true"> <el-link class="edit-link" v-if="showEdit && !isEdit" @click="isEdit = true">
<i class="el-icon-edit">{{ $t('commons.edit') }}</i> <i class="el-icon-edit">{{ $t('commons.edit') }}</i>
</el-link> </el-link>
<el-link class="edit-link" v-if="showEdit" @click="saveSummary"> <el-link class="edit-link" v-if="showEdit && isEdit" @click="saveSummary">
<i class="el-icon-circle-check">{{ $t('commons.save') }}</i> <i class="el-icon-circle-check">{{ $t('commons.save') }}</i>
</el-link> </el-link>
</template> </template>
@ -44,7 +44,7 @@ export default {
}, },
computed: { computed: {
showEdit() { showEdit() {
return !this.isTemplate && !this.isShare && !this.isEdit; return !this.isTemplate && !this.isShare;
} }
}, },
methods: { methods: {