Browse Source

搜索fix

jwyu 10 months ago
parent
commit
44dd8a4e29
1 changed files with 4 additions and 4 deletions
  1. 4 4
      src/views/etaChart/components/ClassifyWrap.vue

+ 4 - 4
src/views/etaChart/components/ClassifyWrap.vue

@@ -47,19 +47,19 @@ const searchLoading=ref(false)
 let searchPage=1
 let searchPage=1
 const searchPageSize=20
 const searchPageSize=20
 let finished=false
 let finished=false
-function handleSearchChart(){
+function handleSearchChart(keyword){
   finished=false
   finished=false
   searchPage=1
   searchPage=1
   searchOpts.value=[]
   searchOpts.value=[]
-  handleGetSearchChartList()
+  handleGetSearchChartList(keyword)
 }
 }
-async function handleGetSearchChartList(){
+async function handleGetSearchChartList(keyword){
   searchLoading.value=true
   searchLoading.value=true
   const res=await apiETAChart.chartSearch({
   const res=await apiETAChart.chartSearch({
     PageSize:searchPageSize,
     PageSize:searchPageSize,
     CurrentIndex:searchPage,
     CurrentIndex:searchPage,
     SysUserIds:'',
     SysUserIds:'',
-    Keyword:searchVal.value
+    Keyword:keyword
   })
   })
   searchLoading.value=false
   searchLoading.value=false
   if(res.Ret===200){
   if(res.Ret===200){