From 7c626e5c07a47db7c5e5e0a1aaa395a61717ccfa Mon Sep 17 00:00:00 2001
From: wangxiaohua <1214073490@qq.com>
Date: Tue, 24 Aug 2021 11:04:39 +0800
Subject: [PATCH] init
---
pages/center/Piabodata/index.vue | 33 +++++++++++++++++++++++++++++---
pages/index/index.vue | 3 +++
pages/mine/equipment/index.vue | 2 +-
utils/http.js | 4 ++--
4 files changed, 36 insertions(+), 6 deletions(-)
diff --git a/pages/center/Piabodata/index.vue b/pages/center/Piabodata/index.vue
index 11b343a..445e927 100644
--- a/pages/center/Piabodata/index.vue
+++ b/pages/center/Piabodata/index.vue
@@ -34,13 +34,13 @@
用户洞察
-
+
团队对比
-
+
@@ -289,10 +289,12 @@
{name:'平均执行率',zxl:'50'},
{name:'接待客户',zxl:'80'},
],
+ Theteamcomparedisshow:false,
+ Groupcontrastisshow:false
};
},
- async onLoad() {
+ onShow() {
// 获取楼盘id
this.houseId = uni.getStorageSync('buildingID').id;
// 获取数据看板
@@ -302,8 +304,33 @@
// 获取团队
this.getSectionList()
// 获取团队是否显示权限
+
+ this.queryHaveDept()
},
methods: {
+ queryHaveDept() {
+ return new Promise((resolve, reject) => {
+ this.$u.get("/user/queryHaveDept?houseId="+this.houseId).then(res => {
+ this.permissions(res)
+ })
+ })
+ },
+ permissions(res){
+ if(res==1){
+ this.Theteamcomparedisshow=false;
+ this.Groupcontrastisshow=false;
+ return
+ }
+
+ let totle=uni.getStorageSync('weapp_session_userInfo_data').total;
+ if(totle==1){
+ this.Theteamcomparedisshow=true;
+ this.Groupcontrastisshow=false;
+ }else{
+ this.Theteamcomparedisshow=true;
+ this.Groupcontrastisshow=true;
+ }
+ },
// 获取员工列表
getStaffList(){
this.$u.post('/cusLvStatistics/selectAllAccountIdByHouseId',{houseId:this.houseId})
diff --git a/pages/index/index.vue b/pages/index/index.vue
index 4b64762..300e76b 100644
--- a/pages/index/index.vue
+++ b/pages/index/index.vue
@@ -391,6 +391,9 @@
name: e[0].label
}
uni.setStorageSync("buildingID", lopan); //楼盘id写入缓存
+ this.initworkThisWeek()
+ this.initrealTimeStatistics()
+
},
// 楼盘选择取消
cancel() {
diff --git a/pages/mine/equipment/index.vue b/pages/mine/equipment/index.vue
index be30340..013aee8 100644
--- a/pages/mine/equipment/index.vue
+++ b/pages/mine/equipment/index.vue
@@ -95,7 +95,7 @@
],
activeClass: 0,
pageNum:1,
- pageSize:5,
+ pageSize:20,
imei:"",
orgcode:"",
onLine:1,
diff --git a/utils/http.js b/utils/http.js
index 9f3828f..bc6322a 100644
--- a/utils/http.js
+++ b/utils/http.js
@@ -1,5 +1,5 @@
-// const baseUrl = 'http://121.42.63.138:9091/autoSR/api';// 测试站
-const baseUrl = 'http://192.168.31.161:8080/autoSR/api'; // 长龙
+const baseUrl = 'http://121.42.63.138:9091/autoSR/api';// 测试站
+// const baseUrl = 'http://192.168.31.161:8080/autoSR/api'; // 长龙
// const baseUrl = 'http://192.168.31.128:8080/autoSR/api'; // 佳豪
// const baseUrl = 'http://10.2.1.104:8081/autoSR/api'; // 刘敏
// const baseUrl = 'https://zkgj.quhouse.com/api'; // 质控正式