فهرست منبع

控制台界面改动

Zhouzhendong 5 سال پیش
والد
کامیت
59bfd0dc7b
2فایلهای تغییر یافته به همراه9 افزوده شده و 4 حذف شده
  1. 2 2
      app/Services/CacheService.php
  2. 7 2
      resources/views/control/panel.blade.php

+ 2 - 2
app/Services/CacheService.php

@@ -11,8 +11,8 @@ use App\Traits\ServiceAppAop;
 class CacheService
 {
     use ServiceAppAop;
-    function getOrExecute(String $key, $func, $expiration=null){
-        if(!$expiration) $expiration=config('cache.expirations.default');
+    function getOrExecute(String $key, $func, $expiration=-1){
+        if($expiration === -1) $expiration=config('cache.expirations.default');
         return Cache::remember($key, $expiration, $func);
 //        $results = Cache::get($key);
 //        if(!$results){

+ 7 - 2
resources/views/control/panel.blade.php

@@ -510,8 +510,9 @@
                 }
             },
             mounted: function () {
-                this.searchOption.weightSelect = 5;
-                this.searchOption.weightDate = [this.dateOptions[5].start,this.dateOptions[5].end];
+                let index = 4;
+                this.searchOption.weightSelect = index;
+                this.searchOption.weightDate = [this.dateOptions[index].start,this.dateOptions[index].end];
                 $('#list').removeClass('d-none');
                 let _this = this;
                 this.warehouses = {
@@ -908,6 +909,10 @@
                 },
                 _setWeightData(title, data){
                     return {
+                        title: {
+                            text: '未称重包裹占比',
+                            left: 'left'
+                        },
                         tooltip: {
                             trigger: 'item',
                             formatter: function (params) {