Skip to content

Commit 60ddc45

Browse files
committed
BPM:增加 task 的审批建议
1 parent 03b8bd5 commit 60ddc45

File tree

4 files changed

+8
-17
lines changed

4 files changed

+8
-17
lines changed

src/views/bpm/processInstance/detail/ProcessInstanceBpmnViewer.vue

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -33,12 +33,6 @@ const bpmnControlForm = ref({
3333
prefix: 'flowable'
3434
})
3535
const activityList = ref([]) // 任务列表
36-
// const bpmnXML = computed(() => { // TODO 芋艿:不晓得为啊哈不能这么搞
37-
// if (!props.processInstance || !props.processInstance.processDefinition) {
38-
// return
39-
// }
40-
// return DefinitionApi.getProcessDefinitionBpmnXML(props.processInstance.processDefinition.id)
41-
// })
4236
4337
/** 初始化 */
4438
onMounted(async () => {

src/views/bpm/processInstance/detail/ProcessInstanceTaskList.vue

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
<template #header>
44
<span class="el-icon-picture-outline">审批记录</span>
55
</template>
6-
<el-col :offset="4" :span="16">
6+
<el-col :offset="3" :span="17">
77
<div class="block">
88
<el-timeline>
99
<el-timeline-item
@@ -20,8 +20,7 @@
2020
v-if="!isEmpty(item.children)"
2121
@click="openChildrenTask(item)"
2222
>
23-
<Icon icon="ep:memo" />
24-
子任务
23+
<Icon icon="ep:memo" /> 子任务
2524
</el-button>
2625
</p>
2726
<el-card :body-style="{ padding: '10px' }">
@@ -92,7 +91,7 @@ const getTimelineItemIcon = (item) => {
9291
}
9392
9493
/** 获得任务对应的颜色 */
95-
const getTimelineItemType = (item) => {
94+
const getTimelineItemType = (item: any) => {
9695
if (item.status === 1) {
9796
return 'primary'
9897
}

src/views/bpm/processInstance/detail/index.vue

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -302,9 +302,6 @@ const loadRunningTask = (tasks) => {
302302
loadRunningTask(task.children)
303303
}
304304
// 2.1 只有待处理才需要
305-
// if (task.status !== 1 && task.status !== 6) {
306-
// return
307-
// }
308305
if (task.status !== 1 && task.status !== 6) {
309306
return
310307
}

src/views/bpm/task/done/index.vue

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -75,14 +75,15 @@
7575
prop="endTime"
7676
width="180"
7777
/>
78-
<el-table-column align="center" label="耗时" prop="durationInMillis" width="120">
78+
<el-table-column align="center" label="审批状态" prop="status" width="120">
7979
<template #default="scope">
80-
{{ formatPast2(scope.row.durationInMillis) }}
80+
<dict-tag :type="DICT_TYPE.BPM_PROCESS_INSTANCE_RESULT" :value="scope.row.status" />
8181
</template>
8282
</el-table-column>
83-
<el-table-column align="center" label="审批状态" prop="status" width="100">
83+
<el-table-column align="center" label="审批建议" prop="reason" min-width="180" />
84+
<el-table-column align="center" label="耗时" prop="durationInMillis" width="120">
8485
<template #default="scope">
85-
<dict-tag :type="DICT_TYPE.BPM_PROCESS_INSTANCE_RESULT" :value="scope.row.status" />
86+
{{ formatPast2(scope.row.durationInMillis) }}
8687
</template>
8788
</el-table-column>
8889
<el-table-column align="center" label="流程编号" prop="id" :show-overflow-tooltip="true" />

0 commit comments

Comments
 (0)