diff --git a/README.md b/README.md index 3b7807a..ff1a7a3 100644 --- a/README.md +++ b/README.md @@ -890,4 +890,10 @@ update `2023.12.29` update - 心理监测详情,周报 - - 修改 legend图例位置 \ No newline at end of file + - 修改 legend图例位置 + +## v1.0.114 +`2024.1.3` +fix +- 心理监测详情 + - 修复 心理切换按钮导致 ”今天“ 日期参数异常的问题 \ No newline at end of file diff --git a/src/config/models.js b/src/config/models.js index 260c59b..99029a1 100644 --- a/src/config/models.js +++ b/src/config/models.js @@ -5,7 +5,7 @@ * @FilePath: \TelpoH5FrontendWeb\src\config\models.js * @description: */ -export const VERSION_MODEL = '1.0.113F'; //版本号 +export const VERSION_MODEL = '1.0.114F'; //版本号 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 8d1159b..d9a847a 100644 --- a/src/views/health/psychological/index.vue +++ b/src/views/health/psychological/index.vue @@ -1235,8 +1235,8 @@ export default { this.defaultOptions.series = this.defaultSeries; this.defaultOptions.series[0].data = this.emotionData; this.getPsychologiclData(this.selectDate ? this.selectDate : this.$dayjs(currentDate).format("YYYY-MM-DD")); - this.startDate = this.$dayjs(currentDate).format("YYYY-MM-DD"); - this.endDate = this.$dayjs(currentDate).format("YYYY-MM-DD"); + this.startDate = this.selectDate || this.$dayjs(currentDate).format("YYYY-MM-DD"); + this.endDate = this.selectDate || this.$dayjs(currentDate).format("YYYY-MM-DD"); } else if(value === 30){ // 30天 this.defaultOptions.xAxis.data = this.xAxisData; @@ -1262,7 +1262,7 @@ export default { // 即点击了周报,此时调用获取周报接口 this.getWeekResult(); } else { - this.getPsychologiclData(this.startDate, this.endDate); + this.getPsychologiclData(this.selectDate, this.startDate, this.endDate); } }, getCurrentMonthStaAndEnd(currentDate) { @@ -1340,6 +1340,9 @@ export default { this.dateList[0].text = this.$dayjs(value).format("YYYY-MM-DD") === this.$dayjs(new Date()).format("YYYY-MM-DD") ? '今天' : this.$dayjs(value).format("MM-DD"); this.calendarDialogShow = false; this.selectDate = selectDate; + this.startDate = selectDate; + this.endDate = selectDate; + this.current = 0; this.getPsychologiclData(selectDate); }, // 计算字体显示的颜色