This commit is contained in:
2026-06-26 15:27:58 +08:00
parent cf6de1d1d7
commit 3c7c5ae69e
2 changed files with 21 additions and 3 deletions

View File

@ -71,7 +71,7 @@
label="设置做市状态"
@click="handleAction('status')"
/>
<context-menu-item
<!-- <context-menu-item
v-if="
([1, 2, 3, 4, 5].includes(userStore!.userInfo!.role_id) &&
userStore!.userInfo!.role_id === currentRow.role_id)
@ -79,7 +79,7 @@
label="取款"
divided
@click="handleAction('deposit')"
/>
/> -->
</context-menu>
<!-- 分页 -->
@ -531,6 +531,14 @@ const menuVisible = ref(false)
const menuOptions = reactive({ x: 0, y: 0, zIndex: 3000 })
const currentRow = ref<any>(null)
const rightClickDialogVisible = ref(false)
//
const hasMenuItems = computed(() => {
if (!currentRow.value) return false
return (
[3, 4].includes(currentRow.value.role_id) &&
userStore?.userInfo?.role_id === 1
)
})
const rightClickDialogType = ref<'account' | 'acceptOrders' | 'transfer' | 'status' | 'deposit' | 'withdraw'>(
'account',
)
@ -573,6 +581,8 @@ const handleRowContextMenu = (row: any, column: any, event: any) => {
return
event?.preventDefault()
currentRow.value = row
//
if (!hasMenuItems.value) return
menuOptions.x = event?.clientX
menuOptions.y = event?.clientY
menuOptions.zIndex = 3000
@ -1419,3 +1429,4 @@ const handleCancel = async () => {
}
}
</style>

View File

@ -79,9 +79,13 @@ type DownloadType = 'pc' | 'android' | 'ios'
// adminh5.apimcapital.topadminh5.duxiang.wiki
const exeBaseUrl = import.meta.env.VITE_EXE_DOWNLOAD_BASE_URL || 'https://adminh5.apimcapital.top'
// 使 debug 使 release
const isTestEnv = import.meta.env.MODE === 'test' || import.meta.env.NODE_ENV === 'test'
const androidApkName = isTestEnv ? 'app-production-debug.apk' : 'app-production-release.apk'
const downloadUrlMap: Record<DownloadType, string> = {
pc: `${exeBaseUrl}/pc/Apim Capital-1.0.27.exe`,
android: `${exeBaseUrl}/app/app-production-release.apk`,
android: `${exeBaseUrl}/app/${androidApkName}`,
ios: `${exeBaseUrl}/app/xxxx.apk`
}
@ -146,6 +150,9 @@ const handleDownload = (type: DownloadType) => {
&.pc {
background: linear-gradient(135deg, #409eff, #2b7cd3);
color: #fff;
font-size: 23px;
font-weight: 900;
}
&.android {
background: linear-gradient(135deg, #36c66c, #26a357);