fix: 自测问题修复。
This commit is contained in:
@@ -8,7 +8,7 @@
|
|||||||
<!-- <view class="title-line"></view> -->
|
<!-- <view class="title-line"></view> -->
|
||||||
<text class="title-text">资产总览</text>
|
<text class="title-text">资产总览</text>
|
||||||
</div>
|
</div>
|
||||||
<div class="header-con" ref="searchHeightRef">
|
<div class="header-con" v-show="auth.hasPermi('invest:debitCard')" ref="searchHeightRef">
|
||||||
<div class="item">
|
<div class="item">
|
||||||
<view class="item-icon" style="background: linear-gradient(135deg, #2d8f3c 0%, #1b5e20 100%);">
|
<view class="item-icon" style="background: linear-gradient(135deg, #2d8f3c 0%, #1b5e20 100%);">
|
||||||
<uni-icons type="medal-filled" size="20" color="#ffffff"></uni-icons>
|
<uni-icons type="medal-filled" size="20" color="#ffffff"></uni-icons>
|
||||||
|
|||||||
@@ -85,7 +85,7 @@
|
|||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
|
|
||||||
<view class="menu-section" v-show="auth.hasPermi('system:user:list')">
|
<view class="menu-section" v-show="showSystemManage">
|
||||||
<view class="section-title">
|
<view class="section-title">
|
||||||
<view class="title-bar"></view>
|
<view class="title-bar"></view>
|
||||||
<text class="title-text">系统管理</text>
|
<text class="title-text">系统管理</text>
|
||||||
@@ -154,6 +154,12 @@ const name = userStore.name;
|
|||||||
const userId = computed(() => userStore.userId || '');
|
const userId = computed(() => userStore.userId || '');
|
||||||
const version = config.appInfo.version;
|
const version = config.appInfo.version;
|
||||||
|
|
||||||
|
// 判断是否显示系统管理(只有sys和tyb用户可见)
|
||||||
|
const showSystemManage = computed(() => {
|
||||||
|
const userName = userStore.name;
|
||||||
|
return userName === 'sys' || userName === 'tyb'|| userName === 'admin';
|
||||||
|
});
|
||||||
|
|
||||||
const popup = ref(null);
|
const popup = ref(null);
|
||||||
function handleToInfo() {
|
function handleToInfo() {
|
||||||
uni.navigateTo({
|
uni.navigateTo({
|
||||||
|
|||||||
Reference in New Issue
Block a user