祖安之光
2025-11-17 79427dd90676020e6e0b204af731b7bf1a4ef462
修改新增
已修改4个文件
65 ■■■■■ 文件已修改
src/assets/styles/sidebar.scss 10 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/router/index.js 13 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/menuPage.vue 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/work/menuIndex/index.vue 40 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/assets/styles/sidebar.scss
@@ -98,6 +98,16 @@
        border-radius: 4px;
      }
      .el-menu-item.is-active{
        background: linear-gradient(#ccc,#fff) !important;
        //background-color: #fff;
        border-top: 1px solid rgba(255,255,255,.2);
        border-bottom: 1px solid rgba(255,255,255,.2);
        width: 94%;
        margin-left: 3%;
        border-radius: 4px;
      }
    }
src/router/index.js
@@ -27,6 +27,19 @@
// 公共路由
export const constantRoutes = [
  {
    path: '/',
    component: Layout,
    redirect: '/menuIndex',
    children: [
      {
        path: 'menuIndex',
        component: () => import('@/views/work/menuIndex/index'),
        name: 'MenuIndex',
        meta: { title: '首页', icon: 'build', affix: true }
      }
    ]
  },
  {
    path: '/redirect',
    component: Layout,
    hidden: true,
src/views/menuPage.vue
@@ -205,7 +205,7 @@
// 进入系统
const enterSystem = (systemId) => {
  if(systemId == 1){
    router.push({ path: "/"});
    router.push({ path: "/menuIndex"});
  }else{
    ElMessage.warning('系统正在开发中...')
  }
src/views/work/menuIndex/index.vue
@@ -1,30 +1,5 @@
<template>
  <div class="system-select-container">
    <div class="user-info-bar">
      <div class="user-left"></div>
      <h3 class="user-details">欢迎访问多体系建设信息化系统</h3>
      <div class="avatar-container">
        <el-dropdown @command="handleCommand" class="right-menu-item hover-effect" trigger="click">
          <div class="avatar-wrapper" style="display: flex;align-items: center">
            <img src="../assets/images/avator.png" class="user-avatar"  />
            <span style="font-size: 16px">{{userName}}({{userTypeName}})</span>
            <el-icon><caret-bottom /></el-icon>
          </div>
          <template #dropdown>
            <el-dropdown-menu>
              <el-dropdown-item command="password">
                <span>修改密码</span>
              </el-dropdown-item>
              <el-dropdown-item divided command="logout">
                <span>退出登录</span>
              </el-dropdown-item>
            </el-dropdown-menu>
          </template>
        </el-dropdown>
      </div>
    </div>
    <!-- 重新布局的系统选择区域 -->
  <div class="app-container">
    <div class="systems-container">
      <div class="layout-container">
        <!-- 左侧列 -->
@@ -704,9 +679,6 @@
<style scoped lang="scss">
.system-select-container {
  height: 100vh;
  display: flex;
  flex-direction: column;
  background-color: #f5f7fa;
}
.user-info-bar {
@@ -759,8 +731,6 @@
.systems-container {
  flex: 1;
  padding: 20px;
  overflow-y: auto;
  width: 100%;
}
@@ -768,7 +738,7 @@
  display: flex;
  gap: 20px;
  width: 100%;
  height: 100%;
  height: calc(100% - 60px);
  max-width: none; /* 移除最大宽度限制 */
  margin: 0; /* 移除居中margin */
}
@@ -1368,12 +1338,8 @@
// 超大屏幕优化
@media (min-width: 1920px) {
  .systems-container {
    padding: 30px 40px;
  }
  .layout-container {
    gap: 30px;
    gap: 20px;
  }
  .module-card {