fix: 2707 【图审审批管理】输入数据,点击叉号关闭搜索框,再次打开后依然显示上次输入数据。预期:再次打开后应该显示为空

pull/26/head
lizijiee 1 year ago
parent e2a94f5857
commit a5ab9710a9

@ -7,11 +7,11 @@ import { ContentTypeEnum } from '@/enums/httpEnum'
* *
* @returns * @returns
*/ */
export async function getPackageList(params: PageParam, packagename: string) { export async function getPackageList(params: PageParam, packageName: string) {
const res = await http.request({ const res = await http.request({
url: `/ocr/ocrTaskPackage/getPackageList`, url: `/ocr/ocrTaskPackage/getPackageList`,
method: 'get', method: 'get',
params: { ...params, packagename }, params: { ...params, packageName },
}) })
const { data: { records, pages } } = res const { data: { records, pages } } = res

@ -146,8 +146,7 @@ function setShowSearch(value: boolean) {
} }
const inputHandler = debounce((word) => { const inputHandler = debounce((word) => {
searchKeyword.value = word searchKeyword.value = word;
console.log(22222);
(packageListRef.value as any).search(word); (packageListRef.value as any).search(word);
}, 500); }, 500);
</script> </script>

Loading…
Cancel
Save