fix(测试跟踪): 脑图编辑模块和用例名称太长报sql错误
--bug=1027406 --user=陈建星 【测试跟踪】github#25219,脑图编辑,模块名称太长,保存页面会报错 https://www.tapd.cn/55049933/s/1387120
This commit is contained in:
parent
1b7e92bdd6
commit
f4de159148
|
@ -493,6 +493,9 @@ export default {
|
||||||
if (module.level > 8) {
|
if (module.level > 8) {
|
||||||
this.throwError(this.$t('commons.module_deep_limit'));
|
this.throwError(this.$t('commons.module_deep_limit'));
|
||||||
}
|
}
|
||||||
|
if (module.name.trim().length > 100) {
|
||||||
|
this.throwError( this.$t('test_track.module.name') + this.$t('test_track.length_less_than') + 100);
|
||||||
|
}
|
||||||
this.saveModules.push(module);
|
this.saveModules.push(module);
|
||||||
},
|
},
|
||||||
buildExtraNode(data, parent, root) {
|
buildExtraNode(data, parent, root) {
|
||||||
|
@ -656,6 +659,10 @@ export default {
|
||||||
testCase.id = getUUID();
|
testCase.id = getUUID();
|
||||||
data.newId = testCase.id;
|
data.newId = testCase.id;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (testCase.name.length > 255) {
|
||||||
|
this.throwError( this.$t('api_test.home_page.failed_case_list.table_coloum.case_name') + this.$t('test_track.length_less_than') + 255);
|
||||||
|
}
|
||||||
this.saveCases.push(testCase);
|
this.saveCases.push(testCase);
|
||||||
}
|
}
|
||||||
if (testCase.nodeId !== 'root' && testCase.nodeId.length < 15) {
|
if (testCase.nodeId !== 'root' && testCase.nodeId.length < 15) {
|
||||||
|
|
Loading…
Reference in New Issue