fix(测试跟踪): 报告总结过长提示

--bug=1027652 --user=宋昌昌 【测试跟踪】测试计划-报告-报告总结编辑-内容过长时保存报错SQL error happened, please check logs. https://www.tapd.cn/55049933/s/1392499
This commit is contained in:
song-cc-rock 2023-07-12 18:46:41 +08:00 committed by fit2-zhao
parent 3a0dfca3e7
commit 73211d44a5
4 changed files with 7 additions and 0 deletions

View File

@ -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",

View File

@ -613,6 +613,7 @@ export default {
fail_case: "失败用例",
issue_list: "缺陷列表",
all_case: "所有用例",
report_summary_length_tips: "报告总结不能超过60000个字符"
},
reporter: "报告人",
lastmodify: "最后更改",

View File

@ -612,6 +612,7 @@ export default {
fail_case: "失敗用例",
issue_list: "缺陷列錶",
all_case: "所有用例",
report_summary_length_tips: "報告總結不能超過60000個字符"
},
reporter: "報告人",
lastmodify: "最後更改",

View File

@ -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,