新增filePreview表格模板,只能对uploadfile的模型使用,不再预览非image类型

This commit is contained in:
2022-04-17 12:57:25 +08:00
parent bb3bc38873
commit ca63703851
2 changed files with 18 additions and 4 deletions

View File

@@ -20,7 +20,7 @@ define(["jquery", "easy-admin"], function ($, ea) {
{type: "checkbox"},
{field: 'id', width: 80, title: 'ID'},
{field: 'upload_type', minWidth: 80, title: '存储位置', search: 'select', selectList: {'local': '本地', 'alioss': '阿里云', 'qnoss': '七牛云', ',txcos': '腾讯云'}},
{field: 'url', minWidth: 80, search: false, title: '图片信息', templet: ea.table.image},
{field: 'url', minWidth: 80, search: false, title: '图片信息', templet: ea.table.filePreview},
{field: 'url', minWidth: 120, title: '保存地址', templet: ea.table.url},
{field: 'original_name', minWidth: 80, title: '文件原名'},
{field: 'mime_type', minWidth: 80, title: 'mime类型'},