File tree Expand file tree Collapse file tree 1 file changed +3
-8
lines changed
src/views/bpm/processInstance/create Expand file tree Collapse file tree 1 file changed +3
-8
lines changed Original file line number Diff line number Diff line change 6
6
class =" !w-50% mb-15px"
7
7
placeholder =" 请输入流程名称"
8
8
clearable
9
- @keyup.enter =" handleQuery"
10
- @clear =" handleClear "
9
+ @input =" handleQuery"
10
+ @clear =" handleQuery "
11
11
>
12
12
<template #prefix >
13
13
<Icon icon =" ep:search" />
@@ -152,8 +152,8 @@ const getDefinitionList = async () => {
152
152
}
153
153
}
154
154
155
+ /** 搜索流程 */
155
156
const filteredProcessDefinitionList = ref ([]) // 用于存储搜索过滤后的流程定义
156
- // 直接进行前端搜索
157
157
const handleQuery = () => {
158
158
if (currentSearchKey .value .trim ()) {
159
159
// 如果有搜索关键字,进行过滤
@@ -167,11 +167,6 @@ const handleQuery = () => {
167
167
}
168
168
}
169
169
170
- // 监听input `clearable` 事件
171
- const handleClear = () => {
172
- filteredProcessDefinitionList .value = processDefinitionList .value
173
- }
174
-
175
170
// 流程定义的分组
176
171
const processDefinitionGroup: any = computed (() => {
177
172
if (! processDefinitionList .value ?.length ) return {}
You can’t perform that action at this time.
0 commit comments