团队作业-冲刺二(6)

分类标签

              <el-menu-item-group>
                   <el-menu-item index="1-1" @click="types(1)">全部</el-menu-item>
                   <el-menu-item index="1-2" @click="types(2)">期刊</el-menu-item>
                   <el-menu-item index="1-3" @click="types(3)">辑刊</el-menu-item>
                   <el-menu-item index="1-6" @click="types(4)">特色期刊</el-menu-item>
                   <el-menu-item index="1-4" @click="types(5)">会议</el-menu-item>
                   <el-menu-item index="1-5" @click="types(6)">报纸</el-menu-item>
                   <el-menu-item index="1-6" @click="types(7)">硕士</el-menu-item>
                   <el-menu-item index="1-6" @click="types(8)">博士</el-menu-item>
              </el-menu-item-group>
            </el-submenu>

分类功能

 1  types(index) {
 2       console.log(index);
 3       if(index == 1)
 4       {
 5         this.fenlei = "全部";
 6       }else if(index == 2){
 7         this.fenlei = "期刊";
 8       }else if(index == 3){
 9         this.fenlei = "辑刊";
10       }else if(index == 4){
11         this.fenlei = "特色期刊";
12       }else if(index == 5){
13         this.fenlei = "会议";
14       }else if(index == 6){
15         this.fenlei = "报纸";
16       }else if(index == 7){
17         this.fenlei = "硕士";
18       }else if(index == 8){
19         this.fenlei = "博士";
20       }
21       this.search();
22     },

 

posted @ 2023-05-16 21:43  旺旺大菠萝  阅读(6)  评论(0编辑  收藏  举报