Browse Source

fix: record step invalid

master
wangxiang 2 years ago
parent
commit
99e81fd09a
No known key found for this signature in database
GPG Key ID: 1BA7946AB6B232E4
  1. 4
      src/views/workflow/task/workflowStep/index.vue
  2. 8
      src/views/workflow/task/workflowStep/workflowStep.data.ts

4
src/views/workflow/task/workflowStep/index.vue

@ -1,10 +1,9 @@ @@ -1,10 +1,9 @@
<template>
<a-card :class="prefixCls" title="流转记录" :bordered="false">
<a-steps :current="current" size="small" status="process">
<a-steps :current="historyFlowChangeList.length - 1" size="small">
<a-step v-for="(historyFlowChangeStep, index) in getHistoryFlowChangeStepList"
:key="index"
:title="historyFlowChangeStep.activityName"
status="success"
:description="historyFlowChangeStep.assigneeName + historyFlowChangeStep.time"
/>
</a-steps>
@ -35,7 +34,6 @@ @@ -35,7 +34,6 @@
const ASteps = Steps;
const AStep = Steps.Step;
const { prefixCls } = useDesign('workflow-step');
const current = ref<number>(0);
const props = defineProps({
historyFlowChangeList: {
type: Array as PropType<Workflow[]>,

8
src/views/workflow/task/workflowStep/workflowStep.data.ts

@ -20,12 +20,18 @@ export const columns: BasicColumn[] = [ @@ -20,12 +20,18 @@ export const columns: BasicColumn[] = [
{
title: '开始时间',
dataIndex: ['historicActivityInstance', 'startTime'],
width: 150
width: 150,
customRender: ({ record }) => {
return record.historicActivityInstance?.startTime || '--';
}
},
{
title: '结束时间',
dataIndex: ['historicActivityInstance', 'endTime'],
width: 150,
customRender: ({ record }) => {
return record.historicActivityInstance?.endTime || '--';
}
},
{
title: '办理状态',

Loading…
Cancel
Save