节点列表增加到任务列表的链接

pull/63/head
ouqiang 2018-06-26 20:38:38 +08:00
parent 8f547b7e8d
commit 868b4ed12a
2 changed files with 19 additions and 0 deletions

View File

@ -53,6 +53,11 @@
prop="port"
label="端口">
</el-table-column>
<el-table-column label="查看任务">
<template slot-scope="scope">
<el-button type="success" @click="toTasks(scope.row)"></el-button>
</template>
</el-table-column>
<el-table-column
prop="remark"
label="备注">
@ -134,6 +139,15 @@ export default {
this.search(() => {
this.$message.success('刷新成功')
})
},
toTasks (item) {
this.$router.push(
{
path: '/task',
query: {
host_id: item.id
}
})
}
}
}

View File

@ -230,6 +230,11 @@ export default {
},
components: {taskSidebar},
created () {
const hostId = this.$route.query.host_id
if (hostId) {
this.searchParams.host_id = hostId
}
this.search()
},
filters: {