南昌市物联网技防平台-前端
jxdnsong
2021-01-26 cb687519de93313ccd6af5edd82de69d66cb3d35
Merge branch 'master' of http://192.168.0.105:10010/r/jfpt-Vue into master
1 files modified
16 ■■■■■ changed files
src/page/index/top/top-menu.vue 16 ●●●●● patch | view | raw | blame | history
src/page/index/top/top-menu.vue
@@ -9,6 +9,12 @@
          <span>{{generateTitle(itemHome)}}</span>
        </template>
      </el-menu-item>
      <el-menu-item index="0" @click.native="openHomes(ZHAJ)" key="0">
        <template slot="title">
          <i :class="ZHAJ.source"></i>
          <span>{{generateTitle(ZHAJ)}}</span>
        </template>
      </el-menu-item>
      <template v-for="(item,index) in items">
        <el-menu-item :index="item.id+''" @click.native="openMenu(item)" :key="index">
          <template slot="title">
@@ -32,6 +38,10 @@
          name: '首页',
          source: 'el-icon-menu',
        },
        ZHAJ: {
          name: '智慧安检',
          source: 'el-icon-menu',
        },
        activeIndex: "0",
        items: [],
      };
@@ -50,6 +60,12 @@
          path: this.$router.$avueRouter.getPath({name: itemHome.name, src: ''}, {})
        });
      },
      openHomes(itemHome) {
        this.index.openMenu(itemHome);
        this.$router.push({
          path: this.$router.$avueRouter.getPath({name: itemHome.name, src: 'http://fengkong.sf-express.com/backstageprd/#/homeInfo/infoOverview'}, {})
        });
      },
      openMenu(item) {
        this.index.openMenu(item)
      },