mirror of https://github.com/ouqiang/gocron
节点列表增加到任务列表的链接
parent
8f547b7e8d
commit
868b4ed12a
|
@ -53,6 +53,11 @@
|
||||||
prop="port"
|
prop="port"
|
||||||
label="端口">
|
label="端口">
|
||||||
</el-table-column>
|
</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
|
<el-table-column
|
||||||
prop="remark"
|
prop="remark"
|
||||||
label="备注">
|
label="备注">
|
||||||
|
@ -134,6 +139,15 @@ export default {
|
||||||
this.search(() => {
|
this.search(() => {
|
||||||
this.$message.success('刷新成功')
|
this.$message.success('刷新成功')
|
||||||
})
|
})
|
||||||
|
},
|
||||||
|
toTasks (item) {
|
||||||
|
this.$router.push(
|
||||||
|
{
|
||||||
|
path: '/task',
|
||||||
|
query: {
|
||||||
|
host_id: item.id
|
||||||
|
}
|
||||||
|
})
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -230,6 +230,11 @@ export default {
|
||||||
},
|
},
|
||||||
components: {taskSidebar},
|
components: {taskSidebar},
|
||||||
created () {
|
created () {
|
||||||
|
const hostId = this.$route.query.host_id
|
||||||
|
if (hostId) {
|
||||||
|
this.searchParams.host_id = hostId
|
||||||
|
}
|
||||||
|
|
||||||
this.search()
|
this.search()
|
||||||
},
|
},
|
||||||
filters: {
|
filters: {
|
||||||
|
|
Loading…
Reference in New Issue