10
10
:inline =" true"
11
11
label-width =" 68px"
12
12
>
13
- <el-form-item label =" 流程名称 " prop =" name" >
13
+ <el-form-item label =" " prop =" name" >
14
14
<el-input
15
15
v-model =" queryParams.name"
16
16
placeholder =" 请输入流程名称"
19
19
class =" !w-240px"
20
20
/>
21
21
</el-form-item >
22
- <el-form-item label =" 所属流程" prop =" processDefinitionKey" >
23
- <el-input
24
- v-model =" queryParams.processDefinitionKey"
25
- placeholder =" 请输入流程定义的标识"
26
- clearable
27
- @keyup.enter =" handleQuery"
28
- class =" !w-240px"
29
- />
30
- </el-form-item >
31
- <el-form-item label =" 流程分类" prop =" category" >
32
- <el-select
33
- v-model =" queryParams.category"
34
- placeholder =" 请选择流程分类"
35
- clearable
36
- class =" !w-240px"
37
- >
38
- <el-option
39
- v-for =" category in categoryList"
40
- :key =" category.code"
41
- :label =" category.name"
42
- :value =" category.code"
43
- />
44
- </el-select >
45
- </el-form-item >
46
- <el-form-item label =" 流程状态" prop =" status" >
47
- <el-select
48
- v-model =" queryParams.status"
49
- placeholder =" 请选择流程状态"
50
- clearable
51
- class =" !w-240px"
52
- >
53
- <el-option
54
- v-for =" dict in getIntDictOptions(DICT_TYPE.BPM_PROCESS_INSTANCE_STATUS)"
55
- :key =" dict.value"
56
- :label =" dict.label"
57
- :value =" dict.value"
58
- />
59
- </el-select >
60
- </el-form-item >
61
- <el-form-item label =" 发起时间" prop =" createTime" >
62
- <el-date-picker
63
- v-model =" queryParams.createTime"
64
- value-format =" YYYY-MM-DD HH:mm:ss"
65
- type =" daterange"
66
- start-placeholder =" 开始日期"
67
- end-placeholder =" 结束日期"
68
- :default-time =" [new Date('1 00:00:00'), new Date('1 23:59:59')]"
69
- class =" !w-240px"
70
- />
71
- </el-form-item >
22
+
72
23
<el-form-item >
73
24
<el-button @click =" handleQuery" ><Icon icon =" ep:search" class =" mr-5px" /> 搜索</el-button >
74
25
<el-button @click =" resetQuery" ><Icon icon =" ep:refresh" class =" mr-5px" /> 重置</el-button >
81
32
<Icon icon =" ep:plus" class =" mr-5px" /> 发起流程
82
33
</el-button >
83
34
</el-form-item >
35
+
36
+ <el-form-item label =" " prop =" category" :style =" { position: 'absolute', right: '130px' }" >
37
+ <el-select
38
+ v-model =" queryParams.category"
39
+ placeholder =" 请选择流程分类"
40
+ clearable
41
+ class =" !w-240px"
42
+ >
43
+ <el-option
44
+ v-for =" category in categoryList"
45
+ :key =" category.code"
46
+ :label =" category.name"
47
+ :value =" category.code"
48
+ />
49
+ </el-select >
50
+ </el-form-item >
51
+
52
+ <el-form-item :style =" { position: 'absolute', right: '0px' }" >
53
+ <el-button v-popover =" popoverRef" v-click-outside =" onClickOutside" :icon =" List" >
54
+ 高级筛选
55
+ </el-button >
56
+
57
+ <el-popover
58
+ ref =" popoverRef"
59
+ trigger =" click"
60
+ virtual-triggering
61
+ persistent
62
+ :width =" 400"
63
+ :show-arrow =" false"
64
+ placement =" bottom-end"
65
+ >
66
+ <el-form-item label =" 流程发起人" class =" bold-label" label-position =" top" prop =" category" >
67
+ <el-select
68
+ v-model =" queryParams.category"
69
+ placeholder =" 请选择流程发起人"
70
+ clearable
71
+ class =" !w-390px"
72
+ >
73
+ <el-option
74
+ v-for =" category in categoryList"
75
+ :key =" category.code"
76
+ :label =" category.name"
77
+ :value =" category.code"
78
+ />
79
+ </el-select >
80
+ </el-form-item >
81
+ <el-form-item label =" 所属流程" class =" bold-label" label-position =" top" prop =" processDefinitionKey" >
82
+ <el-input
83
+ v-model =" queryParams.processDefinitionKey"
84
+ placeholder =" 请输入流程定义的标识"
85
+ clearable
86
+ @keyup.enter =" handleQuery"
87
+ class =" !w-390px"
88
+ />
89
+ </el-form-item >
90
+
91
+ <el-form-item label =" 流程状态" class =" bold-label" label-position =" top" prop =" status" >
92
+ <el-select
93
+ v-model =" queryParams.status"
94
+ placeholder =" 请选择流程状态"
95
+ clearable
96
+ class =" !w-390px"
97
+ >
98
+ <el-option
99
+ v-for =" dict in getIntDictOptions(DICT_TYPE.BPM_PROCESS_INSTANCE_STATUS)"
100
+ :key =" dict.value"
101
+ :label =" dict.label"
102
+ :value =" dict.value"
103
+ />
104
+ </el-select >
105
+ </el-form-item >
106
+ <el-form-item label =" 发起时间" class =" bold-label" label-position =" top" prop =" createTime" >
107
+ <el-date-picker
108
+ v-model =" queryParams.createTime"
109
+ value-format =" YYYY-MM-DD HH:mm:ss"
110
+ type =" daterange"
111
+ start-placeholder =" 开始日期"
112
+ end-placeholder =" 结束日期"
113
+ :default-time =" [new Date('1 00:00:00'), new Date('1 23:59:59')]"
114
+ class =" !w-240px"
115
+ />
116
+ </el-form-item >
117
+ </el-popover >
118
+ </el-form-item >
119
+
84
120
</el-form >
85
121
</ContentWrap >
86
122
114
150
width =" 180"
115
151
:formatter =" dateFormatter"
116
152
/>
117
- <el-table-column align =" center" label =" 耗时" prop =" durationInMillis" width =" 160" >
153
+ <!-- < el-table-column align="center" label="耗时" prop="durationInMillis" width="160">
118
154
<template #default="scope">
119
155
{{ scope.row.durationInMillis > 0 ? formatPast2(scope.row.durationInMillis) : '-' }}
120
156
</template>
126
162
</el-button>
127
163
</template>
128
164
</el-table-column>
129
- <el-table-column label =" 流程编号" align =" center" prop =" id" min-width =" 320px" />
165
+ <el-table-column label="流程编号" align="center" prop="id" min-width="320px" />-->
130
166
<el-table-column label =" 操作" align =" center" fixed =" right" width =" 180" >
131
167
<template #default =" scope " >
132
168
<el-button
162
198
</ContentWrap >
163
199
</template >
164
200
<script lang="ts" setup>
201
+ import { Delete , Edit , Search , Share , Upload , List } from ' @element-plus/icons-vue'
165
202
import { DICT_TYPE , getIntDictOptions } from ' @/utils/dict'
166
203
import { dateFormatter , formatPast2 } from ' @/utils/formatTime'
167
204
import { ElMessageBox } from ' element-plus'
@@ -270,4 +307,17 @@ onMounted(async () => {
270
307
await getList ()
271
308
categoryList .value = await CategoryApi .getCategorySimpleList ()
272
309
})
310
+
311
+ import { ref , unref } from ' vue'
312
+ import { ClickOutside as vClickOutside } from ' element-plus'
313
+
314
+ const popoverRef = ref ()
315
+ const onClickOutside = () => {
316
+ unref (popoverRef ).popperRef ?.delayHide ?.()
317
+ }
273
318
</script >
319
+ <style >
320
+ .bold-label .el-form-item__label {
321
+ font-weight : bold ; /* 将字体加粗 */
322
+ }
323
+ </style >
0 commit comments