| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300 |
- <html>
- <head>
- <style>
- .space-timeline{
- padding: 12px;
- }
- .space-timeline ul{
- padding-left: 12px;
- }
- .space-timeline li{
- padding: 0px 0 20px 20px;
- position: relative;
- border-left: 3px solid #e1e1e3;
- }
- .space-timeline li:last-child{
- border-left-color: transparent;
- }
- /* .space-timeline li::after{
- display: block;
- content: "";
- height: 100%;
- width: 3px;
- background-color: #e1e1e3;
- position: absolute;
- top: 75px;
- left: 30px;
- }
- .space-timeline li:last-child::after{
- display: none;
- } */
- .space-timeline dl{
- background-color: #fff;
- overflow: hidden;
- padding: 12px;
- border-radius: 4px;
- }
- .space-timeline dt{
- width: 40px;
- height: 40px;
- position: relative;
- float: left;
- }
- .space-timeline dt img{
- width: 100%;
- height: 100%;
- border-radius: 6px;
- }
- .space-timeline dt>i{
- position: absolute;
- bottom: -2px;
- right: -6px;
- color: #4db485;
- font-size: 16px;
- background-color: #fff;
- border-radius: 50%;
- }
- .space-timeline .space-timeline-dandelion i{
- color: #ea9b56;
- }
- .space-timeline .space-timeline-reject i{
- color: #e0614c;
- }
- .space-timeline dd{
- margin-left: 52px;
- color: #666;
- margin-bottom: 5px;
- }
- .space-timeline .space-timeline-title{
- font-size: 14px;
- color: #666;
- padding-bottom: 12px;
- }
- .space-timeline .space-timeline-time{
- float: right;
- color: #999;
- font-size: 14px;
- }
- .space-timeline .space-timeline-username{
- font-size: 16px;
- color: #333;
- }
- .space-timeline-department{
- font-size: 12px;
- }
- .space-timeline dd p{
- display: inline;
- }
- /* 节点 */
- .space-timeline-node{
- position: absolute;
- top: 0;
- left: -12px;
- }
- .space-timeline-node i{
- font-size: 22px;
- background-color: #f5f6f9;
- color: #1989fa;
- }
-
- .space-timeline-title span{
- transition:all 0.5s;
- }
- .space-timeline dt .van-image{
- width: 100%;
- height: 100%;
- line-height: 40px;
- text-align: center;
- border-radius: 6px;
- overflow: hidden;
- }
- .space-timeline .van-image .van-icon{
- color: #648ef7;
- font-size: 26px;
- }
- .node-red{
- font-weight: bold;
- color: red !important;
- }
-
- .node-purple{
- font-weight: bold;
- color: #705697 !important;
- }
-
- .node-blue{
- font-weight: bold;
- color: #1989fa !important;
- }
-
- .node-green{
- font-weight: bold;
- color: green !important;
- }
- </style>
- </head>
- <body class="body-bg-gray">
- <div id="space-content">
- <div class="content-wrap">
- <div class="space-timeline">
- <ul>
- <c:forEach items="${timeLineData}" var="item" varStatus="status">
- <c:if test="${item.content != null && item.content.size() > 0}">
- <li class="${item.isAudit == 'true' ? 'space-timeline-dandelion' : '' }">
-
- <!-- 时间线图标 star -->
- <div class="space-timeline-node">
- <i v-if="${status.index == 0}" class="spaceicon icon-start"></i>
- <i v-if="${status.index != 0}" class="spaceicon icon-roundness"></i>
- </div>
- <!-- 时间线图标 end -->
- <!-- 时间线名称 star -->
- <div class="${item.isWxAuditLink == 'true' ? 'space-timeline-title animation' : 'space-timeline-title'}" >
- <span>${item.title}</span>
- </div>
- <!-- 时间线名称 end -->
- <c:forEach items="${item.content}" var="auditItem">
-
- <c:if test="${status.index == 0}">
- <dl>
- </c:if>
- <c:if test="${status.index != 0}">
- <dl @click="recordInfo('@service{ name: `sys.sys_flow_audit_record_info`, page: `audit_info`, params: `{applyid: "${auditItem.applyid}", auditid: "${auditItem.auditid}"}` }@')">
- </c:if>
- <!-- 头像 star -->
- <c:if test="${status.index == 0 || auditItem.acode == '71' || auditItem.acode == '111'}">
- <dt>
- <van-image fit="contain" src="${auditItem.path}">
- <template v-slot:error><van-icon name="user-o" /></template>
- </van-image>
- <i class="spaceicon icon-success"></i>
- </dt>
- </c:if>
- <c:if test="${auditItem.acode == '51' || auditItem.acode == '61'}">
- <dt class="space-timeline-dandelion">
- <van-image fit="contain" src="${auditItem.path}">
- <template v-slot:error><van-icon name="user-o" /></template>
- </van-image>
- <i class="spaceicon icon-xiaoxi"></i>
- </dt>
- </c:if>
- <c:if test="${status.index != 0 && auditItem.acode != '71' && auditItem.acode != '111' && auditItem.acode != '51' && auditItem.acode != '61'}">
- <dt class="space-timeline-reject">
- <van-image fit="contain" src="${auditItem.path}">
- <template v-slot:error><van-icon name="user-o" /></template>
- </van-image>
- <i class="spaceicon icon-error"></i>
- </dt>
- </c:if>
- <!-- 头像 end -->
- <!-- 姓名、部门、时间 star -->
- <dd class="space-timeline-username">
- ${auditItem.auditPersonName}
- <c:if test="${auditItem.auditState != '' && auditItem.auditState != null}">
- <span style="color: #1989fa;float: right;">
- ${auditItem.auditState}
- </span>
- </c:if>
- </dd>
- <dd class="space-timeline-department">${auditItem.auditPersonDepartment}</dd>
- <!-- 姓名、部门、时间 end -->
- <!-- 内容 star -->
- <c:if test="${item.isAudit != 'true'}">
- <dd>
- <c:if test="${auditItem.auditDescribe != ''}">
- “${auditItem.auditDescribe}”
- </c:if>
- <c:if test="${auditItem.fileTotal != null}">
- (有审核附件,请登录PC查看)
- </c:if>
- </dd>
- </c:if>
- <!-- 内容 end -->
- <!-- 时间 -->
- <c:if test="${auditItem.mobileAuditTime != null && auditItem.acode != '111'}">
- <dd class="space-timeline-time" >${auditItem.mobileAuditTime}</dd>
- </c:if>
- </dl>
-
- </c:forEach>
- </li>
- </c:if>
- </c:forEach>
- </ul>
- </div>
- </div>
- </div>
- </body>
- <script type="text/javascript">
- space.vue = new Vue({
- el: space.appContent,
- mounted: function () {
- if ('${isWxAuditLink}' == 'true') {
- this.nodeAnimation();
- }
- },
- methods: {
- /**
- * 申请或审核记录信息
- */
- recordInfo: function(url) {
- space.plugin.layer.open({
- url: url
- });
- },
- /**
- * 节点动画
- */
- nodeAnimation: function() {
- var _this = this;
- var number = 0;// 第几次
- var totalNumber = 16;// 总次数
- var index = 0;// 颜色
-
- var colorAry = ['node-red', 'node-purple', 'node-blue', 'node-green'];// 颜色集合
- this.winInterval = setInterval(function() {
-
- $('.animation span').removeClass().addClass(colorAry[index]);
-
- if (totalNumber == number) {
- $('.animation span').removeClass().addClass("node-blue");// 蓝色
- window.clearInterval(_this.winInterval);
- return;
- }
-
- index++;
- number++;
-
- if ((colorAry.length - 1) == index) {
- index = 0;
- }
-
- }, 500);
- }
- }
- })
- </script>
-
- </html>
|