7/24 收银台 日期筛选,合计

This commit is contained in:
Zy
2026-07-24 09:23:50 +08:00
parent 0c4c9676b5
commit 903c92fef0
8 changed files with 143 additions and 219 deletions

View File

@@ -34,13 +34,13 @@
</div>
<template #dropdown>
<el-dropdown-menu>
<el-dropdown-item divided command="changecommunity">
<el-dropdown-item divided command="changecommunity" v-if="isShow">
<span>{{ proxy.$t('navbar.community') }}</span>
</el-dropdown-item>
<router-link to="/system/user/profile">
<router-link to="/system/user/profile" v-if="isShow">
<el-dropdown-item>{{ proxy.$t('navbar.personalCenter') }}</el-dropdown-item>
</router-link>
<el-dropdown-item divided command="logout">
<el-dropdown-item :divided="isShow" command="logout">
<span>{{ proxy.$t('navbar.logout') }}</span>
</el-dropdown-item>
</el-dropdown-menu>
@@ -109,7 +109,14 @@ const changecommunity = () => {
path: '/community'
});
};
const route = useRoute();
const isShow = ref(true);
const hiddenAction = ['communitylist'];
onMounted(() => {
if (hiddenAction.includes(typeof route.name === 'string' ? route.name : '')) {
isShow.value = false;
}
});
const emits = defineEmits(['setLayout']);
const setLayout = () => {
emits('setLayout');