File tree Expand file tree Collapse file tree 4 files changed +8
-17
lines changed Expand file tree Collapse file tree 4 files changed +8
-17
lines changed Original file line number Diff line number Diff line change @@ -33,12 +33,6 @@ const bpmnControlForm = ref({
33
33
prefix: ' flowable'
34
34
})
35
35
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
- // })
42
36
43
37
/** 初始化 */
44
38
onMounted (async () => {
Original file line number Diff line number Diff line change 3
3
<template #header >
4
4
<span class =" el-icon-picture-outline" >审批记录</span >
5
5
</template >
6
- <el-col :offset =" 4 " :span =" 16 " >
6
+ <el-col :offset =" 3 " :span =" 17 " >
7
7
<div class =" block" >
8
8
<el-timeline >
9
9
<el-timeline-item
20
20
v-if =" !isEmpty(item.children)"
21
21
@click =" openChildrenTask(item)"
22
22
>
23
- <Icon icon =" ep:memo" />
24
- 子任务
23
+ <Icon icon =" ep:memo" /> 子任务
25
24
</el-button >
26
25
</p >
27
26
<el-card :body-style =" { padding: '10px' }" >
@@ -92,7 +91,7 @@ const getTimelineItemIcon = (item) => {
92
91
}
93
92
94
93
/** 获得任务对应的颜色 */
95
- const getTimelineItemType = (item ) => {
94
+ const getTimelineItemType = (item : any ) => {
96
95
if (item .status === 1 ) {
97
96
return ' primary'
98
97
}
Original file line number Diff line number Diff line change @@ -302,9 +302,6 @@ const loadRunningTask = (tasks) => {
302
302
loadRunningTask (task .children )
303
303
}
304
304
// 2.1 只有待处理才需要
305
- // if (task.status !== 1 && task.status !== 6) {
306
- // return
307
- // }
308
305
if (task .status !== 1 && task .status !== 6 ) {
309
306
return
310
307
}
Original file line number Diff line number Diff line change 75
75
prop =" endTime"
76
76
width =" 180"
77
77
/>
78
- <el-table-column align =" center" label =" 耗时 " prop =" durationInMillis " width =" 120" >
78
+ <el-table-column align =" center" label =" 审批状态 " prop =" status " width =" 120" >
79
79
<template #default =" scope " >
80
- {{ formatPast2( scope.row.durationInMillis) }}
80
+ < dict-tag :type = " DICT_TYPE.BPM_PROCESS_INSTANCE_RESULT " :value = " scope.row.status " />
81
81
</template >
82
82
</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" >
84
85
<template #default =" scope " >
85
- < dict-tag :type = " DICT_TYPE.BPM_PROCESS_INSTANCE_RESULT " :value = " scope.row.status " />
86
+ {{ formatPast2( scope.row.durationInMillis) }}
86
87
</template >
87
88
</el-table-column >
88
89
<el-table-column align =" center" label =" 流程编号" prop =" id" :show-overflow-tooltip =" true" />
You can’t perform that action at this time.
0 commit comments