@extends('manager.layout.master') @section('head') @endsection @section('body')
文件管理    管理所有上传的文件,包括图片、文档等。可删除废弃文件释放空间。
{{-- 工具栏 --}}
清理废弃文件 刷新
搜索条件:
{{-- 批量操作栏 --}}
已选择 0 个文件 批量删除 取消选择
{{-- 表格 --}} @forelse($list as $vo) @php $ext = strtolower(pathinfo($vo->file_name, PATHINFO_EXTENSION)); $isImage = in_array($ext, ['jpg', 'jpeg', 'png', 'gif', 'bmp', 'ico', 'webp']); // 检查关联业务 $refs = []; $configCount = \App\Models\Config::where('value', $vo->id)->count(); if ($configCount > 0) $refs[] = ['text' => '配置×'.$configCount, 'color' => '#722ED1', 'bg' => '#F9F0FF']; @endphp @empty @endforelse
预览 文件名 文件大小 宽度 高度 关联业务 上传时间 操作
@if($isImage) @else
@endif
{{$vo->file_name}} {{$vo->file_size ? number_format($vo->file_size / 1024, 1) . ' KB' : '-'}} {{$vo->width ?: '-'}} {{$vo->height ?: '-'}} @if(count($refs) > 0) @foreach($refs as $ref) {{$ref['text']}} @endforeach @else 未关联 @endif {{$vo->create_time}}
@if($isImage) @else @endif @if(count($refs) > 0) @else @endif
暂无文件
@include('manager.include.pageBtn') @stop @section('js') @stop