Prechádzať zdrojové kódy

总部移动端筛选全国数据

zhujindu 6 mesiacov pred
rodič
commit
0fd0bd4c21

+ 5 - 2
src/views/historicalVisit/historAllVisit.vue

@@ -499,8 +499,11 @@ export default {
               this.deptList = [{ deptName: '全部销售部', deptId: '' }].concat(res.data.dept);
             }
           } else {
-            // this.companyList = res.data.company;
-            this.companyList = [{ deptName: '全部公司', deptId: '' }].concat(res.data.company);
+            if (this.powerGrade == 5) {
+              this.companyList = [{ deptName: '全部公司', deptId: '' }].concat(res.data.company);
+            } else {
+              this.companyList = res.data.company;
+            }
             if (this.$route.query.userCode == undefined) {
               this.companyName = res.data.company[0].deptName;
               this.companyCode = res.data.company[0].deptId;

+ 5 - 2
src/views/week/VisitSummary.vue

@@ -417,8 +417,11 @@ export default {
               this.deptList = [{ deptName: '全部销售部', deptId: '' }].concat(res.data.dept);
             }
           } else {
-            // this.companyList = res.data.company;
-            this.companyList = [{ deptName: '全部公司', deptId: '' }].concat(res.data.company);
+            if (this.powerGrade == 5) {
+              this.companyList = [{ deptName: '全部公司', deptId: '' }].concat(res.data.company);
+            } else {
+              this.companyList = res.data.company;
+            }
             if (this.$route.query.userCode == undefined) {
               this.companyName = res.data.company[0].deptName;
               this.companyCode = res.data.company[0].deptId;

+ 5 - 2
src/views/week/dailyHistorical.vue

@@ -444,8 +444,11 @@ export default {
               this.deptList = [{ deptName: '全部销售部', deptId: '' }].concat(res.data.dept);
             }
           } else {
-            // this.companyList = res.data.company;
-            this.companyList = [{ deptName: '全部公司', deptId: '' }].concat(res.data.company);
+            if (this.powerGrade == 5) {
+              this.companyList = [{ deptName: '全部公司', deptId: '' }].concat(res.data.company);
+            } else {
+              this.companyList = res.data.company;
+            }
             if (this.$route.query.userCode == undefined) {
               this.companyName = res.data.company[0].deptName;
               this.companyCode = res.data.company[0].deptId;

+ 5 - 2
src/views/week/doubleWeeklyHistorical.vue

@@ -429,8 +429,11 @@ export default {
               this.deptList = [{ deptName: '全部销售部', deptId: '' }].concat(res.data.dept);
             }
           } else {
-            // this.companyList=res.data.company
-            this.companyList = [{ deptName: '全部公司', deptId: '' }].concat(res.data.company);
+            if (this.powerGrade == 5) {
+              this.companyList = [{ deptName: '全部公司', deptId: '' }].concat(res.data.company);
+            } else {
+              this.companyList = res.data.company;
+            }
             if (this.$route.query.regionCode == undefined) {
               this.companyName = res.data.company[0].deptName;
               this.companyCode = res.data.company[0].deptId;

+ 5 - 2
src/views/week/weeklyHistorical.vue

@@ -436,8 +436,11 @@ export default {
               this.deptList = [{ deptName: '全部销售部', deptId: '' }].concat(res.data.dept);
             }
           } else {
-            // this.companyList=res.data.company
-            this.companyList = [{ deptName: '全部公司', deptId: '' }].concat(res.data.company);
+            if (this.powerGrade == 5) {
+              this.companyList = [{ deptName: '全部公司', deptId: '' }].concat(res.data.company);
+            } else {
+              this.companyList = res.data.company;
+            }
             if (this.$route.query.deptCode == undefined) {
               this.companyName = res.data.company[0].deptName;
               this.companyCode = res.data.company[0].deptId;