@ -50,9 +50,14 @@ export default {
}
},
created() {
console.log(this.$store.state.user.roles);
this.queryParams.pingceId = this.$store.state.user.pcId;
this.queryParams.itemIds = this.$store.state.user.itemIds;
if(this.$store.state.user.roles.length===1&&this.$store.state.user.roles[0]==='employee'){
}else {
this.getList();
methods: {
getList(){