|
|
@@ -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); |
|
|
|
}, |
|
|
|
// 计算字体显示的颜色 |
|
|
|