完善按钮和详情权限
All checks were successful
构建并部署前端到测试环境 / build-and-deploy (push) Successful in 2m29s

This commit is contained in:
sexygoat
2026-02-28 11:04:32 +08:00
parent 4470a4ef04
commit ce1032c7f9
23 changed files with 984 additions and 760 deletions

View File

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

View File

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

View File

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