【代码评审】工作流:新发起页的优化

pull/582/head
YunaiV 2024-11-08 09:53:19 +08:00
parent 5814826fa8
commit 0fae9a4ba4
1 changed files with 3 additions and 8 deletions

View File

@ -6,8 +6,8 @@
class="!w-50% mb-15px" class="!w-50% mb-15px"
placeholder="请输入流程名称" placeholder="请输入流程名称"
clearable clearable
@keyup.enter="handleQuery" @input="handleQuery"
@clear="handleClear" @clear="handleQuery"
> >
<template #prefix> <template #prefix>
<Icon icon="ep:search" /> <Icon icon="ep:search" />
@ -152,8 +152,8 @@ const getDefinitionList = async () => {
} }
} }
/** 搜索流程 */
const filteredProcessDefinitionList = ref([]) // const filteredProcessDefinitionList = ref([]) //
//
const handleQuery = () => { const handleQuery = () => {
if (currentSearchKey.value.trim()) { if (currentSearchKey.value.trim()) {
// //
@ -167,11 +167,6 @@ const handleQuery = () => {
} }
} }
// input `clearable`
const handleClear = () => {
filteredProcessDefinitionList.value = processDefinitionList.value
}
// //
const processDefinitionGroup: any = computed(() => { const processDefinitionGroup: any = computed(() => {
if (!processDefinitionList.value?.length) return {} if (!processDefinitionList.value?.length) return {}