1、列表操作栏里增加button
<el-button
type="text"
v-if="scope.row.monitorStatus == 1 && scope.row.type == 'mysql'"
@click="openMonitor(scope.row)"
>查看监控
</el-button>
2、定义openMonitor跳转按钮
methods: {
openMonitor(row){
let url = `http://xxx.xxx.xxx.xxx:3000/d/bbc/aaaa?refresh=5s&orgId=1&var-host=${row.hostName}&var-interval=$__auto_interval_interval`
window.open(url)
}
}