作者 景琛

修改大屏显示学生排行问题

... ... @@ -216,8 +216,10 @@ class Screen extends Backend
$this->success("Ajax请求成功", null, ['id' => $ids]);
}
$data = $row->toArray();
//dump($data);exit();
$res = db('study_ronda_score')
->where('ronda_id',$data['ronda_id'])
->order('score','desc')
->select();
$list = [];
foreach ($res as $k => $v){
... ... @@ -233,7 +235,7 @@ class Screen extends Backend
}
/**
* 批量修改
* 修改
*/
public function multi($ids = NULL){
if (!$this->request->isPost()) {
... ...
... ... @@ -12,8 +12,8 @@
<tr>
<td>{$vo.rank}</td>
<td>{$vo.name}</td>
<td style="word-break: break-all;">{$vo.title}</td>
<td style="word-break: break-all;">{$vo.score}</td>
<td style="word-break: break-all;">{$vo.title}</td>
</tr>
{/volist}
</tbody>
... ...
... ... @@ -45,7 +45,7 @@ class Screen extends Api
$item['percent'] = $item['score'];
$item['study'] = db('study_ronda_score l')
->join('study s','l.sid = s.id')
->where('l.team_id',$item['team_id'])
->where('ronda_id',$item['ronda_id'])
->field('s.name,score as sum_score,l.*')
->order('score','desc')
->select();
... ...