<!DOCTYPE html>
|
<html lang="zh" xmlns:th="http://www.thymeleaf.org" >
|
<head>
|
<th:block th:include="include :: header('预览文章')" />
|
<th:block th:include="include :: layui-css"/>
|
</head>
|
<body class="white-bg">
|
<div class="wrapper wrapper-content animated fadeInRight ibox-content">
|
<form class="form-horizontal m" id="form-article-edit" th:object="${articleRegulation}">
|
<input id="articleRegulationId" name="articleRegulationId" th:field="*{articleRegulationId}" type="hidden">
|
<div class="form-group">
|
<div class="col-sm-10">
|
<input id="regulationContent" name="regulationContent" th:utext="*{regulationContent}" class="form-control" type="hidden">
|
</div>
|
</div>
|
|
<div class="form-group">
|
<div class="col-sm-8" >
|
<div class="layui-upload-list">
|
<table class="layui-table">
|
<thead>
|
<tr><th>文件名</th>
|
<th>状态</th>
|
<th>操作</th>
|
</tr></thead>
|
<tbody id="demoList" >
|
<tr th:each="file :${fileList}" th:id="${file.attachmentId}">
|
<td>[[${file.originalFileName}]]</td>
|
<td>已上传</td>
|
<td>
|
<a target="_blank" th:if="${#strings.contains(file.filePath,'.pdf')}" th:href="${serviceDomainName}+${file.filePath}"><button type="button" class="layui-btn layui-btn-xs layui-btn-primary">阅览</button></a>
|
<a target="_blank" th:if="${!#strings.contains(file.filePath,'.pdf')}" th:href="'https://view.officeapps.live.com/op/view.aspx?src='+${serviceDomainName}+${file.filePath}"><button type="button" class="layui-btn layui-btn-xs layui-btn-primary">阅览</button></a>
|
<a th:href="${file.filePath}" th:download="${file.originalFileName}"><button type="button" class="layui-btn layui-btn-xs layui-btn-normal" >下载</button></a>
|
</td>
|
|
</tr>
|
</tbody>
|
</table>
|
</div>
|
</div>
|
</div>
|
</form>
|
</div>
|
<th:block th:include="include :: footer" />
|
</body>
|
</html>
|