list.html
2.33 KB
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
<!DOCTYPE html>
<html lang="zh-CN" xmlns:th="http://www.thymeleaf.org">
<head>
<meta charset="UTF-8">
<title>A3 报告列表</title>
<link rel="stylesheet" th:href="@{/a3report/a3report.css}">
</head>
<body class="a3-page">
<div class="a3-header">
<div class="a3-header-title">
<span class="a3-header-bar"></span>
<h1>年度方针管理看板 - A3 报告</h1>
</div>
<div class="a3-header-actions">
<a class="btn btn-primary" th:href="@{/a3Report/page/add}">新增报告</a>
</div>
</div>
<div class="a3-card">
<div class="a3-card-title">
<span class="a3-card-title-bar"></span>
<span>A3 报告列表</span>
</div>
<table class="a3-table a3-list-table">
<thead>
<tr>
<th style="width:60px;">序号</th>
<th style="width:180px;">板块</th>
<th style="width:140px;">负责人</th>
<th style="width:120px;">年份</th>
<th style="width:140px;">工作计划状态</th>
<th>目标及现状情况</th>
<th style="width:220px;">操作</th>
</tr>
</thead>
<tbody>
<tr th:if="${#lists.isEmpty(reports)}">
<td colspan="7" class="empty-tip">暂无数据</td>
</tr>
<tr th:each="r,stat : ${reports}">
<td th:text="${stat.count}">1</td>
<td th:text="${blockNameMap.get(r.bk)} ?: '-'">板块</td>
<td th:text="${r.fzr} ?: '-'">负责人</td>
<td th:text="${r.nf != null} ? ${#dates.format(r.nf,'yyyy')} : '-'">2026</td>
<td th:text="${gzjhztDescMap.get(r.gzjhzt)} ?: (${r.gzjhzt} ?: '-')">状态</td>
<td class="ellipsis" th:text="${r.mdjxqkh} ?: '-'">目标及现状情况</td>
<td class="op-cell">
<a class="btn btn-mini" th:href="@{'/a3Report/page/view/' + ${r.id}}">查看</a>
<a class="btn btn-mini btn-primary" th:href="@{'/a3Report/page/edit/' + ${r.id}}">编辑</a>
<button type="button" class="btn btn-mini btn-danger"
th:attr="data-id=${r.id}"
onclick="deleteReport(this.getAttribute('data-id'))">删除
</button>
</td>
</tr>
</tbody>
</table>
</div>
<script th:src="@{/a3report/list.js}"></script>
</body>
</html>