25
25
</el-form-item >
26
26
27
27
<!-- TODO @ tuituji:style 可以使用 unocss -->
28
- <el-form-item label =" " prop =" category" :style =" { position: 'absolute', right: '130px' }" >
28
+ <el-form-item label =" " prop =" category" :style =" { position: 'absolute', right: '300px' }" >
29
+ <!-- TODO @tuituji:应该选择好分类,就触发搜索啦。 RE:done & to check-->
29
30
<el-select
30
31
v-model =" queryParams.category"
31
32
placeholder =" 请选择流程分类"
42
43
</el-select >
43
44
</el-form-item >
44
45
46
+ <el-form-item label =" " prop =" status" :style =" { position: 'absolute', right: '130px' }" >
47
+ <el-select
48
+ v-model =" queryParams.status"
49
+ placeholder =" 请选择流程状态"
50
+ clearable
51
+ class =" !w-155px"
52
+ @change =" handleQuery"
53
+ >
54
+ <el-option
55
+ v-for =" dict in getIntDictOptions(DICT_TYPE.BPM_PROCESS_INSTANCE_STATUS)"
56
+ :key =" dict.value"
57
+ :label =" dict.label"
58
+ :value =" dict.value"
59
+ />
60
+ </el-select >
61
+ </el-form-item >
62
+
63
+ <!-- 高级筛选 -->
64
+ <!-- TODO @ tuituji:style 可以使用 unocss -->
45
65
<el-form-item :style =" { position: 'absolute', right: '0px' }" >
46
66
<el-popover
47
67
:visible =" showPopover"
51
71
placement =" bottom-end"
52
72
>
53
73
<template #reference >
54
- <el-button @click =" showPopover = !showPopover" >
55
- <Icon icon =" ep:plus" class =" mr-5px" />高级筛选
74
+ <el-button @click =" showPopover = !showPopover" >
75
+ <Icon icon =" ep:plus" class =" mr-5px" />高级筛选
56
76
</el-button >
77
+
57
78
</template >
58
79
<el-form-item label =" 流程发起人" class =" bold-label" label-position =" top" prop =" category" >
59
80
<el-select
84
105
class =" !w-390px"
85
106
/>
86
107
</el-form-item >
87
- <el-form-item label =" 流程状态" class =" bold-label" label-position =" top" prop =" status" >
88
- <el-select
89
- v-model =" queryParams.status"
90
- placeholder =" 请选择流程状态"
91
- clearable
92
- class =" !w-390px"
93
- >
94
- <el-option
95
- v-for =" dict in getIntDictOptions(DICT_TYPE.BPM_PROCESS_INSTANCE_STATUS)"
96
- :key =" dict.value"
97
- :label =" dict.label"
98
- :value =" dict.value"
99
- />
100
- </el-select >
101
- </el-form-item >
102
108
<el-form-item label =" 发起时间" class =" bold-label" label-position =" top" prop =" createTime" >
103
109
<el-date-picker
104
110
v-model =" queryParams.createTime"
111
117
/>
112
118
</el-form-item >
113
119
<el-form-item class =" bold-label" label-position =" top" >
114
- <el-button @click =" resetQuery " > 清空 </el-button >
120
+ <el-button @click =" handleQuery " > 确认 </el-button >
115
121
<el-button @click =" showPopover = false" > 取消</el-button >
116
- <el-button @click =" handleQuery" type =" primary" > 确认</el-button >
117
- </el-form-item >
118
- </el-popover >
122
+ <el-button @click =" resetQuery" > 清空</el-button >
123
+ </el-form-item >
124
+ </el-popover >
125
+ <!-- TODO @tuituji:这里应该有确认,和取消、清空搜索条件,三个按钮。 RE:done & to check-->
119
126
</el-form-item >
120
127
</el-form >
121
128
</ContentWrap >
132
139
fixed =" left"
133
140
/>
134
141
<!-- TODO @芋艿:摘要 -->
135
- <!-- TODO @tuituji:流程状态。可见需求文档里 Re:没看懂;回复:1)就是审批中的时候,展示审批人;2)审批结束的时候,就展示状态 -->
142
+ <!-- TODO @tuituji:流程状态。可见需求文档里 Re:没看懂-->
136
143
<el-table-column label =" 流程状态" prop =" status" width =" 120" >
137
144
<template #default =" scope " >
138
145
<dict-tag :type =" DICT_TYPE.BPM_PROCESS_INSTANCE_STATUS" :value =" scope.row.status" />
200
207
</ContentWrap >
201
208
</template >
202
209
<script lang="ts" setup>
210
+ // TODO @tuituji:List 改成 <Icon icon="ep:plus" class="mr-5px" /> 类似这种组件哈。 RE:done & to check
203
211
import { DICT_TYPE , getIntDictOptions } from ' @/utils/dict'
204
212
import { dateFormatter } from ' @/utils/formatTime'
205
213
import { ElMessageBox } from ' element-plus'
@@ -275,7 +283,7 @@ const handleCreate = async (row?: ProcessInstanceVO) => {
275
283
}
276
284
277
285
/** 查看详情 */
278
- const handleDetail = (row : any ) => {
286
+ const handleDetail = (row ) => {
279
287
router .push ({
280
288
name: ' BpmProcessInstanceDetail' ,
281
289
query: {
@@ -285,7 +293,7 @@ const handleDetail = (row: any) => {
285
293
}
286
294
287
295
/** 取消按钮操作 */
288
- const handleCancel = async (row : any ) => {
296
+ const handleCancel = async (row ) => {
289
297
// 二次确认
290
298
const { value } = await ElMessageBox .prompt (' 请输入取消原因' , ' 取消流程' , {
291
299
confirmButtonText: t (' common.ok' ),
@@ -300,6 +308,15 @@ const handleCancel = async (row: any) => {
300
308
await getList ()
301
309
}
302
310
311
+ // TODO @tuituji:这个 import 是不是没用哈?
312
+ // import { ClickOutside as vClickOutside } from 'element-plus'
313
+
314
+ // TODO @tuituji:onClickAdvancedSearch。方法名叫这个,会更好一些哇?打开高级搜索。
315
+ const popoverRef = ref ()
316
+ const onClickOutside = () => {
317
+ unref (popoverRef ).popperRef ?.delayHide ?.()
318
+ }
319
+
303
320
/** 激活时 **/
304
321
onActivated (() => {
305
322
getList ()
0 commit comments