软件列表接口参数传递修改

This commit is contained in:
付民康
2025-03-19 16:32:10 +08:00
parent a623659267
commit 80e3974825
2 changed files with 11 additions and 19 deletions

View File

@@ -80,8 +80,8 @@
:can-change-page-size="true"
:can-view-total="true"
total-item-text="总计"
@page-index-change="changeIndex()"
@page-size-change="changeSize()"
@page-index-change="fetchVulnList"
@page-size-change="fetchVulnList"
/>
</div>
@@ -95,7 +95,7 @@
confirmColor="danger"
>
<span class="inline-block text-G900 text-sm font-normal leading-[20px] break-all"
>你确认删除此项{{ item.cla_name }} </span
>你确认删除此项{{ item.cla_name }} </span
>
</GModal>
@@ -157,16 +157,6 @@ const openDelete = (row: any) => {
const router = useRouter();
// 分页
const changeIndex = () => {
// getGroupClaListData();
};
const changeSize = () => {
pager.value.pageIndex = 1;
// getGroupClaListData();
};
const repoFun = (arr: any) => {
return arr ? (arr.length > 3 ? arr.slice(0, 3) : arr) : [];
};
@@ -246,11 +236,13 @@ const fetchVulnList = async () => {
const { data } = await getVulnList({
// softwareId: 47,
softwareId: propsData.versionId,
componentId: '',
current: 1,
size: 10
});
if(data.data.code===200) {
tableData.value = data?.data?.data?.records || [];
pager.value.total = data?.data?.data?.total || [];
}
}