| | |
| | | data() { |
| | | return { |
| | | filter: {// 搜索条上的按钮名称集合 |
| | | size: 'small', |
| | | size: 'mini', |
| | | plain: false, |
| | | other: { |
| | | '搜索': { |
| | |
| | | } |
| | | }, |
| | | created() { |
| | | if (this.checkPermission != '' && this.$store.getters.myButtonPermission.indexOf(this.checkPermission) < 0) { |
| | | this.show = false |
| | | return |
| | | // 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') { |