diff --git a/frontend/src/business/components/track/case/components/TestCaseBaseInfo.vue b/frontend/src/business/components/track/case/components/TestCaseBaseInfo.vue index ae6dd7da69..7759dfa1e6 100644 --- a/frontend/src/business/components/track/case/components/TestCaseBaseInfo.vue +++ b/frontend/src/business/components/track/case/components/TestCaseBaseInfo.vue @@ -14,7 +14,7 @@ v-model="form.name" size="small" class="ms-case-input" - maxlength="225" + maxlength="255" show-word-limit :disabled="readOnly"/> @@ -130,6 +130,10 @@ export default { isValidate = false; } }); + return isValidate; + }, + validateCustomForm() { + let isValidate = true; this.$refs['customFieldForm'].validate((valid) => { if (!valid) { isValidate = false; diff --git a/frontend/src/business/components/track/case/components/TestCaseEdit.vue b/frontend/src/business/components/track/case/components/TestCaseEdit.vue index 69cf29540a..be5aa8189d 100644 --- a/frontend/src/business/components/track/case/components/TestCaseEdit.vue +++ b/frontend/src/business/components/track/case/components/TestCaseEdit.vue @@ -1001,7 +1001,11 @@ export default { return false; } }); - let customValidate = this.$refs.testCaseBaseInfo.validateForm(); + let baseInfoValidate = this.$refs.testCaseBaseInfo.validateForm(); + if (!baseInfoValidate) { + return false; + } + let customValidate = this.$refs.testCaseBaseInfo.validateCustomForm(); if (!customValidate) { let customFieldFormFields = this.$refs.testCaseBaseInfo.getCustomFields(); for (let i = 0; i < customFieldFormFields.length; i++) {