流程添加时间线
This commit is contained in:
@@ -1,8 +1,10 @@
|
||||
<template>
|
||||
<el-card v-loading="loading" class="box-card">
|
||||
<el-col :offset="3" :span="17">
|
||||
<div class="block">
|
||||
<div class="item_line">
|
||||
<el-timeline>
|
||||
<div class="end_item_line">
|
||||
<div class="end_item_lines"></div>
|
||||
<el-timeline-item
|
||||
v-if="processInstance.endTime"
|
||||
:type="getProcessInstanceTimelineItemType(processInstance)"
|
||||
@@ -14,7 +16,9 @@
|
||||
</el-tag>
|
||||
</p>
|
||||
</el-timeline-item>
|
||||
<div class="return_send" v-for="(item, index) in tasksList" :key="index">
|
||||
</div>
|
||||
<div class="start_item_line" v-for="(item, index) in tasksList" :key="index">
|
||||
<div class="start_item_lines"></div>
|
||||
<!-- 最后一条不显示重新发起 -->
|
||||
<el-timeline-item type="success" v-if="index != 0 && item.status != '1'">
|
||||
<p style="font-weight: 700">
|
||||
@@ -219,3 +223,32 @@ const refresh = () => {
|
||||
emit('refresh')
|
||||
}
|
||||
</script>
|
||||
<style lang="scss" scoped>
|
||||
.item_line {
|
||||
.end_item_line {
|
||||
position: relative;
|
||||
.end_item_lines {
|
||||
position: absolute;
|
||||
left:4px;
|
||||
top:10px;
|
||||
width: 2px;
|
||||
height: 100%;
|
||||
background: #eeeeee;
|
||||
}
|
||||
}
|
||||
.start_item_line {
|
||||
position: relative;
|
||||
.start_item_lines {
|
||||
position: absolute;
|
||||
left:4px;
|
||||
top:10px;
|
||||
width: 2px;
|
||||
height: 100%;
|
||||
background: #eeeeee;
|
||||
}
|
||||
}
|
||||
}
|
||||
::v-deep .el-timeline-item__tail {
|
||||
display: none !important;
|
||||
}
|
||||
</style>
|
||||
|
||||
Reference in New Issue
Block a user