diff --git a/nezha-fronted/src/components/common/nzTransfer.vue b/nezha-fronted/src/components/common/nzTransfer.vue index 2ada5bea8..7f3268b60 100644 --- a/nezha-fronted/src/components/common/nzTransfer.vue +++ b/nezha-fronted/src/components/common/nzTransfer.vue @@ -28,14 +28,12 @@ width="36"> - - - - + + @@ -79,14 +77,12 @@ width="36"> - - - - + + @@ -131,6 +127,9 @@ export default { }, pageObj: { type: Object + }, + tableTitle: { + type: Array, } }, data () { diff --git a/nezha-fronted/src/components/common/rightBox/asset/assetBatchEditBox.vue b/nezha-fronted/src/components/common/rightBox/asset/assetBatchEditBox.vue index 5bfa5154c..a97a9c253 100644 --- a/nezha-fronted/src/components/common/rightBox/asset/assetBatchEditBox.vue +++ b/nezha-fronted/src/components/common/rightBox/asset/assetBatchEditBox.vue @@ -193,6 +193,7 @@ :search-msg="transfer.searchMsg" :table-data="transfer.tableData" style="margin-bottom: 20px;" + :tableTitle="transfer.tableTitle" @leftToRight="addAsset" @rightToLeft="removeAsset"> @@ -309,6 +310,18 @@ export default { } ] }, + tableTitle: [ + { + label: this.$t('overall.name'), + prop: 'name', + show: true + }, + { + label: this.$t('asset.host'), + prop: 'host', + show: true + } + ], pageObj: { pageNo: 1, pageSize: 10,