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 @@