mirror of
https://github.com/jumpserver/lina.git
synced 2026-01-15 14:24:39 +00:00
77 lines
1.5 KiB
Vue
77 lines
1.5 KiB
Vue
<template>
|
|
<IBox>
|
|
<GenericCreateUpdateForm v-bind="$data" />
|
|
</IBox>
|
|
</template>
|
|
<script>
|
|
import IBox from '@/components/IBox'
|
|
import { GenericCreateUpdateForm } from '@/layout/components'
|
|
|
|
export default {
|
|
name: 'Terminal',
|
|
components: {
|
|
IBox,
|
|
GenericCreateUpdateForm
|
|
},
|
|
data() {
|
|
return {
|
|
fields: [
|
|
[
|
|
'KoKo',
|
|
[
|
|
'TERMINAL_PASSWORD_AUTH', 'TERMINAL_PUBLIC_KEY_AUTH',
|
|
'TERMINAL_ASSET_LIST_SORT_BY', 'TERMINAL_ASSET_LIST_PAGE_SIZE',
|
|
'TERMINAL_TELNET_REGEX'
|
|
]
|
|
],
|
|
[
|
|
'XRDP',
|
|
[
|
|
'XRDP_ENABLED', 'TERMINAL_RDP_ADDR'
|
|
]
|
|
]
|
|
],
|
|
fieldsMeta: {
|
|
TERMINAL_TELNET_REGEX: {
|
|
type: 'input'
|
|
},
|
|
TERMINAL_RDP_ADDR: {
|
|
hidden: () => {
|
|
return !this.$store.getters.hasValidLicense
|
|
}
|
|
},
|
|
XRDP_ENABLED: {
|
|
hidden: () => {
|
|
return !this.$store.getters.hasValidLicense
|
|
},
|
|
el: {
|
|
hiddenGroup: true
|
|
}
|
|
}
|
|
},
|
|
getUrl: () => '/api/v1/settings/setting/?category=terminal',
|
|
hasDetailInMsg: false,
|
|
submitMethod() {
|
|
return 'put'
|
|
},
|
|
cleanFormValue(data) {
|
|
Object.keys(data).forEach(
|
|
function(key) {
|
|
if (data[key] === null) {
|
|
delete data[key]
|
|
}
|
|
}
|
|
)
|
|
return data
|
|
}
|
|
}
|
|
},
|
|
methods: {
|
|
}
|
|
}
|
|
</script>
|
|
|
|
<style scoped>
|
|
|
|
</style>
|