Browse Source

fix:分类切换图表不更新

chenlei 6 days ago
parent
commit
f060cf04bc
1 changed files with 3 additions and 1 deletions
  1. 3 1
      src/views/chartETA/List.vue

+ 3 - 1
src/views/chartETA/List.vue

@@ -364,13 +364,14 @@ const listState = reactive({
     IsShowMe:false
 })
 //获取图表列表
-async function getChartList(){
+async function getChartList( IsSelected ){
     const {pageSize,cid,page,IsShowMe} = listState
     const res = await apiChart.pubChartList({
         PageSize: pageSize,
         CurrentIndex: page,
         ChartClassifyId: cid,
         IsShowMe,
+        IsSelected
     })
     if(res.Ret!==200) return 
     const arr = res.Data?res.Data.List:[]
@@ -399,6 +400,7 @@ function onLoad(){
 
 function onClickTab() {
     getCatalogList(category.value)
+    getChartList(category.value)
 }
 
 getCatalogList()