Browse Source

fix:eta社区3.0

chenlei 3 weeks ago
parent
commit
97fc433a6c
2 changed files with 13 additions and 1 deletions
  1. 2 0
      src/views/chartETA/ChartDetail.vue
  2. 11 1
      src/views/chartETA/List.vue

+ 2 - 0
src/views/chartETA/ChartDetail.vue

@@ -613,6 +613,8 @@ function openAddToMyETADialog(){
 }
 //删除图表
 function deleteChart(){
+    console.log(routeQueryData);
+    
     showDialog({
         title: '提示',
         message: '删除后该图表将不能再引用,确认删除吗?',

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

@@ -27,6 +27,7 @@ const {
     optArrNode,
     authOptArr,
 } = useCatalogList()
+const category = ref('')
 
 //跳转至图表详情页
 const goChartDetail = (item)=>{
@@ -396,6 +397,10 @@ function onLoad(){
     getChartList()
 }
 
+function onClickTab() {
+    getCatalogList(category.value)
+}
+
 getCatalogList()
 getChartList()
 </script>
@@ -457,7 +462,12 @@ getChartList()
         <van-popup v-model:show="IsShowCatalog" position="right" class="catalog-list-wrap" style="height:100%">
             <div class="catalog-list">
                 <div class="top sticky-part">
-                    <h3>分类</h3>
+                    <!-- <h3>分类</h3>
+                    <h3>精选资源</h3> -->
+                    <van-tabs v-model:active="category" @click-tab="onClickTab" :ellipsis="false">
+                        <van-tab title="分类"></van-tab>
+                        <van-tab title="精选资源"></van-tab>
+                    </van-tabs>
                     <van-icon name="cross" @click.stop="IsShowCatalog=false"/>
                 </div>
                 <!-- 将目录改为三级 -->