diff --git a/framework/sdk-parent/frontend/src/components/new-ui/MsTableAdvSearch.vue b/framework/sdk-parent/frontend/src/components/new-ui/MsTableAdvSearch.vue index efa908e575..474085f676 100644 --- a/framework/sdk-parent/frontend/src/components/new-ui/MsTableAdvSearch.vue +++ b/framework/sdk-parent/frontend/src/components/new-ui/MsTableAdvSearch.vue @@ -275,7 +275,9 @@ export default { } }, setScrollToBottom() { - this.$refs['scrollbar'].wrap.scrollTop = this.$refs['scrollbar'].wrap.scrollHeight; + if (this.$refs['scrollbar']) { + this.$refs['scrollbar'].wrap.scrollTop = this.$refs['scrollbar'].wrap.scrollHeight; + } } } , diff --git a/test-track/frontend/src/business/case/components/TestCaseEdit.vue b/test-track/frontend/src/business/case/components/TestCaseEdit.vue index cae4dd2bc4..3353c8d375 100644 --- a/test-track/frontend/src/business/case/components/TestCaseEdit.vue +++ b/test-track/frontend/src/business/case/components/TestCaseEdit.vue @@ -461,6 +461,7 @@ export default { method: "", prerequisite: "", testId: "", + nodeId: '', steps: [ { num: 1, @@ -1539,31 +1540,8 @@ export default { } }); } - let detailForm = this.$refs.otherInfo.validateForm(); - let baseInfoValidate = this.$refs.testCaseBaseInfo.validateForm() && this.$refs.testCaseBaseInfo.validateCaseFrom(); - let customValidate = this.$refs.testCaseBaseInfo.validateCustomForm(); - if (!detailForm || !baseInfoValidate) { - return false; - } - if (!customValidate) { - let customFieldFormFields = - this.$refs.testCaseBaseInfo.getCustomFields(); - for (let i = 0; i < customFieldFormFields.length; i++) { - let customField = customFieldFormFields[i]; - if (customField.validateState === "error") { - let name = customField.label || customField.labelFor; - if (this.currentValidateName) { - this.currentValidateName = - this.currentValidateName + "," + name; - } else { - this.currentValidateName = name; - } - } - } - this.isValidate = true; - this.$warning(this.currentValidateName + this.$t("commons.cannot_be_null"), false); - this.currentValidateName = ""; - return false; + if (!this.$refs.testCaseBaseInfo.validateWithTip()) { + isValidate = false; } return isValidate; }, diff --git a/test-track/frontend/src/business/case/components/case/CaseBaseInfo.vue b/test-track/frontend/src/business/case/components/case/CaseBaseInfo.vue index 5091f9f88d..076da54ce3 100644 --- a/test-track/frontend/src/business/case/components/case/CaseBaseInfo.vue +++ b/test-track/frontend/src/business/case/components/case/CaseBaseInfo.vue @@ -109,7 +109,7 @@ >