<template>
<ul class="process-box">
<li class="li" v-for="(item, idx) in this.processData" :key="idx">
<div>
<span class="title">{{ item.recordDescription }} </span>
<span class="time"> {{ timesToDate(item.updateDate) }} </span>
</div>
</li>
</ul>
</template>
<script>
export default {
props: {
processData: Array,
},
name: "Process",
data() {
return {
commentList:["comment"]
};
},
computed: {},
created() {},
methods: {
timesToDate(data) {
var date = new Date(data);
var Y = date.getFullYear() + "-";
var M =
(date.getMonth() + 1 < 10
? "0" + (date.getMonth() + 1)
: date.getMonth() + 1) + "-";
var D =
(date.getDate() < 10 ? "0" + date.getDate() : date.getDate()) + " ";
var h =
(date.getHours() < 10 ? "0" + date.getHours() : date.getHours()) + ":";
var m =
(date.getMinutes() < 10 ? "0" + date.getMinutes() : date.getMinutes()) +
":";
var s =
date.getSeconds() < 10 ? "0" + date.getSeconds() : date.getSeconds();
return Y + M + D + h + m + s;
},
},
};
</script>
<style scoped>
.process-box {
margin: 20px 10px 0 10px;
}
.process-box > li {
font-size: 10px;
padding: 0 0 40px 13px;
position: relative;
}
.process-box > li:not(:last-child) {
border-left: 1px solid #e4e4e4;
}
.process-box > li div:first-child {
line-height: 14px;
margin-bottom: 5px;
}
.process-box > li .employee-info {
color: #169bd5;
}
.process-box > li .title {
color: #169bd5;
display: inline-block;
margin: 0 10px;
}
.process-box > li::before {
content: "";
display: block;
width: 12px;
height: 12px;
border-radius: 50%;
background: #e4e4e4;
position: absolute;
left: -5px;
top: 0;
}
</style>
评论 (1 条评论)