fuliqi
2024-08-20 a6842851a844e63a8766d63c5410a8e2f27a7d45
src/layout/components/Navbar.vue
@@ -1,7 +1,7 @@
<template>
  <div class="navbar">
    <hamburger id="hamburger-container" :is-active="sidebar.opened" class="hamburger-container"
      @toggleClick="toggleSideBar" />
               @toggleClick="toggleSideBar" />
    <breadcrumb id="breadcrumb-container" class="breadcrumb-container" v-if="!topNav" />
    <top-nav id="topmenu-container" class="topmenu-container" v-if="topNav" />
@@ -38,15 +38,14 @@
      </el-dropdown>
    </div>
    <div class="test-container">
      <el-button-group style="vertical-align: text-bottom;">
        <el-button @click="exchange(100)">省厅角色</el-button>
        <el-button @click="exchange(103)">区县角色</el-button>
        <el-button @click="exchange(2)">运维角色</el-button>
      </el-button-group>
    <div class="button-container">
      <el-button type="primary" @click="toScreen" size="small">可视化大屏</el-button>
    </div>
    <div class="button-container">
      <el-button type="primary" @click="toScreen">可视化大屏</el-button>
      <el-button type="primary" @click="toSystemB" size="small">跳转B系统</el-button>
    </div>
    <div class="button-container">
      <el-button type="primary" @click="toSystemA" size="small">跳转A系统</el-button>
    </div>
  </div>
</template>
@@ -97,11 +96,6 @@
    }
  },
  methods: {
    exchange(roleId) {
      exchangeRole(roleId).then(response => {
        this.$modal.msgSuccess("修改成功");
      }).catch(() => { });
    },
    toggleSideBar() {
      this.$store.dispatch('app/toggleSideBar')
    },
@@ -121,6 +115,13 @@
      this.$router.push({
        path: '/screen'
      })
    },
    toSystemA() {
      window.open('https://www.baidu.com/')
    },
    toSystemB() {
      window.open('https://www.baidu.com/')
    }
  }
}