Skip to content

Commit

Permalink
fix link (#31)
Browse files Browse the repository at this point in the history
Co-authored-by: natashaamin <[email protected]>
  • Loading branch information
tch1001 and natashaamin authored Oct 13, 2022
1 parent fc6a801 commit 0b24fb8
Showing 1 changed file with 7 additions and 10 deletions.
17 changes: 7 additions & 10 deletions src/components/ProjectList.vue
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,16 @@
<el-table-column
v-for="column in columns"
:key="column.prop"
:prop="column.prop"
:label="column.label"
:prop="column.prop"
:formatter="column.formatter"
:min-width="column.minWidth"
>
<template v-slot="scope" v-if="column.prop === 'project_name'">
<a :href="'/project/' + `${scope.row.project.uid}`">{{
scope.row.project.name
}}</a>
</template>
</el-table-column>
<el-table-column fixed="right" label="Operations">
<template #header>
Expand Down Expand Up @@ -88,14 +93,7 @@
color: blue;
}
.el-table .warning-row {
background: red;
font-weight: bold;
}
.el-table tr:nth-child(odd) {
background-color: #845353;
}
</style>

<script lang="ts">
Expand Down Expand Up @@ -132,9 +130,8 @@ export default defineComponent({
table,
columns: [
{
prop: "project.name",
prop: "project_name",
label: "Project",
minWidth: "100px",
},
{
prop: "project.description",
Expand Down

0 comments on commit 0b24fb8

Please sign in to comment.