list.html 2.33 KB
<!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>