Skip to content

Commit

Permalink
优化任务页面显示:github项目添加跳转链接
Browse files Browse the repository at this point in the history
  • Loading branch information
l3yx committed Dec 21, 2023
1 parent f54fc7f commit 3122dcc
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion web/src/views/Task.vue
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,18 @@
/>
</template>
</el-table-column>
<el-table-column prop="ProjectName" label="项目名" sortable="custom"/>
<el-table-column prop="ProjectName" label="项目名" sortable="custom">
<template #default="scope">
<el-link
v-if="scope.row.ProjectOwner && scope.row.ProjectRepo"
type="primary" :href="'https://github.com/'+scope.row.ProjectOwner+'/'+scope.row.ProjectRepo"
target="_blank">{{scope.row.ProjectName}}</el-link>

<span v-if="!(scope.row.ProjectOwner && scope.row.ProjectRepo)">
{{scope.row.ProjectName}}
</span>
</template>
</el-table-column>
<el-table-column prop="ProjectLanguage" label="语言" sortable="custom"/>
<el-table-column prop="ProjectMode" :formatter="modeFormatter" label="扫描对象" sortable="custom"/>
<el-table-column prop="Versions" label="扫描版本" width="100px">
Expand Down

0 comments on commit 3122dcc

Please sign in to comment.