فهرست منبع

摄像头列表功能修改

任敬轩 3 سال پیش
والد
کامیت
124adda1ef
2فایلهای تغییر یافته به همراه6 افزوده شده و 3 حذف شده
  1. 4 2
      Modules/Camera/Resources/views/camera_list.blade.php
  2. 2 1
      app/Http/Middleware/VerifyCsrfToken.php

+ 4 - 2
Modules/Camera/Resources/views/camera_list.blade.php

@@ -87,7 +87,9 @@
         height: 40px;
         line-height: 40px;
     }
-
+    #camera_list td{
+        max-width:150px;overflow:hidden;text-overflow:ellipsis; white-space:nowrap;
+    }
 </style>
 
 <div @if(request()->ajax()) style="max-height: 600px;overflow-y: auto;" @endif>
@@ -287,7 +289,7 @@
                 <thead>
                 <tr>
                     @foreach($columns as $column)
-                        <th style="width:10%;">{{ $column['name'] }}</th>
+                        <th>{{ $column['name'] }}</th>
                     @endforeach
                     @if((isset($displayActionOthers) && count($displayActionOthers) > 0) || count($actionBtns) > 0)
                         <th style="width:15%;">操作</th>

+ 2 - 1
app/Http/Middleware/VerifyCsrfToken.php

@@ -19,6 +19,7 @@ class VerifyCsrfToken extends Middleware
      * @var array
      */
     protected $except = [
-        //
+        '/admin/camera/upload/cover_picture',
+        '/admin/camera/list/import'
     ];
 }