fix(测试计划): 关联用例table过滤模块数量不更新&接口CASE无需更新count调整

This commit is contained in:
xinxin.wu 2024-06-20 16:44:43 +08:00 committed by Craftsman
parent e15209f5a8
commit fbd0a27486
5 changed files with 5 additions and 29 deletions

View File

@ -8,7 +8,6 @@
moreAction: [],
}"
v-on="propsEvent"
@filter-change="getModuleCount"
>
<template #num="{ record }">
<MsButton type="text" @click="toDetail(record)">{{ record.num }}</MsButton>
@ -238,26 +237,13 @@
excludeIds: [...excludeKeys],
condition: {
keyword: props.keyword,
filter: propsRes.value.filter,
},
protocols: props.protocols,
...props.extraTableParams,
};
}
async function getModuleCount() {
if (props.associatedIds && props.associatedIds.length) {
props.associatedIds.forEach((hasNotAssociatedId) => {
setTableSelected(hasNotAssociatedId);
});
}
const tableParams = await getTableParams();
emit('getModuleCount', {
...tableParams,
current: propsRes.value.msPagination?.current,
pageSize: propsRes.value.msPagination?.pageSize,
});
}
async function loadCaseList() {
if (props.associatedIds && props.associatedIds.length) {
props.associatedIds.forEach((hasNotAssociatedId) => {
@ -267,11 +253,6 @@
const tableParams = await getTableParams();
setLoadListParams(tableParams);
loadList();
emit('getModuleCount', {
...tableParams,
current: propsRes.value.msPagination?.current,
pageSize: propsRes.value.msPagination?.pageSize,
});
}
const tableRef = ref<InstanceType<typeof MsBaseTable>>();

View File

@ -193,6 +193,7 @@
excludeIds: [...excludeKeys],
condition: {
keyword: props.keyword,
filter: propsRes.value.filter,
},
...props.extraTableParams,
};

View File

@ -17,7 +17,7 @@
allow-clear
:max-length="255"
/>
<a-tooltip :content="isExpandAll ? t('common.collapseAllSubModule') : t('common.common.expandAllSubModule')">
<a-tooltip :content="isExpandAll ? t('common.collapseAllSubModule') : t('common.expandAllSubModule')">
<a-button
type="outline"
class="expand-btn arco-btn-outline--secondary"

View File

@ -136,7 +136,7 @@
:filter-config-list="[]"
:custom-fields-config-list="[]"
:row-count="0"
:search-placeholder="t('ms.case.associate.searchPlaceholder')"
:search-placeholder="t('common.searchByIdName')"
@keyword-search="loadCaseList"
@adv-search="loadCaseList"
@refresh="loadCaseList"
@ -530,13 +530,6 @@
}
}
);
watch(
() => innerProject.value,
(val) => {
innerProject.value = val;
}
);
</script>
<style scoped lang="less">

View File

@ -166,6 +166,7 @@ export default {
'common.resourceDeleted': 'Resource has been deleted',
'common.resourceExpired': 'Link has failed, please get it again',
'common.refresh': 'Refresh',
'common.searchByIdName': 'Search by ID or name',
'common.searchByNameAndId': 'Search by ID, name, or tag',
'common.archive': 'archive',
'common.running': 'Running',