diff --git a/public/file/软件存在及可信校验模版.xlsx b/public/file/软件存在及可信校验模版.xlsx new file mode 100644 index 0000000..4d1e802 Binary files /dev/null and b/public/file/软件存在及可信校验模版.xlsx differ diff --git a/src/api/jyh/index.ts b/src/api/jyh/index.ts index e8b166a..7be5c16 100644 --- a/src/api/jyh/index.ts +++ b/src/api/jyh/index.ts @@ -1,6 +1,7 @@ import { reqCatchV2, type catchRt } from '@/utils/catch'; import request from '@/utils/request'; import * as types from '@/api/repo/types'; +import axios from 'axios'; // 详情-获取版本信息 export function releaseInfo(params: { softwareId: string }): Promise { @@ -263,3 +264,16 @@ export const getReleaseExport = (data): Promise => { }) ); } + + +// 获取AI修复建议 +export function getVulSuggestion(data) { + return axios.request({ + url: '/gateway/detect' + `/ai/vul_suggestion`, + method: 'POST', + data, + headers: { + Authorization: 'Bearer ' + localStorage.getItem('access_token'), + }, + }); +} diff --git a/src/components/AIRepair/Table.vue b/src/components/AIRepair/Table.vue index 267a41d..da570c3 100644 --- a/src/components/AIRepair/Table.vue +++ b/src/components/AIRepair/Table.vue @@ -2,6 +2,7 @@ + + + + + + + + + 漏洞特性 + {{ vulSuggestion.vulFeature || '--' }} + + + + + 漏洞描述 + {{ vulSuggestion.vulDescription || '--' }} + + + + + 升级版本 + {{ vulSuggestion.upgradeVersion || '--' }} + + + + +
+ + AI修复建议: +
+
+
    +
  • {{ info }}
  • +
+ -- +
+
+
+
+
+ 确定 + 取消 +
+
- + diff --git a/src/views/Jyh/AIRepair/index.vue b/src/views/Jyh/AIRepair/index.vue index 91d9410..0452284 100644 --- a/src/views/Jyh/AIRepair/index.vue +++ b/src/views/Jyh/AIRepair/index.vue @@ -61,7 +61,7 @@