Ver Fonte

Merge branch 'zzd-weight' of ssh://was.baoshi56.com:10022/var/git/bswas

LD há 5 anos atrás
pai
commit
c30c4f934f

+ 31 - 0
database/migrations/2021_01_28_091010_add_authority_weight_panel.php

@@ -0,0 +1,31 @@
+<?php
+
+use Illuminate\Database\Migrations\Migration;
+use Illuminate\Database\Schema\Blueprint;
+use Illuminate\Support\Facades\Schema;
+
+class AddAuthorityWeightPanel extends Migration
+{
+    /**
+     * Run the migrations.
+     *
+     * @return void
+     */
+    public function up()
+    {
+        \App\Authority::query()->create([
+            "name"       => "控制台-称重统计",
+            "alias_name" => "控制台-称重统计",
+        ]);
+    }
+
+    /**
+     * Reverse the migrations.
+     *
+     * @return void
+     */
+    public function down()
+    {
+        \App\Authority::query()->where("name","控制台-称重统计")->delete();
+    }
+}

+ 4 - 0
resources/views/control/panel.blade.php

@@ -347,6 +347,7 @@
                 @endcan
             </div>
             <div class="row my-3">
+                @can("控制台-称重统计")
                 <div class="col-6">
                     <div class="card">
                         <div class="card-header">
@@ -366,6 +367,7 @@
                         </div>
                     </div>
                 </div>
+                @endcan
             </div>
         </div>
     </div>
@@ -546,7 +548,9 @@
 
                 this.laborReportsUserGroupsCountChart = echarts.init(document.getElementById('laborReportsUserGroupsCount'));
                 this.initLaborReportsUserGroupsCountChart();
+                @endcan
 
+                @can("控制台-称重统计")
                 this.cardPool.weight = echarts.init(document.getElementById("weight"));
                 this.loadWeightInfo();
                 @endcan

+ 1 - 1
resources/views/waybill/index.blade.php

@@ -54,7 +54,7 @@
                 <tr>
                     <th class="table-header-layer-1" colspan="4"></th>
                     <th class="table-header-layer-1" colspan="11"><span class="fa fa-file-text-o"></span> 运单信息</th>
-                    <th class="table-header-layer-1" colspan="13"><span class="fa fa-truck"></span> 运输信息</th>
+                    <th class="table-header-layer-1" colspan="16"><span class="fa fa-truck"></span> 运输信息</th>
                     <th class="table-header-layer-1" colspan="5"><span class="fa fa-rmb"></span> 费用信息
                     @can('运输管理-删除')
                         <th class="table-header-layer-1" colspan="1"> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</th>