This commit is contained in:
parent
cf6de1d1d7
commit
3c7c5ae69e
|
|
@ -71,7 +71,7 @@
|
||||||
label="设置做市状态"
|
label="设置做市状态"
|
||||||
@click="handleAction('status')"
|
@click="handleAction('status')"
|
||||||
/>
|
/>
|
||||||
<context-menu-item
|
<!-- <context-menu-item
|
||||||
v-if="
|
v-if="
|
||||||
([1, 2, 3, 4, 5].includes(userStore!.userInfo!.role_id) &&
|
([1, 2, 3, 4, 5].includes(userStore!.userInfo!.role_id) &&
|
||||||
userStore!.userInfo!.role_id === currentRow.role_id)
|
userStore!.userInfo!.role_id === currentRow.role_id)
|
||||||
|
|
@ -79,7 +79,7 @@
|
||||||
label="取款"
|
label="取款"
|
||||||
divided
|
divided
|
||||||
@click="handleAction('deposit')"
|
@click="handleAction('deposit')"
|
||||||
/>
|
/> -->
|
||||||
</context-menu>
|
</context-menu>
|
||||||
|
|
||||||
<!-- 分页 -->
|
<!-- 分页 -->
|
||||||
|
|
@ -531,6 +531,14 @@ const menuVisible = ref(false)
|
||||||
const menuOptions = reactive({ x: 0, y: 0, zIndex: 3000 })
|
const menuOptions = reactive({ x: 0, y: 0, zIndex: 3000 })
|
||||||
const currentRow = ref<any>(null)
|
const currentRow = ref<any>(null)
|
||||||
const rightClickDialogVisible = ref(false)
|
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'>(
|
const rightClickDialogType = ref<'account' | 'acceptOrders' | 'transfer' | 'status' | 'deposit' | 'withdraw'>(
|
||||||
'account',
|
'account',
|
||||||
)
|
)
|
||||||
|
|
@ -573,6 +581,8 @@ const handleRowContextMenu = (row: any, column: any, event: any) => {
|
||||||
return
|
return
|
||||||
event?.preventDefault()
|
event?.preventDefault()
|
||||||
currentRow.value = row
|
currentRow.value = row
|
||||||
|
// 判断右键菜单是否有内容,没有内容则不弹出菜单
|
||||||
|
if (!hasMenuItems.value) return
|
||||||
menuOptions.x = event?.clientX
|
menuOptions.x = event?.clientX
|
||||||
menuOptions.y = event?.clientY
|
menuOptions.y = event?.clientY
|
||||||
menuOptions.zIndex = 3000
|
menuOptions.zIndex = 3000
|
||||||
|
|
@ -1419,3 +1429,4 @@ const handleCancel = async () => {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -79,9 +79,13 @@ type DownloadType = 'pc' | 'android' | 'ios'
|
||||||
// 生产:adminh5.apimcapital.top;测试:adminh5.duxiang.wiki
|
// 生产:adminh5.apimcapital.top;测试:adminh5.duxiang.wiki
|
||||||
const exeBaseUrl = import.meta.env.VITE_EXE_DOWNLOAD_BASE_URL || 'https://adminh5.apimcapital.top'
|
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> = {
|
const downloadUrlMap: Record<DownloadType, string> = {
|
||||||
pc: `${exeBaseUrl}/pc/Apim Capital-1.0.27.exe`,
|
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`
|
ios: `${exeBaseUrl}/app/xxxx.apk`
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -146,6 +150,9 @@ const handleDownload = (type: DownloadType) => {
|
||||||
|
|
||||||
&.pc {
|
&.pc {
|
||||||
background: linear-gradient(135deg, #409eff, #2b7cd3);
|
background: linear-gradient(135deg, #409eff, #2b7cd3);
|
||||||
|
color: #fff;
|
||||||
|
font-size: 23px;
|
||||||
|
font-weight: 900;
|
||||||
}
|
}
|
||||||
&.android {
|
&.android {
|
||||||
background: linear-gradient(135deg, #36c66c, #26a357);
|
background: linear-gradient(135deg, #36c66c, #26a357);
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue