可信代码库-软件列表软件详情可信度评分展示修改、登录注册展示修改

This commit is contained in:
付民康
2025-07-05 16:23:36 +08:00
parent a22d909b3a
commit 5c99b45376
5 changed files with 39 additions and 28 deletions

View File

@@ -123,15 +123,18 @@
</template>
<template v-else-if="column.key === 'securityScore'">
<!-- <a @click="gotoDetail(scope.row)" style="-->
<a style="
font-weight: bold;
color: #409EFF;
font-size: 16px;
">{{ scope.row.securityScore }}</a>
<!-- <a style="-->
<!-- font-weight: bold;-->
<!-- color: #409EFF;-->
<!-- font-size: 16px;-->
<!-- ">{{ scope.row.securityScore }}</a>-->
<d-popover :content="scope.row.securityScore || '&#45;&#45;'" trigger="hover" style="background-color: #7693f5; color: #fff">
<d-tag color="#ef4444">{{ '非常重要' || '--' }}</d-tag>
</d-popover>
</template>
<template v-else-if="column.key === 'trustScore'">
<d-popover :content="scope.row.trustScore || '&#45;&#45;'" trigger="hover" style="background-color: #7693f5; color: #fff">
<d-tag color="#ef4444">{{ '非常重要' || '--' }}</d-tag>
<d-tag color="#ef4444">{{ '高度可信' || '--' }}</d-tag>
</d-popover>
</template>
<template v-else-if="column.key === 'releaseDate'">
@@ -303,7 +306,7 @@ const openDelete = (row: any) => {
const defultColumns = ref([
{ key: 'softwareName', label: '软件名称', visible: true, filterable: true, sortable: false },
{ key: 'softwareVersion', label: '软件版本', visible: true, filterable: true, sortable: false },
{ key: 'trustScore', label: '软件可信评分', visible: false, filterable: false, sortable: true, tooltip: true },
{ key: 'trustScore', label: '软件可信评分', visible: true, filterable: false, sortable: true, tooltip: true },
{ key: 'securityScore', label: '软件重要性评分', visible: true, filterable: false, sortable: true },
{ key: 'licenseNum', label: 'License数量', visible: true, filterable: false, sortable: false,width: 140 },
{ key: 'industryCategory', label: '行业类型', visible: true, filterable: true, sortable: false },
@@ -334,7 +337,7 @@ const defultColumns = ref([
const columns = ref([
{ key: 'softwareName', label: '软件名称', visible: true, filterable: true, sortable: false },
{ key: 'softwareVersion', label: '软件版本', visible: true, filterable: true, sortable: false },
{ key: 'trustScore', label: '软件可信评分', visible: false, filterable: false, sortable: true, tooltip: true },
{ key: 'trustScore', label: '软件可信评分', visible: true, filterable: false, sortable: true, tooltip: true },
{ key: 'securityScore', label: '软件重要性评分', visible: true, filterable: false, sortable: true },
{ key: 'licenseNum', label: 'License数量', visible: true, filterable: false, sortable: false,width: 140 },
{ key: 'industryCategory', label: '行业类型', visible: true, filterable: true, sortable: false },