From 28aeed19bae354c56eced226958cdb4dc81ea86d Mon Sep 17 00:00:00 2001 From: douzhuo <17611323298@163.com> Date: Thu, 9 Jun 2022 13:39:05 +0800 Subject: [PATCH] tijiao --- pages/index/index.vue | 7 ++++++- pages/mine/messageList.vue | 1 + pages/mine/reportExcel/dayReport.vue | 2 +- 3 files changed, 8 insertions(+), 2 deletions(-) diff --git a/pages/index/index.vue b/pages/index/index.vue index bcd2bf2..bdb7bbd 100644 --- a/pages/index/index.vue +++ b/pages/index/index.vue @@ -414,6 +414,10 @@ 'content-type': 'application/json', 'Access-Token': uni.getStorageSync('weapp_session_login_data').token }, + + data: { + + }, success: (res) => { this.first(res.data.data.id) this.content = res.data.data.content @@ -442,7 +446,8 @@ url: config.service.notReadNum, method: "GET", data: { - id: uni.getStorageSync('weapp_session_userInfo_data').accountId + id: uni.getStorageSync('weapp_session_userInfo_data').accountId, + projectId: uni.getStorageSync('buildingID').id, }, header: { 'content-type': 'application/json', diff --git a/pages/mine/messageList.vue b/pages/mine/messageList.vue index f6d7cda..70ca338 100644 --- a/pages/mine/messageList.vue +++ b/pages/mine/messageList.vue @@ -206,6 +206,7 @@ // 跳转日报 goReception(data, index) { this.$store.commit('setMessageObj', data) + data.readFlag = 1 if (data.messageType == 2) { uni.navigateTo({ url: `/pages/mine/reportExcel/weekReport?id=${data.id}` diff --git a/pages/mine/reportExcel/dayReport.vue b/pages/mine/reportExcel/dayReport.vue index 8d2f2c9..333bc68 100644 --- a/pages/mine/reportExcel/dayReport.vue +++ b/pages/mine/reportExcel/dayReport.vue @@ -359,7 +359,7 @@ } if (this.weekObj.ZXLTopList && this.weekObj.ZXLTopList.length > 0) { this.consultant = this.weekObj.ZXLTopList.reverse().slice(0, 3) - this.lowest.push(this.weekObj.ZXLTopList[0]) + this.lowest.push(this.weekObj.ZXLTopList[this.weekObj.ZXLTopList.length - 1]) } if (this.weekObj.avgJdsList && this.weekObj.avgJdsList.length > 0) { console.log(this.weekObj.avgJdsList.slice(0, 3))