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:
parent
26c65a979b
commit
93a1885f9e
|
@ -27,8 +27,11 @@
|
||||||
</a-radio-group>
|
</a-radio-group>
|
||||||
<a-input-search
|
<a-input-search
|
||||||
v-model:model-value="keyword"
|
v-model:model-value="keyword"
|
||||||
:placeholder="t('caseManagement.featureCase.searchByNameAndId')"
|
:placeholder="t('caseManagement.featureCase.searchByName')"
|
||||||
allow-clear
|
allow-clear
|
||||||
|
@search="getFetch"
|
||||||
|
@press-enter="getFetch"
|
||||||
|
@clear="resetFetch"
|
||||||
class="mx-[8px] w-[240px]"
|
class="mx-[8px] w-[240px]"
|
||||||
></a-input-search>
|
></a-input-search>
|
||||||
</div>
|
</div>
|
||||||
|
@ -270,6 +273,18 @@
|
||||||
featureCaseStore.getCaseCounts(props.caseId);
|
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);
|
const cancelLoading = ref<boolean>(false);
|
||||||
// 取消关联
|
// 取消关联
|
||||||
async function cancelLink(id: string) {
|
async function cancelLink(id: string) {
|
||||||
|
|
|
@ -11,7 +11,7 @@
|
||||||
</a-dropdown>
|
</a-dropdown>
|
||||||
<a-input-search
|
<a-input-search
|
||||||
v-model:model-value="keyword"
|
v-model:model-value="keyword"
|
||||||
:placeholder="t('caseManagement.featureCase.searchByNameAndId')"
|
:placeholder="t('caseManagement.featureCase.searchByName')"
|
||||||
allow-clear
|
allow-clear
|
||||||
class="mx-[8px] w-[240px]"
|
class="mx-[8px] w-[240px]"
|
||||||
@search="searchCase"
|
@search="searchCase"
|
||||||
|
|
|
@ -4,7 +4,7 @@
|
||||||
<div class="font-medium">{{ t('caseManagement.featureCase.caseReviewList') }}</div>
|
<div class="font-medium">{{ t('caseManagement.featureCase.caseReviewList') }}</div>
|
||||||
<a-input-search
|
<a-input-search
|
||||||
v-model:model-value="keyword"
|
v-model:model-value="keyword"
|
||||||
:placeholder="t('caseManagement.featureCase.searchByNameAndId')"
|
:placeholder="t('caseManagement.featureCase.searchByIdAndName')"
|
||||||
allow-clear
|
allow-clear
|
||||||
class="mx-[8px] w-[240px]"
|
class="mx-[8px] w-[240px]"
|
||||||
@search="searchList"
|
@search="searchList"
|
||||||
|
|
|
@ -12,7 +12,7 @@
|
||||||
|
|
||||||
<a-input-search
|
<a-input-search
|
||||||
v-model:model-value="keyword"
|
v-model:model-value="keyword"
|
||||||
:placeholder="t('caseManagement.featureCase.searchByNameAndId')"
|
:placeholder="t('caseManagement.featureCase.searchByName')"
|
||||||
allow-clear
|
allow-clear
|
||||||
class="mx-[8px] w-[240px]"
|
class="mx-[8px] w-[240px]"
|
||||||
@search="searchList"
|
@search="searchList"
|
||||||
|
|
|
@ -20,7 +20,7 @@
|
||||||
</a-radio-group>
|
</a-radio-group>
|
||||||
<a-input-search
|
<a-input-search
|
||||||
v-model:model-value="keyword"
|
v-model:model-value="keyword"
|
||||||
:placeholder="t('caseManagement.featureCase.searchByNameAndId')"
|
:placeholder="t('caseManagement.featureCase.searchByName')"
|
||||||
allow-clear
|
allow-clear
|
||||||
class="mx-[8px] w-[240px]"
|
class="mx-[8px] w-[240px]"
|
||||||
@search="searchDependCase"
|
@search="searchDependCase"
|
||||||
|
|
|
@ -15,6 +15,7 @@ export default {
|
||||||
'caseManagement.featureCase.versionPlaceholder': 'The default is the latest version',
|
'caseManagement.featureCase.versionPlaceholder': 'The default is the latest version',
|
||||||
'caseManagement.featureCase.searchByNameAndId': 'Search by ID, name, or tag',
|
'caseManagement.featureCase.searchByNameAndId': 'Search by ID, name, or tag',
|
||||||
'caseManagement.featureCase.searchByIdAndName': 'Search by ID or name',
|
'caseManagement.featureCase.searchByIdAndName': 'Search by ID or name',
|
||||||
|
'caseManagement.featureCase.searchByName': 'Search by name',
|
||||||
'caseManagement.featureCase.filter': 'filter',
|
'caseManagement.featureCase.filter': 'filter',
|
||||||
'caseManagement.featureCase.setFilterCondition': 'Set filters',
|
'caseManagement.featureCase.setFilterCondition': 'Set filters',
|
||||||
'caseManagement.featureCase.followingCondition': 'Conform to the following',
|
'caseManagement.featureCase.followingCondition': 'Conform to the following',
|
||||||
|
|
|
@ -15,6 +15,7 @@ export default {
|
||||||
'caseManagement.featureCase.versionPlaceholder': '默认为最新版本',
|
'caseManagement.featureCase.versionPlaceholder': '默认为最新版本',
|
||||||
'caseManagement.featureCase.searchByNameAndId': '通过ID、名称或标签搜索',
|
'caseManagement.featureCase.searchByNameAndId': '通过ID、名称或标签搜索',
|
||||||
'caseManagement.featureCase.searchByIdAndName': '通过ID 或名称搜索',
|
'caseManagement.featureCase.searchByIdAndName': '通过ID 或名称搜索',
|
||||||
|
'caseManagement.featureCase.searchByName': '通过名称搜索',
|
||||||
'caseManagement.featureCase.filter': '筛选',
|
'caseManagement.featureCase.filter': '筛选',
|
||||||
'caseManagement.featureCase.setFilterCondition': '设置筛选条件',
|
'caseManagement.featureCase.setFilterCondition': '设置筛选条件',
|
||||||
'caseManagement.featureCase.followingCondition': '符合以下',
|
'caseManagement.featureCase.followingCondition': '符合以下',
|
||||||
|
|
Loading…
Reference in New Issue