ChenWuJie 4 years ago
parent
commit
50086642b2
1 changed files with 1 additions and 1 deletions
  1. 1 1
      app/Http/Controllers/Admin/InnerDeviceController.php

+ 1 - 1
app/Http/Controllers/Admin/InnerDeviceController.php

xqd
@@ -51,7 +51,7 @@ class InnerDeviceController extends BaseController
 
     public function get(Request $request)
     {
-        $items = $this->model->where('id', '>', 0)->with(['device', 'spec', 'device_name','inner_device_names']);
+        $items = $this->model->where('id', '>', 0)->with(['device', 'spec', 'device_name','inner_device_names'])->orderBy('id','asc');
 
         $tmp_items = collect(['number']);
         foreach($tmp_items as $tmp_item) {