fix(测试计划): 关联用例table过滤模块数量不更新&接口CASE无需更新count调整
This commit is contained in:
parent
e15209f5a8
commit
fbd0a27486
|
@ -8,7 +8,6 @@
|
||||||
moreAction: [],
|
moreAction: [],
|
||||||
}"
|
}"
|
||||||
v-on="propsEvent"
|
v-on="propsEvent"
|
||||||
@filter-change="getModuleCount"
|
|
||||||
>
|
>
|
||||||
<template #num="{ record }">
|
<template #num="{ record }">
|
||||||
<MsButton type="text" @click="toDetail(record)">{{ record.num }}</MsButton>
|
<MsButton type="text" @click="toDetail(record)">{{ record.num }}</MsButton>
|
||||||
|
@ -238,26 +237,13 @@
|
||||||
excludeIds: [...excludeKeys],
|
excludeIds: [...excludeKeys],
|
||||||
condition: {
|
condition: {
|
||||||
keyword: props.keyword,
|
keyword: props.keyword,
|
||||||
|
filter: propsRes.value.filter,
|
||||||
},
|
},
|
||||||
protocols: props.protocols,
|
protocols: props.protocols,
|
||||||
...props.extraTableParams,
|
...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() {
|
async function loadCaseList() {
|
||||||
if (props.associatedIds && props.associatedIds.length) {
|
if (props.associatedIds && props.associatedIds.length) {
|
||||||
props.associatedIds.forEach((hasNotAssociatedId) => {
|
props.associatedIds.forEach((hasNotAssociatedId) => {
|
||||||
|
@ -267,11 +253,6 @@
|
||||||
const tableParams = await getTableParams();
|
const tableParams = await getTableParams();
|
||||||
setLoadListParams(tableParams);
|
setLoadListParams(tableParams);
|
||||||
loadList();
|
loadList();
|
||||||
emit('getModuleCount', {
|
|
||||||
...tableParams,
|
|
||||||
current: propsRes.value.msPagination?.current,
|
|
||||||
pageSize: propsRes.value.msPagination?.pageSize,
|
|
||||||
});
|
|
||||||
}
|
}
|
||||||
|
|
||||||
const tableRef = ref<InstanceType<typeof MsBaseTable>>();
|
const tableRef = ref<InstanceType<typeof MsBaseTable>>();
|
||||||
|
|
|
@ -193,6 +193,7 @@
|
||||||
excludeIds: [...excludeKeys],
|
excludeIds: [...excludeKeys],
|
||||||
condition: {
|
condition: {
|
||||||
keyword: props.keyword,
|
keyword: props.keyword,
|
||||||
|
filter: propsRes.value.filter,
|
||||||
},
|
},
|
||||||
...props.extraTableParams,
|
...props.extraTableParams,
|
||||||
};
|
};
|
||||||
|
|
|
@ -17,7 +17,7 @@
|
||||||
allow-clear
|
allow-clear
|
||||||
:max-length="255"
|
: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
|
<a-button
|
||||||
type="outline"
|
type="outline"
|
||||||
class="expand-btn arco-btn-outline--secondary"
|
class="expand-btn arco-btn-outline--secondary"
|
||||||
|
|
|
@ -136,7 +136,7 @@
|
||||||
:filter-config-list="[]"
|
:filter-config-list="[]"
|
||||||
:custom-fields-config-list="[]"
|
:custom-fields-config-list="[]"
|
||||||
:row-count="0"
|
:row-count="0"
|
||||||
:search-placeholder="t('ms.case.associate.searchPlaceholder')"
|
:search-placeholder="t('common.searchByIdName')"
|
||||||
@keyword-search="loadCaseList"
|
@keyword-search="loadCaseList"
|
||||||
@adv-search="loadCaseList"
|
@adv-search="loadCaseList"
|
||||||
@refresh="loadCaseList"
|
@refresh="loadCaseList"
|
||||||
|
@ -530,13 +530,6 @@
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
|
|
||||||
watch(
|
|
||||||
() => innerProject.value,
|
|
||||||
(val) => {
|
|
||||||
innerProject.value = val;
|
|
||||||
}
|
|
||||||
);
|
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<style scoped lang="less">
|
<style scoped lang="less">
|
||||||
|
|
|
@ -166,6 +166,7 @@ export default {
|
||||||
'common.resourceDeleted': 'Resource has been deleted',
|
'common.resourceDeleted': 'Resource has been deleted',
|
||||||
'common.resourceExpired': 'Link has failed, please get it again',
|
'common.resourceExpired': 'Link has failed, please get it again',
|
||||||
'common.refresh': 'Refresh',
|
'common.refresh': 'Refresh',
|
||||||
|
'common.searchByIdName': 'Search by ID or name',
|
||||||
'common.searchByNameAndId': 'Search by ID, name, or tag',
|
'common.searchByNameAndId': 'Search by ID, name, or tag',
|
||||||
'common.archive': 'archive',
|
'common.archive': 'archive',
|
||||||
'common.running': 'Running',
|
'common.running': 'Running',
|
||||||
|
|
Loading…
Reference in New Issue