Files
guoju0808/proto/html/components/home.html
T
郭庆泰 cf5790229a refactor: 合并 biz_support_unit/biz_execution_unit/biz_service_org 为 biz_org, 删除 2 张孤儿表, 改 biz_person.work_unit → org_id FK
主要改动:
- SQL: biz_support_unit → biz_org, 加 org_type, 加 business_nature; 删 biz_execution_unit, biz_service_org
- SQL: biz_project.support_unit_id/name + service_org_id/name → org_id/name/type
- SQL: biz_meeting.support_unit_name → org_name
- SQL: biz_person.work_unit → org_id (FK)
- 后端: 新 BizOrg entity/mapper/service/controller
- 后端: BizProject/BizMeeting 字段重命名
- 后端: 删 12 个 BizSupportUnit/BizExecutionUnit/BizServiceOrg Java 文件
- 后端: BizPersonImportVO.workUnit → orgName (导入时查 biz_org 取 org_id)
- 后端: BizAuthController.registerExecutor 完整实现 (原 registerSupplier stub)
- 前端: 新 admin/Orgs.vue + manager/Orgs.vue (原 SupportUnits)
- 前端: RegisterExecutor.vue (原 RegisterSupplier, 单页 2 步)
- 前端: sponsor/executor/manager 多个文件 workUnit → orgId/orgName 重命名
- 前端: 统一 supplier → executor, 业务命名 sponsor(赞助方) / executor(执行方=供应商)
- 前端: 全工程 execution → executor (company type / role / person unit_type)
2026-08-15 12:41:10 +08:00

374 lines
12 KiB
HTML

