mirror of
https://github.com/jumpserver/lina.git
synced 2025-09-24 04:33:06 +00:00
[fix]
This commit is contained in:
@@ -336,7 +336,8 @@
|
||||
"TestAssetsConnective": "测试资产可连接性",
|
||||
"PushSystemUserNow": "推送系统用户",
|
||||
"Push": "推送",
|
||||
"Node": "节点"
|
||||
"Node": "节点",
|
||||
"TestConnection": "测试连接"
|
||||
},
|
||||
"audits": {
|
||||
"username": "用户名",
|
||||
|
@@ -18,12 +18,13 @@ export default {
|
||||
return {
|
||||
initial: {
|
||||
protocol: 'ssh',
|
||||
domain: this.$route.params.domainid
|
||||
domain: this.$route.params.domainid,
|
||||
is_active: true
|
||||
},
|
||||
fields: [
|
||||
[this.$t('basic'), ['name', 'ip', 'port', 'protocol', 'domain']],
|
||||
[this.$t('认证'), ['username', 'password']],
|
||||
[this.$t('other'), ['is_active', 'comment']]
|
||||
[this.$t('assets.Basic'), ['name', 'ip', 'port', 'protocol', 'domain']],
|
||||
[this.$t('assets.Auth'), ['username', 'password']],
|
||||
[this.$t('assets.Other'), ['is_active', 'comment']]
|
||||
],
|
||||
fieldsMeta: {
|
||||
ip: {
|
||||
|
@@ -29,13 +29,11 @@ export default {
|
||||
{
|
||||
|
||||
prop: 'ip',
|
||||
label: this.$t('assets.ip'),
|
||||
sortable: 'custom'
|
||||
label: this.$t('assets.ip')
|
||||
},
|
||||
{
|
||||
prop: 'port',
|
||||
label: this.$t('assets.Port'),
|
||||
sortable: 'custom'
|
||||
label: this.$t('assets.Port')
|
||||
},
|
||||
{
|
||||
prop: 'protocol',
|
||||
@@ -44,13 +42,11 @@ export default {
|
||||
},
|
||||
{
|
||||
prop: 'username',
|
||||
label: this.$t('assets.Username'),
|
||||
sortable: 'custom'
|
||||
label: this.$t('assets.Username')
|
||||
},
|
||||
{
|
||||
prop: 'comment',
|
||||
label: this.$t('assets.Comment'),
|
||||
sortable: 'custom'
|
||||
label: this.$t('assets.Comment')
|
||||
},
|
||||
{
|
||||
prop: 'id',
|
||||
@@ -68,7 +64,10 @@ export default {
|
||||
extraActions: [
|
||||
{
|
||||
name: 'TestConnection',
|
||||
title: this.$t('assets.TestConnection')
|
||||
title: this.$t('assets.TestConnection'),
|
||||
callback: function(val) {
|
||||
console.log(val)
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
|
Reference in New Issue
Block a user