<#list data as saleData> <tr style="font-size: ${(saleData.team?contains('汇总'))?string('28px', '26px')}; background-color: ${(saleData.team?contains('汇总'))?string('', '#4472C4')} ${((saleData.dailySalesAmount > 0) && (saleData.dailySalesAmount < 10000))?string('#D9E1F2', '')} ${(saleData.saleArea=='CA部门' && saleData.dailySalesAmount>0 && saleData.dailySalesAmount<50000)?string('#D9E1F2', '')}; font-weight: bold"> <td>${(saleData.team)!""}</td> <td>${(saleData.name)!""}</td> <td>${(saleData.tenDailySalesAmount)!""}</td> <td>${(saleData.twelveDailySalesAmount)!""}</td> <td>${(saleData.fifteenDailySalesAmount)!""}</td> <td>${(saleData.dailySalesAmount)!""}</td> <td>${(saleData.orderCount!"")}</td> </tr> </#list> 加上一个条件 当sale.team 不好含“汇总”且sale.dailySalesAmount == 0时 字体颜色设置成白色
时间: 2024-03-28 14:38:46 浏览: 265
List<Map<String, List<String>>> data保存到SharedPreference和读取
4星 · 用户满意度95%
<#list data as saleData>
<tr style="font-size: ${(saleData.team?contains('汇总'))?string('28px', '26px')};
color: ${(saleData.dailySalesAmount == 0 && !(saleData.team?contains('汇总')))?string("#ffffff", '')}
background-color: ${(saleData.team?contains('汇总'))?string('', '#4472C4')}
${((saleData.dailySalesAmount > 0) && (saleData.dailySalesAmount < 10000))?string('#D9E1F2', '')}
${(saleData.saleArea=='CA部门' && saleData.dailySalesAmount>0 && saleData.dailySalesAmount<50000)?string('#D9E1F2', '')};
font-weight: bold">
<td>${(saleData.team)!""}</td>
<td>${(saleData.name)!""}</td>
<td>${(saleData.tenDailySalesAmount)!""}</td>
<td>${(saleData.twelveDailySalesAmount)!""}</td>
<td>${(saleData.fifteenDailySalesAmount)!""}</td>
<td>${(saleData.dailySalesAmount)!""}</td>
<td>${(saleData.orderCount!"")}</td>
</tr>
</#list>
阅读全文