管道基础大数据平台系统开发-【前端】-新系統界面
1
Surpriseplus
2022-12-21 ec3342e1b34dd02f33dae9bed2db16a14ae8096d
src/views/Synthesis/index.vue
@@ -24,6 +24,7 @@
        </div>
      </div>
    </div>
    <maplayer ref="maplayer" />
  </div>
</template>
@@ -31,10 +32,12 @@
import { getPerms } from '../../api/api';
import mapdiv from '../../components/MapDiv.vue';
import leftMenu from './LeftMenu.vue';
import maplayer from '../Tools/maplayer.vue';
export default {
  components: {
    mapdiv,
    leftMenu,
    maplayer,
  },
  data() {
    return {
@@ -117,7 +120,14 @@
      }
    },
    //初始化菜单授权
    getPermsMenu() {
    async getPermsMenu() {
      if (this.$store.state.currentPerms == '') {
        this.$store.state.currentPerms = '/comprehensive';
      }
      if (this.$store.state.permsEntity.length == 0) {
        const data = await getPerms();
        this.$store.state.permsEntity = data.result;
      }
      var val = this.$store.state.currentPerms;
      var permsEntity = this.$store.state.permsEntity;
      for (var i = 0; i < permsEntity.length; i++) {
@@ -156,15 +166,16 @@
    },
  },
  mounted() {
    this.getPermsMenu();
    this.$bus.$emit('showLeftMenu', true);
    this.$store.state.mapMenuBoolean = false;
    this.$store.state.mapMenuBoxFlag = null;
    this.$store.state.mapPopBoolean = false;
    this.$store.state.mapPopBoxFlag = null;
    this.initMap();
  },
  //初始化菜单授权
  created() {
    this.getPermsMenu();
    // this.getPermsMenu();
  },
};
</script>
@@ -250,7 +261,6 @@
      margin: 0;
      width: 300px;
      height: auto;
      transition: width 2s;
    }