修改文件管理

This commit is contained in:
邹景立 2022-10-19 11:40:35 +08:00
parent 4f3e8ac8a9
commit 5fb289558b
2 changed files with 4 additions and 4 deletions

View File

@ -25,13 +25,13 @@
{field: 'name', title: '文件名称', width: '12%', align: 'center'},
{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)
}
},
{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)) {
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)) {