feat: xxbb
This commit is contained in:
@@ -31,7 +31,7 @@
|
||||
<td>{{ number_format($f['size']) }} B</td>
|
||||
<td>{{ $f['mtime'] }}</td>
|
||||
<td>
|
||||
<a class="layui-btn layui-btn-xs" href="{{ route('admin.logs.show', ['file' => $f['name'], 'kind' => $k, 'path' => $path, 'device' => $device]) }}">查看</a>
|
||||
<a class="layui-btn layui-btn-xs" href="{{ route('admin.logs.show', ['kind' => $k, 'file' => $f['name'], 'path' => $path, 'device' => $device]) }}">查看</a>
|
||||
</td>
|
||||
</tr>
|
||||
@empty
|
||||
|
||||
@@ -4,8 +4,8 @@
|
||||
|
||||
@section('content')
|
||||
@php
|
||||
$showBase = ['kind' => $kind ?? 'c2', 'file' => $file];
|
||||
$query = array_filter([
|
||||
'kind' => $kind ?? 'c2',
|
||||
'path' => $path ?? '',
|
||||
'device' => $device ?? '',
|
||||
], fn ($v) => $v !== '' && $v !== null);
|
||||
@@ -16,8 +16,7 @@
|
||||
<a class="layui-btn layui-btn-primary layui-btn-xs" style="float:right;margin-top:8px;" href="{{ route('admin.logs.index') }}">返回</a>
|
||||
</div>
|
||||
<div class="layui-card-body">
|
||||
<form class="layui-form" method="get" style="margin-bottom: 15px;">
|
||||
<input type="hidden" name="kind" value="{{ $kind ?? 'c2' }}">
|
||||
<form class="layui-form" method="get" action="{{ route('admin.logs.show', $showBase) }}" style="margin-bottom: 15px;">
|
||||
<div class="layui-inline">
|
||||
<input type="text" name="device" value="{{ $device ?? '' }}" placeholder="设备 ID" class="layui-input" style="width:200px;">
|
||||
</div>
|
||||
@@ -33,10 +32,10 @@
|
||||
</p>
|
||||
<div style="margin-bottom:12px;">
|
||||
@if ($hasNewer ?? false)
|
||||
<a class="layui-btn layui-btn-sm layui-btn-primary" href="{{ route('admin.logs.show', array_merge($query, ['file' => $file, 'page' => ($page ?? 1) - 1])) }}">更新</a>
|
||||
<a class="layui-btn layui-btn-sm layui-btn-primary" href="{{ route('admin.logs.show', array_merge($showBase, $query, ['page' => ($page ?? 1) - 1])) }}">更新</a>
|
||||
@endif
|
||||
@if ($hasOlder ?? false)
|
||||
<a class="layui-btn layui-btn-sm" href="{{ route('admin.logs.show', array_merge($query, ['file' => $file, 'page' => ($page ?? 1) + 1])) }}">更早</a>
|
||||
<a class="layui-btn layui-btn-sm" href="{{ route('admin.logs.show', array_merge($showBase, $query, ['page' => ($page ?? 1) + 1])) }}">更早</a>
|
||||
@endif
|
||||
</div>
|
||||
@forelse ($entries as $entry)
|
||||
@@ -46,10 +45,10 @@
|
||||
@endforelse
|
||||
<div style="margin-top:12px;">
|
||||
@if ($hasNewer ?? false)
|
||||
<a class="layui-btn layui-btn-sm layui-btn-primary" href="{{ route('admin.logs.show', array_merge($query, ['file' => $file, 'page' => ($page ?? 1) - 1])) }}">更新</a>
|
||||
<a class="layui-btn layui-btn-sm layui-btn-primary" href="{{ route('admin.logs.show', array_merge($showBase, $query, ['page' => ($page ?? 1) - 1])) }}">更新</a>
|
||||
@endif
|
||||
@if ($hasOlder ?? false)
|
||||
<a class="layui-btn layui-btn-sm" href="{{ route('admin.logs.show', array_merge($query, ['file' => $file, 'page' => ($page ?? 1) + 1])) }}">更早</a>
|
||||
<a class="layui-btn layui-btn-sm" href="{{ route('admin.logs.show', array_merge($showBase, $query, ['page' => ($page ?? 1) + 1])) }}">更早</a>
|
||||
@endif
|
||||
</div>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user