This commit is contained in:
@@ -408,10 +408,12 @@
|
||||
const contextMenuItems = computed((): MenuItemType[] => {
|
||||
const items: MenuItemType[] = []
|
||||
|
||||
items.push({
|
||||
key: 'detail',
|
||||
label: '详情'
|
||||
})
|
||||
if (hasAuth('package_assign:detail')) {
|
||||
items.push({
|
||||
key: 'detail',
|
||||
label: '详情'
|
||||
})
|
||||
}
|
||||
|
||||
if (hasAuth('package_assign:edit')) {
|
||||
items.push({
|
||||
@@ -849,7 +851,11 @@
|
||||
}
|
||||
|
||||
// 处理表格行右键菜单
|
||||
const handleRowContextMenu = (row: ShopPackageAllocationResponse, column: any, event: MouseEvent) => {
|
||||
const handleRowContextMenu = (
|
||||
row: ShopPackageAllocationResponse,
|
||||
column: any,
|
||||
event: MouseEvent
|
||||
) => {
|
||||
event.preventDefault()
|
||||
event.stopPropagation()
|
||||
currentRow.value = row
|
||||
|
||||
@@ -555,10 +555,12 @@
|
||||
const contextMenuItems = computed((): MenuItemType[] => {
|
||||
const items: MenuItemType[] = []
|
||||
|
||||
items.push({
|
||||
key: 'detail',
|
||||
label: '详情'
|
||||
})
|
||||
if (hasAuth('package:detail')) {
|
||||
items.push({
|
||||
key: 'detail',
|
||||
label: '详情'
|
||||
})
|
||||
}
|
||||
|
||||
if (hasAuth('package:edit')) {
|
||||
items.push({
|
||||
|
||||
@@ -991,7 +991,9 @@
|
||||
const contextMenuItems = computed((): MenuItemType[] => {
|
||||
const items: MenuItemType[] = []
|
||||
|
||||
items.push({ key: 'detail', label: '详情' })
|
||||
if (hasAuth('series_assign:detail')) {
|
||||
items.push({ key: 'detail', label: '详情' })
|
||||
}
|
||||
|
||||
if (hasAuth('series_assign:edit')) {
|
||||
items.push({ key: 'edit', label: '编辑' })
|
||||
@@ -1005,7 +1007,11 @@
|
||||
})
|
||||
|
||||
// 处理表格行右键菜单
|
||||
const handleRowContextMenu = (row: ShopSeriesAllocationResponse, column: any, event: MouseEvent) => {
|
||||
const handleRowContextMenu = (
|
||||
row: ShopSeriesAllocationResponse,
|
||||
column: any,
|
||||
event: MouseEvent
|
||||
) => {
|
||||
event.preventDefault()
|
||||
event.stopPropagation()
|
||||
currentRow.value = row
|
||||
|
||||
Reference in New Issue
Block a user