diff --git a/app/teacherSearchChengji/controller/Index.php b/app/teacherSearchChengji/controller/Index.php index b8048d54..2b9ea896 100644 --- a/app/teacherSearchChengji/controller/Index.php +++ b/app/teacherSearchChengji/controller/Index.php @@ -125,6 +125,16 @@ class Index extends TeacherSearchBase $list['xingming'] = TCH::where('phone', $list['username'])->value('xingming'); $list['version'] = config('shangma.version'); + + $ry = new \app\rongyu\model\JsRongyuCanyu; + $list['rongyu'] = $ry->where('teacher_id', session('teacher.userid'))->count(); + + $kt = new \app\keti\model\KetiCanyu; + $list['keti'] = $ry->where('teacher_id', session('teacher.userid'))->count(); + + + + $list['kaoshi'] = 1; $list['teacher'] = 1; $list['student'] = 1; @@ -251,6 +261,8 @@ class Index extends TeacherSearchBase ->only([ 'page' => '1' ,'limit' => '10' + ,'field' => 'update_time' + ,'order' => 'desc' ,'teacher_id' => '' ,'xueqi_id' => '' ,'category_id' => array() # 考试类型 @@ -306,6 +318,8 @@ class Index extends TeacherSearchBase ->only([ 'page' => '1' ,'limit' => '10' + ,'field' => 'update_time' + ,'order' => 'desc' ,'kaoshi_id' => '' ,'banji_id' => '' ,'subject_id' => array() diff --git a/app/teacherSearchChengji/view/index/index.html b/app/teacherSearchChengji/view/index/index.html index 1a6a953d..136ed815 100644 --- a/app/teacherSearchChengji/view/index/index.html +++ b/app/teacherSearchChengji/view/index/index.html @@ -70,9 +70,9 @@ {$list.info.xingming}
- {$list.teacher}
+ {$list.rongyu}- {$list.student}
+ {$list.keti}