fix: 修复远程应用-账号列表跳转报错问题

This commit is contained in:
“huailei000”
2023-02-06 14:38:03 +08:00
committed by huailei
parent 4a003cf617
commit be6e1a3449
3 changed files with 6 additions and 2 deletions

View File

@@ -244,7 +244,7 @@ export default {
hasLeftActions: this.hasLeftActions,
hasMoreActions: true,
hasCreate: false,
hasImport: true,
hasImport: this.hasImport,
hasExport: this.hasExport && this.$hasPerm('accounts.view_accountsecret'),
exportOptions: {
url: this.exportUrl,

View File

@@ -27,7 +27,8 @@ export default {
iShowTree: true,
tableConfig: {
url: '/api/v1/accounts/accounts/',
hasLeftActions: true
hasLeftActions: true,
hasImport: true
},
treeSetting: {
showMenu: false,

View File

@@ -19,6 +19,9 @@ export default {
return {
columnsMeta: {
name: {
formatter: (row) => <span>{row.name}</span>
},
asset: {
label: this.$t('assets.Asset'),
formatter: (row) => <span>{row.asset.name}</span>
}