|
|
|
@ -1,46 +1,41 @@
@@ -1,46 +1,41 @@
|
|
|
|
|
<template> |
|
|
|
|
<a-card :class="prefixCls" title="流程信息" :bordered="false"> |
|
|
|
|
<a-timeline> |
|
|
|
|
<a-timeline-item color="#3f9eff"> |
|
|
|
|
<a-timeline-item v-for="(historyFlowChange, index) in historyFlowChangeList" :key="index" color="#3f9eff"> |
|
|
|
|
<div class="workflow"> |
|
|
|
|
<div class="timestamp">{{formatToDateTime()}}</div> |
|
|
|
|
<div class="timestamp">{{ getHistoricActivityInstance(historyFlowChange).endTime }}</div> |
|
|
|
|
<a-card> |
|
|
|
|
<h4>{{'管理员审批'}}</h4> |
|
|
|
|
<h4>{{ getHistoricActivityInstance(historyFlowChange).activityName }}</h4> |
|
|
|
|
<a-row :gutter="25"> |
|
|
|
|
<a-col class="tip" style="margin-left:10px" :span="11"> |
|
|
|
|
<div class="item"> |
|
|
|
|
<span class="label">审批人 : </span> |
|
|
|
|
<span class="value">{{'虚拟内容'}}</span> |
|
|
|
|
<span class="value">{{ historyFlowChange.assigneeName }}</span> |
|
|
|
|
</div> |
|
|
|
|
<div class="item"> |
|
|
|
|
<span class="label">办理状态 : </span> |
|
|
|
|
<span class="value"> |
|
|
|
|
<!-- <a-tag :type="historyFlowChange.activityCommentInfo.mesLevel" |
|
|
|
|
effect="dark" |
|
|
|
|
size="small" |
|
|
|
|
>{{'虚拟内容}}</a-tag>--> |
|
|
|
|
<a-tag :color="getActivityCommentInfo(historyFlowChange).mesLevel">{{ getActivityCommentInfo(historyFlowChange).mesName }}</a-tag> |
|
|
|
|
</span> |
|
|
|
|
</div> |
|
|
|
|
<div class="item"> |
|
|
|
|
<span class="label">审批意见 : </span> |
|
|
|
|
<!-- <a-tooltip effect="dark" |
|
|
|
|
:content="historyFlowChange.activityCommentInfo.message" |
|
|
|
|
placement="top-start" |
|
|
|
|
> |
|
|
|
|
<span class="value">{{'虚拟内容'}}</span> |
|
|
|
|
</a-tooltip>--> |
|
|
|
|
<a-tooltip> |
|
|
|
|
<template #title>{{ getActivityCommentInfo(historyFlowChange).message }}</template> |
|
|
|
|
{{ getActivityCommentInfo(historyFlowChange).message }} |
|
|
|
|
</a-tooltip> |
|
|
|
|
</div> |
|
|
|
|
<div class="item"> |
|
|
|
|
<span class="label">开始时间 : </span> |
|
|
|
|
<span class="value">{{'虚拟内容'}}</span> |
|
|
|
|
<span class="value">{{ getHistoricActivityInstance(historyFlowChange).startTime || '--' }}</span> |
|
|
|
|
</div> |
|
|
|
|
<div class="item"> |
|
|
|
|
<span class="label">结束时间 : </span> |
|
|
|
|
<span class="value">{{'虚拟内容'}}</span> |
|
|
|
|
<span class="value">{{ getHistoricActivityInstance(historyFlowChange).endTime || '' }}</span> |
|
|
|
|
</div> |
|
|
|
|
<div class="item"> |
|
|
|
|
<span class="label">用时 : </span> |
|
|
|
|
<span class="value">{{'虚拟内容'}}</span> |
|
|
|
|
<span class="value">{{ historyFlowChange.durationTime || '0秒' }}</span> |
|
|
|
|
</div> |
|
|
|
|
</a-col> |
|
|
|
|
</a-row> |
|
|
|
@ -60,8 +55,9 @@
@@ -60,8 +55,9 @@
|
|
|
|
|
import { PropType } from 'vue'; |
|
|
|
|
import { Workflow } from '/@/api/platform/workflow/entity/workflow'; |
|
|
|
|
import { Timeline } from 'ant-design-vue'; |
|
|
|
|
import { formatToDateTime } from '/@/utils/dateUtil'; |
|
|
|
|
import { useDesign } from '/@/hooks/web/useDesign'; |
|
|
|
|
import {HistoricActivityInstance} from '/@/api/platform/workflow/entity/historicActivityInstance'; |
|
|
|
|
import {ActivityCommentInfo} from '/@/api/platform/workflow/entity/activityCommentInfo'; |
|
|
|
|
|
|
|
|
|
const ATimeline = Timeline; |
|
|
|
|
const ATimelineItem = Timeline.Item; |
|
|
|
@ -73,6 +69,9 @@
@@ -73,6 +69,9 @@
|
|
|
|
|
} |
|
|
|
|
}); |
|
|
|
|
|
|
|
|
|
const getHistoricActivityInstance = (historyFlowChange: Workflow): HistoricActivityInstance => historyFlowChange.historicActivityInstance || {}; |
|
|
|
|
const getActivityCommentInfo = (historyFlowChange: Workflow): ActivityCommentInfo => historyFlowChange.activityCommentInfo || {}; |
|
|
|
|
|
|
|
|
|
</script> |
|
|
|
|
<style lang="less" scoped> |
|
|
|
|
@prefix-cls: ~'@{namespace}-workflow-time-line'; |
|
|
|
|