fix(用例管理): 修复用例详情关联页面搜索框问题

--bug=1036834 --user=郭雨琦 https://www.tapd.cn/55049933/bugtrace/bugs/view/1155049933001036834
--bug=1036792 --user=郭雨琦 https://www.tapd.cn/55049933/bugtrace/bugs/view/1155049933001036792
This commit is contained in:
guoyuqi 2024-03-06 13:33:21 +08:00 committed by 刘瑞斌
parent 26c65a979b
commit 93a1885f9e
7 changed files with 22 additions and 5 deletions

View File

@ -27,8 +27,11 @@
</a-radio-group>
<a-input-search
v-model:model-value="keyword"
:placeholder="t('caseManagement.featureCase.searchByNameAndId')"
:placeholder="t('caseManagement.featureCase.searchByName')"
allow-clear
@search="getFetch"
@press-enter="getFetch"
@clear="resetFetch"
class="mx-[8px] w-[240px]"
></a-input-search>
</div>
@ -270,6 +273,18 @@
featureCaseStore.getCaseCounts(props.caseId);
}
}
async function resetFetch() {
if (showType.value === 'link') {
setLinkListParams({ keyword: '', projectId: appStore.currentProjectId, caseId: props.caseId });
await loadLinkList();
const { msPagination } = linkPropsRes.value;
featureCaseStore.setListCount(featureCaseStore.activeTab, msPagination?.total || 0);
} else {
setTestPlanListParams({ keyword: '', projectId: appStore.currentProjectId, caseId: props.caseId });
await testPlanLinkList();
featureCaseStore.getCaseCounts(props.caseId);
}
}
const cancelLoading = ref<boolean>(false);
//
async function cancelLink(id: string) {

View File

@ -11,7 +11,7 @@
</a-dropdown>
<a-input-search
v-model:model-value="keyword"
:placeholder="t('caseManagement.featureCase.searchByNameAndId')"
:placeholder="t('caseManagement.featureCase.searchByName')"
allow-clear
class="mx-[8px] w-[240px]"
@search="searchCase"

View File

@ -4,7 +4,7 @@
<div class="font-medium">{{ t('caseManagement.featureCase.caseReviewList') }}</div>
<a-input-search
v-model:model-value="keyword"
:placeholder="t('caseManagement.featureCase.searchByNameAndId')"
:placeholder="t('caseManagement.featureCase.searchByIdAndName')"
allow-clear
class="mx-[8px] w-[240px]"
@search="searchList"

View File

@ -12,7 +12,7 @@
<a-input-search
v-model:model-value="keyword"
:placeholder="t('caseManagement.featureCase.searchByNameAndId')"
:placeholder="t('caseManagement.featureCase.searchByName')"
allow-clear
class="mx-[8px] w-[240px]"
@search="searchList"

View File

@ -20,7 +20,7 @@
</a-radio-group>
<a-input-search
v-model:model-value="keyword"
:placeholder="t('caseManagement.featureCase.searchByNameAndId')"
:placeholder="t('caseManagement.featureCase.searchByName')"
allow-clear
class="mx-[8px] w-[240px]"
@search="searchDependCase"

View File

@ -15,6 +15,7 @@ export default {
'caseManagement.featureCase.versionPlaceholder': 'The default is the latest version',
'caseManagement.featureCase.searchByNameAndId': 'Search by ID, name, or tag',
'caseManagement.featureCase.searchByIdAndName': 'Search by ID or name',
'caseManagement.featureCase.searchByName': 'Search by name',
'caseManagement.featureCase.filter': 'filter',
'caseManagement.featureCase.setFilterCondition': 'Set filters',
'caseManagement.featureCase.followingCondition': 'Conform to the following',

View File

@ -15,6 +15,7 @@ export default {
'caseManagement.featureCase.versionPlaceholder': '默认为最新版本',
'caseManagement.featureCase.searchByNameAndId': '通过ID、名称或标签搜索',
'caseManagement.featureCase.searchByIdAndName': '通过ID 或名称搜索',
'caseManagement.featureCase.searchByName': '通过名称搜索',
'caseManagement.featureCase.filter': '筛选',
'caseManagement.featureCase.setFilterCondition': '设置筛选条件',
'caseManagement.featureCase.followingCondition': '符合以下',