v-if结合pinia中的userStore控制仅管理员可见
This commit is contained in:
parent
ff51c75b6b
commit
1f8102732f
|
|
@ -3,7 +3,10 @@
|
||||||
<!-- 顶部标题栏 -->
|
<!-- 顶部标题栏 -->
|
||||||
<view class="header">
|
<view class="header">
|
||||||
<text class="header-title">客户管理</text>
|
<text class="header-title">客户管理</text>
|
||||||
<uv-switch v-model="filterSelf"></uv-switch>
|
<view v-if="useUserStore().getUserInfo?.roles?.some(r => ['admin','sys_admin'].includes(r))" style="display: flex;align-items: center;gap: 6px">
|
||||||
|
<view>私有</view><uv-switch v-model="filterSelf"></uv-switch>
|
||||||
|
</view>
|
||||||
|
|
||||||
<view class="filter-btn" @click="showFilter = !showFilter">
|
<view class="filter-btn" @click="showFilter = !showFilter">
|
||||||
<text class="filter-text">筛选</text>
|
<text class="filter-text">筛选</text>
|
||||||
<text class="filter-icon" :class="{ 'rotate': showFilter }">▼</text>
|
<text class="filter-icon" :class="{ 'rotate': showFilter }">▼</text>
|
||||||
|
|
|
||||||
|
|
@ -24,7 +24,7 @@
|
||||||
<text class="summary-value">{{ customerDetail.wechat || '--' }}</text>
|
<text class="summary-value">{{ customerDetail.wechat || '--' }}</text>
|
||||||
</view>
|
</view>
|
||||||
<view class="summary-item">
|
<view class="summary-item">
|
||||||
<text class="summary-label">客户归属</text>
|
<text class="summary-label">跟进人</text>
|
||||||
<text class="summary-value">{{ customerDetail.followName || '未分配' }}</text>
|
<text class="summary-value">{{ customerDetail.followName || '未分配' }}</text>
|
||||||
</view>
|
</view>
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user