From 8c68ceb4133eeed869661bd5de0e806a8a8b85ed Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=BB=98=E6=B0=91=E5=BA=B7?= Date: Mon, 17 Mar 2025 11:16:05 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9C=AC=E5=9C=B0=E5=BC=80=E5=8F=91=E8=B7=A8?= =?UTF-8?q?=E5=9F=9F=E9=85=8D=E7=BD=AE=EF=BC=8C=E7=89=88=E6=9C=AC=E4=BF=A1?= =?UTF-8?q?=E6=81=AF=E9=A1=B5=E9=9D=A2=E6=8E=A5=E5=8F=A3=E5=AF=B9=E6=8E=A5?= =?UTF-8?q?Mock=E6=95=B0=E6=8D=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .env.development | 4 +- src/api/jyh/index.ts | 10 ++ src/views/Jyh/Version/Detail/VersionInfo.vue | 136 ++++++++++++------- vite.config.ts | 8 ++ 4 files changed, 108 insertions(+), 50 deletions(-) create mode 100644 src/api/jyh/index.ts diff --git a/.env.development b/.env.development index b145036..5e73aa7 100644 --- a/.env.development +++ b/.env.development @@ -5,10 +5,10 @@ VITE_ENV = 'development' VITE_HOST = 'https://test.gitcode.net' # 接口地址 -VITE_API_HOST = 'https://test.gitcode.net' +VITE_API_HOST = '/official' # devPress接口地址 -VITE_DEV_API_HOST = 'https://test.gitcode.net' +VITE_DEV_API_HOST = '/official' # devPress地址 VITE_DEV_HOST = 'https://test.gitcode.net' diff --git a/src/api/jyh/index.ts b/src/api/jyh/index.ts new file mode 100644 index 0000000..8f87160 --- /dev/null +++ b/src/api/jyh/index.ts @@ -0,0 +1,10 @@ +import request from '@/utils/request'; + +// 详情-获取版本信息 +export function releaseInfo(params: { repoId: string,releaseId: string }): Promise { + const { repoId,releaseId } = params; + return request({ + url: `/api/v1/repo/release/info?repo_id=${repoId}&releaseId=${releaseId}`, + method: 'get' + }); +} diff --git a/src/views/Jyh/Version/Detail/VersionInfo.vue b/src/views/Jyh/Version/Detail/VersionInfo.vue index 8647e44..73a8dde 100644 --- a/src/views/Jyh/Version/Detail/VersionInfo.vue +++ b/src/views/Jyh/Version/Detail/VersionInfo.vue @@ -5,29 +5,29 @@ 软件名称 - vue + {{ ReleaseInfo.basicInfo.softwareName || '--' }} 软件版本 - 3.5.13 + {{ ReleaseInfo.basicInfo.softwareVersion || '--' }} 主语言类型 - JavaScript + {{ ReleaseInfo.basicInfo.mainLanguageType || '--' }} 开发商 - vue + {{ ReleaseInfo.basicInfo.developer || '--' }} 发布时间 - 2023/08/05 + {{ ReleaseInfo.basicInfo.releaseDate || '--' }} 版本描述 - 0583594425 + {{ ReleaseInfo.basicInfo.versionDescription || '--' }} @@ -37,25 +37,27 @@ 集成风险 - + {{ ReleaseInfo.referenceInfo.integrationRisk || '--' }} 代码量(KL) - 10.259 + {{ ReleaseInfo.referenceInfo.codeQuantity || '--' }} 漏洞数量 - 9 + + {{ ReleaseInfo.referenceInfo.vulnerabilityCount || '--' }} + 社区EOL日期 - 2023/08/05 + {{ ReleaseInfo.referenceInfo.communityEolDate || '--' }} 所属领域/产业 - CleanSource + {{ ReleaseInfo.referenceInfo.industry || '--' }} @@ -65,19 +67,19 @@ 源码下载包地址 - https://designcloud.uiplus.huawei.com/developer/main/index.html + {{ ReleaseInfo.referenceInfo.sourceCodeDownloadUrl || '--' }} 源码社区托管地址 - https://designcloud.uiplus.huawei.com/developer/main/index.html + {{ ReleaseInfo.referenceInfo.sourceCodeCommunityUrl || '--' }} 社区EOL披露地址 - https://designcloud.uiplus.huawei.com/developer/main/index.html + {{ ReleaseInfo.referenceInfo.communityEolDisclosureUrl || '--' }} @@ -89,20 +91,20 @@ - + - - + + - - - 主License分析报告 - https://designcloud.uiplus.huawei.com/developer/main/index.html - - + + + + + +
Copyright报告
@@ -110,10 +112,14 @@ - - + + + + @@ -130,19 +136,19 @@ - - + + - - - + + + @@ -154,13 +160,13 @@ 软件评分 - -- + {{ ReleaseInfo.networkSecurity.softwareRating || '--' }} - 社区安全问题求助渠道 - https://designcloud.uiplus.huawei.com/developer/main/index.html + 社区安全问题求助 + {{ ReleaseInfo.networkSecurity.communitySecurityHelpChannel || '--' }}
@@ -169,10 +175,17 @@ style="display: contents" class="jyh-table jyh-table-2" :header-bg="true" - :data="CopyrightTableData" + :data="ReleaseInfo.networkSecurity.officialVulnerabilityDisclosureList" > - - + + + + + + +
@@ -181,23 +194,29 @@ style="display: contents" class="jyh-table jyh-table-2" :header-bg="true" - :data="CopyrightTableData" + :data="ReleaseInfo.networkSecurity.externalVulnerabilityList" > - - - + + + + + + +
是否涉及用户登录 - 不涉及 + {{ ReleaseInfo.networkSecurity.isInvolvedUserLogin || '--' }} 兼容性风险描述 - + {{ ReleaseInfo.networkSecurity.compatibilityRiskDescription || '--' }}
@@ -269,11 +288,12 @@