Explorar el Código

宅基地调查权限

rongxin_prod
Xyq123* hace 1 año
padre
commit
bfd8dfe68d
Se han modificado 1 ficheros con 10 adiciones y 1 borrados
  1. +10
    -1
      src/views/homesteadSurvey/index.vue

+ 10
- 1
src/views/homesteadSurvey/index.vue Ver fichero

@@ -413,7 +413,16 @@
}*/
let userId = this.$store.state.user.userId;
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));
this.qiehuan(item.deptId);
}else{


Cargando…
Cancelar
Guardar