软件校验页面,批量导入后,点击软件名或版本有些无法点击,有些点击后跳转到空白页
This commit is contained in:
@@ -69,8 +69,8 @@
|
|||||||
<span>未治理</span>
|
<span>未治理</span>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
<template v-else-if="column.key === 'versionName'">
|
<template v-if="column.key === 'versionName'">
|
||||||
<a>{{ scope.row.versionName }}</a>
|
<a @click="gotoDetail(scope.row)">{{ scope.row.versionName }}</a>
|
||||||
</template>
|
</template>
|
||||||
<template v-else-if="column.key === 'softwareName'">
|
<template v-else-if="column.key === 'softwareName'">
|
||||||
<a @click="gotoDetail(scope.row)">{{ scope.row.softwareName }}</a>
|
<a @click="gotoDetail(scope.row)">{{ scope.row.softwareName }}</a>
|
||||||
@@ -295,13 +295,10 @@ const exportResult = async() => {
|
|||||||
|
|
||||||
// 跳转
|
// 跳转
|
||||||
const gotoDetail = (row) => {
|
const gotoDetail = (row) => {
|
||||||
/*TODO:如果是可使用、有风险的,点击软件版本,可跳转到软件详情页面;如果是未治理的,无法跳转*/
|
|
||||||
// 后续请换成params,暂时params传参没传过去
|
// 后续请换成params,暂时params传参没传过去
|
||||||
if(row.validStatus == 1 || row.validStatus == 2) {
|
router.push({
|
||||||
router.push({
|
path: 'repoDetail/' + row.id
|
||||||
path: 'repoDetail/' + row.softwareVersion
|
});
|
||||||
});
|
|
||||||
}
|
|
||||||
};
|
};
|
||||||
// 分页
|
// 分页
|
||||||
const changeIndex = () => {
|
const changeIndex = () => {
|
||||||
|
|||||||
@@ -33,7 +33,7 @@
|
|||||||
<!-- 自定义列内容 -->
|
<!-- 自定义列内容 -->
|
||||||
<template #default="scope">
|
<template #default="scope">
|
||||||
<template v-if="column.key === 'versionName'">
|
<template v-if="column.key === 'versionName'">
|
||||||
<a>{{ scope.row.versionName }}</a>
|
<a @click="gotoDetail(scope.row)">{{ scope.row.versionName }}</a>
|
||||||
</template>
|
</template>
|
||||||
<template v-else-if="column.key === 'version'">
|
<template v-else-if="column.key === 'version'">
|
||||||
<a @click="gotoDetail(scope.row)">{{ scope.row.version }}</a>
|
<a @click="gotoDetail(scope.row)">{{ scope.row.version }}</a>
|
||||||
|
|||||||
Reference in New Issue
Block a user