fuliqi
2024-03-25 e69cd3b13263bcc150b45b684eabeb98395b0c35
取消角色切换
2个文件已修改
19 ■■■■■ 已修改文件
src/api/system/role.js 7 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/layout/components/Navbar.vue 12 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/api/system/role.js
@@ -56,13 +56,6 @@
    data: data
  })
}
// 切换角色
export function exchangeRole(roleId) {
  return request({
    url: '/system/role/exchange/'+ roleId,
    method: 'get',
  })
}
// 删除角色
export function delRole(roleId) {
  return request({
src/layout/components/Navbar.vue
@@ -38,13 +38,6 @@
      </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>
    <div class="button-container">
      <el-button type="primary" @click="toScreen">可视化大屏</el-button>
    </div>
@@ -97,11 +90,6 @@
    }
  },
  methods: {
    exchange(roleId) {
      exchangeRole(roleId).then(response => {
        this.$modal.msgSuccess("修改成功");
      }).catch(() => { });
    },
    toggleSideBar() {
      this.$store.dispatch('app/toggleSideBar')
    },