From ac747bcf051c84f8b8931a1c152fe117c1e25b7f Mon Sep 17 00:00:00 2001
From: feng <1304903146@qq.com>
Date: Thu, 9 Feb 2023 19:28:55 +0800
Subject: [PATCH] perf: cloud sync
---
.../SyncInstanceTask/SyncInstanceTaskList.vue | 18 +++++++++++++++---
1 file changed, 15 insertions(+), 3 deletions(-)
diff --git a/src/views/assets/Cloud/SyncInstanceTask/SyncInstanceTaskList.vue b/src/views/assets/Cloud/SyncInstanceTask/SyncInstanceTaskList.vue
index 6977f032e..7b11abeac 100644
--- a/src/views/assets/Cloud/SyncInstanceTask/SyncInstanceTaskList.vue
+++ b/src/views/assets/Cloud/SyncInstanceTask/SyncInstanceTaskList.vue
@@ -21,15 +21,27 @@ export default {
app: 'xpack',
resource: 'syncinstancetask'
},
+ columnsShow: {
+ min: ['name', 'account', 'hostname_strategy', 'actions'],
+ default: [
+ 'name', 'account', 'hostname_strategy', 'protocols', 'is_periodic', 'actions'
+ ]
+ },
columnsMeta: {
sync_ip_type: {
width: '120px'
},
hostname_strategy: {
- width: '120px'
+ width: '150px',
+ formatter: function(row) {
+ return { row.hostname_strategy.label }
+ }
},
- account_display: {
- label: this.$t('xpack.Cloud.Account')
+ account: {
+ label: this.$t('xpack.Cloud.Account'),
+ formatter: function(row) {
+ return { row.account.name }
+ }
},
periodic_display: {
width: '150px'