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'); # 获取课题数据 +});