This commit is contained in:
OrangeM21
2020-05-21 15:34:30 +08:00
parent 5fdb1c05db
commit 56a5ca9ce0
3 changed files with 15 additions and 14 deletions

View File

@@ -336,7 +336,8 @@
"TestAssetsConnective": "测试资产可连接性", "TestAssetsConnective": "测试资产可连接性",
"PushSystemUserNow": "推送系统用户", "PushSystemUserNow": "推送系统用户",
"Push": "推送", "Push": "推送",
"Node": "节点" "Node": "节点",
"TestConnection": "测试连接"
}, },
"audits": { "audits": {
"username": "用户名", "username": "用户名",

View File

@@ -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: {

View File

@@ -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)
}
} }
] ]
} }