From 73211d44a5990cd46066b1bff6a508760da9c626 Mon Sep 17 00:00:00 2001 From: song-cc-rock Date: Wed, 12 Jul 2023 18:46:41 +0800 Subject: [PATCH] =?UTF-8?q?fix(=E6=B5=8B=E8=AF=95=E8=B7=9F=E8=B8=AA):=20?= =?UTF-8?q?=E6=8A=A5=E5=91=8A=E6=80=BB=E7=BB=93=E8=BF=87=E9=95=BF=E6=8F=90?= =?UTF-8?q?=E7=A4=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --bug=1027652 --user=宋昌昌 【测试跟踪】测试计划-报告-报告总结编辑-内容过长时保存报错SQL error happened, please check logs. https://www.tapd.cn/55049933/s/1392499 --- framework/sdk-parent/frontend/src/i18n/lang/track/en-US.js | 1 + framework/sdk-parent/frontend/src/i18n/lang/track/zh-CN.js | 1 + framework/sdk-parent/frontend/src/i18n/lang/track/zh-TW.js | 1 + .../view/comonents/report/detail/TestPlanSummaryReport.vue | 4 ++++ 4 files changed, 7 insertions(+) diff --git a/framework/sdk-parent/frontend/src/i18n/lang/track/en-US.js b/framework/sdk-parent/frontend/src/i18n/lang/track/en-US.js index 3961e7dd0a..1dd69860dc 100644 --- a/framework/sdk-parent/frontend/src/i18n/lang/track/en-US.js +++ b/framework/sdk-parent/frontend/src/i18n/lang/track/en-US.js @@ -646,6 +646,7 @@ export default { fail_case: "Fail Case", issue_list: "Issue List", all_case: "All Case", + report_summary_length_tips: "Report summary cannot exceed 60000 words", }, reporter: "Reporter", lastmodify: "Last Modify", diff --git a/framework/sdk-parent/frontend/src/i18n/lang/track/zh-CN.js b/framework/sdk-parent/frontend/src/i18n/lang/track/zh-CN.js index 2f8e3c414c..14a194ed58 100644 --- a/framework/sdk-parent/frontend/src/i18n/lang/track/zh-CN.js +++ b/framework/sdk-parent/frontend/src/i18n/lang/track/zh-CN.js @@ -613,6 +613,7 @@ export default { fail_case: "失败用例", issue_list: "缺陷列表", all_case: "所有用例", + report_summary_length_tips: "报告总结不能超过60000个字符" }, reporter: "报告人", lastmodify: "最后更改", diff --git a/framework/sdk-parent/frontend/src/i18n/lang/track/zh-TW.js b/framework/sdk-parent/frontend/src/i18n/lang/track/zh-TW.js index e671f0fe5b..6acdf797cc 100644 --- a/framework/sdk-parent/frontend/src/i18n/lang/track/zh-TW.js +++ b/framework/sdk-parent/frontend/src/i18n/lang/track/zh-TW.js @@ -612,6 +612,7 @@ export default { fail_case: "失敗用例", issue_list: "缺陷列錶", all_case: "所有用例", + report_summary_length_tips: "報告總結不能超過60000個字符" }, reporter: "報告人", lastmodify: "最後更改", diff --git a/test-track/frontend/src/business/plan/view/comonents/report/detail/TestPlanSummaryReport.vue b/test-track/frontend/src/business/plan/view/comonents/report/detail/TestPlanSummaryReport.vue index 449994fea4..ec0ab1a620 100644 --- a/test-track/frontend/src/business/plan/view/comonents/report/detail/TestPlanSummaryReport.vue +++ b/test-track/frontend/src/business/plan/view/comonents/report/detail/TestPlanSummaryReport.vue @@ -60,6 +60,10 @@ export default { }, methods: { saveSummary() { + if (this.report.summary.length > 60000) { + this.$message.error(this.$t("test_track.report.report_summary_length_tips")); + return; + } if (this.isDb) { testPlanDbReportEdit({ testPlanReportId: this.report.id,