Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: Cloud Sync supports synchronizing Aliyun RDS (MySQL, MariaDB, SQL Server, PostgreSQL) #4399

Draft
wants to merge 1 commit into
base: dev
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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