diff --git a/backend/src/main/resources/db/migration/V78__v1.8_release.sql b/backend/src/main/resources/db/migration/V78__v1.8_release.sql index 0773ad9cef..b3c505c306 100644 --- a/backend/src/main/resources/db/migration/V78__v1.8_release.sql +++ b/backend/src/main/resources/db/migration/V78__v1.8_release.sql @@ -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; \ No newline at end of file +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'; diff --git a/frontend/src/business/components/track/common/NodeTree.vue b/frontend/src/business/components/track/common/NodeTree.vue index c61b16f5d3..a3605632d2 100644 --- a/frontend/src/business/components/track/common/NodeTree.vue +++ b/frontend/src/business/components/track/common/NodeTree.vue @@ -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 = {}; diff --git a/frontend/src/business/components/track/common/TestCaseNodeTree.vue b/frontend/src/business/components/track/common/TestCaseNodeTree.vue index 5b09ba8094..44907cc490 100644 --- a/frontend/src/business/components/track/common/TestCaseNodeTree.vue +++ b/frontend/src/business/components/track/common/TestCaseNodeTree.vue @@ -5,6 +5,7 @@ v-loading="result.loading" :tree-nodes="treeNodes" :type="'edit'" + :name-limit="100" @add="add" @edit="edit" @drag="drag"