0
This commit is contained in:
1 parent
565785dbe2
commit
ddc5fb0b2f
6 files changed
+359
-47
No files matched your search
@@ -117,6 +117,14 @@ class SearchOne extends BaseModel
|
||||
,'cjStudent' => function($q){
|
||||
$q->field('id, xingming');
|
||||
}
|
||||
,'cjKaoshi' => function ($query) {
|
||||
$query->field('id, title, category_id')
|
||||
->with([
|
||||
'ksCategory' => function ($q) {
|
||||
$q->field('id, title');
|
||||
}
|
||||
]);
|
||||
}
|
||||
])
|
||||
->field('id, kaoshi_id, student_id, ruxuenian, nianji, banji_id, paixu')
|
||||
->append(['banjiTitle'])
|
||||
|
||||
@@ -25,9 +25,7 @@
|
||||
<div class="mydivtitle">
|
||||
成绩报告
|
||||
</div>
|
||||
<div class="baogao">
|
||||
成绩分析,成绩分析成绩分析成绩分析成绩分析成绩分析成绩分析成绩分析成绩分析成绩分析成绩分析成绩分析成绩分析成绩分析成绩分析成绩分析成绩分析成绩分析成绩分析成绩分析成绩分析成绩分析成绩分析成绩分析成绩分析成绩分析成绩分析成绩分析成绩分析成绩分析成绩分析成绩分析成绩分析成绩分析成绩分析成绩分析成绩分析成绩分析成绩分析成绩分析成绩分析成绩分析成绩分析成绩分析成绩分析成绩分析成绩分析成绩分析成绩分析成绩分析成绩分析成绩分析成绩分析成绩分析成绩分析成绩分析adsfasdf
|
||||
</div>
|
||||
<div class="baogao" id="baogao"></div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="layui-col-xs12 layui-col-sm6 layui-col-md4 mydivtop">
|
||||
@@ -40,7 +38,7 @@
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="layui-col-xs12 layui-col-sm6 layui-col-md4 mydivtop">
|
||||
<div class="layui-col-xs12 layui-col-sm12 layui-col-md8 mydivtop">
|
||||
<div class="mydivneirong">
|
||||
<div class="mydivtitle">
|
||||
各学科得分
|
||||
@@ -128,6 +126,7 @@
|
||||
|
||||
function loadTubiao()
|
||||
{
|
||||
getBaogao("{$list.id}");
|
||||
getLeiDa("{$list.id}");
|
||||
getYiBiao("{$list.id}");
|
||||
getDefenlv("{$list.id}");
|
||||
@@ -179,6 +178,29 @@
|
||||
}
|
||||
|
||||
|
||||
// 获取学生成绩报告
|
||||
function getBaogao(kaohao_id)
|
||||
{
|
||||
$.ajax({
|
||||
url:'/tools/onestudentchengji/baogao',
|
||||
type:'POST',
|
||||
data:{
|
||||
'kaohao_id':kaohao_id
|
||||
},
|
||||
success:function(result){
|
||||
if(result.val == 1){
|
||||
$('#baogao').text(result.baogao);
|
||||
}else{
|
||||
layer.msg(result.msg);
|
||||
}
|
||||
},
|
||||
error:function(result){
|
||||
layer.msg('数据扔半道啦。',function(){});
|
||||
},
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* 异步获取图表中的数据
|
||||
|
||||
@@ -143,4 +143,25 @@ class OneStudentChengji extends BaseController
|
||||
$data = $stucj->subjectOldChengji($src);
|
||||
return json($data);
|
||||
}
|
||||
|
||||
|
||||
// 生成个人报告
|
||||
public function ajaxBaoGao()
|
||||
{
|
||||
// 获取表单参数
|
||||
$src = $this->request
|
||||
->only([
|
||||
'kaohao_id' => ''
|
||||
], 'POST');
|
||||
|
||||
$stucj = new STUCJ;
|
||||
$baogao = $stucj->baogao($src);
|
||||
$data = [
|
||||
'val' => 1
|
||||
,'msg' => '数据获取成功'
|
||||
,'baogao' => $baogao
|
||||
];
|
||||
|
||||
return json($data);
|
||||
}
|
||||
}
|
||||
Loaded 3 of 6 files, more files were not shown because too many files have changed in this diff.
Show more
Reference in new issue
Block a user