refactor: 测试用例模块名称长度改为100

This commit is contained in:
chenjianxing 2021-03-24 21:30:07 +08:00
parent 406a8ff935
commit 519c868418
3 changed files with 14 additions and 3 deletions

View File

@ -194,4 +194,8 @@ alter table test_case
modify test_id varchar(2000) null;
-- update history data
update test_case set review_status = 'Prepare' where review_status is null;
update test_case set review_status = 'Prepare' where review_status is null;
-- test_case_node update name
alter table test_case_node
modify name varchar(100) NOT NULL COMMENT 'Node name';

View File

@ -95,6 +95,12 @@ export default {
return this.$t("commons.all_label.case");
}
},
nameLimit: {
type: Number,
default() {
return 50;
}
},
},
watch: {
treeNodes() {
@ -184,8 +190,8 @@ export default {
this.$warning(this.$t('test_track.case.input_name'));
return;
}
if (data.name.trim().length > 50) {
this.$warning(this.$t('test_track.length_less_than') + '50');
if (data.name.trim().length > this.nameLimit) {
this.$warning(this.$t('test_track.length_less_than') + this.nameLimit);
return;
}
let param = {};

View File

@ -5,6 +5,7 @@
v-loading="result.loading"
:tree-nodes="treeNodes"
:type="'edit'"
:name-limit="100"
@add="add"
@edit="edit"
@drag="drag"