<!DOCTYPE html>
<!--
角色: 医生/专家
父级: doctor.html
链: <li data-page="components/home.html">
原型: 原型/首页_2.html (专家菜单)
区别: 另一个首页是 components/overview.html(执行方,不要混)
-->
<html lang="zh-CN">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>首页 - 项目管理系统</title>
<style>
* { margin: 0; padding: 0; box-sizing: border-box; }
body {
font-family: -apple-system, "PingFang SC", "Microsoft YaHei", sans-serif;
color: #333;
background: #fafafa;
min-height: 100vh;
}
.content {
padding: 24px 32px;
}
/* 欢迎栏 */
.welcome-bar {
background: linear-gradient(135deg, #1890ff, #722ed1);
border-radius: 8px;
padding: 24px 28px;
color: #fff;
display: flex;
align-items: center;
justify-content: space-between;
margin-bottom: 24px;
}
.welcome-text h2 {
font-size: 20px;
font-weight: 600;
margin-bottom: 6px;
}
.welcome-text p {
font-size: 13px;
opacity: 0.85;
}
.welcome-time .now {
font-size: 14px;
font-weight: 500;
}
.welcome-time .date {
font-size: 12px;
opacity: 0.75;
margin-top: 4px;
}
/* 章节 */
.section {
background: #fff;
border-radius: 8px;
padding: 20px 24px;
margin-bottom: 16px;
border: 1px solid #f0f0f0;
}
.section-title {
font-size: 15px;
font-weight: 600;
color: #1a1a1a;
margin-bottom: 12px;
padding-left: 10px;
border-left: 3px solid #1890ff;
line-height: 1;
display: flex;
align-items: center;
justify-content: space-between;
}
.more {
font-size: 12px;
color: #1890ff;
text-decoration: none;
font-weight: normal;
}
.more:hover { text-decoration: underline; }
/* 2 列布局 */
.cols-row {
display: grid;
grid-template-columns: 1fr 1fr;
gap: 16px;
}
/* 简单列表(待参加 / 待签署) */
.simple-list {
list-style: none;
border-top: 1px solid #f0f0f0;
}
.simple-item {
padding: 10px 0;
border-bottom: 1px solid #f0f0f0;
display: flex;
align-items: center;
justify-content: space-between;
gap: 12px;
cursor: pointer;
}
.simple-item:last-child { border-bottom: none; }
.simple-item:hover .item-title { color: #1890ff; }
.item-main {
display: flex;
align-items: center;
gap: 8px;
min-width: 0;
flex: 1;
}
.item-icon {
flex-shrink: 0;
width: 22px;
height: 22px;
border-radius: 4px;
display: flex;
align-items: center;
justify-content: center;
font-size: 12px;
background: #e6f7ff;
color: #1890ff;
}
.item-icon.agreement { background: #fff7e6; color: #fa8c16; }
.item-title {
font-size: 13px;
color: #1a1a1a;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
flex: 1;
transition: color 0.2s;
}
.item-status {
flex-shrink: 0;
font-size: 12px;
color: #8c8c8c;
}
.item-status.done { color: #52c41a; }
/* 消息通知 */
.notice-list {
list-style: none;
border-top: 1px solid #f0f0f0;
}
.notice-item {
padding: 12px 0;
border-bottom: 1px solid #f0f0f0;
display: flex;
align-items: center;
gap: 12px;
cursor: pointer;
}
.notice-item:last-child { border-bottom: none; }
.notice-item:hover .title { color: #1890ff; }
.notice-item .dot {
width: 6px;
height: 6px;
border-radius: 50%;
background: #1890ff;
flex-shrink: 0;
}
.notice-item.read .dot {
background: transparent;
border: 1px solid #d9d9d9;
}
.notice-item .body {
flex: 1;
min-width: 0;
}
.notice-item .title {
font-size: 13px;
color: #1a1a1a;
transition: color 0.2s;
}
.notice-item.read .title { color: #8c8c8c; }
.notice-item .text {
font-size: 12px;
color: #595959;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.notice-item .time {
font-size: 12px;
color: #bfbfbf;
flex-shrink: 0;
}
/* ============= 响应式 ============= */
@media (max-width: 768px) {
.cols-row { grid-template-columns: 1fr; }
.content { padding: 16px; }
}
</style>
</head>
<body>
<main class="content">
<!-- 欢迎栏 -->
<div class="welcome-bar">
<div class="welcome-text">
<h2>下午好,张三专家 👋</h2>
<p>欢迎使用项目管理系统</p>
</div>
<div class="welcome-time">
<div class="now" id="current-time"></div>
<div class="date" id="current-date"></div>
</div>
</div>
<!-- 待参加的会议 + 待签署的协议(2 列) -->
<div class="cols-row">
<div class="section">
<h2 class="section-title">
待参加的会议
<a class="more" href="我参与的会议.html">更多 →</a>
</h2>
<ul class="simple-list">
<li class="simple-item">
<div class="item-main">
<div class="item-icon">📅</div>
<span class="item-title">2024 年度临床医学研究项目专家评审会议</span>
</div>
<span class="item-status">09:00</span>
</li>
<li class="simple-item">
<div class="item-main">
<div class="item-icon">📅</div>
<span class="item-title">智慧医院建设项目方案论证会</span>
</div>
<span class="item-status">明天</span>
</li>
<li class="simple-item">
<div class="item-main">
<div class="item-icon">📅</div>
<span class="item-title">基层医疗改革试点项目中期评估会</span>
</div>
<span class="item-status">08-12</span>
</li>
<li class="simple-item">
<div class="item-main">
<div class="item-icon">📅</div>
<span class="item-title">数字化医疗转型方案评审会</span>
</div>
<span class="item-status">08-18</span>
</li>
</ul>
</div>
<div class="section">
<h2 class="section-title">
待签署的协议
<a class="more" href="我的项目设计投稿.html">更多 →</a>
</h2>
<ul class="simple-list">
<li class="simple-item">
<div class="item-main">
<div class="item-icon agreement">📄</div>
<span class="item-title">《数字化医疗转型方案》专家意见书</span>
</div>
<span class="item-status">待签署</span>
</li>
<li class="simple-item">
<div class="item-main">
<div class="item-icon agreement">📄</div>
<span class="item-title">《智慧医院建设方案》专家评审协议</span>
</div>
<span class="item-status">待签署</span>
</li>
<li class="simple-item">
<div class="item-main">
<div class="item-icon agreement">📄</div>
<span class="item-title">《基层卫生服务能力提升方案》保密协议</span>
</div>
<span class="item-status done">已完成</span>
</li>
</ul>
</div>
</div>
<!-- 消息通知 -->
<section class="section">
<h2 class="section-title">
消息通知
<a class="more" href="消息通知.html">更多 →</a>
</h2>
<ul class="notice-list">
<li class="notice-item">
<div class="dot"></div>
<div class="body">
<div class="title">系统通知: 您有新的会议邀请</div>
<div class="text">2024 年度临床医学研究项目专家评审会议邀请已发出,请确认出席。</div>
</div>
<span class="time">2 小时前</span>
</li>
<li class="notice-item">
<div class="dot"></div>
<div class="body">
<div class="title">审核结果: 投稿方案已通过初审</div>
<div class="text">您提交的《基层卫生服务能力提升方案》已通过初审,请等待终审。</div>
</div>
<span class="time">昨天 16:30</span>
</li>
<li class="notice-item read">
<div class="dot"></div>
<div class="body">
<div class="title">项目动态: 新阶段开启</div>
<div class="text">您参与的"基层医疗改革试点项目"已进入实施阶段,请关注后续任务安排。</div>
</div>
<span class="time">2026-08-01</span>
</li>
<li class="notice-item read">
<div class="dot"></div>
<div class="body">
<div class="title">系统升级公告</div>
<div class="text">系统将于本周日 02:00 - 04:00 进行升级维护,请提前安排工作。</div>
</div>
<span class="time">2026-07-30</span>
</li>
</ul>
</section>
</main>
<script>
// 当前时间
function updateTime() {
const now = new Date();
const time = now.toLocaleTimeString('zh-CN', { hour: '2-digit', minute: '2-digit' });
const date = now.toLocaleDateString('zh-CN', { month: 'long', day: 'numeric', weekday: 'long' });
document.getElementById('current-time').textContent = time;
document.getElementById('current-date').textContent = date;
}
updateTime();
setInterval(updateTime, 60000);
// simple-item 整行可点击
document.querySelectorAll('.simple-item').forEach(item => {
item.addEventListener('click', function() {
const titleEl = item.querySelector('.item-title').textContent;
console.log('clicked:', titleEl);
});
});
</script>
</body>
</html>