Commit ba6afe38 by liang ce

Merge branch 'ISV' of http://gitlab.roboming.com/Simon/mingPay-web into ISV

parents 66c9464c 7bbef083
...@@ -36,6 +36,7 @@ export default { ...@@ -36,6 +36,7 @@ export default {
} }
}, },
created () { created () {
console.log(this.$store.state.menuList, 11111)
this.defaultSelectedKeys = this.$route.name this.defaultSelectedKeys = this.$route.name
this.chooseMenuList = this.$route.name this.chooseMenuList = this.$route.name
if (this.$store.state.menuList.indexOf('3100') > -1) { if (this.$store.state.menuList.indexOf('3100') > -1) {
......
...@@ -161,6 +161,7 @@ export default { ...@@ -161,6 +161,7 @@ export default {
$http.post(`/admin/manager/modifyFullRole`, data).then(res => { $http.post(`/admin/manager/modifyFullRole`, data).then(res => {
if (res.data.code === 0) { if (res.data.code === 0) {
this.$message.success('保存成功') this.$message.success('保存成功')
this.$router.push({ name: 'rightsManagement' })
} else { } else {
this.$message.error(res.data.msg) this.$message.error(res.data.msg)
} }
......
...@@ -67,6 +67,7 @@ export default { ...@@ -67,6 +67,7 @@ export default {
}, { }, {
title: '拥有该角色的员工', title: '拥有该角色的员工',
dataIndex: 'userHasRoles', dataIndex: 'userHasRoles',
width: '30%',
scopedSlots: { customRender: 'userHasRoles' } scopedSlots: { customRender: 'userHasRoles' }
}, { }, {
title: '创建时间', title: '创建时间',
...@@ -132,8 +133,8 @@ export default { ...@@ -132,8 +133,8 @@ export default {
addRole (obj) { addRole (obj) {
// console.log(obj, 111) // console.log(obj, 111)
// this.chooseMenuList = obj.key // this.chooseMenuList = obj.key
if (this.roleList.length > 10) { if (this.roleList.length > 9) {
this.$message.err('最多可添加十个角色') this.$message.error('最多可添加十个角色')
} else { } else {
this.$router.push({ name: 'addOrRights' }) this.$router.push({ name: 'addOrRights' })
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment