可信代码库-软件详情恶意代码检测显示修改、AI大模型猜你想问显示修改

This commit is contained in:
付民康
2025-07-08 16:16:28 +08:00
parent 5b8b76ea23
commit 4bc7f2f273
3 changed files with 72 additions and 70 deletions

View File

@@ -1,6 +1,6 @@
<template>
<div class="guess-you-want-to-ask-card">
<div class="card-title">
<div v-if="questions.length>0" class="card-title">
<img src="@/assets/imgs/jyh/ai/icon_cnxw.png" style="width: 20px;height: 20px;margin-right: 8px"></img>
<span>猜你想问</span>
<d-button @click="changeQuestions" class="jyh-button1" variant="solid">

View File

@@ -753,7 +753,4 @@ const exportResult = async () => {
background: #ffffff;
}
:deep(.devui-progress) {
width: 150px;
}
</style>

View File

@@ -18,7 +18,7 @@
max-height="600px"
@sort-change="sortChange"
>
<d-column type="index" width="48px" />
<d-column header="" type="index" width="48px" />
<!-- <d-column field="packageFullName" width="220px">-->
<!-- <template #header>-->
<!-- 文件名称-->
@@ -46,11 +46,11 @@
</template>
</d-column>
<d-column field="packagePath" header="文件路径" width="180" show-overflow-tooltip/>
<d-column field="packageVersion" header="文件版本号" show-overflow-tooltip/>
<d-column field="llmName" header="LLM名称" show-overflow-tooltip/>
<d-column field="totalApisCalledCount" header="敏感API总数" show-overflow-tooltip/>
<d-column field="suspiciousFilesCount" header="可疑文件总数" show-overflow-tooltip/>
<d-column field="isMalicious" header="是否恶意代码">
<!-- <d-column field="packageVersion" header="文件版本号" show-overflow-tooltip/>-->
<!-- <d-column field="llmName" header="LLM名称" show-overflow-tooltip/>-->
<!-- <d-column field="totalApisCalledCount" header="敏感API总数" show-overflow-tooltip/>-->
<!-- <d-column field="suspiciousFilesCount" header="可疑文件总数" show-overflow-tooltip/>-->
<d-column field="isMalicious" header="是否存在恶意代码" width="180">
<template #default="scope">
<span class="card-val" v-if="scope.row.isMalicious===0">
<d-tag color="#5e7ce0" size="sm">否</d-tag>
@@ -60,17 +60,21 @@
</span>
</template>
</d-column>
<d-column field="isModelResponded" header="大模型是否正常回复" width="180">
<d-column field="isModelResponded" header="大模型验证状态" width="180">
<template #default="scope">
<span class="card-val" v-if="scope.row.isModelResponded===0">
<d-tag color="#5e7ce0" size="sm"></d-tag>
<d-tag color="#5e7ce0" size="sm">未验证</d-tag>
</span>
<span class="card-val" v-else>
<d-tag color="#c7000b" size="sm"></d-tag>
<d-tag color="#c7000b" size="sm">已验证</d-tag>
</span>
</template>
</d-column>
<d-column field="createTime" header="检测时间" width="180" show-overflow-tooltip/>
<d-column field="createTime" header="检测时间" width="180">
<template #default="scope">
{{scope.row.createTime?dayjs(scope.row.createTime).format('YYYY-MM-DD HH:mm:ss'):''}}
</template>
</d-column>
<!-- <d-column field="threatLevel">-->
<!-- <template #header>-->
<!-- 威胁级别-->
@@ -136,6 +140,7 @@ import { getMalwareListApi } from '@/api/inboundTask/inboundTaskApi';
import { type MalwareListItemType } from '@/api/inboundTask/inboundTaskType';
import { Message } from 'vue-devui/message';
import { useRoute } from 'vue-router';
import dayjs from 'dayjs';
enum ThreatLevelEnum {
HIGH = 'high',