Ver código fonte

init

undefined
wangxiaohua 2 anos atrás
pai
commit
2406f637ad
4 arquivos alterados com 34 adições e 35 exclusões
  1. +31
    -32
      pages/center/Piabodata/index.vue
  2. +1
    -1
      pages/center/consumer/index.vue
  3. +2
    -1
      pages/index/index.vue
  4. +0
    -1
      uview-ui/libs/request/index.js

+ 31
- 32
pages/center/Piabodata/index.vue Ver arquivo

@@ -14,33 +14,39 @@
<view :class="{ activecllasscet: activeTotal == 3 }" @click="tabtimetap(3)">自定义</view>
</view>
</view>
<view style="width: 100%;height: 20rpx;background: #FAFAFA;"></view>
<view class="Piabodata-box">
<view class="Piabodata" @click="toTrendAnalysis()">
<view class="Piabodata" @click="toTrendAnalysis()" v-if="permissions.commonly3">
<view class="Piabodata-img">
<image class="Piabodata-img1" src="../../../static/images/qushi.png" mode=""></image>
</view>
<view class="Piabodata-text">趋势分析</view>
<view class="Piabodata-text">销讲趋势</view>
</view>
<view class="Piabodata" @click="toStaffAnalysis()">
<view class="Piabodata" @click="toStaffAnalysis()" v-if="permissions.commonly5">
<view class="Piabodata-img">
<image class="Piabodata-img1" src="../../../static/images/yuangong.png" mode=""></image>
</view>
<view class="Piabodata-text">员工分析</view>
</view>
<view class="Piabodata" @click="toUserinsightinto()">
<view class="Piabodata" @click="toUserinsightinto()" v-if="permissions.commonly6">
<view class="Piabodata-img">
<image class="Piabodata-img1" src="../../../static/images/yinghu.png" mode=""></image>
</view>
<view class="Piabodata-text">用户洞察</view>
<view class="Piabodata-text">用户画像</view>
</view>
<view class="Piabodata" @click="Theteamcompared()" v-if="Theteamcomparedisshow">
<view class="Piabodata" @click="Theteamcompared()" v-if="permissions.commonly4">
<view class="Piabodata-img">
<image class="Piabodata-img1" src="../../../static/images/tuandui.png" mode=""></image>
</view>
<view class="Piabodata-text">团队对比</view>
</view>
<view class="Piabodata" @click="Groupcontrast()" v-if="Groupcontrastisshow">
<view class="Piabodata" @click="Groupcontrast()" v-if="permissions.commonly2">
<view class="Piabodata-img">
<image class="Piabodata-img1" src="../../../static/images/jituan.png" mode=""></image>
</view>
@@ -314,10 +320,25 @@
Groupcontrastisshow: false,
allechar: [],
allList: [],
optionsobj:{}
optionsobj:{},
permissions:{
commonly2:false,
commonly3:false,
commonly4:false,
commonly5:false,
commonly6:false,
},
};
},
onShow() {
let newmenulist= uni.getStorageSync('weapp_session_Menu_data');
this.permissions.commonly2=newmenulist.lpdb;
this.permissions.commonly3=newmenulist.xjqs;
this.permissions.commonly4=newmenulist.tddb;
this.permissions.commonly5=newmenulist.gwnl;
this.permissions.commonly6=newmenulist.yhhx;
// 获取楼盘id
this.houseId = uni.getStorageSync('buildingID').id;
// 获取数据看板
@@ -328,7 +349,6 @@
this.getSectionList()
// 获取团队是否显示权限

this.queryHaveDept()
// 获取简报
this.getReport()
// 获取接待趋势
@@ -337,29 +357,8 @@
this.getindexZxl()
},
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', {


+ 1
- 1
pages/center/consumer/index.vue Ver arquivo

@@ -382,7 +382,7 @@
}else if(this.screen.record==3){
parames.query.levels= ["4"]
}else{
parames.query.levels=''
parames.query.levels=null
}
this.userInfo = uni.getStorageSync('weapp_session_userInfo_data');
this.$u.post("/customer/customerManagement", parames).then(data => {


+ 2
- 1
pages/index/index.vue Ver arquivo

@@ -308,7 +308,8 @@
// 校准 xz
// 查看违禁执行 ckwjzx
// 销讲分析 xjfx
// 数据总览 sjzl
// 楼盘对比 lpdb
// 销讲趋势 xjqs


+ 0
- 1
uview-ui/libs/request/index.js Ver arquivo

@@ -25,7 +25,6 @@ class Request {
options.url = options.url || '';
options.params = options.params || {};
options.header = Object.assign(this.config.header, options.header);
console.log(options.header,"hgfhgfghfghf")
options.method = options.method || this.config.method;

return new Promise((resolve, reject) => {


Carregando…
Cancelar
Salvar