|
|
@@ -1,7 +1,14 @@
|
|
|
<header class="page-header">
|
|
|
<div><h1>意见反馈与休假申请</h1><p>集中查看学生与老师提交的意见和申请</p></div>
|
|
|
- <button class="ui-button" type="button" (click)="load()" [disabled]="loading()">刷新</button>
|
|
|
</header>
|
|
|
+@if (data(); as d) {
|
|
|
+ <section class="summary-grid" aria-label="当前筛选统计">
|
|
|
+ <article class="summary-card"><span>当前筛选 · 共计</span><strong>{{d.total}}</strong></article>
|
|
|
+ <article class="summary-card"><span>意见反馈</span><strong>{{d.summary.feedback}}</strong></article>
|
|
|
+ <article class="summary-card"><span>休假申请</span><strong>{{d.summary.leave}}</strong></article>
|
|
|
+ <article class="summary-card"><span>历史未分类</span><strong>{{d.summary.legacy}}</strong></article>
|
|
|
+ </section>
|
|
|
+}
|
|
|
<form class="toolbar request-filters" (ngSubmit)="apply()">
|
|
|
<label class="search-field">搜索<input name="search" [(ngModel)]="search" maxlength="200" placeholder="姓名、用户编号或内容" /></label>
|
|
|
<label>提交身份<select aria-label="提交身份" name="role" [(ngModel)]="role"><option value="">全部身份</option><option value="student">学生</option><option value="teacher">老师</option><option value="other">其他 / 未匹配</option></select></label>
|
|
|
@@ -15,12 +22,6 @@
|
|
|
@if (error()) { <div class="notice error" role="alert">{{error()}} <button class="ui-button" type="button" (click)="load()" [disabled]="loading()">重新加载</button></div> }
|
|
|
@if (message()) { <p class="notice" role="status">{{message()}}</p> }
|
|
|
@if (data(); as d) {
|
|
|
- <section class="summary-grid" aria-label="当前筛选统计">
|
|
|
- <article class="summary-card"><span>当前筛选 · 共计</span><strong>{{d.total}}</strong></article>
|
|
|
- <article class="summary-card"><span>意见反馈</span><strong>{{d.summary.feedback}}</strong></article>
|
|
|
- <article class="summary-card"><span>休假申请</span><strong>{{d.summary.leave}}</strong></article>
|
|
|
- <article class="summary-card"><span>历史未分类</span><strong>{{d.summary.legacy}}</strong></article>
|
|
|
- </section>
|
|
|
<p class="history-note">历史表单未区分类型,统一保留在“历史未分类”中。身份按提交账号的当前资料显示;提交申请不代表已获准休假。</p>
|
|
|
<section class="content-card request-list" aria-label="反馈与申请列表">
|
|
|
<header><strong>提交记录</strong><small>更新于 {{d.refreshedAt | date:'MM-dd HH:mm':'+0800'}} · 北京时间</small></header>
|