含雪幸福

导航

 
 

没有写过的代码:业务类型

 <th:block th:switch="${sales.handlingType}">
	                                	<td th:case="1001" th:text="单宽续约"/>
	                                	<td th:case="1002" th:text="移动续约"/>
						<td th:case="1003" th:text="融合续约"/>
						<td th:case="1006" th:text="加装不限量包"/>
                                                <td th:case="1008" th:text="宽带提速"/>
</th:block>

 如果,我此时的值为,加装影视包,就匹配不上,这时,这个表就少一列,如下图:

 

 

下面这个修改好的:

<table class="table table-hover table-condensed">
			<thead>
				<tr>
					<th>#</th>
					<th>省份</th>
					<th>销售品名称</th>
	                                <th>省内销售品编码</th>
	                                <th>集团销售品编码</th>
	                                <th>业务类型</th>
	                                <th>操作标识</th>
	                                <th>最后操作时间</th>
				</tr>
			</thead>
			<tbody>
				<tr th:each="sales, status: ${stockSalesList}">
	                                <th th:text="${(pageInfo.pageNo - 1) * pageInfo.pageSize + status.index + 1}"></th>
	                                <td th:text="${sales.provName}"></td>
	                                <td align="left" th:text="${sales.offerTitlePrev}"></td>
	                                <td align="left" th:text="${sales.offerCodePrev}"></td>
	                                <td th:text="${sales.offerCodeGroup}"></td>
	                                <td>
                          <div th:switch="${sales.handlingType}">
							<p th:case="1001" th:text="单宽续约"></p>
		                                	<p th:case="1002" th:text="移动续约"/>
							<p th:case="1003" th:text="融合续约"/>
							<p th:case="1006" th:text="加装不限量包"/>
							<p th:case="1008" th:text="宽带提速"/>
							<p th:case="1009" th:text="加装畅享提速包"/>
							<p th:case="1010" th:text="加装影视包"/>
	                                  </div>
	                                </td>
                        <th:block th:switch="${sales.operateMark}">
                                         <td th:case="0" th:text="初始"/>
                                         <td th:case="1" th:text="新增"/>
                                   <td th:case="2" th:text="更新"/>
                                   <td th:case="3" th:text="删除"/>
                                     </th:block>
                                     <td th:text="${#dates.format(sales.lastOperateTime,'yy/MM/dd HH:mm:ss')}"></td>
                             </tr>
            </tbody>
      </table>

 效果如下图:

 

 

posted on 2019-06-03 11:14  含雪幸福  阅读(840)  评论(0编辑  收藏  举报
 
/*生成博客目录的CSS*/ #uprightsideBar{ font-size:12px; font-family:Arial, Helvetica, sans-serif; text-align:left; position:fixed;/*将div的位置固定到距离top:50px,right:0px的位置,这样div就会处在最右边的位置,距离顶部50px*/ top:50px; right:0px; width: auto; height: auto; } #sideBarTab{ float:left; width:30px; border:1px solid #e5e5e5; border-right:none; text-align:center; background:#ffffff; } #sideBarContents{ float:left; overflow:auto; overflow-x:hidden;!important; width:200px; min-height:108px; max-height:460px; border:1px solid #e5e5e5; border-right:none; background:#ffffff; } #sideBarContents dl{ margin:0; padding:0; } #sideBarContents dt{ margin-top:5px; margin-left:5px; } #sideBarContents dd, dt { cursor: pointer; } #sideBarContents dd:hover, dt:hover { color:#A7995A; } #sideBarContents dd{ margin-left:20px; }