许可证信息页面更新
This commit is contained in:
@@ -101,8 +101,8 @@ const getList = async () => {
|
|||||||
});
|
});
|
||||||
if (!res.error) {
|
if (!res.error) {
|
||||||
console.log(res);
|
console.log(res);
|
||||||
list.value = res.data.data.data.records;
|
list.value = res.data.data.records;
|
||||||
pager.value.total = res.data.data.data.total;
|
pager.value.total = res.data.data.total;
|
||||||
} else {
|
} else {
|
||||||
list.value = [];
|
list.value = [];
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -7,8 +7,16 @@
|
|||||||
{{ dayjs(scope.row.updateTime).format('YYYY-MM-DD HH:mm:ss') }}
|
{{ dayjs(scope.row.updateTime).format('YYYY-MM-DD HH:mm:ss') }}
|
||||||
</template>
|
</template>
|
||||||
</d-column>
|
</d-column>
|
||||||
<d-column field="name" header="软件名称"></d-column>
|
<d-column field="softwareName" header="软件名称">
|
||||||
<d-column field="releaseId" header="版本号"></d-column>
|
<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 field="username" header="订阅人"></d-column>
|
||||||
<d-column header="操作" width="100">
|
<d-column header="操作" width="100">
|
||||||
<template #default="scope">
|
<template #default="scope">
|
||||||
@@ -37,12 +45,23 @@ import { onMounted, ref } from 'vue';
|
|||||||
import dayjs from 'dayjs';
|
import dayjs from 'dayjs';
|
||||||
import { getgroupNoticeList, getGroupSubscribeList, getSubscribeList, subscribeSoftware } from '@/api/jyh';
|
import { getgroupNoticeList, getGroupSubscribeList, getSubscribeList, subscribeSoftware } from '@/api/jyh';
|
||||||
import NoData from '@/components/NoData/NoData.vue';
|
import NoData from '@/components/NoData/NoData.vue';
|
||||||
|
import { useRouter } from 'vue-router';
|
||||||
const tableData = ref([]);
|
const tableData = ref([]);
|
||||||
const hidden = () => {
|
const hidden = () => {
|
||||||
// 模拟body点击操作
|
// 模拟body点击操作
|
||||||
document.querySelector('body')?.click();
|
document.querySelector('body')?.click();
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
|
const router = useRouter();
|
||||||
|
// 跳转
|
||||||
|
const gotoDetail = (row) => {
|
||||||
|
// 后续请换成params,暂时params传参没传过去
|
||||||
|
router.push({
|
||||||
|
path: 'repoDetail/' + row.id
|
||||||
|
});
|
||||||
|
};
|
||||||
|
|
||||||
const pager = ref({
|
const pager = ref({
|
||||||
total: 0,
|
total: 0,
|
||||||
pageIndex: 1,
|
pageIndex: 1,
|
||||||
|
|||||||
@@ -7,8 +7,16 @@
|
|||||||
{{ dayjs(scope.row.updateTime).format('YYYY-MM-DD HH:mm:ss') }}
|
{{ dayjs(scope.row.updateTime).format('YYYY-MM-DD HH:mm:ss') }}
|
||||||
</template>
|
</template>
|
||||||
</d-column>
|
</d-column>
|
||||||
<d-column field="name" header="软件名称"></d-column>
|
<d-column field="softwareName" header="软件名称">
|
||||||
<d-column field="releaseId" header="版本号"></d-column>
|
<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 field="username" header="订阅人"></d-column>
|
||||||
<d-column header="操作" width="100">
|
<d-column header="操作" width="100">
|
||||||
<template #default="scope">
|
<template #default="scope">
|
||||||
@@ -37,12 +45,23 @@ import { onMounted, ref } from 'vue';
|
|||||||
import dayjs from 'dayjs';
|
import dayjs from 'dayjs';
|
||||||
import { getgroupNoticeList, getGroupSubscribeList, getSubscribeList, subscribeSoftware } from '@/api/jyh';
|
import { getgroupNoticeList, getGroupSubscribeList, getSubscribeList, subscribeSoftware } from '@/api/jyh';
|
||||||
import NoData from '@/components/NoData/NoData.vue';
|
import NoData from '@/components/NoData/NoData.vue';
|
||||||
|
import { useRouter } from 'vue-router';
|
||||||
const tableData = ref([]);
|
const tableData = ref([]);
|
||||||
const hidden = () => {
|
const hidden = () => {
|
||||||
// 模拟body点击操作
|
// 模拟body点击操作
|
||||||
document.querySelector('body')?.click();
|
document.querySelector('body')?.click();
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
|
const router = useRouter();
|
||||||
|
// 跳转
|
||||||
|
const gotoDetail = (row) => {
|
||||||
|
// 后续请换成params,暂时params传参没传过去
|
||||||
|
router.push({
|
||||||
|
path: 'repoDetail/' + row.id
|
||||||
|
});
|
||||||
|
};
|
||||||
|
|
||||||
const pager = ref({
|
const pager = ref({
|
||||||
total: 0,
|
total: 0,
|
||||||
pageIndex: 1,
|
pageIndex: 1,
|
||||||
|
|||||||
@@ -4,7 +4,8 @@
|
|||||||
<div class="vuln-sub-title mb-3">
|
<div class="vuln-sub-title mb-3">
|
||||||
<span>{{ vulnDetail.cweId || '--' }}</span>
|
<span>{{ vulnDetail.cweId || '--' }}</span>
|
||||||
<span class="split-line"></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>
|
</div>
|
||||||
<Card simple class="jyh-card mb-4">
|
<Card simple class="jyh-card mb-4">
|
||||||
<div class="card-title">漏洞名称</div>
|
<div class="card-title">漏洞名称</div>
|
||||||
@@ -131,7 +132,8 @@
|
|||||||
<script setup lang="ts">
|
<script setup lang="ts">
|
||||||
import { getVulnDetail } from '@/api/jyh';
|
import { getVulnDetail } from '@/api/jyh';
|
||||||
import { ref,defineProps } from 'vue';
|
import { ref,defineProps } from 'vue';
|
||||||
|
import { useTimeFormat } from '@/utils/hooks/useTimeFormat';
|
||||||
|
const { formatTime } = useTimeFormat();
|
||||||
const propsData = defineProps(['softwareId', 'vulnId', 'vulnInfo']);
|
const propsData = defineProps(['softwareId', 'vulnId', 'vulnInfo']);
|
||||||
const vulnDetail = ref({});
|
const vulnDetail = ref({});
|
||||||
const componentInfo = ref({});
|
const componentInfo = ref({});
|
||||||
|
|||||||
Reference in New Issue
Block a user