vue3实现pc端医院门诊管理系统ui原型图代码
代码语言:html
所属分类:布局界面
代码描述:vue3实现pc端医院门诊管理系统ui原型图代码
代码标签: vue pc端 医院 门诊 管理 系统 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>医院门诊管理系统</title>
<script type="text/javascript" src="//repo.bfw.wiki/bfwrepo/js/vue.global.prod.3.5.17.js"></script>
<script type="text/javascript" src="//repo.bfw.wiki/bfwrepo/js/echarts.5.4.2.js"></script>
<style>
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
body {
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
background: #f5f7fa;
color: #333;
}
.app {
display: flex;
height: 100vh;
}
/* 侧边栏样式 */
.sidebar {
width: 260px;
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
color: white;
display: flex;
flex-direction: column;
box-shadow: 2px 0 10px rgba(0,0,0,0.1);
}
.logo {
padding: 20px;
text-align: center;
border-bottom: 1px solid rgba(255,255,255,0.1);
}
.logo h2 {
font-size: 20px;
font-weight: 600;
}
.nav-menu {
flex: 1;
padding: 20px 0;
}
.nav-item {
padding: 12px 20px;
cursor: pointer;
transition: all 0.3s;
display: flex;
align-items: center;
gap: 12px;
}
.nav-item:hover, .nav-item.active {
background: rgba(255,255,255,0.1);
border-right: 3px solid white;
}
.nav-item svg {
width: 20px;
height: 20px;
}
/* 主内容区域 */
.main-content {
flex: 1;
display: flex;
flex-direction: column;
}
.header {
background: white;
padding: 15px 30px;
box-shadow: 0 2px 10px rgba(0,0,0,0.1);
display: flex;
justify-content: space-between;
align-items: center;
}
.header h1 {
font-size: 24px;
color: #333;
}
.user-info {
display: flex;
align-items: center;
gap: 15px;
}
.user-avatar {
width: 40px;
height: 40px;
border-radius: 50%;
}
.content {
flex: 1;
padding: 30px;
overflow-y: auto;
}
/* 卡片样式 */
.card {
background: white;
border-radius: 10px;
padding: 25px;
box-shadow: 0 4px 20px rgba(0,0,0,0.1);
margin-bottom: 25px;
}
.card-header {
display: flex;
justify-content: between;
align-items: center;
margin-bottom: 20px;
padding-bottom: 15px;
border-bottom: 2px solid #f0f0f0;
}
.card-title {
font-size: 18px;
font-weight: 600;
color: #333;
}
/* 按钮样式 */
.btn {
padding: 10px 20px;
border: none;
border-radius: 6px;
cursor: pointer;
font-size: 14px;
font-weight: 500;
transition: all 0.3s;
display: inline-flex;
align-items: center;
gap: 8px;
}
.btn-primary {
background: #667eea;
color: white;
}
.btn-primary:hover {
background: #5a6fd8;
transform: translateY(-1px);
}
.btn-success {
background: #28a745;
color: white;
}
.btn-danger {
background: #dc3545;
color: white;
}
.btn-warning {
background: #ffc107;
color: #333;
}
/* 表格样式 */
.table {
width: 100%;
border-collapse: collapse;
margin-top: 20px;
}
.table th,
.table td {
padding: 12px 15px;
text-align: left;
border-bottom: 1px solid #dee2e6;
}
.table th {
background: #f8f9fa;
font-weight: 600;
color: #495057;
}
.table tbody tr:hover {
background: #f8f9fa;
}
/* 表单样式 */
.form-group {
margin-bottom: 20px;
}
.form-label {
display: block;
margin-bottom: 5px;
font-weight: 500;
color: #555;
}
.form-control {
width: 100%;
padding: 10px 15px;
border: 2px solid #e9ecef;
border-radius: 6px;
font-size: 14px;
transition: border-color 0.3s;
}
.form-control:focus {
outline: none;
border-color: #667eea;
}
/* 模态框样式 */
.modal {
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
background: rgba(0,0,0,0.5);
display: flex;
justify-content: center;
align-items: center;
z-index: 1000;
}
.modal-content {
background: white;
border-radius: 10px;
padding: 30px;
width: 90%;
max-width: 500px;
max-height: 80vh;
overflow-y: auto;
}
.modal-header {
display: flex;
justify-content: space-between;
align-items: center;
margin-bottom: 20px;
padding-bottom: 15px;
border-bottom: 2px solid #f0f0f0;
}
.close-btn {
background: none;
border: none;
font-size: 24px;
cursor: pointer;
color: #999;
}
/* 状态标签 */
.status-badge {
padding: 4px 12px;
border-radius: 20px;
font-size: 12px;
font-weight: 500;
}
.status-active {
background: #d4edda;
color: #155724;
}
.status-pending {
background: #fff3cd;
color: #856404;
}
.status-completed {
background: #d1ecf1;
color: #0c5460;
}
/* 统计卡片 */
.stats-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
gap: 20px;
margin-bottom: 30px;
}
.stat-card {
background: white;
padding: 25px;
border-radius: 10px;
box-shadow: 0 4px 20px rgba(0,0,0,0.1);
text-align: center;
position: relative;
overflow: hidden;
}
.stat-card::before {
content: '';
position: absolute;
top: 0;
left: 0;
right: 0;
height: 4px;
background: linear-gradient(90deg, #667eea, #764ba2);
}
.stat-number {
font-size: 36px;
font-weight: 700;
color: #333;
margin-bottom: 10px;
}
.stat-label {
color: #666;
font-size: 14px;
font-weight: 500;
}
/* 搜索框 */
.search-box {
position: relative;
margin-bottom: 20px;
}
.search-input {
width: 300px;
padding: 10px 40px 10px 15px;
border: 2px solid #e9ecef;
border-radius: 25px;
font-size: 14px;
}
.search-btn {
position: absolute;
right: 10px;
top: 50%;
transform: translateY(-50%);
background: none;
border: none;
cursor: pointer;
}
/* 响应式 */
@media (max-width: 768px) {
.sidebar {
width: 220px;
}
.content {
padding: 20px;
}
.stats-grid {
grid-template-columns: 1fr;
}
}
.chart-container {
height: 400px;
margin-top: 20px;
}
.row {
display: flex;
gap: 20px;
margin-bottom: 20px;
}
.col {
flex: 1;
}
</style>
</head>
<body>
<div id="app">
<div class="app">
<!-- 侧边栏 -->
<div class="sidebar">
<div class="logo">
<h2>🏥 门诊管理系统</h2>
</div>
<div class="nav-menu">
<div class="nav-item" :class="{active: currentPage === 'dashboard'}" @click="setCurrentPage('dashboard')">
<svg viewBox="0 0 24 24" fill="currentColor">
<path d="M3 13h8V3H3v10zm0 8h8v-6H3v6zm10 0h8V11h-8v10zm0-18v6h8V3h-8z"/>
</svg>
仪表盘
</div>
<div class="nav-item" :class="{active: currentPage === 'patients'}" @click="setCurrentPage('patients')">
<svg viewBox="0 0 24 24" fill="currentColor">
<path d="M12 12c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm0 2c-2.67 0-8 1.34-8 4v2h16v-2c0-2.66-5.33-4-8-4z"/>
</svg>
患者管理
</div>
<div class="nav-item" :class="{active: currentPage === 'appointments'}" @click="setCurrentPage('appointments')">
<svg viewBox="0 0 24 24" fill="currentColor">
<path d="M19 3h-1V1h-2v2H8V1H6v2H5c-1.11 0-1.99.9-1.99 2L3 19c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm0 16H5V8h14v11zM7 10h5v5H7z"/>
</svg>
预约管理
</div>
<div class="nav-item" :class="{active: currentPage === 'doctors'}" @click="setCurrentPage('doctors')">
<svg viewBox="0 0 24 24" fill="currentColor">
<path d="M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zM9 17H7v-7h2v7zm4 0h-2V7h2v10zm4 0h-2v-4h2v4z"/>
</svg>
医生管理
</div>
<div class="nav-item" :class="{active: currentPage === 'schedule'}" @click="setCurrentPage('schedule')">
<svg viewBox="0 0 24 24" fill="currentColor">
<path d="M11.99 2C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2zM12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8zm.5-13H11v6l5.25 3.15.75-1.23-4.5-2.67z"/>
</svg>
排班管理
</div>
<div class="nav-item" :class="{active: currentPage === 'reports'}" @click="setCurrentPage('reports')">
<svg viewBox="0 0 24 24" fill="currentColor">
<path d="M3.5 18.49l6-6.01 4 4L22 6.92l-1.41-1.41-7.09 7.97-4-4L2 16.99z"/>
</svg>
统计报表
</div>
</div>
</div>
<!-- 主内容区域 -->
<div class="main-content">
<!-- 头部 -->
<div class="head.........完整代码请登录后点击上方下载按钮下载查看
















网友评论0