feat(router): 找回权限新增路由配置

This commit is contained in:
woody 2025-06-18 13:32:46 +08:00
parent 213a3e7235
commit 9e21e76d16
5 changed files with 30 additions and 24 deletions

View File

@ -3256,7 +3256,13 @@ export const constantRoutes = [
meta: { title: '前台权限配置' },
hidden: true
},
{
path: 'AddMenuRole',
name: 'addMenuRole',
component: () => import('@/views/system/addMenuRole/index'),
meta: { title: i18n.t('新增权限') },
hidden: true
},
{
path: 'fieldRole',
name: 'FieldRole',

View File

@ -546,7 +546,7 @@ export default {
},
cancel() {
this.$router.push({
name: 'superStudioGift'
name: 'addMenuRole'
})
},
addNewGoods() {

View File

@ -207,11 +207,11 @@ export default {
roleAllList: [],
menuAllList: []
},
moren: 'superStudioGift',
moren: 'addMenuRole',
topList: [
{
name: '后台菜单权限',
path: 'superStudioGift'
path: 'addMenuRole'
}
]
}

View File

@ -127,12 +127,12 @@
>
<template slot-scope="scope">
<el-button
v-show="user.userName == 'admin'"
type="text"
size="small"
class="button-s"
style="color: #c73030"
@click="toLogin(scope.row)"
v-show="user.userName == 'admin'"
>登录
</el-button>
@ -186,10 +186,10 @@ import topBar from '@/components/topBarRole'
import * as api from '@/api/notice'
import { Message } from 'element-ui'
import { getRouters } from '@/api/settle'
import {freeLogin} from "@/api/manage";
import {setToken} from "@/utils/auth";
import {login} from "@/api/user";
import {mapGetters} from "vuex";
import { freeLogin } from '@/api/manage'
import { setToken } from '@/utils/auth'
import { login } from '@/api/user'
import { mapGetters } from 'vuex'
export default {
name: 'Qxpz',
@ -203,11 +203,11 @@ export default {
rules: {
nickName: [
{ required: true, message: '请输入管理姓名', trigger: 'blur' }
],
]
},
table: {
nickName: '',
status: '',
status: ''
},
moren: 'limitsList',
topList: [
@ -248,7 +248,7 @@ export default {
this.getUserRoute()
},
computed: {
...mapGetters(["user"]),
...mapGetters(['user'])
},
methods: {
getUserRoute() {
@ -282,17 +282,17 @@ export default {
},
addRules() {
this.$router.push({
path: '/system/limits/superStudioGift'
path: '/system/limits/addMenuRole'
})
},
updateShow(item) {
this.$router.push({
path: '/system/limits/superStudioGift?id=' + item.userId
path: '/system/limits/addMenuRole?id=' + item.userId
})
},
updateShows(item) {
this.$router.push({
path: '/system/limits/superStudioGift?id=' + item.userId + '&check=1'
path: '/system/limits/addMenuRole?id=' + item.userId + '&check=1'
})
},
delRole(item) {

View File

@ -268,7 +268,7 @@ export default {
methods: {
checkShow(item) {
this.$router.push({
path: '/system/limits/superStudioGift?id=' + item.roleId
path: '/system/limits/addMenuRole?id=' + item.roleId
})
},
checkShow1(item) {