From 18b64a553b3e2937c99c623c407ed7656791c40a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=B7=B4=E6=8E=8C?= Date: Sat, 29 Aug 2020 20:40:34 +0800 Subject: [PATCH] 0 --- app/teacherSearchChengji/controller/Index.php | 14 +++++++++++ .../view/index/index.html | 4 ++-- .../view/index/welcome.html | 4 ++-- app/tools/controller/OneStudentChengji.php | 2 -- app/tools/controller/System.php | 23 ------------------- 5 files changed, 18 insertions(+), 29 deletions(-) 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}
-
+
diff --git a/app/teacherSearchChengji/view/index/welcome.html b/app/teacherSearchChengji/view/index/welcome.html index 62ed3f8c..7f89f8fd 100644 --- a/app/teacherSearchChengji/view/index/welcome.html +++ b/app/teacherSearchChengji/view/index/welcome.html @@ -56,14 +56,14 @@

获得荣誉

- {$list.teacher}

+ {$list.rongyu}

  • 参与课题

    - {$list.student}

    + {$list.keti}

  • diff --git a/app/tools/controller/OneStudentChengji.php b/app/tools/controller/OneStudentChengji.php index 6be72ed1..09a73526 100644 --- a/app/tools/controller/OneStudentChengji.php +++ b/app/tools/controller/OneStudentChengji.php @@ -6,8 +6,6 @@ namespace app\tools\controller; // 引用控制器基类 use app\BaseController; // 引用学生数据模型类 -// use \app\student\model\Student as STU; -// 引用学生数据模型类 use \app\tools\model\OneStudentChengji as STUCJ; diff --git a/app/tools/controller/System.php b/app/tools/controller/System.php index 1b548671..38f8179f 100644 --- a/app/tools/controller/System.php +++ b/app/tools/controller/System.php @@ -8,29 +8,6 @@ use app\BaseController; class System extends BaseController { - // // 查询状态为1的学科 - // public function subjectAll() - // { - // $sbj = new \app\teach\model\Subject; - // $sbjList = $sbj->where('status', 1) - // ->field('id, title, jiancheng, lieming') - // ->select(); - - // return $sbj; - // } - - - // // 查询可以参加考试的学科 - // public function subjectKs() - // { - // $sbj = new \app\teach\model\Subject; - // $sbjList = $sbj->where('status&kaoshi', 1) - // ->field('id, title, jiancheng, lieming') - // ->select(); - // return $sbj; - // } - - // 是否启用别名 public function sysClass() {