refactor: 测试用例模块名称长度改为100
This commit is contained in:
parent
406a8ff935
commit
519c868418
|
@ -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';
|
||||
|
|
|
@ -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 = {};
|
||||
|
|
|
@ -5,6 +5,7 @@
|
|||
v-loading="result.loading"
|
||||
:tree-nodes="treeNodes"
|
||||
:type="'edit'"
|
||||
:name-limit="100"
|
||||
@add="add"
|
||||
@edit="edit"
|
||||
@drag="drag"
|
||||
|
|
Loading…
Reference in New Issue