Browse Source

部门

newStyle
wangxiaohua 3 years ago
parent
commit
57d08bdd8b
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) { export function overviewfindList(query) {
return request({ return request({
url: 'admin/dept/findList',
url: 'admin/dept/findListByUser',
method:'get', method:'get',
params:query params:query
}) })


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

@@ -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();
}); });
}, },


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

@@ -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();




Loading…
Cancel
Save