mirror of
https://gitee.com/zoujingli/ThinkAdmin.git
synced 2025-04-06 03:58:04 +08:00
修改文件管理
This commit is contained in:
parent
4f3e8ac8a9
commit
5fb289558b
@ -11,7 +11,7 @@
|
|||||||
<span class="help-label"><b>文件大小</b>Size</span>
|
<span class="help-label"><b>文件大小</b>Size</span>
|
||||||
<input maxlength="100" class="layui-input layui-bg-gray" value='{$vo.size|default=0|format_bytes}' readonly>
|
<input maxlength="100" class="layui-input layui-bg-gray" value='{$vo.size|default=0|format_bytes}' readonly>
|
||||||
</label>
|
</label>
|
||||||
|
|
||||||
<label class="layui-form-item relative block">
|
<label class="layui-form-item relative block">
|
||||||
<span class="help-label"><b>存储方式</b>Type</span>
|
<span class="help-label"><b>存储方式</b>Type</span>
|
||||||
<input maxlength="100" class="layui-input layui-bg-gray" value='{$types[$vo.type]??""}' readonly>
|
<input maxlength="100" class="layui-input layui-bg-gray" value='{$types[$vo.type]??""}' readonly>
|
||||||
|
@ -25,13 +25,13 @@
|
|||||||
{field: 'name', title: '文件名称', width: '12%', align: 'center'},
|
{field: 'name', title: '文件名称', width: '12%', align: 'center'},
|
||||||
{field: 'hash', title: '文件哈希', width: '15%', align: 'center', templet: '<div><code>{{d.hash}}</code></div>'},
|
{field: 'hash', title: '文件哈希', width: '15%', align: 'center', templet: '<div><code>{{d.hash}}</code></div>'},
|
||||||
{
|
{
|
||||||
field: 'size', title: '文件大小', align: 'center', width: '8%', sort: true, templet: function (d) {
|
field: 'size', title: '文件大小', align: 'center', width: '7%', sort: true, templet: function (d) {
|
||||||
return $.formatFileSize(d.size)
|
return $.formatFileSize(d.size)
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{field: 'xext', title: '文件后缀', align: 'center', width: '8%', sort: true},
|
{field: 'xext', title: '文件后缀', align: 'center', width: '7%', sort: true},
|
||||||
{
|
{
|
||||||
field: 'xurl', title: '查看文件', width: '8%', align: 'center', templet: function (d) {
|
field: 'xurl', title: '查看文件', width: '7%', align: 'center', templet: function (d) {
|
||||||
if (typeof d.mime === 'string' && /^image\//.test(d.mime)) {
|
if (typeof d.mime === 'string' && /^image\//.test(d.mime)) {
|
||||||
return laytpl('<div class="headimg headimg-no headimg-ss margin-0" data-tips-hover data-tips-image="{{d.xurl}}" style="background-image:url({{d.xurl}})"></div>').render(d)
|
return laytpl('<div class="headimg headimg-no headimg-ss margin-0" data-tips-hover data-tips-image="{{d.xurl}}" style="background-image:url({{d.xurl}})"></div>').render(d)
|
||||||
} else if (typeof d.mime === 'string' && /^(video|audio)\//.test(d.mime)) {
|
} else if (typeof d.mime === 'string' && /^(video|audio)\//.test(d.mime)) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user