Fixed: Risk Asset And Node Detail

This commit is contained in:
zhaojisen 2025-03-13 15:04:38 +08:00 committed by ZhaoJiSen
parent 367320eef9
commit aaad6b8380
3 changed files with 19 additions and 17 deletions

View File

@ -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
}
}
}

View File

@ -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() {

View File

@ -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: {