From dfe3a4d1734f80bcbdd03e3ba0ae2d4271e47ec2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=B7=B4=E6=8E=8C?= Date: Thu, 27 Aug 2020 19:05:20 +0800 Subject: [PATCH] =?UTF-8?q?=E6=95=99=E5=B8=88=E6=9F=A5=E8=AF=A2=E4=B8=AA?= =?UTF-8?q?=E4=BA=BA=E8=8D=A3=E8=AA=89=E5=92=8C=E8=AF=BE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/keti/view/keti_info/create.html | 9 +- app/teacher/controller/Index.php | 3 +- app/teacher/view/index/index.html | 17 +- app/teacher/view/index/read.html | 6 +- app/teacherSearchChengji/controller/Index.php | 48 ++- app/teacherSearchChengji/route/teacher.php | 3 + .../view/index/banji.html | 308 +----------------- app/teacherSearchChengji/view/index/keti.html | 173 ++++++++++ .../view/index/rongyu.html | 175 ++++++++++ .../controller/{CanKao.php => CanKao1.php} | 0 app/tools/controller/Kaoshi.php | 12 - app/tools/controller/TeacherInfo.php | 66 ++++ app/tools/route/tools.php | 7 + 13 files changed, 483 insertions(+), 344 deletions(-) create mode 100644 app/teacherSearchChengji/view/index/keti.html create mode 100644 app/teacherSearchChengji/view/index/rongyu.html rename app/tools/controller/{CanKao.php => CanKao1.php} (100%) delete mode 100644 app/tools/controller/Kaoshi.php create mode 100644 app/tools/controller/TeacherInfo.php diff --git a/app/keti/view/keti_info/create.html b/app/keti/view/keti_info/create.html index 62e0d3e2..50a637a9 100644 --- a/app/keti/view/keti_info/create.html +++ b/app/keti/view/keti_info/create.html @@ -40,8 +40,9 @@
+
@@ -57,7 +58,7 @@
diff --git a/app/teacher/controller/Index.php b/app/teacher/controller/Index.php index a254a1a9..5827208d 100644 --- a/app/teacher/controller/Index.php +++ b/app/teacher/controller/Index.php @@ -64,6 +64,7 @@ class Index extends AdminBase ,'biye' ,'zhuanye' ,'status' + ,'phone' ,'update_time' ]); @@ -455,7 +456,7 @@ class Index extends AdminBase // 查询教师荣誉 - public function srcRy($teacher_id) + public function srcRy() { // 获取参数 $src = $this->request diff --git a/app/teacher/view/index/index.html b/app/teacher/view/index/index.html index bad8233f..8b5970de 100644 --- a/app/teacher/view/index/index.html +++ b/app/teacher/view/index/index.html @@ -100,8 +100,17 @@ // 设置列 options.cols=[[ //表头 {type:'checkbox', fixed: 'left'}, + {field: 'danwei_id', title: '单位', sort: true,templet:function(d){ + var str=''; + if(d.jsDanwei) + { + str = d.jsDanwei.jiancheng; + } + return str; + }}, {field: 'xingming', title: '姓名',sort: true}, {field: 'sex', title: '性别',sort: true}, + {field: 'phone', title: '手机号',sort: true}, {field: "shengri",title: '周岁',sort: true,templet:function(d){ return d.age; }}, @@ -118,14 +127,6 @@ return d.gongling; }}, {field: 'zhuanye', title: '专业', sort: true}, - {field: 'danwei_id', title: '单位', sort: true,templet:function(d){ - var str=''; - if(d.jsDanwei) - { - str = d.jsDanwei.jiancheng; - } - return str; - }}, {field: 'status', title: '状态',templet:'#status', sort: true}, {field: 'id', title: '操作',toolbar: '#barDemo',minWidth:140} ]]; diff --git a/app/teacher/view/index/read.html b/app/teacher/view/index/read.html index 13af7fdc..8ec15743 100644 --- a/app/teacher/view/index/read.html +++ b/app/teacher/view/index/read.html @@ -75,7 +75,7 @@
- +
{/block} diff --git a/app/teacherSearchChengji/view/index/keti.html b/app/teacherSearchChengji/view/index/keti.html new file mode 100644 index 00000000..779f0e33 --- /dev/null +++ b/app/teacherSearchChengji/view/index/keti.html @@ -0,0 +1,173 @@ + +{extend name=".././view/list.html" /} +{block name="jsset"} +{load href="__STATIC__/echarts/echarts.js" /} +{load href="__STATIC__/echarts/infographic.js" /} +{/block} +{block name="nav"} + + 成绩查询 + 班级成绩 + +{/block} +{block name="search"} + + +{/block} +{block name="table"} +
+{/block} +{block name="echart"} + + + +{/block} +{block name="myjs"} + + + + + + + {/block} diff --git a/app/teacherSearchChengji/view/index/rongyu.html b/app/teacherSearchChengji/view/index/rongyu.html new file mode 100644 index 00000000..f929b4d2 --- /dev/null +++ b/app/teacherSearchChengji/view/index/rongyu.html @@ -0,0 +1,175 @@ + +{extend name=".././view/list.html" /} +{block name="jsset"} +{load href="__STATIC__/echarts/echarts.js" /} +{load href="__STATIC__/echarts/infographic.js" /} +{/block} +{block name="nav"} + + 成绩查询 + 班级成绩 + +{/block} +{block name="search"} + + +{/block} +{block name="table"} +
+{/block} +{block name="echart"} + + + +{/block} +{block name="myjs"} + + + + + + + {/block} diff --git a/app/tools/controller/CanKao.php b/app/tools/controller/CanKao1.php similarity index 100% rename from app/tools/controller/CanKao.php rename to app/tools/controller/CanKao1.php diff --git a/app/tools/controller/Kaoshi.php b/app/tools/controller/Kaoshi.php deleted file mode 100644 index f4ab98b7..00000000 --- a/app/tools/controller/Kaoshi.php +++ /dev/null @@ -1,12 +0,0 @@ -request + ->only([ + 'page' => '1' + ,'limit' => '10' + ,'field' => 'update_time' + ,'order' => 'desc' + ,'teacher_id' => '' + ], 'POST'); + + // 查询数据 + $rongyu = new \app\rongyu\model\JsRongyuInfo; + $data = $rongyu->srcTeacherRongyu($src['teacher_id']) + ->visible([ + 'id' + ,'title' + ,'ryTuce' => [ + 'title' + ,'fzSchool' + ] + ,'jiangxiang_id' + ,'hjshijian' + ,'update_time' + ]); + $data = reSetObject($data, $src); + return json($data); + } + + + // 查询教师课题 + public function srcKt() + { + // 获取参数 + $src = $this->request + ->only([ + 'page' => '1' + ,'limit' => '10' + ,'field' => 'update_time' + ,'order' => 'desc' + ,'teacher_id' => '' + ], 'POST'); + + // 查询数据 + $keti = new \app\keti\model\KetiInfo; + $data = $keti->srcTeacherKeti($src['teacher_id']); + $data = reSetObject($data, $src); + + return json($data); + } + + +} diff --git a/app/tools/route/tools.php b/app/tools/route/tools.php index 5dddb0d3..4a1a8124 100644 --- a/app/tools/route/tools.php +++ b/app/tools/route/tools.php @@ -35,3 +35,10 @@ Route::group('onestudentchengji', function () { Route::rule('xkwz','OneStudentChengji/ajaxSubjectWeiZhi','post'); # 上传文件 Route::rule('xkold','OneStudentChengji/ajaxOldSubject','post'); # 上传文件 }); + + +// 查询老师荣誉和课题 +Route::group('teacherinfo', function () { + Route::rule('srcry','TeacherInfo/srcRy','post'); # 获取荣誉数据 + Route::rule('srckt','TeacherInfo/srcKt','post'); # 获取课题数据 +});