From d87387441e2eb16b39f506c80d8f428efdd75184 Mon Sep 17 00:00:00 2001 From: JinxChen <2183691628@qq.com> Date: Wed, 31 May 2023 21:40:21 +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=E9=A1=B5=E9=9D=A2=20=20=20=20=20-?= =?UTF-8?q?=20=E5=A2=9E=E5=8A=A0=20=E5=8A=A8=E6=80=81=E5=A1=AB=E5=85=85uid?= =?UTF-8?q?=20-=20=E9=97=AE=E5=8D=B7=E8=B0=83=E6=9F=A5=E9=A1=B5=E9=9D=A2?= =?UTF-8?q?=20=20=20=20=20-=20=E4=BF=AE=E5=A4=8D=20toast=E6=97=A0=E9=99=90?= =?UTF-8?q?=E5=8A=A0=E8=BD=BD=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 10 +++++++++- src/config/models.js | 2 +- src/views/health/psychological/index.vue | 6 ++++-- src/views/psychological-questionnaire/index.vue | 4 ++-- 4 files changed, 16 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index 6690104..b7ab751 100644 --- a/README.md +++ b/README.md @@ -447,4 +447,12 @@ update update - 心理监测详情页面 - 优化 图表显示内容,两边增加留白区域 - - 优化 7天和30天图表圆角柱形图展示 \ No newline at end of file + - 优化 7天和30天图表圆角柱形图展示 + +## v1.0.55 +`2023.5.31` +update +- 心理监测详情页面 + - 增加 动态填充uid +- 问卷调查页面 + - 修复 toast无限加载的问题 \ No newline at end of file diff --git a/src/config/models.js b/src/config/models.js index aa77313..424451a 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.54F'; //版本号 +export const VERSION_MODEL = '1.0.55F'; //版本号 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 15f9c1a..6b46e75 100644 --- a/src/views/health/psychological/index.vue +++ b/src/views/health/psychological/index.vue @@ -309,6 +309,7 @@ export default { ], // 选中的日历日期 selectDate: '', + uid: '' }; }, computed: { @@ -630,6 +631,7 @@ export default { if (params) { this.emoName = EmotionModel[params.name].name; this.emoType = EmotionModel[params.name].type; + this.uid = params.uid; console.log("当前情绪是", EmotionModel[params.name].name); } }, @@ -637,7 +639,7 @@ export default { getCalendarData() { let reqUrl = `https://dbmq.rzliot.com/heart/api/Data/GetCalendarData`; let reqParams = { - uid: "tenghao", + uid: this.uid, month: this.$dayjs(new Date()).format('YYYY-MM') }; axios.get(reqUrl, { @@ -672,7 +674,7 @@ export default { ? this.$dayjs(date).format("YYYY-MM-DD") : this.$dayjs(this.defaultDate).format("YYYY-MM-DD") /* "2023-05-23" */; let reqParams = { - uid: "tenghao", + uid: this.uid, startDate: reqDate, endDate: reqDate, type: this.emoType diff --git a/src/views/psychological-questionnaire/index.vue b/src/views/psychological-questionnaire/index.vue index 6880cb6..beb0c1e 100644 --- a/src/views/psychological-questionnaire/index.vue +++ b/src/views/psychological-questionnaire/index.vue @@ -177,7 +177,7 @@ export default { } } else { this.$toast(re.msg) - } + } }, async submit() { let temp = { @@ -226,7 +226,7 @@ export default { this.$toast.loading({ message: '', forbidClick: true, - duration: 0, + duration: 1500, }) }, 100) let baseUrl = 'https://dbmq.rzliot.com/heart'