From 4718fdc03b6287de8d54e1ab160460da4b28e8ed Mon Sep 17 00:00:00 2001 From: chenJinxu <2183691628@qq.com> Date: Wed, 3 Apr 2024 17:43:44 +0800 Subject: [PATCH] =?UTF-8?q?update=20-=20=E2=80=98=E7=84=A6=E8=99=91?= =?UTF-8?q?=E2=80=99=E6=96=87=E5=AD=97=20=20=E6=94=B9=E6=88=90=E2=80=98?= =?UTF-8?q?=E5=BF=A7=E9=83=81=E2=80=99?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 8 +++++++- src/config/models.js | 4 ++-- src/views/health/psychological-main/index.vue | 4 ++-- src/views/health/psychological/index.vue | 20 +++++++++---------- .../health/psychological/report/index.vue | 6 +++--- src/views/psychological-modeling/index.vue | 4 ++-- 6 files changed, 26 insertions(+), 20 deletions(-) diff --git a/README.md b/README.md index c681b7a..0b82a29 100644 --- a/README.md +++ b/README.md @@ -925,4 +925,10 @@ fix ## v1.0.119 `2024.3.26` fix -- 修复 心理监测详情心理组件切换历史检测数据没有发生变化的问题 \ No newline at end of file +- 修复 心理监测详情心理组件切换历史检测数据没有发生变化的问题 + + +## v1.0.120 +`2024.4.3` +update +- ‘焦虑’文字 改成‘忧郁’, \ No newline at end of file diff --git a/src/config/models.js b/src/config/models.js index 4512a64..b7a3b68 100644 --- a/src/config/models.js +++ b/src/config/models.js @@ -8,7 +8,7 @@ import store from "@/store"; // 情绪模型 const appTypeList = ['1']; -export const VERSION_MODEL = '1.0.119F'; //版本号 +export const VERSION_MODEL = '1.0.120F'; //版本号 export const IMAGE_URL = { production: 'http://zfb.ssjlai.com/web/', test: 'http://zfb.ssjlai.com/web/', @@ -29,7 +29,7 @@ export const BaiduStatisticsModel = { }; // 焦虑文字 -export const anxietyText = appTypeList.indexOf(store.getters.appType) >-1 ? `焦虑`: `抑郁` +export const anxietyText = appTypeList.indexOf(store.getters.appType) >-1 ? `忧郁`: `忧郁` export const EmotionModel = { // 抑郁 depression: { diff --git a/src/views/health/psychological-main/index.vue b/src/views/health/psychological-main/index.vue index c644abe..188fdaf 100644 --- a/src/views/health/psychological-main/index.vue +++ b/src/views/health/psychological-main/index.vue @@ -159,9 +159,9 @@ export default { // 抑郁指数 { value: data.DepScore, - name: this.$replaceAll(`抑郁指数`, '抑郁', '焦虑'), + name: this.$replaceAll(`抑郁指数`, '抑郁', '忧郁'), class: "depression", - result: this.$replaceAll(data.DepDesc, '抑郁', '焦虑'), + result: this.$replaceAll(data.DepDesc, '抑郁', '忧郁'), time: data.DepMeasureUpdateTime ? this.$dayjs(data.DepMeasureUpdateTime).format("HH:mm") : "", diff --git a/src/views/health/psychological/index.vue b/src/views/health/psychological/index.vue index 9b9d726..bc291b7 100644 --- a/src/views/health/psychological/index.vue +++ b/src/views/health/psychological/index.vue @@ -142,7 +142,7 @@ 结果解读

- {{ this.$replaceAll(result, '抑郁', '焦虑') }} + {{ this.$replaceAll(result, '抑郁', '忧郁') }}

