修复荣誉、课题册名称带引号时报错,优化学生成绩表显示

This commit is contained in:
cxdbz committed 2019-05-15 20:28:47 +08:00
1 parent 3abd3efe30
commit 81939bca02
8 files changed
+25 -9

No files matched your search

+8
View File
@@ -29,6 +29,10 @@ class Tongji extends Model
}
])
->select();
if($khlist->isEmpty())
{
return $data = array();
}
// 获取参考学科
$ks = new \app\kaoshi\model\Kaoshi;
@@ -39,6 +43,10 @@ class Tongji extends Model
}
])
->find();
if($ksinfo->ks_subject->isEmpty())
{
return $data = array();
}
$xk = array();
foreach ($ksinfo->ks_subject as $key => $value) {
$xk[$value->subjectid] = $value->lieming;
+8 -1
View File
@@ -113,6 +113,10 @@ class Kaohao extends Base
}
])
->select();
if($khlist->isEmpty())
{
return $data = array();
}
// 获取参考学科
@@ -124,12 +128,15 @@ class Kaohao extends Base
}
])
->find();
if($ksinfo->ks_subject->isEmpty())
{
return $data = array();
}
$xk = array();
foreach ($ksinfo->ks_subject as $key => $value) {
$xk[$value->subjectid] = $value->lieming;
}
// 整理数据
$data = array();
foreach ($khlist as $key => $value) {
+3 -2
View File
@@ -34,11 +34,12 @@ class KetiInfo extends Base
* @param int $id
* @return \think\Response
*/
public function ketiList($ketice,$title)
public function ketiList($ketice)
{
$kt = new \app\keti\model\Keti;
// 设置要给模板赋值的信息
$list['webtitle'] = $title.' 列表';
$list['webtitle'] = $kt->where('id',$ketice)->value('title').' 列表';
$list['ketice'] = $ketice;
// 模板赋值
Loaded 3 of 8 files, more files were not shown because too many files have changed in this diff. Show more