feat: 新增系统管理页面,数据字典功能。
This commit is contained in:
@@ -85,6 +85,24 @@
|
||||
</view>
|
||||
</view>
|
||||
|
||||
<view class="menu-section" v-show="auth.hasPermi('system:user:list')">
|
||||
<view class="section-title">
|
||||
<view class="title-bar"></view>
|
||||
<text class="title-text">系统管理</text>
|
||||
</view>
|
||||
<view class="menu-card">
|
||||
<view class="menu-item" @click="handleToSystemManage">
|
||||
<view class="item-left">
|
||||
<view class="menu-icon-wrapper" style="background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);">
|
||||
<uni-icons type="settings" size="20" color="#ffffff"></uni-icons>
|
||||
</view>
|
||||
<text class="menu-text">系统管理</text>
|
||||
</view>
|
||||
<uni-icons type="right" size="16" color="#c0c4cc"></uni-icons>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
|
||||
<view class="menu-section">
|
||||
<view class="section-title">
|
||||
<view class="title-bar"></view>
|
||||
@@ -130,6 +148,7 @@
|
||||
import { ref, computed } from "vue";
|
||||
import config from '@/config.js'
|
||||
import useUserStore from '@/store/modules/user'
|
||||
import auth from "@/plugins/auth"; // 导入鉴权插件
|
||||
const userStore = useUserStore()
|
||||
const name = userStore.name;
|
||||
const userId = computed(() => userStore.userId || '');
|
||||
@@ -151,6 +170,11 @@ function handleToSetting() {
|
||||
url: '/pages_mine/pages/setting/index'
|
||||
});
|
||||
};
|
||||
function handleToSystemManage() {
|
||||
uni.navigateTo({
|
||||
url: '/pages_mine/pages/system/index'
|
||||
});
|
||||
};
|
||||
function handleToLogin() {
|
||||
uni.reLaunch({
|
||||
url: '/pages/login'
|
||||
|
||||
Reference in New Issue
Block a user