Skip to content

Commit 0fae9a4

Browse files
committed
【代码评审】工作流:新发起页的优化
1 parent 5814826 commit 0fae9a4

File tree

1 file changed

+3
-8
lines changed
  • src/views/bpm/processInstance/create

1 file changed

+3
-8
lines changed

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

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@
66
class="!w-50% mb-15px"
77
placeholder="请输入流程名称"
88
clearable
9-
@keyup.enter="handleQuery"
10-
@clear="handleClear"
9+
@input="handleQuery"
10+
@clear="handleQuery"
1111
>
1212
<template #prefix>
1313
<Icon icon="ep:search" />
@@ -152,8 +152,8 @@ const getDefinitionList = async () => {
152152
}
153153
}
154154
155+
/** 搜索流程 */
155156
const filteredProcessDefinitionList = ref([]) // 用于存储搜索过滤后的流程定义
156-
// 直接进行前端搜索
157157
const handleQuery = () => {
158158
if (currentSearchKey.value.trim()) {
159159
// 如果有搜索关键字,进行过滤
@@ -167,11 +167,6 @@ const handleQuery = () => {
167167
}
168168
}
169169
170-
// 监听input `clearable` 事件
171-
const handleClear = () => {
172-
filteredProcessDefinitionList.value = processDefinitionList.value
173-
}
174-
175170
// 流程定义的分组
176171
const processDefinitionGroup: any = computed(() => {
177172
if (!processDefinitionList.value?.length) return {}

0 commit comments

Comments
 (0)