|
@@ -143,34 +143,25 @@ class Exams extends Backend
|
|
$row['fault_name_two'] = Fault::where('fault_id',$fault_list[1]['fault_id'])->value('name');
|
|
$row['fault_name_two'] = Fault::where('fault_id',$fault_list[1]['fault_id'])->value('name');
|
|
$row['fault_name_three'] = Fault::where('fault_id',$fault_list[2]['fault_id'])->value('name');
|
|
$row['fault_name_three'] = Fault::where('fault_id',$fault_list[2]['fault_id'])->value('name');
|
|
|
|
|
|
- if($row['xianxian_score']>0 && empty($row['xianxian_content']))
|
|
|
|
|
|
+ $row['xianxian_content_name'] = '';
|
|
|
|
+ if(!empty($row['xianxian_content']))
|
|
{
|
|
{
|
|
- $row['xianxian_content_name'] = '未选择';
|
|
|
|
- }else{
|
|
|
|
- $xianxian = Report::where(['xx_id'=>['in',json_decode($row['xianxian_content'],true)]])->group('xx_name')->column('xx_name');
|
|
|
|
- $row['xianxian_content_name'] = !empty($xianxian) ? implode(',',$xianxian) :'不存在或未选择';
|
|
|
|
|
|
+ $row['xianxian_content_name'] = json_decode($row['xianxian_content'],true);
|
|
}
|
|
}
|
|
- if($row['yuanyin_socre']>0 && empty($row['yuanyin_content']))
|
|
|
|
|
|
+ $row['yuanyin_content_name'] = '';
|
|
|
|
+ if(!empty($row['yuanyin_content']))
|
|
{
|
|
{
|
|
- $row['yuanyin_content_name'] = '未选择';
|
|
|
|
- }else{
|
|
|
|
- $yuanyin = Report::where(['yy_id'=>['in',json_decode($row['yuanyin_content'],true)]])->group('yy_name')->column('yy_name');
|
|
|
|
- $row['yuanyin_content_name'] = !empty($yuanyin) ? implode(',',$yuanyin) :'不存在或未选择';
|
|
|
|
|
|
+ $row['yuanyin_content_name'] = json_decode($row['yuanyin_content'],true);
|
|
}
|
|
}
|
|
-
|
|
|
|
- if($row['buwei_score']>0 &&empty($row['buwei_content']))
|
|
|
|
|
|
+ $row['buwei_content_name'] = '';
|
|
|
|
+ if(!empty($row['buwei_content']))
|
|
{
|
|
{
|
|
- $row['buwei_content_name'] = '未选择';
|
|
|
|
- }else{
|
|
|
|
- $buwei = Report::where(['bw_id'=>['in',json_decode($row['buwei_content'],true)]])->group('bw_name')->column('bw_name');
|
|
|
|
- $row['buwei_content_name'] = !empty($buwei) ? implode(',',$buwei) :'不存在或未选择';
|
|
|
|
|
|
+ $row['buwei_content_name'] = json_decode($row['buwei_content'],true);
|
|
}
|
|
}
|
|
- if($row['fangfa_score']>0 && empty($row['fangfa_content']))
|
|
|
|
|
|
+ $row['fangfa_content_name'] = '';
|
|
|
|
+ if(!empty($row['fangfa_content']))
|
|
{
|
|
{
|
|
- $row['fangfa_content_name'] = '未选择';
|
|
|
|
- }else{
|
|
|
|
- $fangfa = Report::where(['pc_id'=>['in',json_decode($row['fangfa_content'],true)]])->group('pc_name')->column('pc_name');
|
|
|
|
- $row['fangfa_content_name'] = !empty($fangfa) ? implode(',',$fangfa) :'不存在或未选择';
|
|
|
|
|
|
+ $row['fangfa_content_name'] = json_decode($row['fangfa_content'],true);
|
|
}
|
|
}
|
|
|
|
|
|
if (false === $this->request->isPost()) {
|
|
if (false === $this->request->isPost()) {
|