|
@@ -309,6 +309,7 @@ export default { |
|
|
], |
|
|
], |
|
|
// 选中的日历日期 |
|
|
// 选中的日历日期 |
|
|
selectDate: '', |
|
|
selectDate: '', |
|
|
|
|
|
uid: '' |
|
|
}; |
|
|
}; |
|
|
}, |
|
|
}, |
|
|
computed: { |
|
|
computed: { |
|
@@ -630,6 +631,7 @@ export default { |
|
|
if (params) { |
|
|
if (params) { |
|
|
this.emoName = EmotionModel[params.name].name; |
|
|
this.emoName = EmotionModel[params.name].name; |
|
|
this.emoType = EmotionModel[params.name].type; |
|
|
this.emoType = EmotionModel[params.name].type; |
|
|
|
|
|
this.uid = params.uid; |
|
|
console.log("当前情绪是", EmotionModel[params.name].name); |
|
|
console.log("当前情绪是", EmotionModel[params.name].name); |
|
|
} |
|
|
} |
|
|
}, |
|
|
}, |
|
@@ -637,7 +639,7 @@ export default { |
|
|
getCalendarData() { |
|
|
getCalendarData() { |
|
|
let reqUrl = `https://dbmq.rzliot.com/heart/api/Data/GetCalendarData`; |
|
|
let reqUrl = `https://dbmq.rzliot.com/heart/api/Data/GetCalendarData`; |
|
|
let reqParams = { |
|
|
let reqParams = { |
|
|
uid: "tenghao", |
|
|
|
|
|
|
|
|
uid: this.uid, |
|
|
month: this.$dayjs(new Date()).format('YYYY-MM') |
|
|
month: this.$dayjs(new Date()).format('YYYY-MM') |
|
|
}; |
|
|
}; |
|
|
axios.get(reqUrl, { |
|
|
axios.get(reqUrl, { |
|
@@ -672,7 +674,7 @@ export default { |
|
|
? this.$dayjs(date).format("YYYY-MM-DD") |
|
|
? this.$dayjs(date).format("YYYY-MM-DD") |
|
|
: this.$dayjs(this.defaultDate).format("YYYY-MM-DD") /* "2023-05-23" */; |
|
|
: this.$dayjs(this.defaultDate).format("YYYY-MM-DD") /* "2023-05-23" */; |
|
|
let reqParams = { |
|
|
let reqParams = { |
|
|
uid: "tenghao", |
|
|
|
|
|
|
|
|
uid: this.uid, |
|
|
startDate: reqDate, |
|
|
startDate: reqDate, |
|
|
endDate: reqDate, |
|
|
endDate: reqDate, |
|
|
type: this.emoType |
|
|
type: this.emoType |
|
|