diff --git a/app/admin/controller/File.php b/app/admin/controller/File.php
index 326af5fc1..bd8a939c6 100644
--- a/app/admin/controller/File.php
+++ b/app/admin/controller/File.php
@@ -52,8 +52,8 @@ class File extends Controller
SystemFile::mQuery()->layTable(function () {
$this->title = '系统文件管理';
}, function (QueryHelper $query) {
- $query->where(['issafe' => 0, 'status' => 2]);
$query->like('name,hash,xext')->dateBetween('create_at');
+ $query->where(['issafe' => 0, 'status' => 2])->equal('type');
});
}
diff --git a/app/admin/view/file/index.html b/app/admin/view/file/index.html
index 1aafc67be..e4ef76ef4 100644
--- a/app/admin/view/file/index.html
+++ b/app/admin/view/file/index.html
@@ -20,24 +20,21 @@
cols: [[
{checkbox: true, fixed: true},
{field: 'id', title: 'ID', width: 80, align: 'center', sort: true},
+ {field: 'name', title: '名 称', width: '15%', align: 'center'},
+ {field: 'hash', title: '哈 希', width: '15%', align: 'center', templet: '
{{d.hash}}
'},
{
- field: 'name', title: '文件名称', minWidth: 200, align: 'center', templet: function (d) {
- return d.name + '查看'
- }
- },
- {field: 'hash', title: '文件哈希', minWidth: 200, align: 'center', templet: '{{d.hash}}
'},
- {
- field: 'size', title: '文件大小', align: 'center', minWidth: 100, sort: true, templet: function (d) {
+ field: 'size', title: '大 小', align: 'center', width: '8%', sort: true, templet: function (d) {
return formatSize(d.size)
}
},
- {field: 'xext', title: '文件后缀', align: 'center', minWidth: 100, sort: true},
+ {field: 'xext', title: '后 缀', align: 'center', width: '8%', sort: true},
+ {field: 'xurl', title: '链 接', width: '5%', align: 'center', templet: ''},
{
- field: 'isfast', title: '上传方式', align: 'center', minWidth: 100, templet: function (d) {
+ field: 'isfast', title: '上传方式', align: 'center', width: '8%', templet: function (d) {
return d.isfast ? '秒传' : '普通';
}
},
- {field: 'ctype', title: '存储方式', align: 'center', minWidth: 80},
+ {field: 'ctype', title: '存储方式', align: 'center', width: '10%'},
{field: 'create_at', title: '上传时间', align: 'center', minWidth: 170, sort: true},
{toolbar: '#toolbar', title: '操作面板', align: 'center', minWidth: 80, fixed: 'right'}
]]