文件管理文件预览完成;

This commit is contained in:
augushong
2019-08-26 13:08:56 +08:00
parent b9f4379bc4
commit b47dbd5cf6
2 changed files with 7 additions and 1 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 31 KiB

View File

@@ -48,7 +48,13 @@
<tr>
<td>{$vo.id}</td>
<td>
{switch $vo.mime_type}
{case image/png|image/gif|image/jpeg }
<a href="{$vo.src}" target="_blank"><img onerror="this.src = '/static/images/error.jpg'" src="{$vo.src}" alt=""></a>
{/case}
{default /}
<a href="{$vo.src}" target="_blank" class="layui-btn layui-btn-sm">打开源文件</a>
{/switch}
</td>
<td>
<p>保存名称:{$vo->getData('save_name')}</p>