mirror of
https://github.com/jumpserver/lina.git
synced 2026-01-15 14:24:39 +00:00
fix: 修复资产树右键-显示资产详情弹窗不显示问题
This commit is contained in:
committed by
Jiangjie.Bai
parent
d1a2564359
commit
703898e707
@@ -143,24 +143,21 @@ export default {
|
||||
}
|
||||
this.$emit('showAll', { node: currentNode, showCurrentAsset: 0 })
|
||||
},
|
||||
rMenuShowNodeInfo() {
|
||||
this.hideMenu()
|
||||
async rMenuShowNodeInfo() {
|
||||
const currentNode = this.getSelectedNodes()[0]
|
||||
if (!currentNode) {
|
||||
return
|
||||
}
|
||||
this.$axios.get(
|
||||
`/api/v1/assets/nodes/${currentNode.meta.data.id}/`
|
||||
).then(res => {
|
||||
if (!currentNode) return
|
||||
|
||||
try {
|
||||
const res = await this.$axios.get(`/api/v1/assets/nodes/${currentNode.meta.data.id}/`)
|
||||
this.nodeInfoDialogSetting.dialogVisible = true
|
||||
this.nodeInfoDialogSetting.items = [
|
||||
{ key: 'id', label: 'ID', value: res.id },
|
||||
{ key: 'name', label: this.$t('assets.Name'), value: res.name },
|
||||
{ key: 'fullName', label: this.$t('assets.FullName'), value: res.full_value }
|
||||
]
|
||||
}).catch(error => {
|
||||
} catch (error) {
|
||||
this.$message.error(this.$t('common.ErrorMsg' + ' ' + error))
|
||||
})
|
||||
}
|
||||
},
|
||||
rCheckAssetsAmount() {
|
||||
this.$axios.post(
|
||||
|
||||
Reference in New Issue
Block a user