mirror of
https://github.com/jumpserver/lina.git
synced 2026-01-14 11:55:34 +00:00
* perf: 创建系统用户时需选择协议 * feat: 添加action groups * perf: 优化创建的按钮 Co-authored-by: Orange <orangemtony@gmail.com> Co-authored-by: ibuler <ibuler@qq.com>
53 lines
1016 B
Vue
53 lines
1016 B
Vue
<template>
|
|
<component :is="activePage" />
|
|
</template>
|
|
|
|
<script>
|
|
import SSH from './SystemUserCreate/ssh'
|
|
import RDP from './SystemUserCreate/rdp'
|
|
import VncAndTelnet from './SystemUserCreate/vncAndTelnet'
|
|
import DATABASE from './SystemUserCreate/database'
|
|
import K8S from './SystemUserCreate/k8s'
|
|
|
|
export default {
|
|
name: 'SystemUserCreateUpdate',
|
|
components: { SSH, RDP, VncAndTelnet, DATABASE },
|
|
data() {
|
|
return {
|
|
|
|
}
|
|
},
|
|
method: {
|
|
|
|
},
|
|
computed: {
|
|
activePage() {
|
|
const query = this.$route.query
|
|
const protocol = query.protocol
|
|
switch (protocol) {
|
|
case 'ssh':
|
|
return SSH
|
|
case 'rdp':
|
|
return RDP
|
|
case 'vnc':
|
|
case 'telnet':
|
|
return VncAndTelnet
|
|
case 'mysql':
|
|
case 'oracle':
|
|
case 'postgresql':
|
|
case 'mariadb':
|
|
return DATABASE
|
|
case 'k8s':
|
|
return K8S
|
|
default:
|
|
return SSH
|
|
}
|
|
}
|
|
}
|
|
}
|
|
</script>
|
|
|
|
<style lang='less' scoped>
|
|
|
|
</style>
|