update code
parent
fb7de75594
commit
79606eaf12
|
@ -188,7 +188,8 @@ export default {
|
||||||
return it;
|
return it;
|
||||||
})]
|
})]
|
||||||
}
|
}
|
||||||
this.deptChange((()=>{}));
|
this.setScreenLiSel1(this.localStorage1);
|
||||||
|
this.deptChange();
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
this.$root.isTypeBuser = this.isTypeBuser;
|
this.$root.isTypeBuser = this.isTypeBuser;
|
||||||
|
@ -343,11 +344,15 @@ export default {
|
||||||
this.data = [{ id: 0, text: '所有项目' }, ...objs];
|
this.data = [{ id: 0, text: '所有项目' }, ...objs];
|
||||||
this.$bus.$emit("loadProjects", this.data);
|
this.$bus.$emit("loadProjects", this.data);
|
||||||
this.$root.projects = this.data;
|
this.$root.projects = this.data;
|
||||||
|
if(this.data.find(it=>it.id==this.localStorage2.id)){
|
||||||
|
this.setScreenLiSel2(this.localStorage2)
|
||||||
|
}else{
|
||||||
if (this.data.length > 0) {
|
if (this.data.length > 0) {
|
||||||
this.setScreenLiSel2(this.data[0], init);
|
this.setScreenLiSel2(this.data[0], init);
|
||||||
} else {
|
} else {
|
||||||
this.setScreenLiSel2(null);
|
this.setScreenLiSel2(null);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
if(cb){
|
if(cb){
|
||||||
cb();
|
cb();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue