Sfoglia il codice sorgente

宅基地调查权限

rongxin_prod
Xyq123* 1 anno fa
parent
commit
bfd8dfe68d
1 ha cambiato i file con 10 aggiunte e 1 eliminazioni
  1. +10
    -1
      src/views/homesteadSurvey/index.vue

+ 10
- 1
src/views/homesteadSurvey/index.vue Vedi File

@@ -413,7 +413,16 @@
}*/ }*/
let userId = this.$store.state.user.userId; let userId = this.$store.state.user.userId;
let businessLevel = this.$store.getters.businessLevel; let businessLevel = this.$store.getters.businessLevel;
if(businessLevel === "2" || item.rwzxrIds.includes(userId)){
let status = false;
if(item.rwzxrIds != null && item.rwzxrIds !== ""){
let ids = item.rwzxrIds.split(",");
ids.forEach(function(id){
if(userId === parseInt(id)){
status = true;
}
});
}
if(businessLevel === "2" && status){
localStorage.setItem("surveyItem",JSON.stringify(item)); localStorage.setItem("surveyItem",JSON.stringify(item));
this.qiehuan(item.deptId); this.qiehuan(item.deptId);
}else{ }else{


Caricamento…
Annulla
Salva