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