vue3实现pc端企业oa管理系统后台ui原型图代码

代码语言:html

所属分类:布局界面

代码描述:vue3实现pc端企业oa管理系统后台ui原型图代码

代码标签: vue pc端 企业 oa 管理 系统 后台 ui 原型图 代码

下面为部分代码预览,完整代码请点击下载或在bfwstudio webide中打开

<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>企业OA管理系统 - PC端</title>
<script type="text/javascript" src="//repo.bfw.wiki/bfwrepo/js/vue3.2.22.js"></script>
    <style>
        /* --- 全局样式与CSS变量 --- */
        :root {
            --primary-color: #1890ff;
            --sidebar-bg: #001529;
            --header-bg: #fff;
            --content-bg: #f0f2f5;
            --text-color: #333;
            --text-color-secondary: #555;
            --text-color-inverse: rgba(255, 255, 255, 0.65);
            --text-color-inverse-active: #fff;
            --border-color: #e8e8e8;
            --card-shadow: 0 2px 8px rgba(0, 0, 0, 0.09);
        }

        body, html {
            margin: 0;
            padding: 0;
            font-family: "Helvetica Neue", Helvetica, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "微软雅黑", Arial, sans-serif;
            background-color: var(--content-bg);
            color: var(--text-color);
            height: 100%;
            overflow: hidden;
        }

        #app {
            height: 100vh;
            display: flex;
        }

        /* --- 整体布局 --- */
        .sidebar {
            width: 200px;
            background-color: var(--sidebar-bg);
            color: var(--text-color-inverse);
            display: flex;
            flex-direction: column;
            transition: width 0.3s;
        }
        .sidebar.collapsed {
            width: 64px;
        }
        .sidebar-header {
            height: 64px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 20px;
            color: #fff;
            font-weight: 600;
            white-space: nowrap;
            overflow: hidden;
        }
        .sidebar-header .logo {
            width: 32px;
            height: 32px;
            margin-right: 12px;
        }
        .sidebar.collapsed .sidebar-header .logo {
            margin-right: 0;
        }
        .sidebar.collapsed .sidebar-header span {
            display: none;
        }

        .nav-menu {
            list-style: none;
            padding: 0;
            margin: 0;
            flex-grow: 1;
        }
        .nav-item {
            display: flex;
            align-items: center;
            padding: 14px 20px;
            cursor: pointer;
            transition: background-color 0.2s;
            white-space: nowrap;
            overflow: hidden;
        }
        .nav-item:hover {
            background-color: #1890ff;
            color: var(--text-color-inverse-active);
        }
        .nav-item.active {
            background-color: var(--primary-color);
            color: var(--text-color-inverse-active);
        }
        .nav-item svg {
            width: 18px;
            height: 18px;
            margin-right: 12px;
            flex-shrink: 0;
        }
        .sidebar.collapsed .nav-item {
            justify-content: center;
        }
        .sidebar.collapsed .nav-item svg {
            margin-right: 0;
            width: 22px;
            height: 22px;
        }
        .sidebar.collapsed .nav-item span {
            display: none;
        }


        .main-wrapper {
            flex-grow: 1;
            display: flex;
            flex-direction: column;
            height: 100vh;
            overflow: hidden;
        }

        .top-header {
            height: 64px;
            background-color: var(--header-bg);
            box-shadow: 0 1px 4px rgba(0, 21, 41, 0.08);
            display: flex;
            align-items: center;
            justify-content: space-between;
            padding: 0 20px;
            flex-shrink: 0;
        }
        .header-left .collapse-btn {
            cursor: pointer;
            font-size: 20px;
        }
        
        .header-right {
            display: flex;
            align-items: center;
        }
        .user-profile {
            display: flex;
            align-items: center;
            cursor: pointer;
        }
        .user-profile img {
            width: 32px;
            height: 32px;
            border-radius: 50%;
            margin-right: 10px;
        }

        .main-content {
            flex-grow: 1;
            padding: 24px;
            overflow-y: auto;
        }
        
        /* --- 组件样式 --- */
        .card {
            background: #fff;
            padding: 24px;
            border-radius: 4px;
            box-shadow: var(--card-shadow);
            margin-bottom: 24px;
        }
        .card-header {
            font-size: 16px;
            font-weight: 500;
            margin-bottom: 20px;
            border-bottom: 1px solid var(--border-color);
            padding-bottom: 16px;
        }

        .data-table {
            width: 100%;
            border-collapse: collapse;
        }
        .data-table th, .data-table td {
            padding: 12px 16px;
            text-align: left;
            border-bottom: 1px solid var(--border-color);
        }
        .data-table th {
            background-color: #fafafa;
            font-weight: 500;
        }
        .data-table tbody tr:hover {
            background-color: #f5f5f5;
            cursor: pointer;
        }
        
        .button {
            display: inline-block;
            padding: 6px 15px;
     .........完整代码请登录后点击上方下载按钮下载查看

网友评论0