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

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