mirror of
https://github.com/jumpserver/lina.git
synced 2025-04-28 03:20:24 +00:00
Fixed: Risk Asset And Node Detail
This commit is contained in:
parent
367320eef9
commit
aaad6b8380
@ -1,5 +1,5 @@
|
||||
<template>
|
||||
<DetailFormatter :col="col" :row="row">
|
||||
<DetailFormatter :col="col" :row="row" :prevant-click="formatterArgs.prevantClick">
|
||||
<template>
|
||||
<el-popover
|
||||
:disabled="!showItems"
|
||||
@ -42,7 +42,8 @@ export default {
|
||||
},
|
||||
async: false,
|
||||
ajax: {},
|
||||
title: ''
|
||||
title: '',
|
||||
prevantClick: false
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -55,6 +55,10 @@ export default {
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
prevantClick: {
|
||||
type: Boolean,
|
||||
default: false
|
||||
}
|
||||
},
|
||||
data() {
|
||||
@ -172,14 +176,19 @@ export default {
|
||||
if (this.formatterArgs.beforeClick) {
|
||||
this.formatterArgs.beforeClick(this.callbackArgs)
|
||||
}
|
||||
|
||||
if (this.formatterArgs.onClick) {
|
||||
this.formatterArgs.onClick(this.callbackArgs)
|
||||
return
|
||||
return this.formatterArgs.onClick(this.callbackArgs)
|
||||
}
|
||||
|
||||
if (this.formatterArgs.drawer) {
|
||||
this.showDrawer()
|
||||
return this.showDrawer()
|
||||
}
|
||||
|
||||
if (this.prevantClick) {
|
||||
return
|
||||
}
|
||||
|
||||
this.goDetail()
|
||||
},
|
||||
getDetailRoute() {
|
||||
|
@ -43,24 +43,16 @@ export default {
|
||||
formatter: AmountFormatter,
|
||||
formatterArgs: {
|
||||
async: false,
|
||||
drawer: true,
|
||||
getTitle: ({ row }) => row.assets[0].name,
|
||||
getRoute: ({ row }) => ({
|
||||
name: 'AssetDetail',
|
||||
params: { id: row.assets[0].id }
|
||||
})
|
||||
drawer: false,
|
||||
prevantClick: true
|
||||
}
|
||||
},
|
||||
nodes: {
|
||||
formatter: AmountFormatter,
|
||||
formatterArgs: {
|
||||
async: false,
|
||||
drawer: true,
|
||||
getRoute: ({ row }) => ({
|
||||
name: 'AssetDetail',
|
||||
query: { tab: 'Basic' },
|
||||
params: { id: row.assets[0].id }
|
||||
})
|
||||
drawer: false,
|
||||
prevantClick: true
|
||||
}
|
||||
},
|
||||
secret_strategy: {
|
||||
|
Loading…
Reference in New Issue
Block a user