In the table which lists the use of, <th: block th: switch = ''> which is empty, or when the match is not on, td which a column will be less, the solution

 

There is no written code: type of business

<TH: Block TH: Switch = "$ {} sales.handlingType"> 
	                                	<TD TH: Case = "1001" TH: text = "single width renew" /> 
	                                	<TD TH: Case = "1002" TH: text = "mobile contract" /> 
						<TD TH: Case = "1003" TH: text = "fusion renewal" /> 
						<TD TH: Case = "1006" TH: text = "does not limit the installation package" /> 
                                                <td th: case = "1008 " th: text = " broadband speed" /> 
</ TH: Block>

 If, at this time the value of I, the installation package film, it is not a match, then, the less a table, as shown below:

 

 

Following the edited:

<the Table class = "the Table the Table-hover the Table-Condensed"> 
			<thead> 
				<TR> 
					<TH> # </ TH> 
					<TH> State </ TH> 
					<TH> Sales Name </ TH> 
	                                <TH> Province the sales encoding </ TH> 
	                                <TH> Group sales encoding </ TH> 
	                                <TH> service type </ TH> 
	                                <TH> operation identifying </ TH> 
	                                <TH> last operating time </ TH> 
				</ TR > 
			</ thead> 
			<tbody> 
				<TH TR: 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="Does not limit the installation package "/> 
							video installation package" /><p th: case = "1010
							<P TH: Case =" 1009 "TH: text =" Enjoy speed installation package "/>
							<P TH: Case =" 1008 "TH: text =" broadband speed "/>

	                                  </ 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>

 Results as shown:

 

 

Guess you like

Origin www.cnblogs.com/hanxue53/p/10966425.html