|
@@ -1,7 +1,7 @@
|
|
|
<template>
|
|
|
<div class="mt-4">
|
|
|
<div class="d-flex justify-center">
|
|
|
- <TextInput v-model="queryParams.content" :item="textItem" @enter="handleConfirm" @appendInnerClick="handleConfirm"></TextInput>
|
|
|
+ <TextInput v-model="queryParams.content" :item="textItem" @enter="handleConfirm" @appendInnerClick="handleConfirm(false)"></TextInput>
|
|
|
</div>
|
|
|
<div>
|
|
|
<Position :isClear="clear" @clear="clear = false" :selectData="position" @select="val => position = val"></Position>
|
|
@@ -225,12 +225,12 @@ const checkValue = (obj) => {
|
|
|
})
|
|
|
}
|
|
|
|
|
|
-const handleConfirm = () => {
|
|
|
+const handleConfirm = (showTips = true) => {
|
|
|
const positionIds = position.value.map(k => k.id)
|
|
|
queryParams.value.positionIds = positionIds || []
|
|
|
query.value.pageNo = 1
|
|
|
if (!checkValue(queryParams.value)) {
|
|
|
- Snackbar.warning('至少选择一个条件进行搜索')
|
|
|
+ if (showTips) Snackbar.warning('至少选择一个条件进行搜索')
|
|
|
items.value = []
|
|
|
total.value = 0
|
|
|
return
|