|
@@ -46,9 +46,14 @@
|
|
|
|
|
|
<!--审批流-->
|
|
<!--审批流-->
|
|
<el-timeline style="margin-left: 50px">
|
|
<el-timeline style="margin-left: 50px">
|
|
- <el-timeline-item v-for="active in activeData" :key="active.id" hollow :timestamp="formatTimestamp(new Date(active.createTime))">
|
|
|
|
|
|
+ <el-timeline-item
|
|
|
|
+ v-for="active in activeData"
|
|
|
|
+ :key="active.id"
|
|
|
|
+ hollow
|
|
|
|
+ :timestamp="active.id ? formatTimestamp(new Date(active.createTime)) : ''"
|
|
|
|
+ >
|
|
<template #dot>
|
|
<template #dot>
|
|
- <FlowTypeDot :status="active.taskState" :type="active.taskType" :name="active.createBy" />
|
|
|
|
|
|
+ <FlowTypeDot :status="active.id ? 0 : 1" :type="active.taskType" :name="active.createBy" />
|
|
</template>
|
|
</template>
|
|
<div v-show="active.type === 0" class="timeline-box flex-1">
|
|
<div v-show="active.type === 0" class="timeline-box flex-1">
|
|
<span style="color: #86909c; display: block; margin-bottom: 3px; padding-left: 4px">评论</span>
|
|
<span style="color: #86909c; display: block; margin-bottom: 3px; padding-left: 4px">评论</span>
|
|
@@ -67,7 +72,7 @@
|
|
<span style="color: #86909c; display: block; margin-bottom: 3px; padding-left: 4px">{{ active.taskName }}</span>
|
|
<span style="color: #86909c; display: block; margin-bottom: 3px; padding-left: 4px">{{ active.taskName }}</span>
|
|
<div class="flex flex-align-center">
|
|
<div class="flex flex-align-center">
|
|
<div class="timeline-box-user flex-1">
|
|
<div class="timeline-box-user flex-1">
|
|
- <span style="padding-left: 4px">{{ active.createBy }}</span>
|
|
|
|
|
|
+ <span v-if="active.id" style="padding-left: 4px">{{ active.createBy }}</span>
|
|
<div style="display: flex; gap: 6px; margin-top: 3px">
|
|
<div style="display: flex; gap: 6px; margin-top: 3px">
|
|
<FlowNodeAvatar v-for="nodeUser in JSON.parse(active.content).nodeUserList" :key="nodeUser.id" :name="nodeUser.name" />
|
|
<FlowNodeAvatar v-for="nodeUser in JSON.parse(active.content).nodeUserList" :key="nodeUser.id" :name="nodeUser.name" />
|
|
<FlowNodeAvatar v-for="nodeRole in JSON.parse(active.content).nodeRoleList" :key="nodeRole.id" :name="nodeRole.name" />
|
|
<FlowNodeAvatar v-for="nodeRole in JSON.parse(active.content).nodeRoleList" :key="nodeRole.id" :name="nodeRole.name" />
|