Browse Source

删掉原钱包入口

jiangcheng/feature-20260402142510-现金四期
ZhangYong 1 week ago
parent
commit
a3e10d9273
  1. 15
      src/views/usergold/gold/clientCount.vue

15
src/views/usergold/gold/clientCount.vue

@ -21,14 +21,6 @@
> >
{{ $t('clientCount.clientCountBalance') }} {{ $t('clientCount.clientCountBalance') }}
</el-button> </el-button>
<el-button
class="no-active-btn"
:class="{ 'active-btn': activeTab === 'clientCountWallet' }"
@click="navigateTo('clientCountWallet')"
:disabled="!hasWallet" v-if="hasWallet"
>
{{ $t('clientCount.clientCountWallet') }}
</el-button>
</el-button-group> </el-button-group>
<!-- 渲染子路由组件 --> <!-- 渲染子路由组件 -->
</div> </div>
@ -56,7 +48,6 @@ const {menuTree} = storeToRefs(adminStore);
const activeTab = ref(''); const activeTab = ref('');
const hasDetail = ref(false); const hasDetail = ref(false);
const hasBalance = ref(false); const hasBalance = ref(false);
const hasWallet = ref(false);
// //
const navigateTo = (name) => { const navigateTo = (name) => {
activeTab.value = name; activeTab.value = name;
@ -69,7 +60,6 @@ const initPermissions = () => {
if (!menuTree.value || !menuTree.value.length) return; if (!menuTree.value || !menuTree.value.length) return;
hasDetail.value = hasMenuPermission(menuTree.value, permissionMapping.gold_coin_customer_bill); hasDetail.value = hasMenuPermission(menuTree.value, permissionMapping.gold_coin_customer_bill);
hasBalance.value = hasMenuPermission(menuTree.value, permissionMapping.gold_coin_customer_balance); hasBalance.value = hasMenuPermission(menuTree.value, permissionMapping.gold_coin_customer_balance);
hasWallet.value = hasMenuPermission(menuTree.value, permissionMapping.wallet);
}; };
// //
@ -77,14 +67,13 @@ const getDefaultAuditRoute = () => {
initPermissions(); initPermissions();
if (hasDetail.value) return 'clientCountDetail'; if (hasDetail.value) return 'clientCountDetail';
if (hasBalance.value) return 'clientCountBalance'; if (hasBalance.value) return 'clientCountBalance';
if (hasWallet.value) return 'clientCountWallet';
return 'clientCountDetail'; return 'clientCountDetail';
}; };
// //
watch(() => route.name, (newName) => { watch(() => route.name, (newName) => {
initPermissions() initPermissions()
if (newName === 'clientCountDetail' || newName === 'clientCountBalance' || newName === 'clientCountWallet') {
if (newName === 'clientCountDetail' || newName === 'clientCountBalance') {
activeTab.value = newName; activeTab.value = newName;
} else if (newName === 'usergold') { } else if (newName === 'usergold') {
// 访 /coinConsume // 访 /coinConsume
@ -101,7 +90,7 @@ onMounted(() => {
navigateTo(defaultRoute); navigateTo(defaultRoute);
} else { } else {
// //
if (route.name === 'clientCountDetail' || route.name === 'clientCountBalance' || route.name === 'clientCountWallet') {
if (route.name === 'clientCountDetail' || route.name === 'clientCountBalance') {
activeTab.value = route.name; activeTab.value = route.name;
} }
} }

Loading…
Cancel
Save