mirror of
https://github.com/jumpserver/lina.git
synced 2026-01-15 14:24:39 +00:00
* fix: 修复资产列表协议组显示的问题 * fix: 全局组织批量更新用户禁止更新用户组 * fix: 修复网关无法克隆的Bug * fix: 修复平台列表更新bug * fix: 修复翻译问题 * fix: 修复更新管理用户账户秘钥的问题 Co-authored-by: Orange <orangemtony@gmail.com>
72 lines
1.7 KiB
Vue
72 lines
1.7 KiB
Vue
<template>
|
|
<GenericCreateUpdatePage :fields="fields" :initial="initial" :fields-meta="fieldsMeta" :url="url" />
|
|
</template>
|
|
|
|
<script>
|
|
import GenericCreateUpdatePage from '@/layout/components/GenericCreateUpdatePage'
|
|
export default {
|
|
name: 'PlatformCreateUpdate',
|
|
components: { GenericCreateUpdatePage },
|
|
data() {
|
|
return {
|
|
initial: {
|
|
base: 'Linux',
|
|
console: 'true',
|
|
security: 'RDP',
|
|
comment: '',
|
|
charset: 'utf8'
|
|
},
|
|
fields: [
|
|
[this.$t('common.Basic'), ['name', 'base', 'charset', 'meta', 'comment']]
|
|
],
|
|
fieldsMeta: {
|
|
meta: {
|
|
fields: ['security', 'console'],
|
|
fieldsMeta: {
|
|
security: {
|
|
prop: 'meta.security',
|
|
type: 'select',
|
|
label: 'RDP security',
|
|
options: [{
|
|
label: 'RDP',
|
|
value: 'rdp'
|
|
},
|
|
{
|
|
label: 'NLA',
|
|
value: 'nla'
|
|
},
|
|
{
|
|
label: 'TLS',
|
|
value: 'tls'
|
|
},
|
|
{
|
|
label: 'Any',
|
|
value: 'any'
|
|
}]
|
|
},
|
|
console: {
|
|
type: 'select',
|
|
label: 'RDP console',
|
|
options: [{
|
|
label: this.$t('common.Yes'),
|
|
value: 'true'
|
|
}, {
|
|
label: this.$t('common.No'),
|
|
value: 'false'
|
|
}]
|
|
}
|
|
},
|
|
hidden: form => form.base !== 'Windows'
|
|
}
|
|
|
|
},
|
|
url: '/api/v1/assets/platforms/'
|
|
}
|
|
}
|
|
}
|
|
</script>
|
|
|
|
<style lang='less' scoped>
|
|
|
|
</style>
|