Browse Source

Merge branch 'feat' into test

test
chenJinxu 7 months ago
parent
commit
94f2644a4d
2 changed files with 4 additions and 4 deletions
  1. +1
    -1
      src/views/health/psychological-main/index.vue
  2. +3
    -3
      src/views/health/psychological/index.vue

+ 1
- 1
src/views/health/psychological-main/index.vue View File

@@ -159,7 +159,7 @@ export default {
// 抑郁指数
{
value: data.DepScore,
name: `${anxietyText}指数`,
name: this.$replaceAll(`抑郁指数`, '抑郁', '焦虑'),
class: "depression",
result: this.$replaceAll(data.DepDesc, '抑郁', '焦虑'),
time: data.DepMeasureUpdateTime


+ 3
- 3
src/views/health/psychological/index.vue View File

@@ -685,13 +685,13 @@ export default {
return this.params.name ? EmotionModel[this.params.name].title1 : ''
},
article1() {
return EmotionModel[this.params.name].article1;
return this.params.name ? EmotionModel[this.params.name].article1 : ''
},
title2() {
return EmotionModel[this.params.name].title2;
return this.params.name ? EmotionModel[this.params.name].title2 : ''
},
article2() {
return EmotionModel[this.params.name].article2;
return this.params.name ? EmotionModel[this.params.name].article2 : ''
},
// 当前情绪颜色
currentColor() {


Loading…
Cancel
Save