mirror of
https://github.com/jumpserver/lina.git
synced 2025-08-28 19:32:01 +00:00
Fixed: Account View
This commit is contained in:
parent
804006f853
commit
09836df9fa
@ -7,7 +7,7 @@
|
|||||||
/>
|
/>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script type="text/jsx">
|
<script>
|
||||||
import AssetTreeTable from '@/components/Apps/AssetTreeTable'
|
import AssetTreeTable from '@/components/Apps/AssetTreeTable'
|
||||||
import { AccountInfoFormatter, DetailFormatter } from '@/components/Table/TableFormatters'
|
import { AccountInfoFormatter, DetailFormatter } from '@/components/Table/TableFormatters'
|
||||||
import { connectivityMeta } from '@/components/Apps/AccountListTable/const'
|
import { connectivityMeta } from '@/components/Apps/AccountListTable/const'
|
||||||
|
@ -39,8 +39,7 @@ export default {
|
|||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
async getAsyncItems() {
|
async getAsyncItems() {
|
||||||
const drawActionMeta = await this.$store.dispatch('common/getDrawerActionMeta')
|
const userId = this.$route.params.id || 'self'
|
||||||
const userId = drawActionMeta.row.id || 'self'
|
|
||||||
const url = `/api/v1/perms/users/${userId}/assets/${this.row.id}`
|
const url = `/api/v1/perms/users/${userId}/assets/${this.row.id}`
|
||||||
this.$axios.get(url).then(res => {
|
this.$axios.get(url).then(res => {
|
||||||
this.accountData = res?.permed_accounts || []
|
this.accountData = res?.permed_accounts || []
|
||||||
|
@ -133,9 +133,17 @@ export default {
|
|||||||
name: {
|
name: {
|
||||||
formatter: DetailFormatter,
|
formatter: DetailFormatter,
|
||||||
formatterArgs: {
|
formatterArgs: {
|
||||||
route: 'UserDetail',
|
|
||||||
routeQuery: {
|
routeQuery: {
|
||||||
tab: 'Basic'
|
tab: 'Basic'
|
||||||
|
},
|
||||||
|
getRoute: ({ row }) => {
|
||||||
|
this.$route.params.id = row.id
|
||||||
|
return {
|
||||||
|
name: 'UserDetail',
|
||||||
|
params: {
|
||||||
|
id: row.id
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
Loading…
Reference in New Issue
Block a user