|
@@ -340,12 +340,12 @@ export default {
|
|
|
},
|
|
|
computed: {
|
|
|
role () {
|
|
|
- if (this.$store.state.user.roles.join().includes('manage')) {
|
|
|
+ if (this.$store.state.user.roles.join().includes('workplace_store_manage')) {
|
|
|
return 'workplace_store_manage'
|
|
|
- } else if (this.$store.state.user.roles.join().includes('normal')) {
|
|
|
+ } else if (this.$store.state.user.roles.join().includes('workplace_store_normal')) {
|
|
|
return 'workplace_store_normal'
|
|
|
} else {
|
|
|
- return ''
|
|
|
+ return 'undifined'
|
|
|
}
|
|
|
}
|
|
|
},
|
|
@@ -369,6 +369,11 @@ export default {
|
|
|
this.typeDetailDict = this.DictCache.getLabelByValueMapByType(this.DictCache.TYPE.WORKPLACE_BACKLOG_DETAIL_TYPE)
|
|
|
},
|
|
|
getInfo () {
|
|
|
+ if (this.role === 'undifined') {
|
|
|
+ // this.$error('您的角色未赋予该权限')
|
|
|
+ alert('您的角色未赋予该权限')
|
|
|
+ this.$router.push({ path: '/WorkplaceBacklog' })
|
|
|
+ }
|
|
|
Promise.all([
|
|
|
getWorkplaceBacklogWeekData(this.role),
|
|
|
getWorkplaceBacklogPie(this.role),
|