From d0e6d56624a29b685c7a631063fdd650dde47dc3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=BB=98=E6=B0=91=E5=BA=B7?= Date: Tue, 25 Mar 2025 17:49:05 +0800 Subject: [PATCH] =?UTF-8?q?=E4=B8=80=E4=BA=9B=E6=98=BE=E7=A4=BA=E9=97=AE?= =?UTF-8?q?=E9=A2=98=E4=BF=AE=E5=A4=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/ChartLine/index.vue | 2 +- src/views/Jyh/Version/Detail/VersionInfo.vue | 17 ++++++----------- 2 files changed, 7 insertions(+), 12 deletions(-) diff --git a/src/components/ChartLine/index.vue b/src/components/ChartLine/index.vue index b423425..8f7d0d9 100644 --- a/src/components/ChartLine/index.vue +++ b/src/components/ChartLine/index.vue @@ -39,7 +39,7 @@ const options = (x: any, y: any, color = '#2070F3') => { data: x, axisLabel: { interval: 0, // 强制显示所有标签 - rotate: 45, // 如果标签过长,可以旋转标签 + // rotate: 45, // 如果标签过长,可以旋转标签 fontSize: 12 // 调整字体大小 } }, diff --git a/src/views/Jyh/Version/Detail/VersionInfo.vue b/src/views/Jyh/Version/Detail/VersionInfo.vue index 1edcb15..4bf26fd 100644 --- a/src/views/Jyh/Version/Detail/VersionInfo.vue +++ b/src/views/Jyh/Version/Detail/VersionInfo.vue @@ -37,7 +37,8 @@ 集成风险 - {{ ReleaseInfo.referenceInfo.integrationRisk || '--' }} + {{ jcfxList[ReleaseInfo.referenceInfo.integrationRisk || ReleaseInfo.basicInfo.integrationRiskLevel] || '--' }} + 代码量(L) @@ -67,25 +68,19 @@ 源码下载包地址 - {{ - ReleaseInfo.referenceInfo.sourceCodeDownloadUrl || '--' - }} + {{ ReleaseInfo.referenceInfo.sourceCodeDownloadUrl || ReleaseInfo.basicInfo.sourceDownloadUrl || '--' }} 源码社区托管地址 - {{ - ReleaseInfo.referenceInfo.sourceCodeCommunityUrl || '--' - }} + {{ ReleaseInfo.referenceInfo.sourceCodeCommunityUrl || ReleaseInfo.basicInfo.communityWebsite || '--' }} 社区EOL披露地址 - {{ - ReleaseInfo.referenceInfo.communityEolDisclosureUrl || '--' - }} + {{ ReleaseInfo.referenceInfo.communityEolDisclosureUrl || ReleaseInfo.basicInfo.eolNoticeUrl || '--' }} @@ -243,7 +238,7 @@ const emits = defineEmits(['changeTabs']); const handleTabChange = (tabName) => { emits('changeTabs', tabName); // 触发 changeTabs 事件,并传递参数 }; - +const jcfxList = ['','低','中','高']; const licenseTableData = ref([{ code: '05822156', name: 'MIT License', detail: 'integer' }]); const CopyrightTableData = ref([{ code: '05822156', detail: 'integer' }]); const visible = ref(false);