| | |
| | | } |
| | | }, |
| | | created() { |
| | | if (this.checkPermission != '' && this.$store.getters.myButtonPermission.indexOf(this.checkPermission) < 0) { |
| | | // console.log(this.$store.getters.permissions); |
| | | if (this.checkPermission != '') { |
| | | let userPermission = this.$store.getters.permissions; |
| | | if(userPermission.indexOf("*:*:*") >= 0){ |
| | | // 有所有权限 |
| | | this.show = true; |
| | | } else if(userPermission.indexOf(this.checkPermission) < 0){ |
| | | this.show = false |
| | | return |
| | | } |
| | | } |
| | | this.myName = this.name |
| | | if (this.site == 'filter') { |
| | | this.mySize = this.filter.size |