| | |
| | | data: data |
| | | }) |
| | | } |
| | | // 切换角色 |
| | | export function exchangeRole(roleId) { |
| | | return request({ |
| | | url: '/system/role/exchange/'+ roleId, |
| | | method: 'get', |
| | | }) |
| | | } |
| | | // 删除角色 |
| | | export function delRole(roleId) { |
| | | return request({ |
| | |
| | | </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> |
| | |
| | | } |
| | | }, |
| | | methods: { |
| | | exchange(roleId) { |
| | | exchangeRole(roleId).then(response => { |
| | | this.$modal.msgSuccess("修改成功"); |
| | | }).catch(() => { }); |
| | | }, |
| | | toggleSideBar() { |
| | | this.$store.dispatch('app/toggleSideBar') |
| | | }, |