diffDataVersion.jsp 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  1. <%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
  2. <%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
  3. <%
  4. String path = request.getContextPath();
  5. String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path;
  6. %>
  7. <html>
  8. <title></title>
  9. <link rel="stylesheet" href="<%=basePath %>/plug-in/easyui/themes/icon.css" />
  10. <style type="text/css">
  11. body, table {
  12. font-size:12px;
  13. }
  14. table {
  15. table-layout:fixed;
  16. empty-cells:show;
  17. border-collapse: collapse;
  18. margin:0 auto;
  19. }
  20. td {
  21. height:30px;
  22. }
  23. h1, h2, h3 {
  24. font-size:12px;
  25. margin:0;
  26. padding:0;
  27. }
  28. .table {
  29. border:1px solid #cad9ea;
  30. color:#666;
  31. }
  32. .table th {
  33. background-repeat:repeat-x;
  34. height:30px;
  35. }
  36. .table td, .table th {
  37. border:1px solid #cad9ea;
  38. padding:0 1em 0;
  39. }
  40. .table tr.alter {
  41. background-color:#f5fafe;
  42. }
  43. </style>
  44. <body style="overflow:scroll">
  45. <table width="90%" class="table" style="table-layout:fixed;word-break:break-all">
  46. <tbody>
  47. <tr>
  48. <th style="width:80px; white-space:nowrap">字段名</th>
  49. <th style="white-space:nowrap">版本号[${versionNumber1}]</th>
  50. <th style="width:20px; white-space:nowrap"></th>
  51. <th style="white-space:nowrap">版本号[${versionNumber2}]</th>
  52. </tr>
  53. <!-- update-begin--Author:taoyan Date:20170321 for:TASK #1674 【样式美化】数据对比功能样式修改 -->
  54. <c:forEach items="${dataLogDiffs }" varStatus="itemStatus" var="item">
  55. <tr <c:if test="${itemStatus.index%2==0}">class="alter"</c:if> <c:if test="${item.diff=='Y'}">style="background-color: rgba(255, 192, 203, 0.31);color:red;"</c:if>>
  56. <td>${item.name }</td>
  57. <td>${item.value1 }</td>
  58. <td><c:if test="${item.diff=='Y'}"><span class="icon-goright" style="display:inline-block;height:15px;width:15px"></span></c:if></td>
  59. <td>${item.value2 }</td>
  60. </tr>
  61. </c:forEach>
  62. <!-- update-end--Author:taoyan Date:20170321 for:TASK #1674 【样式美化】数据对比功能样式修改 -->
  63. </tbody>
  64. </table>
  65. </body>