Browse Source

Merge branch 'master' of http://git.2weisou.com/wangxiao/zkPCproject into master

newStyle
lancer 2 years ago
parent
commit
0b6a6da2b2
3 changed files with 27 additions and 13 deletions
  1. +1
    -1
      src/api/modules/http.js
  2. +11
    -3
      src/views/Statistics/ConsultantBrand.vue
  3. +15
    -9
      src/views/Statistics/ReceptionStatistical.vue

+ 1
- 1
src/api/modules/http.js View File

@@ -468,7 +468,7 @@ export function agentListupdate(query) {
//获取楼盘下部门
export function overviewfindList(query) {
return request({
url: 'admin/dept/findList',
url: 'admin/dept/findListByUser',
method:'get',
params:query
})


+ 11
- 3
src/views/Statistics/ConsultantBrand.vue View File

@@ -471,19 +471,27 @@ export default {
});
},
deptFindList() {
this.options=[];
// 获取团队
this.$api.api
.deptFindList({
this.$api.http.overviewfindList({
houseId: this.houseId,
})
.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: "全部",
deptId: "",
},
];
this.deptId='';
this.options.push(...res.data);
}

this.accountRank();
});
},


+ 15
- 9
src/views/Statistics/ReceptionStatistical.vue View File

@@ -387,18 +387,24 @@ export default {
},
deptFindList() {
// 获取团队
this.$api.api
.deptFindList({
this.$api.http.overviewfindList({
houseId: this.houseId,
})
.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.accountRank();



Loading…
Cancel
Save