diff --git a/src/api/jyh/index.ts b/src/api/jyh/index.ts index 17a2f74..b77c137 100644 --- a/src/api/jyh/index.ts +++ b/src/api/jyh/index.ts @@ -20,6 +20,11 @@ export function releasePage(data): Promise { }); } +// 导出校验结果 +export function exportVerifyResult() { + +} + // 获取邀请列表 export function getInviteListData(): catchRt { return reqCatchV2(() => diff --git a/src/views/Jyh/Search/Components/BatchVerify.vue b/src/views/Jyh/Search/Components/BatchVerify.vue index 070ac0f..acbcc55 100644 --- a/src/views/Jyh/Search/Components/BatchVerify.vue +++ b/src/views/Jyh/Search/Components/BatchVerify.vue @@ -31,13 +31,13 @@
下载excel模板 - 导出 + 导出
- + @@ -150,7 +150,7 @@ import { useAccountStore } from '@/stores/user'; import { storeToRefs } from 'pinia'; import TableSetting from '@/components/TableSetting/index.vue'; import FileUploadButton from '@/components/FileUploadButton/index.vue'; -import { releasePage, repoImport } from '@/api/jyh'; +import { releasePage, repoImport, exportVerifyResult } from '@/api/jyh'; import NoData from "@/components/NoData/NoData.vue"; const useNum = computed(() => { @@ -201,6 +201,7 @@ const { isLogin } = storeToRefs(userInfo); const { namespace } = getOrgInfo(); const allTableData = ref([]); const tableData = ref([]); +const loading = ref(false); const columns = ref([ { key: 'validStatus', label: '校验结果', visible: true, filterable: true, sortable: false }, { key: 'softwareName', label: '软件名称', visible: true, filterable: true, sortable: false }, @@ -242,12 +243,15 @@ const getReleaseList = async() => { if (!isLogin.value) { return; } + loading.value = true; const { data, error } = await releasePage({ current: pager.value.pageIndex,size: pager.value.pageSize }); if (!error && data) { - debugger + loading.value = false; allTableData.value = data.data.records; tableData.value = [...allTableData.value] pager.value.total = data.data.total; + } else { + loading.value = false; } }; @@ -285,6 +289,10 @@ const handleBatchImport = async() => { // 多个项目导入 loadingStatus.batchMigrating = false; }; +const exportResult = async() => { + +} + // 跳转 const gotoDetail = (row) => { /*TODO:如果是可使用、有风险的,点击软件版本,可跳转到软件详情页面;如果是未治理的,无法跳转*/ @@ -297,12 +305,12 @@ const gotoDetail = (row) => { }; // 分页 const changeIndex = () => { - // getGroupClaListData(); + getReleaseList(); }; const changeSize = () => { pager.value.pageIndex = 1; - // getGroupClaListData(); + getReleaseList(); }; const repoFun = (arr: any) => {