{{ @@ -271,7 +271,7 @@ export default { psyList: [ { name: "tiredness", text: "疲劳", value: 0 }, { name: "stress", text: "压力", value: 1 }, - { name: "depression", text: this.$replaceAll('抑郁', '抑郁', '焦虑'), value: 2 }, + { name: "depression", text: this.$replaceAll('抑郁', '抑郁', '忧郁'), value: 2 }, ], // 当前情绪下标 psyCurrent: 0, @@ -390,7 +390,7 @@ export default { computed: { anxietyText() { const appTypeList = ['1']; - return appTypeList.indexOf(this.$store.getters.appType) > -1 ? `焦虑` : `抑郁` + return appTypeList.indexOf(this.$store.getters.appType) > -1 ? `忧郁` : `抑郁` }, // 默认折线图配置,echarts 具体配置 见 https://echarts.apache.org/zh/option.html#title defaultOptions() { @@ -685,16 +685,16 @@ export default { /* return `正常连续佩戴手表,每半小时计算一个${this.emoName}分值,睡眠期间不进行计算。` */ }, title1() { - return this.params.name ? this.$replaceAll(EmotionModel[this.params.name].title1, '抑郁', '焦虑') : '' + return this.params.name ? this.$replaceAll(EmotionModel[this.params.name].title1, '抑郁', '忧郁') : '' }, article1() { - return this.params.name ? this.$replaceAll(EmotionModel[this.params.name].article1, '抑郁', '焦虑') : '' + return this.params.name ? this.$replaceAll(EmotionModel[this.params.name].article1, '抑郁', '忧郁') : '' }, title2() { - return this.params.name ? this.$replaceAll(EmotionModel[this.params.name].title2, '抑郁', '焦虑') : '' + return this.params.name ? this.$replaceAll(EmotionModel[this.params.name].title2, '抑郁', '忧郁') : '' }, article2() { - return this.params.name ? this.$replaceAll(EmotionModel[this.params.name].article2, '抑郁', '焦虑') : '' + return this.params.name ? this.$replaceAll(EmotionModel[this.params.name].article2, '抑郁', '忧郁') : '' }, // 当前情绪颜色 currentColor() { @@ -744,7 +744,7 @@ export default { loadParams() { let params = this.$route.query; if (params) { - this.emoName = this.$replaceAll(EmotionModel[params.name].name, '抑郁', '焦虑'); + this.emoName = this.$replaceAll(EmotionModel[params.name].name, '抑郁', '忧郁'); this.emoType = EmotionModel[params.name].type; this.uid = params.uid; this.routeDate = params.date; @@ -1278,7 +1278,7 @@ export default { // 点击情绪tab onPsyTabClick(name, index) { this.psyCurrent = index; - this.emoName = this.$replaceAll(EmotionModel[name].name, '抑郁', '焦虑'); + this.emoName = this.$replaceAll(EmotionModel[name].name, '抑郁', '忧郁'); this.currentEmoName = name; this.emoType = EmotionModel[name].type; console.log("this.currentDays", this.currentDays); @@ -1460,7 +1460,7 @@ export default { .replace(/-/g, ".") .replace(/~/g, "-"), recordId: item.RecordId, - summary: this.$replaceAll(item.Summary, '抑郁', '焦虑'), + summary: this.$replaceAll(item.Summary, '抑郁', '忧郁'), summaryLevel: item.SummaryLevel, type: this.emoType, }; diff --git a/src/views/health/psychological/report/index.vue b/src/views/health/psychological/report/index.vue index 2e193eb..f9509d8 100644 --- a/src/views/health/psychological/report/index.vue +++ b/src/views/health/psychological/report/index.vue @@ -688,9 +688,9 @@ export default { this.statisticsList = []; this.emotionList = []; this.weekResult = data; - this.weekResult.Explain = this.$replaceAll(data.Explain, '抑郁', '焦虑') - this.weekResult.Summary = this.$replaceAll(data.Summary, '抑郁', '焦虑') - this.weekResult.Advice = this.$replaceAll(data.Advice, '抑郁', '焦虑') + this.weekResult.Explain = this.$replaceAll(data.Explain, '抑郁', '忧郁') + this.weekResult.Summary = this.$replaceAll(data.Summary, '抑郁', '忧郁') + this.weekResult.Advice = this.$replaceAll(data.Advice, '抑郁', '忧郁') this.emoName = this.calcTitle(data.Type); } let None = { diff --git a/src/views/psychological-modeling/index.vue b/src/views/psychological-modeling/index.vue index 8c81d75..57dd666 100644 --- a/src/views/psychological-modeling/index.vue +++ b/src/views/psychological-modeling/index.vue @@ -85,8 +85,8 @@ export default { }, tips() { return this.info.isFirstModeling === 1 - ? `首次佩戴,需完成以下2步,建立情绪模型。完成初始化建模后,将为您计算${this.$replaceAll('抑郁', '抑郁', '焦虑')}、压力、疲劳分值。` - : `由于您长时间未佩戴手表,需重新建模,请连续佩戴不低于2小时,佩戴完成后,将为您计算${this.$replaceAll('抑郁', '抑郁', '焦虑')}、压力、疲劳的分值。`; + ? `首次佩戴,需完成以下2步,建立情绪模型。完成初始化建模后,将为您计算${this.$replaceAll('抑郁', '抑郁', '忧郁')}、压力、疲劳分值。` + : `由于您长时间未佩戴手表,需重新建模,请连续佩戴不低于2小时,佩戴完成后,将为您计算${this.$replaceAll('抑郁', '抑郁', '忧郁')}、压力、疲劳的分值。`; }, }, mounted() {