forked from angelo/web-retail-admin
feat(router): 找回权限新增路由配置
This commit is contained in:
parent
213a3e7235
commit
9e21e76d16
|
@ -3256,7 +3256,13 @@ export const constantRoutes = [
|
||||||
meta: { title: '前台权限配置' },
|
meta: { title: '前台权限配置' },
|
||||||
hidden: true
|
hidden: true
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
path: 'AddMenuRole',
|
||||||
|
name: 'addMenuRole',
|
||||||
|
component: () => import('@/views/system/addMenuRole/index'),
|
||||||
|
meta: { title: i18n.t('新增权限') },
|
||||||
|
hidden: true
|
||||||
|
},
|
||||||
{
|
{
|
||||||
path: 'fieldRole',
|
path: 'fieldRole',
|
||||||
name: 'FieldRole',
|
name: 'FieldRole',
|
||||||
|
|
|
@ -546,7 +546,7 @@ export default {
|
||||||
},
|
},
|
||||||
cancel() {
|
cancel() {
|
||||||
this.$router.push({
|
this.$router.push({
|
||||||
name: 'superStudioGift'
|
name: 'addMenuRole'
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
addNewGoods() {
|
addNewGoods() {
|
||||||
|
|
|
@ -207,11 +207,11 @@ export default {
|
||||||
roleAllList: [],
|
roleAllList: [],
|
||||||
menuAllList: []
|
menuAllList: []
|
||||||
},
|
},
|
||||||
moren: 'superStudioGift',
|
moren: 'addMenuRole',
|
||||||
topList: [
|
topList: [
|
||||||
{
|
{
|
||||||
name: '后台菜单权限',
|
name: '后台菜单权限',
|
||||||
path: 'superStudioGift'
|
path: 'addMenuRole'
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
|
|
@ -127,12 +127,12 @@
|
||||||
>
|
>
|
||||||
<template slot-scope="scope">
|
<template slot-scope="scope">
|
||||||
<el-button
|
<el-button
|
||||||
|
v-show="user.userName == 'admin'"
|
||||||
type="text"
|
type="text"
|
||||||
size="small"
|
size="small"
|
||||||
class="button-s"
|
class="button-s"
|
||||||
style="color: #c73030"
|
style="color: #c73030"
|
||||||
@click="toLogin(scope.row)"
|
@click="toLogin(scope.row)"
|
||||||
v-show="user.userName == 'admin'"
|
|
||||||
>登录
|
>登录
|
||||||
</el-button>
|
</el-button>
|
||||||
|
|
||||||
|
@ -186,10 +186,10 @@ import topBar from '@/components/topBarRole'
|
||||||
import * as api from '@/api/notice'
|
import * as api from '@/api/notice'
|
||||||
import { Message } from 'element-ui'
|
import { Message } from 'element-ui'
|
||||||
import { getRouters } from '@/api/settle'
|
import { getRouters } from '@/api/settle'
|
||||||
import {freeLogin} from "@/api/manage";
|
import { freeLogin } from '@/api/manage'
|
||||||
import {setToken} from "@/utils/auth";
|
import { setToken } from '@/utils/auth'
|
||||||
import {login} from "@/api/user";
|
import { login } from '@/api/user'
|
||||||
import {mapGetters} from "vuex";
|
import { mapGetters } from 'vuex'
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
name: 'Qxpz',
|
name: 'Qxpz',
|
||||||
|
@ -203,11 +203,11 @@ export default {
|
||||||
rules: {
|
rules: {
|
||||||
nickName: [
|
nickName: [
|
||||||
{ required: true, message: '请输入管理姓名', trigger: 'blur' }
|
{ required: true, message: '请输入管理姓名', trigger: 'blur' }
|
||||||
],
|
]
|
||||||
},
|
},
|
||||||
table: {
|
table: {
|
||||||
nickName: '',
|
nickName: '',
|
||||||
status: '',
|
status: ''
|
||||||
},
|
},
|
||||||
moren: 'limitsList',
|
moren: 'limitsList',
|
||||||
topList: [
|
topList: [
|
||||||
|
@ -248,7 +248,7 @@ export default {
|
||||||
this.getUserRoute()
|
this.getUserRoute()
|
||||||
},
|
},
|
||||||
computed: {
|
computed: {
|
||||||
...mapGetters(["user"]),
|
...mapGetters(['user'])
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
getUserRoute() {
|
getUserRoute() {
|
||||||
|
@ -282,17 +282,17 @@ export default {
|
||||||
},
|
},
|
||||||
addRules() {
|
addRules() {
|
||||||
this.$router.push({
|
this.$router.push({
|
||||||
path: '/system/limits/superStudioGift'
|
path: '/system/limits/addMenuRole'
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
updateShow(item) {
|
updateShow(item) {
|
||||||
this.$router.push({
|
this.$router.push({
|
||||||
path: '/system/limits/superStudioGift?id=' + item.userId
|
path: '/system/limits/addMenuRole?id=' + item.userId
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
updateShows(item) {
|
updateShows(item) {
|
||||||
this.$router.push({
|
this.$router.push({
|
||||||
path: '/system/limits/superStudioGift?id=' + item.userId + '&check=1'
|
path: '/system/limits/addMenuRole?id=' + item.userId + '&check=1'
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
delRole(item) {
|
delRole(item) {
|
||||||
|
|
|
@ -268,7 +268,7 @@ export default {
|
||||||
methods: {
|
methods: {
|
||||||
checkShow(item) {
|
checkShow(item) {
|
||||||
this.$router.push({
|
this.$router.push({
|
||||||
path: '/system/limits/superStudioGift?id=' + item.roleId
|
path: '/system/limits/addMenuRole?id=' + item.roleId
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
checkShow1(item) {
|
checkShow1(item) {
|
||||||
|
|
Loading…
Reference in New Issue