增加 rdp vnc 监控 (#787)

Co-authored-by: Eric <xplzv@126.com>
This commit is contained in:
老广
2021-05-13 06:44:47 -05:00
committed by GitHub
parent 41bbd4a70b
commit f4f4b7ccc1

View File

@@ -40,10 +40,19 @@ export default {
title: this.$t('sessions.Monitor'),
type: 'primary',
can: (row, cellValue) => {
if (row.protocol === 'rdp' ||
row.protocol === 'vnc') {
return true
}
return row.can_join
},
callback: function({ row, tableData }) {
// 跳转到luna页面
if (row.protocol === 'rdp' || row.protocol === 'vnc') {
const rdpUrl = '/lion/monitor/?session=' + row.id
window.open(rdpUrl, '_blank', 'location=no')
return true
}
const joinUrl = '/luna/join/?shareroom=' + row.id
window.open(joinUrl, 'height=600, width=800, top=400, left=400, toolbar=no, menubar=no, scrollbars=no, location=no, status=no')
}