liujie
2026-07-10 bedff910eb2394a8ce68762a8f3a413d81187ac1
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
<!doctype html>
<html lang="zh-CN">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>首页 - 运营活动管理平台</title>
  <link rel="stylesheet" href="../css/dashboard.css">
  <link rel="stylesheet" href="../css/components.css">
</head>
<body>
  <div class="app-shell">
    <aside class="sidebar">
      <div class="brand">
        <img src="../assets/login-avatar.svg" alt="">
        <strong>运营活动管理平台</strong>
      </div>
 
      <nav class="menu" aria-label="主菜单">
        <a class="menu-item active" href="./dashboard.html">
          <span class="menu-icon home"></span>
          <span>首页</span>
        </a>
 
        <section class="menu-group">
          <button class="menu-title" type="button">
            <span class="menu-icon screen"></span>
            <span>系统</span>
            <span class="chevron"></span>
          </button>
          <a href="./system-config.html">系统配置</a>
          <a href="./protocol-config.html">入园承诺</a>
          <a href="./version-update.html">访客机版本更新</a>
        </section>
 
        <section class="menu-group">
          <button class="menu-title" type="button">
            <span class="menu-icon device"></span>
            <span>设备管理</span>
            <span class="chevron"></span>
          </button>
          <a href="./visitor-machine.html">访客机管理</a>
          <a href="./door-management.html">门禁管理</a>
        </section>
 
        <section class="menu-group">
          <button class="menu-title" type="button">
            <span class="menu-icon people"></span>
            <span>人员管理</span>
            <span class="chevron"></span>
          </button>
          <a href="./department-management.html">部门</a>
          <a href="./employee-management.html">员工管理</a>
        </section>
 
        <a class="menu-item" href="./area-management.html">
          <span class="menu-icon map"></span>
          <span>区域管理</span>
        </a>
 
        <section class="menu-group">
          <button class="menu-title" type="button">
            <span class="menu-icon log"></span>
            <span>记录与日志</span>
            <span class="chevron"></span>
          </button>
          <a href="./visitor-record.html">访客登记记录</a>
          <a href="./operation-log.html">操作日志</a>
        </section>
 
        <section class="menu-group">
          <button class="menu-title" type="button">
            <span class="menu-icon account"></span>
            <span>账号管理</span>
            <span class="chevron"></span>
          </button>
          <a href="./platform-admin.html">平台管理员</a>
          <a href="./role-management.html">角色</a>
        </section>
      </nav>
    </aside>
 
    <section class="main">
      <header class="topbar">
        <div></div>
        <div class="top-actions">
          <button class="icon-button" type="button" title="全屏">
            <span class="expand-icon"></span>
          </button>
          <span class="user-avatar">秀</span>
          <div class="user-menu">
            <button id="userMenuButton" class="user-name" type="button" aria-haspopup="true" aria-expanded="false">
              <span id="userDisplayName">肖玲</span>
              <span class="user-caret"></span>
            </button>
            <div id="userDropdown" class="user-dropdown" hidden>
              <button type="button" data-action="profile">账号设置</button>
              <button type="button" data-action="password">重置密码</button>
              <button type="button" data-action="logout">退出登录</button>
            </div>
          </div>
        </div>
      </header>
 
      <div class="tabs">
        <span class="home-tab"></span>
        <span class="tab-divider"></span>
        <span class="tab active">首页</span>
      </div>
 
      <main class="content">
        <section class="overview-panel">
          <div class="section-toolbar">
            <h1>数据总览</h1>
            <div class="date-filter">
              <span>统计周期:</span>
              <button class="date-input" type="button">
                <span class="calendar-icon"></span>
                <span>~</span>
              </button>
              <button class="filter-button" type="button">今日</button>
              <button class="filter-button active" type="button">最近7天</button>
              <button class="filter-button" type="button">最近30天</button>
            </div>
          </div>
 
          <div id="summaryCards" class="summary-grid"></div>
        </section>
 
        <section class="lower-grid">
          <article class="panel trend-panel">
            <h2>登记趋势</h2>
            <canvas id="trendChart" width="760" height="310" aria-label="登记趋势折线图"></canvas>
            <div class="chart-legend">
              <span><i class="legend-dot blue"></i>现场登记</span>
              <span><i class="legend-dot green"></i>预约登记</span>
            </div>
          </article>
 
          <article class="panel quick-panel">
            <h2>快捷入口</h2>
            <div id="quickEntries" class="quick-grid"></div>
          </article>
        </section>
      </main>
    </section>
  </div>
 
  <div id="profileModal" class="modal" hidden>
    <div class="modal-mask" data-close="profile"></div>
    <section class="modal-panel profile-panel" role="dialog" aria-modal="true" aria-labelledby="profileTitle">
      <header class="modal-header">
        <h3 id="profileTitle">个人信息设置</h3>
        <button class="modal-close" type="button" data-close="profile">×</button>
      </header>
      <form id="profileForm" class="modal-form profile-form">
        <label class="form-row">
          <span>用户名称</span>
          <input id="profileNickName" name="nickName" placeholder="请输入">
        </label>
        <div class="form-row avatar-row">
          <span>头像</span>
          <button id="avatarBox" class="avatar-upload" type="button" aria-label="上传头像">
            <img id="avatarPreview" alt="" hidden>
            <span id="avatarPlus">+</span>
          </button>
          <input id="avatarFile" type="file" accept="image/*" hidden>
        </div>
        <p id="profileMessage" class="modal-message"></p>
        <footer class="modal-actions">
          <button class="ghost-button" type="button" data-close="profile">取消</button>
          <button class="primary-button" type="submit">保存</button>
        </footer>
      </form>
    </section>
  </div>
 
  <div id="passwordModal" class="modal" hidden>
    <div class="modal-mask" data-close="password"></div>
    <section class="modal-panel password-panel" role="dialog" aria-modal="true" aria-labelledby="passwordTitle">
      <header class="modal-header">
        <h3 id="passwordTitle">重置密码</h3>
        <button class="modal-close" type="button" data-close="password">×</button>
      </header>
      <form id="passwordForm" class="modal-form password-form">
        <label class="form-row required">
          <span>原密码</span>
          <input id="oldPassword" name="oldPassword" type="password" autocomplete="current-password" placeholder="请输入至少12位含大小写字母、特殊字符的密码">
        </label>
        <label class="form-row required">
          <span>新密码</span>
          <input id="newPassword" name="newPassword" type="password" autocomplete="new-password" placeholder="请输入至少12位含大小写字母、特殊字符的密码">
        </label>
        <label class="form-row required">
          <span>确认密码</span>
          <input id="confirmPassword" name="confirmPassword" type="password" autocomplete="new-password" placeholder="请输入至少12位含大小写字母、特殊字符的密码">
        </label>
        <p id="passwordMessage" class="modal-message"></p>
        <footer class="modal-actions">
          <button class="ghost-button" type="button" data-close="password">取消</button>
          <button class="primary-button" type="submit">确认</button>
        </footer>
      </form>
    </section>
  </div>
 
  <script src="../js/components.js"></script>
  <script src="../js/config.js"></script>
  <script src="../js/dashboard.js"></script>
</body>
</html>