| @@ -468,7 +468,7 @@ export function agentListupdate(query) { | |||||
| //获取楼盘下部门 | //获取楼盘下部门 | ||||
| export function overviewfindList(query) { | export function overviewfindList(query) { | ||||
| return request({ | return request({ | ||||
| url: 'admin/dept/findList', | |||||
| url: 'admin/dept/findListByUser', | |||||
| method:'get', | method:'get', | ||||
| params:query | params:query | ||||
| }) | }) | ||||
| @@ -471,19 +471,27 @@ export default { | |||||
| }); | }); | ||||
| }, | }, | ||||
| deptFindList() { | deptFindList() { | ||||
| this.options=[]; | |||||
| // 获取团队 | // 获取团队 | ||||
| this.$api.api | |||||
| .deptFindList({ | |||||
| this.$api.http.overviewfindList({ | |||||
| houseId: this.houseId, | houseId: this.houseId, | ||||
| }) | }) | ||||
| .then((res) => { | .then((res) => { | ||||
| this.options = [ | |||||
| let userinfo=JSON.parse(sessionStorage.getItem("zk-userInfo")) | |||||
| if(userinfo.content.deptType==1){ | |||||
| this.options.push(...res.data); | |||||
| this.deptId= this.options[0].deptId | |||||
| }else{ | |||||
| this.options = [ | |||||
| { | { | ||||
| name: "全部", | name: "全部", | ||||
| deptId: "", | deptId: "", | ||||
| }, | }, | ||||
| ]; | ]; | ||||
| this.deptId=''; | |||||
| this.options.push(...res.data); | this.options.push(...res.data); | ||||
| } | |||||
| this.accountRank(); | this.accountRank(); | ||||
| }); | }); | ||||
| }, | }, | ||||
| @@ -387,18 +387,24 @@ export default { | |||||
| }, | }, | ||||
| deptFindList() { | deptFindList() { | ||||
| // 获取团队 | // 获取团队 | ||||
| this.$api.api | |||||
| .deptFindList({ | |||||
| this.$api.http.overviewfindList({ | |||||
| houseId: this.houseId, | houseId: this.houseId, | ||||
| }) | }) | ||||
| .then((res) => { | .then((res) => { | ||||
| this.options = [ | |||||
| { | |||||
| name: "全部", | |||||
| deptId: "", | |||||
| }, | |||||
| ]; | |||||
| this.options.push(...res.data); | |||||
| let userinfo=JSON.parse(sessionStorage.getItem("zk-userInfo")) | |||||
| if(userinfo.content.deptType==1){ | |||||
| this.options.push(...res.data); | |||||
| this.deptId= this.options[0].deptId | |||||
| }else{ | |||||
| this.options = [ | |||||
| { | |||||
| name: "全部", | |||||
| deptId: "", | |||||
| }, | |||||
| ]; | |||||
| this.options.push(...res.data); | |||||
| this.deptId='' | |||||
| } | |||||
| this.receptionStatisticsAllAccount(); | this.receptionStatisticsAllAccount(); | ||||
| this.accountRank(); | this.accountRank(); | ||||