作者 开飞机的舒克

后台优化

... ... @@ -116,6 +116,7 @@ class Screen extends Backend
->join('team t','t.id = s.team_id')
->field('s.name,s.earn_score,t.title,t.id')
->order('s.earn_score','desc')
->limit(40)
->select();
$list = [];
foreach ($res as $k => $v){
... ... @@ -123,6 +124,7 @@ class Screen extends Backend
'name' => $v['name'],
'score' => $v['earn_score'],
'title'=>$v['title'],
'rank'=> $k+1
];
}
$this->view->assign("row", $list);
... ...
<table class="table table-striped">
<thead>
<tr>
<th>{:__('名次')}</th>
<th>{:__('姓名')}</th>
<th>{:__('个人得分')}</th>
<th>{:__('所属战队')}</th>
... ... @@ -9,6 +10,7 @@
<tbody>
{volist name="row" id="vo"}
<tr>
<td>{$vo.rank}</td>
<td>{$vo.name}</td>
<td style="word-break: break-all;">{$vo.score}</td>
<td style="word-break: break-all;">{$vo.title}</td>
... ...