1003410405_edit.jsp 7.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300
  1. <html>
  2. <head>
  3. <style>
  4. .space-timeline{
  5. padding: 12px;
  6. }
  7. .space-timeline ul{
  8. padding-left: 12px;
  9. }
  10. .space-timeline li{
  11. padding: 0px 0 20px 20px;
  12. position: relative;
  13. border-left: 3px solid #e1e1e3;
  14. }
  15. .space-timeline li:last-child{
  16. border-left-color: transparent;
  17. }
  18. /* .space-timeline li::after{
  19. display: block;
  20. content: "";
  21. height: 100%;
  22. width: 3px;
  23. background-color: #e1e1e3;
  24. position: absolute;
  25. top: 75px;
  26. left: 30px;
  27. }
  28. .space-timeline li:last-child::after{
  29. display: none;
  30. } */
  31. .space-timeline dl{
  32. background-color: #fff;
  33. overflow: hidden;
  34. padding: 12px;
  35. border-radius: 4px;
  36. }
  37. .space-timeline dt{
  38. width: 40px;
  39. height: 40px;
  40. position: relative;
  41. float: left;
  42. }
  43. .space-timeline dt img{
  44. width: 100%;
  45. height: 100%;
  46. border-radius: 6px;
  47. }
  48. .space-timeline dt>i{
  49. position: absolute;
  50. bottom: -2px;
  51. right: -6px;
  52. color: #4db485;
  53. font-size: 16px;
  54. background-color: #fff;
  55. border-radius: 50%;
  56. }
  57. .space-timeline .space-timeline-dandelion i{
  58. color: #ea9b56;
  59. }
  60. .space-timeline .space-timeline-reject i{
  61. color: #e0614c;
  62. }
  63. .space-timeline dd{
  64. margin-left: 52px;
  65. color: #666;
  66. margin-bottom: 5px;
  67. }
  68. .space-timeline .space-timeline-title{
  69. font-size: 14px;
  70. color: #666;
  71. padding-bottom: 12px;
  72. }
  73. .space-timeline .space-timeline-time{
  74. float: right;
  75. color: #999;
  76. font-size: 14px;
  77. }
  78. .space-timeline .space-timeline-username{
  79. font-size: 16px;
  80. color: #333;
  81. }
  82. .space-timeline-department{
  83. font-size: 12px;
  84. }
  85. .space-timeline dd p{
  86. display: inline;
  87. }
  88. /* 节点 */
  89. .space-timeline-node{
  90. position: absolute;
  91. top: 0;
  92. left: -12px;
  93. }
  94. .space-timeline-node i{
  95. font-size: 22px;
  96. background-color: #f5f6f9;
  97. color: #1989fa;
  98. }
  99. .space-timeline-title span{
  100. transition:all 0.5s;
  101. }
  102. .space-timeline dt .van-image{
  103. width: 100%;
  104. height: 100%;
  105. line-height: 40px;
  106. text-align: center;
  107. border-radius: 6px;
  108. overflow: hidden;
  109. }
  110. .space-timeline .van-image .van-icon{
  111. color: #648ef7;
  112. font-size: 26px;
  113. }
  114. .node-red{
  115. font-weight: bold;
  116. color: red !important;
  117. }
  118. .node-purple{
  119. font-weight: bold;
  120. color: #705697 !important;
  121. }
  122. .node-blue{
  123. font-weight: bold;
  124. color: #1989fa !important;
  125. }
  126. .node-green{
  127. font-weight: bold;
  128. color: green !important;
  129. }
  130. </style>
  131. </head>
  132. <body class="body-bg-gray">
  133. <div id="space-content">
  134. <div class="content-wrap">
  135. <div class="space-timeline">
  136. <ul>
  137. <c:forEach items="${timeLineData}" var="item" varStatus="status">
  138. <c:if test="${item.content != null && item.content.size() > 0}">
  139. <li class="${item.isAudit == 'true' ? 'space-timeline-dandelion' : '' }">
  140. <!-- 时间线图标 star -->
  141. <div class="space-timeline-node">
  142. <i v-if="${status.index == 0}" class="spaceicon icon-start"></i>
  143. <i v-if="${status.index != 0}" class="spaceicon icon-roundness"></i>
  144. </div>
  145. <!-- 时间线图标 end -->
  146. <!-- 时间线名称 star -->
  147. <div class="${item.isWxAuditLink == 'true' ? 'space-timeline-title animation' : 'space-timeline-title'}" >
  148. <span>${item.title}</span>
  149. </div>
  150. <!-- 时间线名称 end -->
  151. <c:forEach items="${item.content}" var="auditItem">
  152. <c:if test="${status.index == 0}">
  153. <dl>
  154. </c:if>
  155. <c:if test="${status.index != 0}">
  156. <dl @click="recordInfo('@service{ name: `sys.sys_flow_audit_record_info`, page: `audit_info`, params: `{applyid: "${auditItem.applyid}", auditid: "${auditItem.auditid}"}` }@')">
  157. </c:if>
  158. <!-- 头像 star -->
  159. <c:if test="${status.index == 0 || auditItem.acode == '71' || auditItem.acode == '111'}">
  160. <dt>
  161. <van-image fit="contain" src="${auditItem.path}">
  162. <template v-slot:error><van-icon name="user-o" /></template>
  163. </van-image>
  164. <i class="spaceicon icon-success"></i>
  165. </dt>
  166. </c:if>
  167. <c:if test="${auditItem.acode == '51' || auditItem.acode == '61'}">
  168. <dt class="space-timeline-dandelion">
  169. <van-image fit="contain" src="${auditItem.path}">
  170. <template v-slot:error><van-icon name="user-o" /></template>
  171. </van-image>
  172. <i class="spaceicon icon-xiaoxi"></i>
  173. </dt>
  174. </c:if>
  175. <c:if test="${status.index != 0 && auditItem.acode != '71' && auditItem.acode != '111' && auditItem.acode != '51' && auditItem.acode != '61'}">
  176. <dt class="space-timeline-reject">
  177. <van-image fit="contain" src="${auditItem.path}">
  178. <template v-slot:error><van-icon name="user-o" /></template>
  179. </van-image>
  180. <i class="spaceicon icon-error"></i>
  181. </dt>
  182. </c:if>
  183. <!-- 头像 end -->
  184. <!-- 姓名、部门、时间 star -->
  185. <dd class="space-timeline-username">
  186. ${auditItem.auditPersonName}
  187. <c:if test="${auditItem.auditState != '' && auditItem.auditState != null}">
  188. <span style="color: #1989fa;float: right;">
  189. ${auditItem.auditState}
  190. </span>
  191. </c:if>
  192. </dd>
  193. <dd class="space-timeline-department">${auditItem.auditPersonDepartment}</dd>
  194. <!-- 姓名、部门、时间 end -->
  195. <!-- 内容 star -->
  196. <c:if test="${item.isAudit != 'true'}">
  197. <dd>
  198. <c:if test="${auditItem.auditDescribe != ''}">
  199. “${auditItem.auditDescribe}”
  200. </c:if>
  201. <c:if test="${auditItem.fileTotal != null}">
  202. (有审核附件,请登录PC查看)
  203. </c:if>
  204. </dd>
  205. </c:if>
  206. <!-- 内容 end -->
  207. <!-- 时间 -->
  208. <c:if test="${auditItem.mobileAuditTime != null && auditItem.acode != '111'}">
  209. <dd class="space-timeline-time" >${auditItem.mobileAuditTime}</dd>
  210. </c:if>
  211. </dl>
  212. </c:forEach>
  213. </li>
  214. </c:if>
  215. </c:forEach>
  216. </ul>
  217. </div>
  218. </div>
  219. </div>
  220. </body>
  221. <script type="text/javascript">
  222. space.vue = new Vue({
  223. el: space.appContent,
  224. mounted: function () {
  225. if ('${isWxAuditLink}' == 'true') {
  226. this.nodeAnimation();
  227. }
  228. },
  229. methods: {
  230. /**
  231. * 申请或审核记录信息
  232. */
  233. recordInfo: function(url) {
  234. space.plugin.layer.open({
  235. url: url
  236. });
  237. },
  238. /**
  239. * 节点动画
  240. */
  241. nodeAnimation: function() {
  242. var _this = this;
  243. var number = 0;// 第几次
  244. var totalNumber = 16;// 总次数
  245. var index = 0;// 颜色
  246. var colorAry = ['node-red', 'node-purple', 'node-blue', 'node-green'];// 颜色集合
  247. this.winInterval = setInterval(function() {
  248. $('.animation span').removeClass().addClass(colorAry[index]);
  249. if (totalNumber == number) {
  250. $('.animation span').removeClass().addClass("node-blue");// 蓝色
  251. window.clearInterval(_this.winInterval);
  252. return;
  253. }
  254. index++;
  255. number++;
  256. if ((colorAry.length - 1) == index) {
  257. index = 0;
  258. }
  259. }, 500);
  260. }
  261. }
  262. })
  263. </script>
  264. </html>