فهرست منبع

调整人事管理路由

hu hao 4 سال پیش
والد
کامیت
627187d13a
4فایلهای تغییر یافته به همراه10 افزوده شده و 8 حذف شده
  1. 3 0
      app/Http/Controllers/TestController.php
  2. 2 2
      app/Services/MenuService.php
  3. 5 5
      package-lock.json
  4. 0 1
      routes/web.php

+ 3 - 0
app/Http/Controllers/TestController.php

@@ -198,6 +198,9 @@ class TestController extends Controller
         app("MenuService")->setMenu();//重建菜单缓存
         app("AuthorityService")->removeAllAuth();//移除所有用户权限缓存,这将在用户下次访问时重新建立
     }
+    public function test11111(){
+        dd(app("MenuService")->getVisibleFunctionList());//重建菜单缓存
+    }
     public function orderCreateBill()
     {
         $order = Order::query()->find(\request("id"));

+ 2 - 2
app/Services/MenuService.php

@@ -1,4 +1,4 @@
-<?php 
+<?php
 
 namespace App\Services;
 
@@ -124,4 +124,4 @@ class MenuService
         $this->getVisibleFunctionList(Authority::query()->get(),$mapping);
         return $mapping;
     }
-}
+}

+ 5 - 5
package-lock.json

@@ -1801,7 +1801,7 @@
     },
     "babel-runtime": {
       "version": "6.26.0",
-      "resolved": "https://registry.npmjs.org/babel-runtime/-/babel-runtime-6.26.0.tgz",
+      "resolved": "https://registry.npm.taobao.org/babel-runtime/download/babel-runtime-6.26.0.tgz",
       "integrity": "sha1-llxwWGaOgrVde/4E/yM3vItWR/4=",
       "requires": {
         "core-js": "^2.4.0",
@@ -3161,13 +3161,13 @@
     },
     "cyclist": {
       "version": "1.0.1",
-      "resolved": "https://registry.npmjs.org/cyclist/-/cyclist-1.0.1.tgz",
+      "resolved": "https://registry.npm.taobao.org/cyclist/download/cyclist-1.0.1.tgz",
       "integrity": "sha1-WW6WmP0MgOEgOMK4LW6xs1tiJNk=",
       "dev": true
     },
     "davidshimjs-qrcodejs": {
       "version": "0.0.2",
-      "resolved": "https://registry.npmjs.org/davidshimjs-qrcodejs/-/davidshimjs-qrcodejs-0.0.2.tgz",
+      "resolved": "https://registry.npm.taobao.org/davidshimjs-qrcodejs/download/davidshimjs-qrcodejs-0.0.2.tgz",
       "integrity": "sha1-LrRCpElWcQed9/eCDM/nT0Wp3sA="
     },
     "de-indent": {
@@ -5441,7 +5441,7 @@
     },
     "jquery.cookie": {
       "version": "1.4.1",
-      "resolved": "https://registry.npmjs.org/jquery.cookie/-/jquery.cookie-1.4.1.tgz",
+      "resolved": "https://registry.npm.taobao.org/jquery.cookie/download/jquery.cookie-1.4.1.tgz",
       "integrity": "sha1-1j3OIJ6raR/mMxbbCMqeR+D5OFs="
     },
     "js-cookie": {
@@ -6258,7 +6258,7 @@
     },
     "normalize-wheel": {
       "version": "1.0.1",
-      "resolved": "https://registry.npmjs.org/normalize-wheel/-/normalize-wheel-1.0.1.tgz",
+      "resolved": "https://registry.npm.taobao.org/normalize-wheel/download/normalize-wheel-1.0.1.tgz",
       "integrity": "sha1-rsiGr/2wRQcNhWRH32Ls+GFG7EU="
     },
     "npm-run-path": {

+ 0 - 1
routes/web.php

@@ -627,7 +627,6 @@ Route::group(['prefix'=>'personnel'],function(){
         Route::any('删除/{id}','LaborReportController@删除');
         Route::post('changeLaborReportRemark', 'LaborReportController@changeLaborReportRemark');
     });
-//    Route::resource('laborReport','LaborReportController');
 });