Browse Source

init

undefined
lancer 3 years ago
parent
commit
5cd305e82c
2 changed files with 28 additions and 7 deletions
  1. +25
    -4
      pages/index/index.vue
  2. +3
    -3
      utils/domain.js

+ 25
- 4
pages/index/index.vue View File

@@ -71,19 +71,19 @@
<view class="title" v-if="permissions.shebeinum">待处理</view>
<view class="shebenbox" v-if="permissions.shebeinum" >
<view class="shebenche" @click="tapjumpequipment(0)">
<view class="shebenchenum">{{equipmentobj.totalNum || 0}}</view>
<view class="shebenchenum">{{operation.receptionCount || 0}}</view>
<view class="shebenchetext">接待即将结束</view>
</view>
<view class="shebenche" @click="tapjumpequipment(1)">
<view class="shebenchenum">{{equipmentobj.onlineNum || 0}}</view>
<view class="shebenchenum">{{operation.accountCount || 0}}</view>
<view class="shebenchetext">未标顾问</view>
</view>
<view class="shebenche" @click="tapjumpequipment(3)">
<view class="shebenchenum">{{equipmentobj.activeNum || 0}}</view>
<view class="shebenchenum">{{operation.forbiddenCount || 0}}</view>
<view class="shebenchetext">违禁提醒</view>
</view>
<view class="shebenche" @click="tapjumpequipment(2)">
<view class="shebenchenum" style="color: red;">{{equipmentobj.lowPowerNum || 0}}</view>
<view class="shebenchenum" style="color: red;">{{operation.lowPowerNum || 0}}</view>
<view class="shebenchetext">低电工牌</view>
</view>
</view>
@@ -348,6 +348,12 @@
activeNum: '',
lowPowerNum: '',
},
operation:{
receptionCount:'',
accountCount:'',
forbiddenCount:'',
lowPowerNum:''
},
Menulist: [],
realtimeobj: {
sumCustomer: '',
@@ -426,6 +432,7 @@
this.equipmentisshow = true;
// this.Myworkcard = false;
this.initequipment()
this.waitForOperation()
}
this.initworkThisWeek()
this.initrealTimeStatistics()
@@ -586,6 +593,19 @@
}
})
},
// 待处理
waitForOperation (){
this.$u.post('/cusLvStatistics/waitForOperation ',{
houseId:this.buildingID
})
.then(res=>{
// console.log(res,'带接待')
this.operation.receptionCount=res.receptionCount
this.operation.accountCount=res.accountCount
this.operation.forbiddenCount=res.forbiddenCount
this.operation.lowPowerNum=res.lowPowerNum
})
},
//我的工牌
iniodianloang() {
uni.request({
@@ -647,6 +667,7 @@
uni.setStorageSync("buildingID", lopan); //楼盘id写入缓存
this.initworkThisWeek()
this.initrealTimeStatistics()
this.waitForOperation()
this.initequipment()
this.iniodianloang()



+ 3
- 3
utils/domain.js View File

@@ -2,11 +2,11 @@
// const base = 'http://39.97.167.65' ;// 测试站
// const base = 'http://8kdmng.natappfree.cc' ;// 佳豪
// const base = 'http://192.168.31.134:9999' ;// 佳豪
// const base = 'http://192.168.31.167:9999' // 长龙
const base = 'https://zanyong.hfju.com';// 正式
const base = 'http://192.168.31.167:9999' // 长龙
// const base = 'https://zanyong.hfju.com';// 正式

// http.js使用
const baseUrl = `${base}/autoSR/api`; // 长龙
const baseUrl = `${base}/autoSR/api`;
// config 使用
const host = `${base}/autoSR/api`;
const hosts = `${base}/`;


Loading…
Cancel
Save