优化列表显示

master
chenzhi 4 years ago
parent 04e13844c3
commit 2a4541569d

@ -166,7 +166,7 @@ class PartnerController extends ThinkController
$parseData[$value['partner_id']][] = $value;
}
$parseData = array_values($parseData);
dd($parseData);
// dd($parseData);
if($is_export){
$this->assign('listData', $parseData[0]);

@ -44,7 +44,7 @@
<!--<a class="ajax-post confirm " target-form="ids" url="{:U('del')}"><span class="button_icon button_icon2"></span>删除</a>-->
</div>
</div>
<div class="jssearch fl cf search_list" >
<div class="jssearch fl cf search_list" style="margin-bottom: 0px;">
<div class="input-list search-title-box">
<label>搜索:</label>
</div>
@ -123,9 +123,9 @@
<td rowspan="{$data.row}">{$data.matche_platform}</td>
<td rowspan="{$data.row}">{$data.company_type}</td>
<notempty name="data.game">
<td rowspan="{$data['game'][0]['row']}">{$data['game'][0]['game_type_name']}</td>
<td rowspan="{$data['game'][0]['row']}">{$data['game'][0]['original_package_name']}</td>
<td rowspan="{$data['game'][0]['row']}">{$data['game'][0]['relation_game_name']}</td>
<td rowspan="{$data['game'][0]['row']}">{$data['game'][0]['game_type_name']}</td>
<notempty name="data['game'][0]['game_ratio']">
<td>{$data['game'][0]['game_ratio'][0]['name']}</td>
<td>{$data['game'][0]['game_ratio'][0]['ratio']}%</td>
@ -168,11 +168,10 @@
<foreach name="data['game']" item="game" key="gkey">
<if condition="$gkey gt 0">
11111111
<tr>
<td rowspan="{$game['row']}">{$game['game_type_name']}</td>
<td rowspan="{$game['row']}">{$game['original_package_name']}</td>
<td rowspan="{$game['row']}">{$game['relation_game_name']}</td>
<td rowspan="{$game['row']}">{$game['game_type_name']}</td>
<notempty name="game['game_ratio']">
<td>{$game['game_ratio'][0]['name']}</td>
<td>{$game['game_ratio'][0]['ratio']}%</td>
@ -180,9 +179,9 @@
<td >-</td>
<td>-</td>
</notempty>
<tr>
</tr>
<!-- <if condition="$game['row'] gt 1">
<if condition="$game['row'] gt 1">
<foreach name="game['game_ratio']" item="game_ratio" key="gamekey">
<if condition="$gamekey gt 0">
<tr>
@ -191,7 +190,7 @@
</tr>
</if>
</foreach>
</if> -->
</if>
</if>
</foreach>

Loading…
Cancel
Save