Browse Source

tijiao

dev
douzhuo 2 years ago
parent
commit
d30371b407
3 changed files with 12 additions and 15 deletions
  1. +2
    -2
      pages/mine/messageList.vue
  2. +1
    -5
      pages/mine/reportExcel/dayReport.vue
  3. +9
    -8
      pages/mine/reportExcel/weekReport.vue

+ 2
- 2
pages/mine/messageList.vue View File

@@ -185,7 +185,7 @@
duration: 2000
});
} else {
this.count = res.data.count
this.count = res.data.data.sum
if (this.pageNum != 1) {
this.updateAnnList = [...this.updateAnnList, ...res.data.data.list.results];
} else {
@@ -206,7 +206,7 @@
// 跳转日报
goReception(data, index) {
this.$store.commit('setMessageObj', data)
if (data.title == '周报') {
if (data.messageType == 2) {
uni.navigateTo({
url: `/pages/mine/reportExcel/weekReport?id=${data.id}`
})


+ 1
- 5
pages/mine/reportExcel/dayReport.vue View File

@@ -284,9 +284,6 @@

<!-- 底部按钮 -->
<view class="nav-footer">
<view class="footer-item" @click="copy">
复制
</view>

<view class="footer-item full" style="margin-left: 22rpx;">
<button open-type="share" class="fulls">
@@ -330,7 +327,7 @@
methods: {
// 获取日报详情
getMessage() {
this.$u.get('/api/zkMessage/findById', {
this.$u.get('/zkMessage/findByProjectId', {
id: this.id
}).then(res => {
console.log(res)
@@ -339,7 +336,6 @@
...res.zkMessage,
...data
}
console.log(this.weekObj, 'this.weekObj')
this.projectName = res.projectName
this.init()
}).catch(e => {


+ 9
- 8
pages/mine/reportExcel/weekReport.vue View File

@@ -91,23 +91,23 @@
<view class="statistics-title">
接待统计
</view>
<template v-if="weekObj.customerInfo1.length - weekObj.customerInfo2.length != 0">
<template v-if="weekObj.customerInfo1 && weekObj.customerInfo2">
<view class="statistics-desc">
<text>
顾问平均执行率对比上周
</text>
<text>
{{ rankTop('ranktype') }}
{{ rankTop('ranktype') || '' }}
</text>
<text :class="[rankTop('class')]">{{ rankTop('people') }}</text>
<text :class="[rankTop('class')]">{{ rankTop('people') || '' }}</text>
<text class="">
人,其中{{ rankTop('topName') }}上升
人,其中{{ rankTop('topName') || '' }}上升
</text>
<text class="up">{{ rankTop('topPk') }}</text>
<text class="up">{{ rankTop('topPk') || '' }}</text>
<text class="">
%为最高,{{ rankTop('lastName') }}下降
%为最高,{{ rankTop('lastName') || '' }}下降
</text>
<text class="down">{{ rankTop('lastPk') }}</text>
<text class="down">{{ rankTop('lastPk') || '' }}</text>
<text class="">
%降幅最大。
</text>
@@ -394,7 +394,8 @@
onLoad(option) {
if (option.id) this.id = option.id
this.getMessage()
console.log(this.rankTop(this.weekObj), '12312312312')
console.log(this.weekObj, '12312312312')
console.log(JSON.stringify(this.weekObj), '12312312312')
},




Loading…
Cancel
Save