fix(测试跟踪): 报告总结过长提示
--bug=1027652 --user=宋昌昌 【测试跟踪】测试计划-报告-报告总结编辑-内容过长时保存报错SQL error happened, please check logs. https://www.tapd.cn/55049933/s/1392499
This commit is contained in:
parent
3a0dfca3e7
commit
73211d44a5
|
@ -646,6 +646,7 @@ export default {
|
||||||
fail_case: "Fail Case",
|
fail_case: "Fail Case",
|
||||||
issue_list: "Issue List",
|
issue_list: "Issue List",
|
||||||
all_case: "All Case",
|
all_case: "All Case",
|
||||||
|
report_summary_length_tips: "Report summary cannot exceed 60000 words",
|
||||||
},
|
},
|
||||||
reporter: "Reporter",
|
reporter: "Reporter",
|
||||||
lastmodify: "Last Modify",
|
lastmodify: "Last Modify",
|
||||||
|
|
|
@ -613,6 +613,7 @@ export default {
|
||||||
fail_case: "失败用例",
|
fail_case: "失败用例",
|
||||||
issue_list: "缺陷列表",
|
issue_list: "缺陷列表",
|
||||||
all_case: "所有用例",
|
all_case: "所有用例",
|
||||||
|
report_summary_length_tips: "报告总结不能超过60000个字符"
|
||||||
},
|
},
|
||||||
reporter: "报告人",
|
reporter: "报告人",
|
||||||
lastmodify: "最后更改",
|
lastmodify: "最后更改",
|
||||||
|
|
|
@ -612,6 +612,7 @@ export default {
|
||||||
fail_case: "失敗用例",
|
fail_case: "失敗用例",
|
||||||
issue_list: "缺陷列錶",
|
issue_list: "缺陷列錶",
|
||||||
all_case: "所有用例",
|
all_case: "所有用例",
|
||||||
|
report_summary_length_tips: "報告總結不能超過60000個字符"
|
||||||
},
|
},
|
||||||
reporter: "報告人",
|
reporter: "報告人",
|
||||||
lastmodify: "最後更改",
|
lastmodify: "最後更改",
|
||||||
|
|
|
@ -60,6 +60,10 @@ export default {
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
saveSummary() {
|
saveSummary() {
|
||||||
|
if (this.report.summary.length > 60000) {
|
||||||
|
this.$message.error(this.$t("test_track.report.report_summary_length_tips"));
|
||||||
|
return;
|
||||||
|
}
|
||||||
if (this.isDb) {
|
if (this.isDb) {
|
||||||
testPlanDbReportEdit({
|
testPlanDbReportEdit({
|
||||||
testPlanReportId: this.report.id,
|
testPlanReportId: this.report.id,
|
||||||
|
|
Loading…
Reference in New Issue