性能测试-全部项目-点击项目名跳转

This commit is contained in:
shiziyuan9527 2020-06-01 15:15:16 +08:00
parent 194326b11e
commit 12c6acef77
1 changed files with 13 additions and 1 deletions

View File

@ -7,7 +7,11 @@
:create-tip="btnTips" :title="title"/>
</template>
<el-table :data="items" style="width: 100%">
<el-table-column prop="name" :label="$t('commons.name')"/>
<el-table-column prop="name" :label="$t('commons.name')">
<template v-slot:default="scope">
<el-link type="info" @click="link(scope.row)">{{ scope.row.name }}</el-link>
</template>
</el-table-column>
<el-table-column prop="description" :label="$t('commons.description')"/>
<!--<el-table-column prop="workspaceName" :label="$t('project.owning_workspace')"/>-->
<el-table-column
@ -212,6 +216,14 @@
} else {
return result;
}
},
link(row) {
// performance_test project link
if (this.$route.name === 'perProject') {
this.$router.push({
path: '/performance/test/' + row.id,
})
}
}
}
}