diff --git a/frontend/src/business/components/api/automation/report/ApiReportViewHeader.vue b/frontend/src/business/components/api/automation/report/ApiReportViewHeader.vue index 45821ea126..2982a56727 100644 --- a/frontend/src/business/components/api/automation/report/ApiReportViewHeader.vue +++ b/frontend/src/business/components/api/automation/report/ApiReportViewHeader.vue @@ -3,7 +3,7 @@ - + {{ report.name }} diff --git a/frontend/src/business/components/common/components/report/MsRenameReportDialog.vue b/frontend/src/business/components/common/components/report/MsRenameReportDialog.vue index 624a892d96..10245f0fe2 100644 --- a/frontend/src/business/components/common/components/report/MsRenameReportDialog.vue +++ b/frontend/src/business/components/common/components/report/MsRenameReportDialog.vue @@ -4,6 +4,7 @@ :visible.sync="dialogVisible" width="40%" :modal-append-to-body="false" + :close-on-click-modal="false" :before-close="close"> @@ -33,6 +34,10 @@ export default { this.data = JSON.parse(JSON.stringify(data)); }, submit() { + if (!this.data.name) { + this.$error(this.$t("commons.name") + this.$t("commons.cannot_be_null")); + return; + } this.$emit('submit', this.data); }, close() { diff --git a/frontend/src/business/components/track/case/components/TestCaseEditOtherInfo.vue b/frontend/src/business/components/track/case/components/TestCaseEditOtherInfo.vue index 5c664376aa..be57719f40 100644 --- a/frontend/src/business/components/track/case/components/TestCaseEditOtherInfo.vue +++ b/frontend/src/business/components/track/case/components/TestCaseEditOtherInfo.vue @@ -14,7 +14,7 @@ - + @@ -310,6 +310,12 @@ export default { } pathArray.pop(); }); + }, + filterDemand(node, keyword) { + if (keyword && node.text.toLowerCase().indexOf(keyword.toLowerCase()) !== -1) { + return true; + } + return false; } } };