| @@ -484,7 +484,7 @@ | |||||
| return { | return { | ||||
| list1: [], | list1: [], | ||||
| images:['../../../static/images/onlineHome/tab.jpg'], | images:['../../../static/images/onlineHome/tab.jpg'], | ||||
| deptName:"", | |||||
| deptName:this.$store.state.user.deptName, | |||||
| queryParams: { | queryParams: { | ||||
| pageNum: 1, | pageNum: 1, | ||||
| pageSize: 100, | pageSize: 100, | ||||
| @@ -508,22 +508,10 @@ | |||||
| }; | }; | ||||
| }, | }, | ||||
| created() { | created() { | ||||
| // getInfo().then(response => { | |||||
| // console.log(response) | |||||
| // this.deptName = response.user.deptName | |||||
| // }); | |||||
| treeselectByUser().then((res) => { | treeselectByUser().then((res) => { | ||||
| if (res.code == 200) { | if (res.code == 200) { | ||||
| let content = res.data; | let content = res.data; | ||||
| this.hcAreaInfoOption = content; | this.hcAreaInfoOption = content; | ||||
| if ( | |||||
| this.deptName == "" || | |||||
| this.deptName == undefined | |||||
| ) { | |||||
| this.deptName = this.$store.state.user.deptName; | |||||
| } else { | |||||
| this.deptName = this.$store.state.user.allDeptName; | |||||
| } | |||||
| } | } | ||||
| }), | }), | ||||
| ListTodo(this.queryParams).then((response) => { | ListTodo(this.queryParams).then((response) => { | ||||
| @@ -531,9 +519,6 @@ | |||||
| }) | }) | ||||
| }, | }, | ||||
| methods:{ | methods:{ | ||||
| villageVisbileFun() { | |||||
| this.villageVisbile = true; | |||||
| }, | |||||
| selectDept(){ | selectDept(){ | ||||
| this.villageVisbile = true; | this.villageVisbile = true; | ||||
| }, | }, | ||||