mirror of
https://github.com/jumpserver/lina.git
synced 2025-09-01 23:17:46 +00:00
Fixed: Fix the issue where adding account information to assets in Pam is not responding.
This commit is contained in:
@@ -30,6 +30,12 @@
|
||||
:visible.sync="gatewayVisible"
|
||||
/>
|
||||
<AccountDiscoverDialog :asset="discoveryDialog.asset" :visible.sync="discoveryDialog.visible" />
|
||||
<AccountCreateUpdate
|
||||
v-if="showAddDialog"
|
||||
:asset="asset"
|
||||
:visible.sync="showAddDialog"
|
||||
@add="addAccountSuccess"
|
||||
/>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
@@ -39,6 +45,7 @@ import AssetBulkUpdateDialog from './AssetBulkUpdateDialog'
|
||||
import PlatformDialog from '../components/PlatformDialog'
|
||||
import GatewayDialog from '@/components/Apps/GatewayDialog'
|
||||
import AccountDiscoverDialog from './AccountDiscoverDialog.vue'
|
||||
import AccountCreateUpdate from '@/components/Apps/AccountListTable/AccountCreateUpdate.vue'
|
||||
import { getDefaultConfig } from './const'
|
||||
import { mapState } from 'vuex'
|
||||
|
||||
@@ -47,6 +54,7 @@ export default {
|
||||
ListTable,
|
||||
GatewayDialog,
|
||||
PlatformDialog,
|
||||
AccountCreateUpdate,
|
||||
AccountDiscoverDialog,
|
||||
AssetBulkUpdateDialog
|
||||
},
|
||||
@@ -139,9 +147,11 @@ export default {
|
||||
},
|
||||
createProps: {},
|
||||
showPlatform: false,
|
||||
showAddDialog: false,
|
||||
recentPlatforms: recentPlatforms,
|
||||
createAction: createAction,
|
||||
gatewayPort: 0,
|
||||
asset: {},
|
||||
gatewayCell: '',
|
||||
gatewayVisible: false,
|
||||
defaultConfig: defaultConfig['tableConfig'],
|
||||
@@ -264,6 +274,9 @@ export default {
|
||||
}
|
||||
})
|
||||
this.recentPlatforms = platforms
|
||||
},
|
||||
addAccountSuccess() {
|
||||
this.$refs.ListTable.reloadTable()
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@@ -231,7 +231,11 @@ export function getDefaultConfig(vm) {
|
||||
{
|
||||
name: 'AddAccount',
|
||||
title: '添加账号',
|
||||
divided: true
|
||||
divided: true,
|
||||
callback: ({ row }) => {
|
||||
vm.asset.id = row.id
|
||||
vm.showAddDialog = true
|
||||
}
|
||||
},
|
||||
{
|
||||
name: 'DiscoverAccounts',
|
||||
|
Reference in New Issue
Block a user