Zhouzhendong пре 4 година
родитељ
комит
08289be1b3

+ 1 - 1
resources/views/maintenance/owner/menu.blade.php

@@ -12,7 +12,7 @@
                 </li> @endcan
             @can('货主-删除')
                 <li class="nav-item">
-                    <a target="maintenance/owners/recycle" class="nav-link" href="{{url('maintenance/owners/recycle')}}" :class="{active:isActive('recycle',3)}">停用</a>
+                    <a target="maintenance/owner/recycle" class="nav-link" href="{{url('maintenance/owners/recycle')}}" :class="{active:isActive('recycle',3)}">停用</a>
                 </li> @endcan
         </ul>
     </div>

+ 1 - 1
resources/views/maintenance/owner/recycle.blade.php

@@ -53,7 +53,7 @@
                 restoreSelected:function(owner){
                     let _this=this;
                     confirm('确定要恢复停用货主“' + owner.name + '”吗?');
-                    let ajaxUrl='{{url("maintenance/owners/restoreSelected")}}';
+                    let ajaxUrl='{{url("maintenance/owner/restoreSelected")}}';
                     axios.post(ajaxUrl,{id:owner.id}).then(function(response){
                         if(response.data.success){
                             tempTip.setDuration(1000);

+ 2 - 4
routes/web.php

@@ -50,13 +50,11 @@ Route::group(['prefix'=>'maintenance'],function(){
         Route::post('isExist','CommodityController@isExist');
     });
     /** 货主 */
-    Route::group(['prefix'=>'owners'],function(){
-        Route::get('recycle','OwnerController@recycle');
-        Route::post('restoreSelected', 'OwnerController@restoreSelected');
-    });
     Route::group(['prefix'=>'owner'],function (){
         Route::post("get","OwnerController@get");
         Route::post("apiStore","OwnerController@apiStore");
+        Route::get('recycle','OwnerController@recycle');
+        Route::post('restoreSelected', 'OwnerController@restoreSelected');
     });
     /** 教程 */
     Route::group(['prefix'=>'tutorial'],function(){

+ 1 - 1
tests/Routes/WebTest.php

@@ -15,7 +15,7 @@ class WebTest extends TestCase
         "password/change",
         "password/update",
         "maintenance/commodity/import",
-        "maintenance/owners/recycle",
+        "maintenance/owner/recycle",
         "maintenance/paperBox/index/model",
         "maintenance/paperBox/index/owner",
         "maintenance/paperBox/excel/goImport",