Browse Source

20250327 优化调整

贾小兵 2 months ago
parent
commit
d1c25bfd90
1 changed files with 8 additions and 8 deletions
  1. 8 8
      application/admin/controller/student/Collection.php

+ 8 - 8
application/admin/controller/student/Collection.php

@@ -735,16 +735,16 @@ class Collection extends Backend
         }
 
         //故障现象
-        $xianxiang = Fault::where(['fault_type'=>1,'sim_type'=>$row->sim_type])->select();
+        $xianxiang = Fault::where(['fault_type'=>1,'sim_type'=>$row->sim_type])->order('order_num asc')->select();
         $this->view->assign('xianxiang', $xianxiang);
         //可能原因
-        $yuanyin = Fault::where(['fault_type'=>2,'sim_type'=>$row->sim_type])->column('fault_id,name');
+        $yuanyin = Fault::where(['fault_type'=>2,'sim_type'=>$row->sim_type])->order('order_num asc')->column('fault_id,name');
         $this->view->assign('yuanyin', $yuanyin);
         //故障部位
-        $buwei = Fault::where(['fault_type'=>3,'sim_type'=>$row->sim_type])->column('fault_id,name');
+        $buwei = Fault::where(['fault_type'=>3,'sim_type'=>$row->sim_type])->order('order_num asc')->column('fault_id,name');
         $this->view->assign('buwei', $buwei);
         //排除方法
-        $paichu = Fault::where(['fault_type'=>4,'sim_type'=>$row->sim_type])->column('fault_id,name');
+        $paichu = Fault::where(['fault_type'=>4,'sim_type'=>$row->sim_type])->order('order_num asc')->column('fault_id,name');
         $this->view->assign('paichu', $paichu);
 
         $row->other_report_count = 0;
@@ -811,16 +811,16 @@ class Collection extends Backend
         }
 
         //故障现象
-        $xianxiang = Fault::where(['fault_type'=>1,'sim_type'=>$row->sim_type])->select();
+        $xianxiang = Fault::where(['fault_type'=>1,'sim_type'=>$row->sim_type])->order('order_num asc')->select();
         $this->view->assign('xianxiang', $xianxiang);
         //可能原因
-        $yuanyin = Fault::where(['fault_type'=>2,'sim_type'=>$row->sim_type])->column('fault_id,name');
+        $yuanyin = Fault::where(['fault_type'=>2,'sim_type'=>$row->sim_type])->order('order_num asc')->column('fault_id,name');
         $this->view->assign('yuanyin', $yuanyin);
         //故障部位
-        $buwei = Fault::where(['fault_type'=>3,'sim_type'=>$row->sim_type])->column('fault_id,name');
+        $buwei = Fault::where(['fault_type'=>3,'sim_type'=>$row->sim_type])->order('order_num asc')->column('fault_id,name');
         $this->view->assign('buwei', $buwei);
         //排除方法
-        $paichu = Fault::where(['fault_type'=>4,'sim_type'=>$row->sim_type])->column('fault_id,name');
+        $paichu = Fault::where(['fault_type'=>4,'sim_type'=>$row->sim_type])->order('order_num asc')->column('fault_id,name');
         $this->view->assign('paichu', $paichu);
 
         $row->other_report_text = [];