diff --git a/app/Http/Controllers/PrintController.php b/app/Http/Controllers/PrintController.php index c194ca5..16fda58 100644 --- a/app/Http/Controllers/PrintController.php +++ b/app/Http/Controllers/PrintController.php @@ -41,9 +41,10 @@ class PrintController extends Controller } } $adminName = $flow->adminuser->name; + $timeZone = substr($flow->start_at, 0, 10).'至'.substr($flow->end_at, 0, 10); } - return view('print-const', compact('name', 'time', 'sn', 'list', 'bigTotal', 'adminName')); + return view('print-const', compact('name', 'time', 'sn', 'list', 'bigTotal', 'timeZone', 'adminName')); } diff --git a/resources/views/print-const.blade.php b/resources/views/print-const.blade.php index cc22cb7..64ee362 100644 --- a/resources/views/print-const.blade.php +++ b/resources/views/print-const.blade.php @@ -18,6 +18,7 @@ .container { /* width: 800px; */ text-align: center; + height: 800px; } .tag { overflow: hidden; /* 清除浮动 */ @@ -69,7 +70,7 @@