From 5246762ca6643eafc8a14266806dc467506683c8 Mon Sep 17 00:00:00 2001 From: JinxChen <2183691628@qq.com> Date: Wed, 12 Jul 2023 16:52:42 +0800 Subject: [PATCH] =?UTF-8?q?update=20-=20=E5=BF=83=E7=90=86=E7=9B=91?= =?UTF-8?q?=E6=B5=8B=E8=AF=A6=E6=83=85=20=20=20=20=20-=20=E4=BF=AE?= =?UTF-8?q?=E6=94=B9=20=E5=BF=83=E6=83=85=E7=AD=89=E7=BA=A7=E6=97=A5?= =?UTF-8?q?=E5=8E=86=E6=95=B0=E6=8D=AE=E6=8E=A5=E5=8F=A3=E5=8F=82=E6=95=B0?= =?UTF-8?q?=EF=BC=8C=E5=A2=9E=E5=8A=A0=20startDate=20=E5=92=8C=20endDate?= =?UTF-8?q?=EF=BC=8C=E5=88=A0=E9=99=A4month=E5=8F=82=E6=95=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 11 +++++++++-- src/config/models.js | 4 ++-- src/views/health/psychological/index.vue | 6 +++++- 3 files changed, 16 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index af6e1a5..92b8326 100644 --- a/README.md +++ b/README.md @@ -1,7 +1,7 @@ @@ -650,4 +650,11 @@ update `2023.7.10` update - 心理监测详情 - - 修改 饼状图右边百分比取整方式,四舍五入 \ No newline at end of file + - 修改 饼状图右边百分比取整方式,四舍五入 + + +## v1.0.81 +`2023.7.12` +update +- 心理监测详情 + - 修改 心情等级日历数据接口参数,增加 startDate 和 endDate,删除month参数 \ No newline at end of file diff --git a/src/config/models.js b/src/config/models.js index 6b9dacb..247eb98 100644 --- a/src/config/models.js +++ b/src/config/models.js @@ -1,11 +1,11 @@ /* * @Date: 2021-11-20 10:26:39 * @LastEditors: JinxChen - * @LastEditTime: 2023-07-08 16:26:44 + * @LastEditTime: 2023-07-12 16:52:30 * @FilePath: \TelpoH5FrontendWeb\src\config\models.js * @description: */ -export const VERSION_MODEL = '1.0.80F'; //版本号 +export const VERSION_MODEL = '1.0.81F'; //版本号 export const IMAGE_URL = { production: 'http://zfb.ssjlai.com/web/', test: 'http://zfb.ssjlai.com/web/', diff --git a/src/views/health/psychological/index.vue b/src/views/health/psychological/index.vue index b99cd5e..e693f35 100644 --- a/src/views/health/psychological/index.vue +++ b/src/views/health/psychological/index.vue @@ -690,10 +690,14 @@ export default { }, // 获取这个月中有数据的日期,控制日历组件的日期样式 getCalendarData() { + let currentDate = new Date(); + // 获取最近30天的心情等级日历数据 + let dateList = this.getPostDate(currentDate, 30, true); let reqUrl = `https://dbmq.rzliot.com/heart/api/Data/GetCalendarData`; let reqParams = { uid: this.uid, - month: this.$dayjs(new Date()).format('YYYY-MM') + startDate: dateList[0], + endDate: dateList[1], }; axios.get(reqUrl, { params: { ...reqParams },