Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 5 additions & 2 deletions frontend/src/views/system/embedded/Page.vue
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,10 @@ const refresh = (row: any) => {
})
}

const search = () => {
const search = ($event: any = {}) => {
if ($event?.isComposing) {
return
}
searchLoading.value = true
embeddedApi
.getList(pageInfo.currentPage, pageInfo.pageSize, { keyword: keywords.value })
Expand Down Expand Up @@ -332,7 +335,7 @@ const copyCode = (row: any, key: any = 'app_secret') => {
style="width: 240px; margin-right: 12px"
:placeholder="$t('dashboard.search')"
clearable
@blur="search"
@keydown.enter.exact.prevent="search"
>
<template #prefix>
<el-icon>
Expand Down
7 changes: 5 additions & 2 deletions frontend/src/views/system/member/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,10 @@ const handleToggleRowSelection = (check: boolean = true) => {
isIndeterminate.value = !(i === 0 || i === arr.length)
}

const search = () => {
const search = ($event: any = {}) => {
if ($event?.isComposing) {
return
}
searchLoading.value = true
workspaceUserList(
keywordsMember.value ? { keyword: keywordsMember.value } : {},
Expand Down Expand Up @@ -220,7 +223,7 @@ const handleCurrentChange = (val: number) => {
style="width: 240px; margin-right: 12px"
:placeholder="$t('user.name_account_email')"
clearable
@blur="search"
@keydown.enter.exact.prevent="search"
>
<template #prefix>
<el-icon>
Expand Down
7 changes: 5 additions & 2 deletions frontend/src/views/system/professional/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -228,7 +228,10 @@ const configParams = () => {
return str
}

const search = () => {
const search = ($event: any = {}) => {
if ($event?.isComposing) {
return
}
searchLoading.value = true
oldKeywords.value = keywords.value
professionalApi
Expand Down Expand Up @@ -430,7 +433,7 @@ const changeStatus = (id: any, val: any) => {
style="width: 240px; margin-right: 12px"
:placeholder="$t('professional.search_term')"
clearable
@blur="search"
@keydown.enter.exact.prevent="search"
>
<template #prefix>
<el-icon>
Expand Down
7 changes: 5 additions & 2 deletions frontend/src/views/system/prompt/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -246,7 +246,10 @@ const handleToggleRowSelection = (check: boolean = true) => {
isIndeterminate.value = !(i === 0 || i === arr.length)
}

const search = () => {
const search = ($event: any = {}) => {
if ($event?.isComposing) {
return
}
searchLoading.value = true
oldKeywords.value = keywords.value
promptApi
Expand Down Expand Up @@ -466,7 +469,7 @@ const drawerMainClose = () => {
style="width: 240px; margin-right: 12px"
:placeholder="$t('dashboard.search')"
clearable
@blur="search"
@keydown.enter.exact.prevent="search"
>
<template #prefix>
<el-icon>
Expand Down
7 changes: 5 additions & 2 deletions frontend/src/views/system/training/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -216,7 +216,10 @@ const handleToggleRowSelection = (check: boolean = true) => {
isIndeterminate.value = !(i === 0 || i === arr.length)
}

const search = () => {
const search = ($event: any = {}) => {
if ($event?.isComposing) {
return
}
searchLoading.value = true
oldKeywords.value = keywords.value
trainingApi
Expand Down Expand Up @@ -368,7 +371,7 @@ const onRowFormClose = () => {
style="width: 240px"
:placeholder="$t('training.search_problem')"
clearable
@blur="search"
@keydown.enter.exact.prevent="search"
>
<template #prefix>
<el-icon>
Expand Down
7 changes: 5 additions & 2 deletions frontend/src/views/system/user/User.vue
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
style="width: 240px; margin-right: 12px"
:placeholder="$t('user.name_account_email')"
clearable
@blur="handleSearch"
@keydown.enter.exact.prevent="handleSearch"
>
<template #prefix>
<el-icon>
Expand Down Expand Up @@ -625,7 +625,10 @@ const handleToggleRowSelection = (check: boolean = true) => {
isIndeterminate.value = !(i === 0 || i === state.tableData.length)
selectionLoading.value = false
}
const handleSearch = () => {
const handleSearch = ($event: any = {}) => {
if ($event?.isComposing) {
return
}
state.pageInfo.currentPage = 1
search()
}
Expand Down
Loading