Bläddra i källkod

培训考试,应到人数

lizhen_gitee 8 månader sedan
förälder
incheckning
e3748bb397
1 ändrade filer med 2 tillägg och 0 borttagningar
  1. 2 0
      application/admin/controller/Trainactive.php

+ 2 - 0
application/admin/controller/Trainactive.php

@@ -63,6 +63,8 @@ class Trainactive extends Backend
                 $row->getRelation('cate')->visible(['name']);
 				$row->getRelation('level')->visible(['name']);
 				$row->getRelation('type')->visible(['name']);
+
+                $row['usercount'] = count(explode(',',$row['user_ids']));
             }
 
             $result = array("total" => $list->total(), "rows" => $list->items());