Skip to content

Commit

Permalink
feat: Cloud Sync supports synchronizing Aliyun RDS (MySQL, MariaDB, S…
Browse files Browse the repository at this point in the history
…QL Server, PostgreSQL)
  • Loading branch information
O-Jiangweidong committed Oct 14, 2024
1 parent 8390fb7 commit 7f4794b
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 13 deletions.
2 changes: 1 addition & 1 deletion src/components/Table/CardTable/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -255,7 +255,7 @@ export default {
display: flex;
flex-wrap: nowrap;
margin-top: 0;
height: 190px;
height: 100%;
.image {
display: flex;
Expand Down
10 changes: 10 additions & 0 deletions src/views/assets/Asset/AssetList/AllList.vue
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ export default {
BaseList
},
data() {
const vm = this
const tableUrl = '/api/v1/assets/assets/'
return {
treeRef: null,
Expand All @@ -52,6 +53,15 @@ export default {
extraQuery: { 'order': '-date_updated' }
},
headerActions: {
extraActions: [
{
name: this.$t('CloudSync'),
title: this.$t('CloudSync'),
icon: 'cloud-provider',
has: () => vm.$hasPerm('xpack.view_account') && vm.$hasLicense(),
callback: () => this.$router.push({ name: 'CloudAccountList' })
}
],
handleImportClick: ({ selectedRows }) => {
this.$message.warning({
message: this.$t('ImportMessage')
Expand Down
12 changes: 0 additions & 12 deletions src/views/assets/Asset/AssetList/HostList.vue
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@ export default {
GatewayDialog
},
data() {
const vm = this
return {
GatewayPort: 0,
GatewayCell: '',
Expand All @@ -30,17 +29,6 @@ export default {
url: '/api/v1/assets/hosts/',
category: 'host',
optionInfo: {},
headerActions: {
extraActions: [
{
name: this.$t('CloudSync'),
title: this.$t('CloudSync'),
icon: 'cloud-provider',
has: () => vm.$hasPerm('xpack.view_account') && vm.$hasLicense(),
callback: () => this.$router.push({ name: 'CloudAccountList' })
}
]
},
tableConfig: {
columnsMeta: {
actions: {
Expand Down

0 comments on commit 7f4794b

Please sign in to comment.