create_project.html
`
项目审核
<!-- 搜索表单 -->
<div class="search-form">
<form action="/project/audit" method="get">
<div class="form-row">
<div class="form-group">
<label for="projectId">项目编号</label>
<input type="text" id="projectId" name="projectId" th:value="${projectId}">
</div>
<div class="form-group">
<label for="projectName">项目名称</label>
<input type="text" id="projectName" name="projectName" th:value="${projectName}">
</div>
<div class="form-group" style="display: flex; align-items: flex-end;">
<button type="submit" class="search-btn">搜索</button>
</div>
</div>
</form>
</div>
<!-- 项目列表 -->
<table>
<thead>
<tr>
<th>项目编号</th>
<th>项目名称</th>
<th>项目位置</th>
<th>项目属性</th>
<th>总投资(万元)</th>
<th>上报日期</th>
<th>审核状态</th>
<th>操作</th>
</tr>
</thead>
<tbody>
<tr th:each="project : ${projects}">
<td th:text="${project.projectId}"></td>
<td th:text="${project.projectName}"></td>
<td th:text="${project.projectLocation}"></td>
<td th:text="${project.projectProperty}"></td>
<td th:text="${project.totalInvestment}"></td>
<td th:text="${#dates.format(project.reportDate, 'yyyy-MM-dd')}"></td>
<td>
<span class="audit-status" th:classappend="${project.auditStatus} == 0 ? 'status-pending' : 'status-approved'"
th:text="${project.auditStatus} == 0 ? '未审核' : '已审核'"></span>
</td>
<td>
<form action="/project/auditProject" method="post" class="audit-form">
<input type="hidden" name="projectId" th:value="${project.projectId}">
<input type="hidden" name="auditStatus" value="1">
<input type="hidden" name="auditOpinion" value="审核通过">
<button type="submit" class="audit-btn" th:disabled="${project.auditStatus} == 1">
<span th:text="${project.auditStatus} == 0 ? '审核' : '已审核'"></span>
</button>
</form>
</td>
</tr>
</tbody>
</table>
<a href="/project/" class="back-link">返回首页</a>

浙公网安备 33010602011771号