软件校验页面,批量导入后,点击软件名或版本有些无法点击,有些点击后跳转到空白页

This commit is contained in:
付民康
2025-03-20 17:48:12 +08:00
parent c851542fde
commit 2e46635146
2 changed files with 6 additions and 9 deletions

View File

@@ -69,8 +69,8 @@
<span>未治理</span>
</div>
</template>
<template v-else-if="column.key === 'versionName'">
<a>{{ scope.row.versionName }}</a>
<template v-if="column.key === 'versionName'">
<a @click="gotoDetail(scope.row)">{{ scope.row.versionName }}</a>
</template>
<template v-else-if="column.key === 'softwareName'">
<a @click="gotoDetail(scope.row)">{{ scope.row.softwareName }}</a>
@@ -295,13 +295,10 @@ const exportResult = async() => {
// 跳转
const gotoDetail = (row) => {
/*TODO:如果是可使用、有风险的,点击软件版本,可跳转到软件详情页面;如果是未治理的,无法跳转*/
// 后续请换成params暂时params传参没传过去
if(row.validStatus == 1 || row.validStatus == 2) {
router.push({
path: 'repoDetail/' + row.softwareVersion
});
}
router.push({
path: 'repoDetail/' + row.id
});
};
// 分页
const changeIndex = () => {

View File

@@ -33,7 +33,7 @@
<!-- 自定义列内容 -->
<template #default="scope">
<template v-if="column.key === 'versionName'">
<a>{{ scope.row.versionName }}</a>
<a @click="gotoDetail(scope.row)">{{ scope.row.versionName }}</a>
</template>
<template v-else-if="column.key === 'version'">
<a @click="gotoDetail(scope.row)">{{ scope.row.version }}</a>