Browse Source

Merge branch 'develop'

master
chenJinxu 9 months ago
parent
commit
6c7297a5d5
4 changed files with 16 additions and 8 deletions
  1. +7
    -0
      README.md
  2. +2
    -2
      src/config/models.js
  3. +5
    -4
      src/utils/index.js
  4. +2
    -2
      src/views/health/psychological/report/index.vue

+ 7
- 0
README.md View File

@@ -1144,3 +1144,10 @@ update
fix

- 修复 抑郁没有正确转化成忧郁的问题

## v1.0.123

`2024.4.29`
update

- ‘忧郁’文字 改成‘抑郁’,

+ 2
- 2
src/config/models.js View File

@@ -8,7 +8,7 @@
import store from "@/store";
// 情绪模型
const appTypeList = ['1'];
export const VERSION_MODEL = '1.0.122F'; //版本号
export const VERSION_MODEL = '1.0.123F'; //版本号
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: {


+ 5
- 4
src/utils/index.js View File

@@ -100,9 +100,10 @@ export function isShowAntpay(array) {
*/
export function replaceAll(target, searchValue, replacement) {
// 应用类型,目前1 是健康好蕴,其他则不替换
const appTypeList = ['1'];
const appType = store.getters.appType;
if(appTypeList.indexOf(appType) > -1) {
/* const appTypeList = ['1'];
const appType = store.getters.appType; */
return target
/* if(appTypeList.indexOf(appType) > -1) {
if(isNotNull(target) && isNotNull(searchValue)) {
if(target.includes(searchValue)) {
return target.replace(new RegExp(searchValue, 'g'), replacement);
@@ -116,6 +117,6 @@ export function replaceAll(target, searchValue, replacement) {
} else {
return target
}
} */
}

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

@@ -282,7 +282,7 @@ export default {
},
computed: {
isShowLeft() {
return this.params.isShowLeft ? this.params.isShowLeft === 'true' : false
return this.params.isShowLeft || this.params.isShowLeft === 'true'
},
// 折线图标题
echartsTitle() {
@@ -584,7 +584,7 @@ export default {
async loadParams() {
let params = this.$route.query;
if (params) {
this.params = params;
this.params = { ...params };
if (params.appType) {
this.$store.commit("appType", params.appType);
}


Loading…
Cancel
Save