优化导出

master
chenzhi 5 years ago
parent 6181059faf
commit 0237e0ff63

@ -1029,7 +1029,7 @@ function PromoteStatistics($orderNo) {
} }
function showPercent($num) function showPercent($num)
{ {
if($num-0 >= 0){ if($num-0 > 0){
if(strpos($num,"%")){ if(strpos($num,"%")){
return $num; return $num;
}else{ }else{

@ -195,7 +195,7 @@
<notempty name="p_ratio['turnover_ratio']"> <notempty name="p_ratio['turnover_ratio']">
<td>{$p_ratio['turnover_ratio'][0]['name']|default="--"}</td> <td>{$p_ratio['turnover_ratio'][0]['name']|default="--"}</td>
<td>{$p_ratio['turnover_ratio'][0]['ratio']|default="--"}</td> <td>{$p_ratio['turnover_ratio'][0]['ratio']|showPercent}</td>
<td>{$p_ratio['cp_ratio'][$gamekey]['name']|default="--"}</td> <td>{$p_ratio['cp_ratio'][$gamekey]['name']|default="--"}</td>
<td>{$p_ratio['cp_ratio'][$gamekey]['ratio']|showPercent}</td> <td>{$p_ratio['cp_ratio'][$gamekey]['ratio']|showPercent}</td>
@ -241,7 +241,7 @@
<notempty name="promote['list'][0]['turnover_ratio']"> <notempty name="promote['list'][0]['turnover_ratio']">
<td>{$promote['list'][0]['turnover_ratio'][0]['name']|default="--"}</td> <td>{$promote['list'][0]['turnover_ratio'][0]['name']|default="--"}</td>
<td>{$promote['list'][0]['turnover_ratio'][0]['ratio']|default="--"}</td> <td>{$promote['list'][0]['turnover_ratio'][0]['ratio']|showPercent}</td>
<td>{$promote['list'][0]['cp_ratio'][0]['name']|default="--"}</td> <td>{$promote['list'][0]['cp_ratio'][0]['name']|default="--"}</td>
<td>{$promote['list'][0]['cp_ratio'][0]['ratio']|showPercent}</td> <td>{$promote['list'][0]['cp_ratio'][0]['ratio']|showPercent}</td>
@ -288,10 +288,10 @@
<notempty name="game['turnover_ratio']"> <notempty name="game['turnover_ratio']">
<td>{$game['turnover_ratio'][0]['name']|default="--"}</td> <td>{$game['turnover_ratio'][0]['name']|default="--"}</td>
<td>{$game['turnover_ratio'][0]['ratio']|default="--"}</td> <td>{$game['turnover_ratio'][0]['ratio']|showPercent}</td>
<td>{$game['cp_ratio'][0]['name']|default="--"}</td> <td>{$game['cp_ratio'][0]['name']|default="--"}</td>
<td>{$game['cp_ratio'][0]['ratio']|default="--"}</td> <td>{$game['cp_ratio'][0]['ratio']|showPercent}</td>
<else /> <else />
<td >-</td> <td >-</td>
<td>-</td> <td>-</td>

Loading…
Cancel
Save