diff --git a/frontend/src/business/components/common/components/MsTableHeader.vue b/frontend/src/business/components/common/components/MsTableHeader.vue index 5f6c227456..e48db2f2b0 100644 --- a/frontend/src/business/components/common/components/MsTableHeader.vue +++ b/frontend/src/business/components/common/components/MsTableHeader.vue @@ -17,7 +17,7 @@ - + @@ -65,6 +65,12 @@ isTesterPermission: { type: Boolean, default: false + }, + tip: { + String, + default() { + return this.$t('commons.search_by_name'); + } } }, methods: { diff --git a/frontend/src/business/components/common/components/MsTableSearchBar.vue b/frontend/src/business/components/common/components/MsTableSearchBar.vue index dfa1584494..788b25bdc4 100644 --- a/frontend/src/business/components/common/components/MsTableSearchBar.vue +++ b/frontend/src/business/components/common/components/MsTableSearchBar.vue @@ -4,7 +4,7 @@ class="search" type="text" size="small" - :placeholder="$t('commons.search_by_name')" + :placeholder="tip" prefix-icon="el-icon-search" @change="search" maxlength="60" @@ -18,6 +18,12 @@ props: { condition: { type: Object + }, + tip: { + String, + default() { + return this.$t('commons.search_by_name'); + } } }, methods: { diff --git a/frontend/src/business/components/track/case/components/TestCaseList.vue b/frontend/src/business/components/track/case/components/TestCaseList.vue index 543f5bcee9..ee0ac0f9b4 100644 --- a/frontend/src/business/components/track/case/components/TestCaseList.vue +++ b/frontend/src/business/components/track/case/components/TestCaseList.vue @@ -4,7 +4,7 @@