diff --git a/src/api/jyh/index.ts b/src/api/jyh/index.ts
index 17a2f74..afa90af 100644
--- a/src/api/jyh/index.ts
+++ b/src/api/jyh/index.ts
@@ -107,15 +107,11 @@ export function getRepairInfo(data) {
}
// 获取许可证列表
-export function getLicenseList() {
+export function getLicenseList(data) {
return request({
url: '/api/v1/repo/license/info',
method: 'POST',
- data: {
- "current": 1,
- "size": 10,
- "softwareId": 47
- }
+ data
});
}
diff --git a/src/views/Jyh/AIRepair/index.vue b/src/views/Jyh/AIRepair/index.vue
index 6100d82..2bae3eb 100644
--- a/src/views/Jyh/AIRepair/index.vue
+++ b/src/views/Jyh/AIRepair/index.vue
@@ -154,8 +154,8 @@ const getInfo = async() => {
const { data } = await getRepairInfo({
"current": 1,
"size": 10,
- "softwareId": 47,
- // softwareId: propsData.versionId,
+ // "softwareId": 47,
+ softwareId: propsData.versionId,
});
debugger
if(data.code===200) {
diff --git a/src/views/Jyh/LicenseInfo/index.vue b/src/views/Jyh/LicenseInfo/index.vue
index 04de5c9..ee54293 100644
--- a/src/views/Jyh/LicenseInfo/index.vue
+++ b/src/views/Jyh/LicenseInfo/index.vue
@@ -44,10 +44,11 @@
diff --git a/src/views/Jyh/Version/Detail/VersionInfo.vue b/src/views/Jyh/Version/Detail/VersionInfo.vue
index 118f4c7..384668c 100644
--- a/src/views/Jyh/Version/Detail/VersionInfo.vue
+++ b/src/views/Jyh/Version/Detail/VersionInfo.vue
@@ -57,7 +57,7 @@
所属领域/产业
- {{ ReleaseInfo.referenceInfo.industry || '--' }}
+ {{ getIndustryName(ReleaseInfo.referenceInfo.industry) || '--' }}
@@ -294,6 +294,7 @@ import { discussDetailType, userInfoType } from '@/api/discussion/types';
import { Message } from 'vue-devui/message';
import { useClipboard } from '@vueuse/core/index';
import { releaseInfo } from '@/api/jyh';
+import { useGlobalInfoStore } from '@/stores/Global';
const route = useRoute();
const emits = defineEmits(['changeTabs']);
@@ -313,6 +314,12 @@ const ReleaseInfo = ref({
openSourceLicenseList: [],
referenceInfo: {},
});
+const globalInfo = useGlobalInfoStore();
+const industryList = ref(globalInfo.industryList);
+const getIndustryName = (value) => {
+ const industry = industryList.value.find(item => item.value === value);
+ return industry ? industry.name : '未知行业'; // 如果找不到,返回默认值
+};
const router = useRouter();
diff --git a/src/views/Jyh/Version/Detail/index.vue b/src/views/Jyh/Version/Detail/index.vue
index 4aacd2e..7ce9897 100644
--- a/src/views/Jyh/Version/Detail/index.vue
+++ b/src/views/Jyh/Version/Detail/index.vue
@@ -15,7 +15,7 @@
- 软件评分:{{ ReleaseInfo.networkSecurity.softwareRating || '--' }}
+ 软件评分:{{ ReleaseInfo.networkSecurity.softwareRating || ReleaseInfo.basicInfo.securityScore || '--' }}
集成风险:
{{ ReleaseInfo.referenceInfo.integrationRisk || '--' }}
@@ -87,6 +87,7 @@ const ReleaseInfo = ref({
referenceInfo: {},
});
const versionId = route.params.versionId; // 获取路由参数 versionId
+const jcfxList = ['','低','中','高'];
const getReleaseInfo = async(versionId) => {
const { data, error } = await releaseInfo({ softwareId: versionId });