|
@@ -41,7 +41,7 @@ async function fetchSearchResult() {
|
|
page: page,
|
|
page: page,
|
|
limit: limit,
|
|
limit: limit,
|
|
productLineId: productLineSelect.value,
|
|
productLineId: productLineSelect.value,
|
|
- searchInput: searchInput.value,
|
|
|
|
|
|
+ searchItem: searchInput.value,
|
|
}
|
|
}
|
|
|
|
|
|
try {
|
|
try {
|
|
@@ -62,10 +62,17 @@ async function fetchSearchResult() {
|
|
|
|
|
|
function handleSelectChange() {
|
|
function handleSelectChange() {
|
|
page = 1
|
|
page = 1
|
|
|
|
+ searchResult.value = []; // 清空搜索结果
|
|
emitter.emit('PopoverFilter-productLineSelect', productLineSelect)
|
|
emitter.emit('PopoverFilter-productLineSelect', productLineSelect)
|
|
fetchSearchResult()
|
|
fetchSearchResult()
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+function searchInputBlur() {
|
|
|
|
+ page = 1
|
|
|
|
+ searchResult.value = []
|
|
|
|
+ fetchSearchResult()
|
|
|
|
+}
|
|
|
|
+
|
|
emitter.on('PopoverFilterTable-sendRequest', () => {
|
|
emitter.on('PopoverFilterTable-sendRequest', () => {
|
|
console.log('开始发送')
|
|
console.log('开始发送')
|
|
fetchSearchResult()
|
|
fetchSearchResult()
|
|
@@ -98,6 +105,7 @@ onBeforeUnmount(() => {
|
|
<div class="flex gap-1 p-2">
|
|
<div class="flex gap-1 p-2">
|
|
<el-input
|
|
<el-input
|
|
v-model="searchInput"
|
|
v-model="searchInput"
|
|
|
|
+ @blur="searchInputBlur"
|
|
placeholder="输入产品标题/父ASIN/ASIN查询"
|
|
placeholder="输入产品标题/父ASIN/ASIN查询"
|
|
:prefix-icon="Search"
|
|
:prefix-icon="Search"
|
|
style="width: 360px" />
|
|
style="width: 360px" />
|