| @@ -185,7 +185,7 @@ | |||||
| duration: 2000 | duration: 2000 | ||||
| }); | }); | ||||
| } else { | } else { | ||||
| this.count = res.data.count | |||||
| this.count = res.data.data.sum | |||||
| if (this.pageNum != 1) { | if (this.pageNum != 1) { | ||||
| this.updateAnnList = [...this.updateAnnList, ...res.data.data.list.results]; | this.updateAnnList = [...this.updateAnnList, ...res.data.data.list.results]; | ||||
| } else { | } else { | ||||
| @@ -206,7 +206,7 @@ | |||||
| // 跳转日报 | // 跳转日报 | ||||
| goReception(data, index) { | goReception(data, index) { | ||||
| this.$store.commit('setMessageObj', data) | this.$store.commit('setMessageObj', data) | ||||
| if (data.title == '周报') { | |||||
| if (data.messageType == 2) { | |||||
| uni.navigateTo({ | uni.navigateTo({ | ||||
| url: `/pages/mine/reportExcel/weekReport?id=${data.id}` | url: `/pages/mine/reportExcel/weekReport?id=${data.id}` | ||||
| }) | }) | ||||
| @@ -284,9 +284,6 @@ | |||||
| <!-- 底部按钮 --> | <!-- 底部按钮 --> | ||||
| <view class="nav-footer"> | <view class="nav-footer"> | ||||
| <view class="footer-item" @click="copy"> | |||||
| 复制 | |||||
| </view> | |||||
| <view class="footer-item full" style="margin-left: 22rpx;"> | <view class="footer-item full" style="margin-left: 22rpx;"> | ||||
| <button open-type="share" class="fulls"> | <button open-type="share" class="fulls"> | ||||
| @@ -330,7 +327,7 @@ | |||||
| methods: { | methods: { | ||||
| // 获取日报详情 | // 获取日报详情 | ||||
| getMessage() { | getMessage() { | ||||
| this.$u.get('/api/zkMessage/findById', { | |||||
| this.$u.get('/zkMessage/findByProjectId', { | |||||
| id: this.id | id: this.id | ||||
| }).then(res => { | }).then(res => { | ||||
| console.log(res) | console.log(res) | ||||
| @@ -339,7 +336,6 @@ | |||||
| ...res.zkMessage, | ...res.zkMessage, | ||||
| ...data | ...data | ||||
| } | } | ||||
| console.log(this.weekObj, 'this.weekObj') | |||||
| this.projectName = res.projectName | this.projectName = res.projectName | ||||
| this.init() | this.init() | ||||
| }).catch(e => { | }).catch(e => { | ||||
| @@ -91,23 +91,23 @@ | |||||
| <view class="statistics-title"> | <view class="statistics-title"> | ||||
| 接待统计 | 接待统计 | ||||
| </view> | </view> | ||||
| <template v-if="weekObj.customerInfo1.length - weekObj.customerInfo2.length != 0"> | |||||
| <template v-if="weekObj.customerInfo1 && weekObj.customerInfo2"> | |||||
| <view class="statistics-desc"> | <view class="statistics-desc"> | ||||
| <text> | <text> | ||||
| 顾问平均执行率对比上周 | 顾问平均执行率对比上周 | ||||
| </text> | </text> | ||||
| <text> | <text> | ||||
| {{ rankTop('ranktype') }} | |||||
| {{ rankTop('ranktype') || '' }} | |||||
| </text> | </text> | ||||
| <text :class="[rankTop('class')]">{{ rankTop('people') }}</text> | |||||
| <text :class="[rankTop('class')]">{{ rankTop('people') || '' }}</text> | |||||
| <text class=""> | <text class=""> | ||||
| 人,其中{{ rankTop('topName') }}上升 | |||||
| 人,其中{{ rankTop('topName') || '' }}上升 | |||||
| </text> | </text> | ||||
| <text class="up">{{ rankTop('topPk') }}</text> | |||||
| <text class="up">{{ rankTop('topPk') || '' }}</text> | |||||
| <text class=""> | <text class=""> | ||||
| %为最高,{{ rankTop('lastName') }}下降 | |||||
| %为最高,{{ rankTop('lastName') || '' }}下降 | |||||
| </text> | </text> | ||||
| <text class="down">{{ rankTop('lastPk') }}</text> | |||||
| <text class="down">{{ rankTop('lastPk') || '' }}</text> | |||||
| <text class=""> | <text class=""> | ||||
| %降幅最大。 | %降幅最大。 | ||||
| </text> | </text> | ||||
| @@ -394,7 +394,8 @@ | |||||
| onLoad(option) { | onLoad(option) { | ||||
| if (option.id) this.id = option.id | if (option.id) this.id = option.id | ||||
| this.getMessage() | this.getMessage() | ||||
| console.log(this.rankTop(this.weekObj), '12312312312') | |||||
| console.log(this.weekObj, '12312312312') | |||||
| console.log(JSON.stringify(this.weekObj), '12312312312') | |||||
| }, | }, | ||||