优化列表显示

master
chenzhi 4 years ago
parent 04e13844c3
commit 2a4541569d

@ -166,7 +166,7 @@ class PartnerController extends ThinkController
$parseData[$value['partner_id']][] = $value; $parseData[$value['partner_id']][] = $value;
} }
$parseData = array_values($parseData); $parseData = array_values($parseData);
dd($parseData); // dd($parseData);
if($is_export){ if($is_export){
$this->assign('listData', $parseData[0]); $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>--> <!--<a class="ajax-post confirm " target-form="ids" url="{:U('del')}"><span class="button_icon button_icon2"></span>删除</a>-->
</div> </div>
</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"> <div class="input-list search-title-box">
<label>搜索:</label> <label>搜索:</label>
</div> </div>
@ -123,9 +123,9 @@
<td rowspan="{$data.row}">{$data.matche_platform}</td> <td rowspan="{$data.row}">{$data.matche_platform}</td>
<td rowspan="{$data.row}">{$data.company_type}</td> <td rowspan="{$data.row}">{$data.company_type}</td>
<notempty name="data.game"> <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]['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]['relation_game_name']}</td>
<td rowspan="{$data['game'][0]['row']}">{$data['game'][0]['game_type_name']}</td>
<notempty name="data['game'][0]['game_ratio']"> <notempty name="data['game'][0]['game_ratio']">
<td>{$data['game'][0]['game_ratio'][0]['name']}</td> <td>{$data['game'][0]['game_ratio'][0]['name']}</td>
<td>{$data['game'][0]['game_ratio'][0]['ratio']}%</td> <td>{$data['game'][0]['game_ratio'][0]['ratio']}%</td>
@ -168,11 +168,10 @@
<foreach name="data['game']" item="game" key="gkey"> <foreach name="data['game']" item="game" key="gkey">
<if condition="$gkey gt 0"> <if condition="$gkey gt 0">
11111111
<tr> <tr>
<td rowspan="{$game['row']}">{$game['game_type_name']}</td>
<td rowspan="{$game['row']}">{$game['original_package_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['relation_game_name']}</td>
<td rowspan="{$game['row']}">{$game['game_type_name']}</td>
<notempty name="game['game_ratio']"> <notempty name="game['game_ratio']">
<td>{$game['game_ratio'][0]['name']}</td> <td>{$game['game_ratio'][0]['name']}</td>
<td>{$game['game_ratio'][0]['ratio']}%</td> <td>{$game['game_ratio'][0]['ratio']}%</td>
@ -180,9 +179,9 @@
<td >-</td> <td >-</td>
<td>-</td> <td>-</td>
</notempty> </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"> <foreach name="game['game_ratio']" item="game_ratio" key="gamekey">
<if condition="$gamekey gt 0"> <if condition="$gamekey gt 0">
<tr> <tr>
@ -191,7 +190,7 @@
</tr> </tr>
</if> </if>
</foreach> </foreach>
</if> --> </if>
</if> </if>
</foreach> </foreach>

Loading…
Cancel
Save