可信代码库-智能匹配列表点击软件名称跳转到对应详情页

This commit is contained in:
付民康
2025-04-27 15:26:16 +08:00
parent 89e39bbf52
commit b083c63c3a

View File

@@ -69,18 +69,20 @@
<span>未治理</span>
</div>
</template>
<!-- <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>-->
<!-- </template>-->
<!-- <template v-else-if="column.key === 'softwareVersion'">-->
<!-- <a @click="gotoDetail(scope.row)">{{ scope.row.softwareVersion }}</a>-->
<!-- </template>-->
<!-- <template v-else-if="column.key === 'versionCode'">-->
<!-- <a @click="gotoDetail(scope.row)">{{ scope.row.versionCode }}</a>-->
<!-- </template>-->
<template v-else-if="column.key === 'versionName'">
<a @click="gotoDetail(scope.row)">{{ scope.row.versionName }}</a>
</template>
<template v-else-if="column.key === 'softwareName'">
<a v-if="scope.row.validStatus===1" @click="gotoDetail(scope.row)">{{ scope.row.softwareName }}</a>
<span v-else>{{ scope.row.softwareName }}</span>
</template>
<template v-else-if="column.key === 'softwareVersion'">
<a v-if="scope.row.validStatus===1" @click="gotoDetail(scope.row)">{{ scope.row.softwareVersion }}</a>
<span v-else>{{ scope.row.softwareVersion }}</span>
</template>
<template v-else-if="column.key === 'versionCode'">
<a @click="gotoDetail(scope.row)">{{ scope.row.versionCode }}</a>
</template>
<template v-else-if="column.key === 'smStatus'">
<a>{{ scope.row.smStatus }}</a>
</template>
@@ -404,7 +406,7 @@ const exportResult = () => {
const gotoDetail = (row) => {
// 后续请换成params暂时params传参没传过去
router.push({
path: 'repoDetail/' + row.id
path: 'repoDetail/' + row.softwareId
});
};
// 分页