This commit is contained in:
@@ -718,7 +718,7 @@
|
||||
{
|
||||
type: 'primary',
|
||||
link: true,
|
||||
onClick: () => handleViewDetail(row)
|
||||
onClick: () => handleNameClick(row)
|
||||
},
|
||||
() => row.exchange_no || '--'
|
||||
)
|
||||
@@ -1410,6 +1410,14 @@
|
||||
}
|
||||
|
||||
// 查看详情
|
||||
const handleNameClick = (row: ExchangeResponse) => {
|
||||
if (hasAuth('exchange:detail')) {
|
||||
handleViewDetail(row)
|
||||
} else {
|
||||
ElMessage.warning('您没有查看详情的权限')
|
||||
}
|
||||
}
|
||||
|
||||
const handleViewDetail = (row: any) => {
|
||||
router.push(`${RoutesAlias.ExchangeDetail}/${row.id}`)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user