diff --git a/pages/center/Piabodata/Employeesstatistics.vue b/pages/center/Piabodata/Employeesstatistics.vue index eaa0635..4aa5fb9 100644 --- a/pages/center/Piabodata/Employeesstatistics.vue +++ b/pages/center/Piabodata/Employeesstatistics.vue @@ -37,7 +37,7 @@ - + {{item.name.substring(0,4)}} - + {{item.name.substring(0,4)}} - + {{item.name.substring(0,4)}} - + {{item.name.substring(0,4)}} + + + + 接待未标顾问排名(TOP10) + + + + 合计 + {{newlisttabinfo5.total}}次 + + + 顾问 + {{newlisttabinfo5.count}}人 + + + 均值 + {{newlisttabinfo5.avg}}次 + + + + + + {{item.name.substring(0,4)}} + + + + {{item.zxl==null?0:item.zxl}}次 + + + + 暂无数据 + + + + @@ -202,6 +239,12 @@ total: '', result: [], }, + newlisttabinfo5: { + avg: '', + count: '', + total: '', + result: [], + }, }; }, onLoad() { @@ -241,6 +284,12 @@ total: '', result: [], } + this.newlisttabinfo5 = { + avg: '', + count: '', + total: '', + result: [], + } var activeTotal = 0; if (this.activeTotal == 3) { @@ -260,6 +309,7 @@ this.staffStatisticsRecordingTimTop10(promse) this.staffStatisticsExecutionRateTop10(promse) this.staffStatisticsProhibitedTop10(promse) + this.staffStatisticsUnlabeledTop10(promse) }, //接待量排名 staffStatisticsReceptionTop10(promse) { @@ -306,6 +356,17 @@ this.newlisttabinfo4 = res; }) }, + //未标记客户数量排名, + staffStatisticsUnlabeledTop10(promse) { + this.$u.post('/cusLvStatistics/staffStatisticsUnlabeledTop', promse).then(res => { + res.result.forEach(item => { + item.zxl = item.tagCustomer + item.name = item.accountName + }) + res.result = this.dealData(res.result) + this.newlisttabinfo5 = res; + }) + }, //自定义时间 totalTimeChange(e) { diff --git a/pages/center/Piabodata/TrendAnalysis.vue b/pages/center/Piabodata/TrendAnalysis.vue index d996904..f732587 100644 --- a/pages/center/Piabodata/TrendAnalysis.vue +++ b/pages/center/Piabodata/TrendAnalysis.vue @@ -498,7 +498,7 @@ }, //对比时间 totalTimeChange2(e) { - var d = new Date(e.result); + var d = new Date(e.result.replace(/\-/g, '/')); d.setDate(d.getDate() + this.intervaltime); var year = d.getFullYear(); var month = d.getMonth() + 1; @@ -1150,9 +1150,9 @@ DateDiff(sDate1, sDate2) { var aDate, oDate1, oDate2, iDays; aDate = sDate1.split("-"); - oDate1 = new Date(aDate[1] + '-' + aDate[2] + '-' + aDate[0]); //转换为yyyy-MM-dd格式 + oDate1 = new Date(aDate[1] + '/' + aDate[2] + '/' + aDate[0]); //转换为yyyy-MM-dd格式 aDate = sDate2.split("-"); - oDate2 = new Date(aDate[1] + '-' + aDate[2] + '-' + aDate[0]); + oDate2 = new Date(aDate[1] + '/' + aDate[2] + '/' + aDate[0]); iDays = parseInt(Math.abs(oDate1 - oDate2) / 1000 / 60 / 60 / 24); //把相差的毫秒数转换为天数 return iDays + 1; //返回相差天数 }, diff --git a/pages/index/consumer/index.vue b/pages/index/consumer/index.vue index 5981efe..00ae9d2 100644 --- a/pages/index/consumer/index.vue +++ b/pages/index/consumer/index.vue @@ -250,7 +250,7 @@ - diff --git a/pages/index/customer.vue b/pages/index/customer.vue index 8fc83db..39758d3 100644 --- a/pages/index/customer.vue +++ b/pages/index/customer.vue @@ -152,7 +152,7 @@ - @@ -181,9 +181,7 @@ }, }; }, - onLoad() { - uni.hideTabBar(); - }, + onLoad() {}, computed: { timestamp() { return (e) => { diff --git a/pages/index/learning.vue b/pages/index/learning.vue index 3c40f29..facdac0 100644 --- a/pages/index/learning.vue +++ b/pages/index/learning.vue @@ -120,7 +120,7 @@ - diff --git a/pages/index/personal.vue b/pages/index/personal.vue index 0a5b3e2..c39dc57 100644 --- a/pages/index/personal.vue +++ b/pages/index/personal.vue @@ -69,7 +69,7 @@ - + diff --git a/pages/login/index.vue b/pages/login/index.vue index d6b8944..8d96c87 100644 --- a/pages/login/index.vue +++ b/pages/login/index.vue @@ -56,8 +56,8 @@ export default { data() { return { - username: '13388881113',//用户名 - password: '1234567',//密码 + username: '',//用户名 + password: '',//密码 passwordType: true, agreeChecked: true }; diff --git a/utils/domain.js b/utils/domain.js index af05932..ed305c3 100644 --- a/utils/domain.js +++ b/utils/domain.js @@ -1,5 +1,5 @@ const base = 'http://81.70.55.170:9999' ;// 测试站 -// const base = 'http://8kdmng.natappfree.cc' ;// 佳豪 +// const base = 'http://192.168.31.211:9999' ;// 泽明 // const base = 'http://192.168.31.86:9999' ;// 胜浩 // const base = 'http://192.168.31.167:9999' // 长龙 // const base = 'https://zanyong.hfju.com';// 正式 AI销管