管道基础大数据平台系统开发-【前端】-新系統界面
Surpriseplus
2023-02-10 4745b682956116fa09d812c59b485395f45c2e87
src/views/datamanage/dataController.vue
@@ -160,6 +160,14 @@
          this.menuList = this.treeData(menuList);
          this.setViewController(this.menuList[0]);
          const hanleselectindex = sessionStorage.getItem('hanleselectindex')
          if (hanleselectindex) {
            this.$nextTick(function (){
              this.handleselecttwo(JSON.parse(hanleselectindex).url, JSON.parse(hanleselectindex))
              this.setViewController(JSON.parse(hanleselectindex))
            })
          }
        } else {
          this.$message.error('暂无菜单栏数据');
@@ -198,6 +206,8 @@
    },
    handleselect(index, indexPath, e) {
      const a = JSON.stringify(e.$attrs.perms)
      sessionStorage.setItem('hanleselectindex', a)
      var data = e.$attrs.perms;
      this.$store.state.currentPerms = data.perms;
      var index = data.url;
@@ -210,6 +220,22 @@
      }
      this.setMenuFlag = index;
    },
    handleselecttwo(index, e) {
      const a = JSON.stringify(e)
      sessionStorage.setItem('hanleselectindex', a)
      var data = e;
      this.$store.state.currentPerms = data.perms;
      var index = data.url;
      if (index != null) {
        if (index.indexOf('http') != -1) {
          this.$store.commit('getIframe', data.url);
          index = 'dataIfream';
        }
      }
      this.setMenuFlag = index;
    },
  },
};
</script>