许可证信息页面更新

This commit is contained in:
付民康
2025-03-27 14:23:57 +08:00
parent f6f85a471c
commit 4310a82387
4 changed files with 48 additions and 8 deletions

View File

@@ -101,8 +101,8 @@ const getList = async () => {
});
if (!res.error) {
console.log(res);
list.value = res.data.data.data.records;
pager.value.total = res.data.data.data.total;
list.value = res.data.data.records;
pager.value.total = res.data.data.total;
} else {
list.value = [];
}

View File

@@ -7,8 +7,16 @@
{{ dayjs(scope.row.updateTime).format('YYYY-MM-DD HH:mm:ss') }}
</template>
</d-column>
<d-column field="name" header="软件名称"></d-column>
<d-column field="releaseId" header="版本号"></d-column>
<d-column field="softwareName" header="软件名称">
<template #default="scope">
<a @click="gotoDetail(scope.row)">{{ scope.row.softwareName }}</a>
</template>
</d-column>
<d-column field="softwareVersion" header="版本号">
<template #default="scope">
<a @click="gotoDetail(scope.row)">{{ scope.row.softwareVersion }}</a>
</template>
</d-column>
<d-column field="username" header="订阅人"></d-column>
<d-column header="操作" width="100">
<template #default="scope">
@@ -37,12 +45,23 @@ import { onMounted, ref } from 'vue';
import dayjs from 'dayjs';
import { getgroupNoticeList, getGroupSubscribeList, getSubscribeList, subscribeSoftware } from '@/api/jyh';
import NoData from '@/components/NoData/NoData.vue';
import { useRouter } from 'vue-router';
const tableData = ref([]);
const hidden = () => {
// 模拟body点击操作
document.querySelector('body')?.click();
};
const router = useRouter();
// 跳转
const gotoDetail = (row) => {
// 后续请换成params暂时params传参没传过去
router.push({
path: 'repoDetail/' + row.id
});
};
const pager = ref({
total: 0,
pageIndex: 1,

View File

@@ -7,8 +7,16 @@
{{ dayjs(scope.row.updateTime).format('YYYY-MM-DD HH:mm:ss') }}
</template>
</d-column>
<d-column field="name" header="软件名称"></d-column>
<d-column field="releaseId" header="版本号"></d-column>
<d-column field="softwareName" header="软件名称">
<template #default="scope">
<a @click="gotoDetail(scope.row)">{{ scope.row.softwareName }}</a>
</template>
</d-column>
<d-column field="softwareVersion" header="版本号">
<template #default="scope">
<a @click="gotoDetail(scope.row)">{{ scope.row.softwareVersion }}</a>
</template>
</d-column>
<d-column field="username" header="订阅人"></d-column>
<d-column header="操作" width="100">
<template #default="scope">
@@ -37,12 +45,23 @@ import { onMounted, ref } from 'vue';
import dayjs from 'dayjs';
import { getgroupNoticeList, getGroupSubscribeList, getSubscribeList, subscribeSoftware } from '@/api/jyh';
import NoData from '@/components/NoData/NoData.vue';
import { useRouter } from 'vue-router';
const tableData = ref([]);
const hidden = () => {
// 模拟body点击操作
document.querySelector('body')?.click();
};
const router = useRouter();
// 跳转
const gotoDetail = (row) => {
// 后续请换成params暂时params传参没传过去
router.push({
path: 'repoDetail/' + row.id
});
};
const pager = ref({
total: 0,
pageIndex: 1,

View File

@@ -4,7 +4,8 @@
<div class="vuln-sub-title mb-3">
<span>{{ vulnDetail.cweId || '--' }}</span>
<span class="split-line"></span>
<span><span class="release-time">发布时间</span>{{ vulnDetail.publishDate || '--' }}</span>
<span><span class="release-time">发布时间</span>
{{ formatTime(vulnDetail?.publishDate, 'YYYY-MM-DD') }}</span>
</div>
<Card simple class="jyh-card mb-4">
<div class="card-title">漏洞名称</div>
@@ -131,7 +132,8 @@
<script setup lang="ts">
import { getVulnDetail } from '@/api/jyh';
import { ref,defineProps } from 'vue';
import { useTimeFormat } from '@/utils/hooks/useTimeFormat';
const { formatTime } = useTimeFormat();
const propsData = defineProps(['softwareId', 'vulnId', 'vulnInfo']);
const vulnDetail = ref({});
const componentInfo = ref({});