|
@ -107,8 +107,6 @@ export default { |
|
|
return{ |
|
|
return{ |
|
|
searchVal:{ |
|
|
searchVal:{ |
|
|
baseId: this.$store.state.plantBaseInfoId, |
|
|
baseId: this.$store.state.plantBaseInfoId, |
|
|
userId:"", |
|
|
|
|
|
enterpriseId:"", |
|
|
|
|
|
flagGroupBy:'n', |
|
|
flagGroupBy:'n', |
|
|
search: "", |
|
|
search: "", |
|
|
pageNo:1, |
|
|
pageNo:1, |
|
@ -119,13 +117,6 @@ export default { |
|
|
} |
|
|
} |
|
|
}, |
|
|
}, |
|
|
onLoad(options){ |
|
|
onLoad(options){ |
|
|
if (this.$store.getters['userInfo'].roleCode=="baseAdmin") { |
|
|
|
|
|
this.searchVal.userId = this.$store.getters['userInfo'].id |
|
|
|
|
|
this.searchVal.enterpriseId = '' |
|
|
|
|
|
} else { |
|
|
|
|
|
this.searchVal.enterpriseId = this.$store.getters.userInfo.companyId |
|
|
|
|
|
this.searchVal.userId = '' |
|
|
|
|
|
} |
|
|
|
|
|
this.search() |
|
|
this.search() |
|
|
}, |
|
|
}, |
|
|
methods:{ |
|
|
methods:{ |
|
|