@@ -261,6 +274,14 @@ export default {
{ name: "month", text: "30天", value: 30 },
{ name: "weekReport", text: "周报", value: 49 }
],
+ // 情绪tab
+ psyList: [
+ {name: 'tiredness', text: '疲劳', value: 0},
+ {name: 'stress', text: '压力', value: 1},
+ {name: 'depression', text: '抑郁', value: 2},
+ ],
+ // 当前情绪下标
+ psyCurrent: 0,
current: 0, // 日期选择标签-当前选中的标签
currentDays: 0, //日期选择标签-日期参数
emotionData: [], //情绪数据,TODO 接口对接
@@ -382,6 +403,9 @@ export default {
moreImg: require("@/assets/img/psychological/more.png"),
noDataImg: require("@/assets/img/no_data_01.png"),
weekList: [],
+ startDate: '', //接口需要的开始时间
+ endDate: '', //接口需要的结束时间
+ currentEmoName: '', //当前情绪名称
};
},
computed: {
@@ -713,6 +737,8 @@ export default {
mounted() {
this.initEchart();
this.current = Number(this.$store.getters.tabClick) || 0;
+ this.currentDays = this.calcDaysByTabClick(Number(this.$store.getters.tabClick));
+ this.psyCurrent = this.calcPsyTabindex(EmotionModel[this.params.name].type);
window.document.title = '心理监测';
},
methods: {
@@ -724,6 +750,7 @@ export default {
this.uid = params.uid;
this.routeDate = params.date;
this.params = params;
+ this.currentEmoName = params.name;
if(params.date) {
this.dateList[0].text = this.$dayjs(params.date).format("YYYY-MM-DD") === this.$dayjs(new Date()).format("YYYY-MM-DD") ? '今天' : this.$dayjs(params.date).format("MM-DD");
this.defaultDate = new Date(
@@ -736,6 +763,44 @@ export default {
}
}
},
+ // 计算点击的天数
+ calcDaysByTabClick(value) {
+ let days = '';
+ console.log("value", value);
+ switch(value) {
+ case 0:
+ days = 0;
+ break;
+ case 1:
+ days = 7;
+ break;
+ case 2:
+ days = 30;
+ break;
+ case 3:
+ days = 49;
+ break;
+ default: break;
+ };
+ return days
+ },
+ // 计算psyTab的下标值
+ calcPsyTabindex(type) {
+ let psyIndex = '';
+ switch(type) {
+ case 1:
+ psyIndex = 1;
+ break;
+ case 2:
+ psyIndex = 2;
+ break;
+ case 3:
+ psyIndex = 0;
+ break;
+ default: break;
+ };
+ return psyIndex
+ },
// 获取这个月中有数据的日期,控制日历组件的日期样式
getCalendarData() {
let currentDate = new Date();
@@ -1162,12 +1227,16 @@ export default {
if (value === 7) {
let dateList = this.getPostDate(currentDate, 6, true);
this.getPsychologiclData('', dateList[0], dateList[1]);
+ this.startDate = dateList[0];
+ this.endDate = dateList[1];
} else if (value === 0) {
// 今天
this.defaultOptions.xAxis.data = this.xAxisData;
this.defaultOptions.series = this.defaultSeries;
this.defaultOptions.series[0].data = this.emotionData;
- this.getPsychologiclData(this.selectDate ? this.selectDate : this .$dayjs(currentDate).format("YYYY-MM-DD"));
+ this.getPsychologiclData(this.selectDate ? this.selectDate : this.$dayjs(currentDate).format("YYYY-MM-DD"));
+ this.startDate = this.$dayjs(currentDate).format("YYYY-MM-DD");
+ this.endDate = this.$dayjs(currentDate).format("YYYY-MM-DD");
} else if(value === 30){
// 30天
this.defaultOptions.xAxis.data = this.xAxisData;
@@ -1175,11 +1244,27 @@ export default {
this.defaultOptions.series[0].data = this.emotionData;
let dateList = this.getPostDate(currentDate, 30, true);
this.getPsychologiclData('', dateList[0], dateList[1]);
+ this.startDate = dateList[0];
+ this.endDate = dateList[1];
} else {
// 周报菜单
this.getWeekResult();
}
},
+ // 点击情绪tab
+ onPsyTabClick(name, index) {
+ this.psyCurrent = index;
+ this.emoName = EmotionModel[name].name;
+ this.currentEmoName = name;
+ this.emoType = EmotionModel[name].type;
+ console.log("this.currentDays", this.currentDays);
+ if(this.currentDays === 49) {
+ // 即点击了周报,此时调用获取周报接口
+ this.getWeekResult();
+ } else {
+ this.getPsychologiclData(this.startDate, this.endDate);
+ }
+ },
getCurrentMonthStaAndEnd(currentDate) {
let list = [];
let monthStart = new Date(currentDate.getFullYear(), currentDate.getMonth(), 1); // 获取本月第一天的日期时间
@@ -1336,8 +1421,9 @@ export default {
name: 'psychologicalReport',
query: {
recordId: recordId,
- name: 'depression',
- isShowLeft: true
+ name: this.currentEmoName,
+ isShowLeft: true,
+ uid: this.uid
}
})
}
diff --git a/src/views/health/psychological/report/index.vue b/src/views/health/psychological/report/index.vue
index 4bd8b5d..0b76975 100644
--- a/src/views/health/psychological/report/index.vue
+++ b/src/views/health/psychological/report/index.vue
@@ -920,7 +920,13 @@ export default {
this.pieEcharts.setOption(this.pieOption);
},
onNavBack() {
- this.$router.go(-1);
+ this.$router.push({
+ name: 'psychological',
+ query: {
+ uid: this.params.uid,
+ name: this.params.name
+ }
+ });
},
// 计算字体显示的颜色
calcColor(value) {
From 421ca788c937773761f687ec5c20b0486afc5b48 Mon Sep 17 00:00:00 2001
From: chenJinxu <2183691628@qq.com>
Date: Wed, 13 Dec 2023 18:34:20 +0800
Subject: [PATCH 02/14] =?UTF-8?q?`2023.12.13`=20update=20-=20=E8=AE=BE?=
=?UTF-8?q?=E5=A4=87=E8=AE=BE=E7=BD=AE=E5=88=97=E8=A1=A8=20=20=20=20=20-?=
=?UTF-8?q?=20=E4=BC=98=E5=8C=96=20=E5=85=A8=E9=83=A8=E6=8E=A5=E5=8F=A3?=
=?UTF-8?q?=E5=93=8D=E5=BA=94=E5=AE=8C=E6=88=90=E6=89=8D=E5=8A=A0=E8=BD=BD?=
=?UTF-8?q?=E5=AE=8C=E6=88=90?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
README.md | 8 +++++++-
src/config/models.js | 2 +-
src/views/gps-card-frontend/device-setting/index.vue | 7 +++++--
3 files changed, 13 insertions(+), 4 deletions(-)
diff --git a/README.md b/README.md
index 1d8a57e..dd1d8fe 100644
--- a/README.md
+++ b/README.md
@@ -865,4 +865,10 @@ update
`2023.12.12`
update
- 心理监测周报列表
- - 增加 无数据文字提示
\ No newline at end of file
+ - 增加 无数据文字提示
+
+## v1.0.110
+`2023.12.13`
+update
+- 设备设置列表
+ - 优化 全部接口响应完成才加载完成
\ No newline at end of file
diff --git a/src/config/models.js b/src/config/models.js
index d101486..503f39e 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.109F'; //版本号
+export const VERSION_MODEL = '1.0.110F'; //版本号
export const IMAGE_URL = {
production: 'http://zfb.ssjlai.com/web/',
test: 'http://zfb.ssjlai.com/web/',
diff --git a/src/views/gps-card-frontend/device-setting/index.vue b/src/views/gps-card-frontend/device-setting/index.vue
index 90682a1..ffe908f 100644
--- a/src/views/gps-card-frontend/device-setting/index.vue
+++ b/src/views/gps-card-frontend/device-setting/index.vue
@@ -104,12 +104,15 @@ export default {
const promise = Promise.all(allPromise);
try {
const result = await promise;
- if(result) {
+ const isLoadAllSuccess = result.every(item => {
+ return item;
+ });
+ if(isLoadAllSuccess) {
this.$toast.success({
message: '数据加载完成',
duration: 2000
});
- }
+ };
} catch(error){
console.log('error', error);
this.$toast.clear();
From 6b8b73bd29b37153cd61971b7f29ca0ade5ea127 Mon Sep 17 00:00:00 2001
From: chenJinxu <2183691628@qq.com>
Date: Fri, 15 Dec 2023 18:14:21 +0800
Subject: [PATCH 03/14] =?UTF-8?q?fix=20-=20=E8=AE=BE=E5=A4=87=E8=AE=BE?=
=?UTF-8?q?=E7=BD=AE=E5=88=97=E8=A1=A8=20=20=20=20=20-=20=E4=BF=AE?=
=?UTF-8?q?=E5=A4=8D=20=E6=8E=A5=E5=8F=A3=E6=9C=AA=E5=93=8D=E5=BA=94?=
=?UTF-8?q?=E5=AE=8C=E6=88=90=E6=8F=90=E7=A4=BA=E5=8A=A0=E8=BD=BD=E5=AE=8C?=
=?UTF-8?q?=E6=88=90?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
README.md | 8 +++++-
src/config/models.js | 2 +-
.../device-setting/index.vue | 27 ++++++++++++-------
3 files changed, 25 insertions(+), 12 deletions(-)
diff --git a/README.md b/README.md
index dd1d8fe..edd5582 100644
--- a/README.md
+++ b/README.md
@@ -871,4 +871,10 @@ update
`2023.12.13`
update
- 设备设置列表
- - 优化 全部接口响应完成才加载完成
\ No newline at end of file
+ - 优化 全部接口响应完成才加载完成
+
+## v1.0.111
+`2023.12.15`
+fix
+- 设备设置列表
+ - 修复 接口未响应完成提示加载完成
\ No newline at end of file
diff --git a/src/config/models.js b/src/config/models.js
index 503f39e..8259e79 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.110F'; //版本号
+export const VERSION_MODEL = '1.0.111F'; //版本号
export const IMAGE_URL = {
production: 'http://zfb.ssjlai.com/web/',
test: 'http://zfb.ssjlai.com/web/',
diff --git a/src/views/gps-card-frontend/device-setting/index.vue b/src/views/gps-card-frontend/device-setting/index.vue
index ffe908f..7fad3c0 100644
--- a/src/views/gps-card-frontend/device-setting/index.vue
+++ b/src/views/gps-card-frontend/device-setting/index.vue
@@ -112,7 +112,13 @@ export default {
message: '数据加载完成',
duration: 2000
});
- };
+ } else {
+ this.$toast.clear();
+ this.$dialog.comfirm({
+ title: '提示',
+ message: '请重新进入或者刷新页面'
+ })
+ }
} catch(error){
console.log('error', error);
this.$toast.clear();
@@ -223,8 +229,9 @@ export default {
} else {
this.settingItems[findIndex].text = this.concatTitle('加强省电模式','关闭', '耗电低');
}
+ resolve(true)
});
- resolve(true)
+
})
},
// 获取设备定位参数
@@ -257,8 +264,8 @@ export default {
} else {
this.settingItems[findIndex].text = this.concatTitle('定位监测','关闭', '耗电低');
}
+ resolve(true)
});
- resolve(true)
})
},
// 获取免告警水域
@@ -320,8 +327,8 @@ export default {
this.settingItems[findIndex].text = this.concatTitle('危险区域监测','关闭', '耗电低');
this.settingItems[findIndex].data = [];
}
+ resolve(true)
});
- resolve(true);
})
},
@@ -409,8 +416,8 @@ export default {
this.settingItems[findIndex].text = this.concatTitle('健康监测','关闭', '耗电低');
this.settingItems[findIndex].data = [];
}
+ resolve(true)
});
- resolve(true);
})
},
// 获取血压监测参数设置
@@ -449,8 +456,8 @@ export default {
this.settingItems[findIndex].text = this.concatTitle('血压监测','关闭', '耗电低');
this.settingItems[findIndex].data = [];
}
+ resolve(true)
});
- resolve(true);
})
},
// 格式化等级
@@ -516,8 +523,8 @@ export default {
this.settingItems[findIndex].text = this.concatTitle('心理监测', '关闭', '耗电低');
this.settingItems[findIndex].data = [];
}
+ resolve(true)
});
- resolve(true);
})
},
// 转换时间格式
@@ -605,8 +612,8 @@ export default {
this.settingItems[findIndex].text = this.concatTitle('佩戴监测', '关闭', '耗电低');
this.settingItems[findIndex].data = [];
}
+ resolve(true)
});
- resolve(true);
})
},
@@ -632,8 +639,8 @@ export default {
} else {
this.settingItems[findIndex].text = '上报周期(关闭)';
}
+ resolve(true)
});
- resolve(true);
})
},
// 获取设备状态
@@ -659,8 +666,8 @@ export default {
} else {
this.settingItems[findIndex].text = `设备状态(无数据)`;
}
+ resolve(true)
});
- resolve(true);
})
},
// 计算设备状态
From 3a95d16fad4aa4e9900a1d1ce7e742b62ccb0bb7 Mon Sep 17 00:00:00 2001
From: chenJinxu <2183691628@qq.com>
Date: Thu, 28 Dec 2023 14:31:34 +0800
Subject: [PATCH 04/14] =?UTF-8?q?update=20-=20=E5=BF=83=E7=90=86=E7=9B=91?=
=?UTF-8?q?=E6=B5=8B=E9=A6=96=E9=A1=B5=20=20=20=20=20-=20=E4=BF=AE?=
=?UTF-8?q?=E6=94=B9=20=E6=A0=87=E9=A2=98=E4=B8=BA=E5=BF=83=E7=90=86?=
=?UTF-8?q?=E5=91=B5=E6=8A=A4=20=20=20=20=20-=20=E4=BF=AE=E6=94=B9=20?=
=?UTF-8?q?=E4=B8=89=E4=B8=AA=E6=8C=87=E6=A0=87=E6=96=87=E5=AD=97?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
README.md | 9 ++++++++-
src/config/models.js | 2 +-
src/views/health/psychological-main/index.vue | 20 +++++++++----------
3 files changed, 19 insertions(+), 12 deletions(-)
diff --git a/README.md b/README.md
index edd5582..9d92733 100644
--- a/README.md
+++ b/README.md
@@ -877,4 +877,11 @@ update
`2023.12.15`
fix
- 设备设置列表
- - 修复 接口未响应完成提示加载完成
\ No newline at end of file
+ - 修复 接口未响应完成提示加载完成
+
+## v1.0.112
+`2023.12.28`
+update
+- 心理监测首页
+ - 修改 标题为心理呵护
+ - 修改 三个指标文字
\ No newline at end of file
diff --git a/src/config/models.js b/src/config/models.js
index 8259e79..f4a304c 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.111F'; //版本号
+export const VERSION_MODEL = '1.0.112F'; //版本号
export const IMAGE_URL = {
production: 'http://zfb.ssjlai.com/web/',
test: 'http://zfb.ssjlai.com/web/',
diff --git a/src/views/health/psychological-main/index.vue b/src/views/health/psychological-main/index.vue
index 6aff031..3bcff76 100644
--- a/src/views/health/psychological-main/index.vue
+++ b/src/views/health/psychological-main/index.vue
@@ -50,9 +50,9 @@ export default {
data(){
return {
healhtList: [
- /* { value: 40, name: '抑郁倾向', class: 'depression',result: '无抑郁倾向', time: '17:52', img: require('@/assets/img/regardless.png') },
- { value: 55, name: '压力', class: 'stress', result: '轻度压力', time: '17:52', img: require('@/assets/img/regardless.png') },
- { value: 75, name: '疲劳', class: 'tiredness', result: '中度疲劳', time: '17:52', img: require('@/assets/img/moderate.png') }, */
+ /* { value: 40, name: '抑郁指数', class: 'depression',result: '无抑郁倾向', time: '17:52', img: require('@/assets/img/regardless.png') },
+ { value: 55, name: '压力指数', class: 'stress', result: '轻度压力', time: '17:52', img: require('@/assets/img/regardless.png') },
+ { value: 75, name: '疲劳指数', class: 'tiredness', result: '中度疲劳指数', time: '17:52', img: require('@/assets/img/moderate.png') }, */
],
uid: '',
routeDate: '',
@@ -68,7 +68,7 @@ export default {
mounted() {
this.loadParams();
this.$store.commit('tabClick', 0);
- window.document.title = '心理监测';
+ window.document.title = '心理呵护';
},
methods: {
// 获取b端token
@@ -122,12 +122,12 @@ export default {
}
this.healhtList = [
// 2023.12.5 修改菜单顺序
- // 疲劳
- { value: data.TirScore, name: '疲劳', class: 'tiredness', result: data.TirDesc, time: data.TirMeasureUpdateTime ? this.$dayjs(data.TirMeasureUpdateTime).format('HH:mm') : '', level: data.TirLevel, img: data.TirScore ? this.calcImg(data.TirLevel, 'tiredness') : '' },
- // 压力
- { value: data.StressScore, name: '压力', class: 'stress', result: data.StressDesc, time: data.StressMeasureUpdateTime ? this.$dayjs(data.StressMeasureUpdateTime).format('HH:mm') : '', level: data.StressLevel, img: data.StressScore ? this.calcImg(data.StressLevel, 'stress') : ''},
- // 抑郁
- { value: data.DepScore, name: '抑郁倾向', class: 'depression', result: data.DepDesc, time: data.DepMeasureUpdateTime ? this.$dayjs(data.DepMeasureUpdateTime).format('HH:mm'): '', level: data.DepLevel, img: data.DepScore ? this.calcImg(data.DepLevel, 'depression') : ''},
+ // 疲劳指数
+ { value: data.TirScore, name: '疲劳指数', class: 'tiredness', result: data.TirDesc, time: data.TirMeasureUpdateTime ? this.$dayjs(data.TirMeasureUpdateTime).format('HH:mm') : '', level: data.TirLevel, img: data.TirScore ? this.calcImg(data.TirLevel, 'tiredness') : '' },
+ // 压力指数
+ { value: data.StressScore, name: '压力指数', class: 'stress', result: data.StressDesc, time: data.StressMeasureUpdateTime ? this.$dayjs(data.StressMeasureUpdateTime).format('HH:mm') : '', level: data.StressLevel, img: data.StressScore ? this.calcImg(data.StressLevel, 'stress') : ''},
+ // 抑郁指数
+ { value: data.DepScore, name: '抑郁指数', class: 'depression', result: data.DepDesc, time: data.DepMeasureUpdateTime ? this.$dayjs(data.DepMeasureUpdateTime).format('HH:mm'): '', level: data.DepLevel, img: data.DepScore ? this.calcImg(data.DepLevel, 'depression') : ''},
];
this.$toast.success('数据加载完成');
}).catch(() =>{}).finally(() => { })
From ea18f895d829eee4e11947945ad0183b1de702b1 Mon Sep 17 00:00:00 2001
From: chenJinxu <2183691628@qq.com>
Date: Fri, 29 Dec 2023 10:09:52 +0800
Subject: [PATCH 05/14] =?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=EF=BC=8C=E5=91=A8=E6=8A=A5=20=20=20?=
=?UTF-8?q?=20=20-=20=E4=BF=AE=E6=94=B9=20legend=E5=9B=BE=E4=BE=8B?=
=?UTF-8?q?=E4=BD=8D=E7=BD=AE?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
README.md | 8 +++++-
src/config/models.js | 2 +-
src/views/health/psychological/index.vue | 26 +++++++++----------
.../health/psychological/report/index.vue | 23 ++++++++--------
4 files changed, 33 insertions(+), 26 deletions(-)
diff --git a/README.md b/README.md
index 9d92733..3b7807a 100644
--- a/README.md
+++ b/README.md
@@ -884,4 +884,10 @@ fix
update
- 心理监测首页
- 修改 标题为心理呵护
- - 修改 三个指标文字
\ No newline at end of file
+ - 修改 三个指标文字
+
+## v1.0.113
+`2023.12.29`
+update
+- 心理监测详情,周报
+ - 修改 legend图例位置
\ No newline at end of file
diff --git a/src/config/models.js b/src/config/models.js
index f4a304c..260c59b 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.112F'; //版本号
+export const VERSION_MODEL = '1.0.113F'; //版本号
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 831a799..8d1159b 100644
--- a/src/views/health/psychological/index.vue
+++ b/src/views/health/psychological/index.vue
@@ -429,7 +429,7 @@ export default {
legend: {
width: "65%",
orient: "horizontal",
- right: 'right',
+ right: '5%',
top: 1,
bottom: "1%",
itemHeight: 12,
@@ -438,31 +438,31 @@ export default {
align: 'left',
selectedMode: false,
data: [
-
{
- name: `轻度${this.emoName}倾向`,
+ name: `无${this.emoName}倾向`,
icon: "rect",
+
itemStyle: {
- color: "#ffde00"
+ color: "#62BD48",
},
textStyle: {
fontSize: 12
}
},
{
- name: `中度${this.emoName}倾向`,
+ name: `轻度${this.emoName}倾向`,
+ icon: "rect",
itemStyle: {
- color: "#ff8a00"
+ color: "#ffde00"
},
- icon: "rect",
textStyle: {
fontSize: 12
}
},
{
- name: `重度${this.emoName}倾向`,
+ name: `中度${this.emoName}倾向`,
itemStyle: {
- color: "#d70d0d",
+ color: "#ff8a00"
},
icon: "rect",
textStyle: {
@@ -470,16 +470,16 @@ export default {
}
},
{
- name: `无${this.emoName}倾向`,
- icon: "rect",
+ name: `重度${this.emoName}倾向`,
itemStyle: {
- color: "#62BD48"
+ color: "#d70d0d",
},
+ icon: "rect",
textStyle: {
- // 项目遗留问题,新项目不需重新转换文字大小
fontSize: 12
}
},
+
],
formatter: function(name) {
// 自定义显示内容
diff --git a/src/views/health/psychological/report/index.vue b/src/views/health/psychological/report/index.vue
index 0b76975..5a45fd9 100644
--- a/src/views/health/psychological/report/index.vue
+++ b/src/views/health/psychological/report/index.vue
@@ -285,7 +285,7 @@ export default {
legend: {
width: "65%",
orient: "horizontal",
- right: 'right',
+ right: '5%',
top: '3%',
bottom: "1%",
itemHeight: 12,
@@ -295,29 +295,29 @@ export default {
selectedMode: false,
data: [
{
- name: `轻度${this.emoName}倾向`,
+ name: `无${this.emoName}倾向`,
icon: "rect",
itemStyle: {
- color: "#ffde00"
+ color: "#62BD48"
},
textStyle: {
fontSize: 12
}
},
{
- name: `中度${this.emoName}倾向`,
+ name: `轻度${this.emoName}倾向`,
+ icon: "rect",
itemStyle: {
- color: "#ff8a00"
+ color: "#ffde00"
},
- icon: "rect",
textStyle: {
fontSize: 12
}
},
{
- name: `重度${this.emoName}倾向`,
+ name: `中度${this.emoName}倾向`,
itemStyle: {
- color: "#d70d0d",
+ color: "#ff8a00"
},
icon: "rect",
textStyle: {
@@ -325,15 +325,16 @@ export default {
}
},
{
- name: `无${this.emoName}倾向`,
- icon: "rect",
+ name: `重度${this.emoName}倾向`,
itemStyle: {
- color: "#62BD48"
+ color: "#d70d0d",
},
+ icon: "rect",
textStyle: {
fontSize: 12
}
},
+
],
formatter: function(name) {
// 自定义显示内容
From dcd7fde122299d93c981b67e8f1e5c3cfc1506dd Mon Sep 17 00:00:00 2001
From: chenJinxu <2183691628@qq.com>
Date: Wed, 3 Jan 2024 15:03:42 +0800
Subject: [PATCH 06/14] =?UTF-8?q?fix=20-=20=E5=BF=83=E7=90=86=E7=9B=91?=
=?UTF-8?q?=E6=B5=8B=E8=AF=A6=E6=83=85=20=20=20=20=20-=20=E4=BF=AE?=
=?UTF-8?q?=E5=A4=8D=20=E5=BF=83=E7=90=86=E5=88=87=E6=8D=A2=E6=8C=89?=
=?UTF-8?q?=E9=92=AE=E5=AF=BC=E8=87=B4=20=E2=80=9D=E4=BB=8A=E5=A4=A9?=
=?UTF-8?q?=E2=80=9C=20=E6=97=A5=E6=9C=9F=E5=8F=82=E6=95=B0=E5=BC=82?=
=?UTF-8?q?=E5=B8=B8=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 | 8 +++++++-
src/config/models.js | 2 +-
src/views/health/psychological/index.vue | 9 ++++++---
3 files changed, 14 insertions(+), 5 deletions(-)
diff --git a/README.md b/README.md
index 3b7807a..ff1a7a3 100644
--- a/README.md
+++ b/README.md
@@ -890,4 +890,10 @@ update
`2023.12.29`
update
- 心理监测详情,周报
- - 修改 legend图例位置
\ No newline at end of file
+ - 修改 legend图例位置
+
+## v1.0.114
+`2024.1.3`
+fix
+- 心理监测详情
+ - 修复 心理切换按钮导致 ”今天“ 日期参数异常的问题
\ No newline at end of file
diff --git a/src/config/models.js b/src/config/models.js
index 260c59b..99029a1 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.113F'; //版本号
+export const VERSION_MODEL = '1.0.114F'; //版本号
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 8d1159b..d9a847a 100644
--- a/src/views/health/psychological/index.vue
+++ b/src/views/health/psychological/index.vue
@@ -1235,8 +1235,8 @@ export default {
this.defaultOptions.series = this.defaultSeries;
this.defaultOptions.series[0].data = this.emotionData;
this.getPsychologiclData(this.selectDate ? this.selectDate : this.$dayjs(currentDate).format("YYYY-MM-DD"));
- this.startDate = this.$dayjs(currentDate).format("YYYY-MM-DD");
- this.endDate = this.$dayjs(currentDate).format("YYYY-MM-DD");
+ this.startDate = this.selectDate || this.$dayjs(currentDate).format("YYYY-MM-DD");
+ this.endDate = this.selectDate || this.$dayjs(currentDate).format("YYYY-MM-DD");
} else if(value === 30){
// 30天
this.defaultOptions.xAxis.data = this.xAxisData;
@@ -1262,7 +1262,7 @@ export default {
// 即点击了周报,此时调用获取周报接口
this.getWeekResult();
} else {
- this.getPsychologiclData(this.startDate, this.endDate);
+ this.getPsychologiclData(this.selectDate, this.startDate, this.endDate);
}
},
getCurrentMonthStaAndEnd(currentDate) {
@@ -1340,6 +1340,9 @@ export default {
this.dateList[0].text = this.$dayjs(value).format("YYYY-MM-DD") === this.$dayjs(new Date()).format("YYYY-MM-DD") ? '今天' : this.$dayjs(value).format("MM-DD");
this.calendarDialogShow = false;
this.selectDate = selectDate;
+ this.startDate = selectDate;
+ this.endDate = selectDate;
+ this.current = 0;
this.getPsychologiclData(selectDate);
},
// 计算字体显示的颜色
From 35b519aa7ab69f80e2c513dff2821d0d63874f36 Mon Sep 17 00:00:00 2001
From: chenJinxu <2183691628@qq.com>
Date: Fri, 12 Jan 2024 18:21:03 +0800
Subject: [PATCH 07/14] =?UTF-8?q?=E4=BF=AE=E6=94=B9=20=E6=8A=91=E9=83=81?=
=?UTF-8?q?=E6=96=87=E5=AD=97=E4=B8=BA=E7=84=A6=E8=99=91?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/config/models.js | 16 +-
src/views/health/psychological-main/index.vue | 331 +-
src/views/health/psychological/index.vue | 2831 +++++++++--------
.../health/psychological/report/index.vue | 1812 ++++++-----
.../psychological/report/report-entry.vue | 385 +--
src/views/psychological-modeling/index.vue | 713 +++--
6 files changed, 3161 insertions(+), 2927 deletions(-)
diff --git a/src/config/models.js b/src/config/models.js
index 99029a1..b71455e 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.114F'; //版本号
+export const VERSION_MODEL = '1.0.115F'; //版本号
export const IMAGE_URL = {
production: 'http://zfb.ssjlai.com/web/',
test: 'http://zfb.ssjlai.com/web/',
@@ -26,15 +26,15 @@ export const BaiduStatisticsModel = {
};
// 情绪模型
export const EmotionModel = {
- // 抑郁
+ // 焦虑
depression: {
- name: '抑郁',
+ name: '焦虑',
type: 2,
- title1: '抑郁倾向',
- article1: `
设备所检测的是个体的抑郁倾向。通过将个人的生理特征(脉搏波、心率变异性等)和行为习惯(运动、作息等)与临床诊断为抑郁症的患者的相应特征进行对比,判断出个体的抑郁倾向(即抑郁症的可能性)程度。抑郁倾向持续的时间越长、程度越严重,代表患有抑郁症的风险就越大。
`,
- title2: '抑郁倾向算法原理',
- article2: `
1.研究发现,抑郁症等情绪障碍可能会引起个体外周生理系统反应的钝化,因此患者可能在面临危险、压力等应激状态下表现出较低的生理反应唤醒水平。这一点能够通过皮肤电、心率变异性等生理特征的周期性变化来判断。
-
2.抑郁症等情绪障碍的患者会出现明显的失眠、运动少、和生物钟紊乱,算法能够有效分析判断出这些异常的行为特征。
`
+ title1: '焦虑倾向',
+ article1: `
设备所检测的是个体的焦虑倾向。通过将个人的生理特征(脉搏波、心率变异性等)和行为习惯(运动、作息等)与临床诊断为焦虑症的患者的相应特征进行对比,判断出个体的焦虑倾向(即焦虑症的可能性)程度。焦虑倾向持续的时间越长、程度越严重,代表患有焦虑症的风险就越大。
`,
+ title2: '焦虑倾向算法原理',
+ article2: `
1.研究发现,焦虑症等情绪障碍可能会引起个体外周生理系统反应的钝化,因此患者可能在面临危险、压力等应激状态下表现出较低的生理反应唤醒水平。这一点能够通过皮肤电、心率变异性等生理特征的周期性变化来判断。
+
2.焦虑症等情绪障碍的患者会出现明显的失眠、运动少、和生物钟紊乱,算法能够有效分析判断出这些异常的行为特征。
`
},
// 压力
diff --git a/src/views/health/psychological-main/index.vue b/src/views/health/psychological-main/index.vue
index 3bcff76..2bead6c 100644
--- a/src/views/health/psychological-main/index.vue
+++ b/src/views/health/psychological-main/index.vue
@@ -1,43 +1,48 @@
-
-
-
-
- 返回
-
-
-
- 今日情绪
-
-
-
-
-
-
- {{ item.value || '--' }}
-
-
- {{ item.name || '--'}}
-
-
-
-
- {{ item.result || '暂无数据'}}
-
-
-
-
-
-
-
-
-
-
{{ item.time || '--' }}
-
-
+
+
+
+
+ 返回
+
+
+
+ 今日情绪
+
+
+
+
+
+
+ {{ item.value || "--" }}
+
+
+ {{ item.name || "--" }}
+
+
+
+
+ {{ item.result || "暂无数据" }}
+
+
+
+
+
+
+
+
+
{{ item.time || "--" }}
+
+
+
diff --git a/src/views/health/psychological/index.vue b/src/views/health/psychological/index.vue
index d9a847a..f10a21f 100644
--- a/src/views/health/psychological/index.vue
+++ b/src/views/health/psychological/index.vue
@@ -1,301 +1,344 @@
-
-
-
-
- 返回
-
-
-
-
-
-
-
-
{{item.text}}
-
-
-
-
+
+
+
+
+ 返回
+
+
+
+
+
+
+
+
{{ item.text }}
+
+
-
-
+
+
+
+
+
-
+
+
+
+
+
+
+ {{ titleLeft }}
+
+
+
+
-
-
-
-
-
-
-
+
+
+
+
+
+
+
-
-
-
监测次数:{{ monitoringCount || '0' }}次
-
+
+
+
监测次数:{{ monitoringCount || "0" }}次
+
-
+
-
-
+
+
-
-
-
-
-
+
+
+
+
+
-
{{ item.text || '--' }}
-
+
{{ item.text || "--" }}
+
-
- {{ item.count ? item.count + '次' : '0次'}}
-
-
-
-
-
+
+ {{
+ item.count ? item.count + "次" : "0次"
+ }}
+
+
+
+
+
-
+
-
-
-
-
- {{ item.label || '--' }}
-
+
+
+
+
+ {{ item.label || "--" }}
+
-
- {{ item.value || '--' }}
-
+
+ {{
+ item.value || "--"
+ }}
+
-
- {{ item.time || '--' }}
-
-
-
-
+
+ {{ item.time || "--" }}
+
-
-
-
-
+
+
+
+
+
+
+
-
+
-
-
-
-
结果解读
-
-
-
暂无数据
-
-
-
-
+
+
+
+
结果解读
+
+
+
暂无数据
+
+
+
+
-
-
-
-
结果解读
+
+
+
+
结果解读
-
{{ result }}
+
+ {{ result }}
+
-
{{ advice }}
-
+
{{
+ advice
+ }}
+
-
-
友情提示:
-
如果您发现抑郁倾向分值升高或处于轻度水平,不需要过度紧张,这可能是由正常的情绪波动或者生活习惯(睡眠时间、运动量等)的改变造成的。如果您发现抑郁倾向分值连续7天及以上处于中度或重度水平,建议您寻求家人朋友或心理咨询师的帮助,及早进行干预。
-
+
+
友情提示:
+
如果您发现焦虑倾向分值升高或处于轻度水平,不需要过度紧张,这可能是由正常的情绪波动或者生活习惯(睡眠时间、运动量等)的改变造成的。如果您发现焦虑倾向分值连续7天及以上处于中度或重度水平,建议您寻求家人朋友或心理咨询师的帮助,及早进行干预。
+
-
-
温馨提示:
-
{{ warmTips }}
-
-
+
+
温馨提示:
+
{{ warmTips }}
+
+
-
-
-
{{ surveyTitle }}
-
-
-
- {{ item.days }}
- 天
-
+
+
+
{{ surveyTitle }}
+
+
+
+ {{
+ item.days
+ }}
+ 天
+
-
{{ item.text }}
-
-
-
-
-
-
暂无数据
-
-
-
-
+
{{ item.text }}
-
-
+
+
+
+
+
暂无数据
+
+
+
-
-
-
-
-
-
-
-
-
-
-
-
总评
-
{{ item. summary}}
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
-
-
-
连续佩戴两周产生对比数据
+
+
+
总评
+
+ {{ item.summary }}
+
+
+
+
-
-
-
-
+
+
+
+
连续佩戴两周产生对比数据
+
+
+
+
+
+
+
diff --git a/src/views/psychological-modeling/index.vue b/src/views/psychological-modeling/index.vue
index 19234af..9377d8e 100644
--- a/src/views/psychological-modeling/index.vue
+++ b/src/views/psychological-modeling/index.vue
@@ -1,382 +1,405 @@
-
-
-
- 返回
-
-
-
-
-
-
-
-
温馨提醒:
-
- {{ tips }}
-
-
-
-
-
-
-
第一步
-
-
情绪初始化评估
-
-
- 已完成
-
-
待完成
-
-
- 完成一次“情绪初始化评估”,有助于建立您的个人情绪模型。
-
-
- 去完成
-
-
+
+
+
+ 返回
+
+
+
+
+
+
+
+
温馨提醒:
+
+ {{ tips }}
+
+
+
+
+
+
+
第一步
+
+
情绪初始化评估
+
+
+ 已完成
+
+
待完成
+
+
+ 完成一次“情绪初始化评估”,有助于建立您的个人情绪模型。
+
+
+ 去完成
+
+
-
-
-
第二步
-
-
连续佩戴两小时
-
-
- 已完成
-
-
{{ stateText}}
-
-
-
-
-
- 请连续佩戴不低于2小时,有助于为您输出更加精准的情绪分析指标。
-
-
-
- 建模已完成
-
-
-
-
+
+
+
第二步
+
+
连续佩戴两小时
+
+
+ 已完成
+
+
{{ stateText }}
+
+
+
+
+
+ 请连续佩戴不低于2小时,有助于为您输出更加精准的情绪分析指标。
+
+
+
+ 建模已完成
+
+
+
From 26f5095a19ef711e0533ec7dfc147174b5a1ceb7 Mon Sep 17 00:00:00 2001
From: chenJinxu <2183691628@qq.com>
Date: Thu, 18 Jan 2024 16:47:05 +0800
Subject: [PATCH 08/14] =?UTF-8?q?fix=20-=20c1=E5=90=8E=E5=8F=B0=E8=AE=BE?=
=?UTF-8?q?=E5=A4=87=E5=8A=9F=E8=80=97=E6=9F=A5=E7=9C=8B=E9=A1=B5=E9=9D=A2?=
=?UTF-8?q?=20=20=20=20=20-=20=E4=BF=AE=E5=A4=8D=20=E8=AE=BE=E5=A4=87?=
=?UTF-8?q?=E7=8A=B6=E6=80=81=E6=97=B6=E9=97=B4=E6=88=B3=E8=BD=AC=E6=8D=A2?=
=?UTF-8?q?=E9=94=99=E8=AF=AF=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 | 9 +-
src/config/models.js | 2 +-
.../gps-card-frontend/device-power/index.vue | 711 ++++++++++--------
3 files changed, 402 insertions(+), 320 deletions(-)
diff --git a/README.md b/README.md
index ff1a7a3..c9098d1 100644
--- a/README.md
+++ b/README.md
@@ -896,4 +896,11 @@ update
`2024.1.3`
fix
- 心理监测详情
- - 修复 心理切换按钮导致 ”今天“ 日期参数异常的问题
\ No newline at end of file
+ - 修复 心理切换按钮导致 ”今天“ 日期参数异常的问题
+
+
+## v1.0.115
+`2024.1.4`
+fix
+- c1后台设备功耗查看页面
+ - 修复 设备状态时间戳转换错误的问题
\ No newline at end of file
diff --git a/src/config/models.js b/src/config/models.js
index b71455e..a46e2a4 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.115F'; //版本号
+export const VERSION_MODEL = '1.0.116F'; //版本号
export const IMAGE_URL = {
production: 'http://zfb.ssjlai.com/web/',
test: 'http://zfb.ssjlai.com/web/',
diff --git a/src/views/gps-card-frontend/device-power/index.vue b/src/views/gps-card-frontend/device-power/index.vue
index 268ee75..174a3ca 100644
--- a/src/views/gps-card-frontend/device-power/index.vue
+++ b/src/views/gps-card-frontend/device-power/index.vue
@@ -6,362 +6,437 @@
* @description:
-->
-
-
-
-
- 返回
-
-
-
-
-
-
最近一次离线时间:{{ lastTime }}
-
-
-
-
-
+
+
+
+
+ 返回
+
+
+
+
+
+
+ 最近一次离线时间:{{ lastTime }}
+
+
+
+
+
+
+
From a7364172312a87792ce76421d647744802cf97bb Mon Sep 17 00:00:00 2001
From: chenJinxu <2183691628@qq.com>
Date: Fri, 26 Jan 2024 15:13:22 +0800
Subject: [PATCH 09/14] =?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=E6=94=B9=E6=88=90=E2=80=98=E6=8A=91?=
=?UTF-8?q?=E9=83=81=E2=80=99?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
README.md | 7 ++++++-
src/config/models.js | 14 +++++++-------
src/views/health/psychological-main/index.vue | 6 +++---
src/views/health/psychological/index.vue | 8 ++++----
src/views/health/psychological/report/index.vue | 2 +-
.../health/psychological/report/report-entry.vue | 2 +-
src/views/psychological-modeling/index.vue | 4 ++--
7 files changed, 24 insertions(+), 19 deletions(-)
diff --git a/README.md b/README.md
index c9098d1..f5df5d9 100644
--- a/README.md
+++ b/README.md
@@ -903,4 +903,9 @@ fix
`2024.1.4`
fix
- c1后台设备功耗查看页面
- - 修复 设备状态时间戳转换错误的问题
\ No newline at end of file
+ - 修复 设备状态时间戳转换错误的问题
+
+## v1.0.116
+`2024.1.26`
+update
+- ‘焦虑’文字改成‘抑郁’
\ No newline at end of file
diff --git a/src/config/models.js b/src/config/models.js
index a46e2a4..ae22ece 100644
--- a/src/config/models.js
+++ b/src/config/models.js
@@ -26,15 +26,15 @@ export const BaiduStatisticsModel = {
};
// 情绪模型
export const EmotionModel = {
- // 焦虑
+ // 抑郁
depression: {
- name: '焦虑',
+ name: '抑郁',
type: 2,
- title1: '焦虑倾向',
- article1: `
设备所检测的是个体的焦虑倾向。通过将个人的生理特征(脉搏波、心率变异性等)和行为习惯(运动、作息等)与临床诊断为焦虑症的患者的相应特征进行对比,判断出个体的焦虑倾向(即焦虑症的可能性)程度。焦虑倾向持续的时间越长、程度越严重,代表患有焦虑症的风险就越大。
`,
- title2: '焦虑倾向算法原理',
- article2: `
1.研究发现,焦虑症等情绪障碍可能会引起个体外周生理系统反应的钝化,因此患者可能在面临危险、压力等应激状态下表现出较低的生理反应唤醒水平。这一点能够通过皮肤电、心率变异性等生理特征的周期性变化来判断。
-
2.焦虑症等情绪障碍的患者会出现明显的失眠、运动少、和生物钟紊乱,算法能够有效分析判断出这些异常的行为特征。
`
+ title1: '抑郁倾向',
+ article1: `
设备所检测的是个体的抑郁倾向。通过将个人的生理特征(脉搏波、心率变异性等)和行为习惯(运动、作息等)与临床诊断为抑郁症的患者的相应特征进行对比,判断出个体的抑郁倾向(即抑郁症的可能性)程度。抑郁倾向持续的时间越长、程度越严重,代表患有抑郁症的风险就越大。
`,
+ title2: '抑郁倾向算法原理',
+ article2: `
1.研究发现,抑郁症等情绪障碍可能会引起个体外周生理系统反应的钝化,因此患者可能在面临危险、压力等应激状态下表现出较低的生理反应唤醒水平。这一点能够通过皮肤电、心率变异性等生理特征的周期性变化来判断。
+
2.抑郁症等情绪障碍的患者会出现明显的失眠、运动少、和生物钟紊乱,算法能够有效分析判断出这些异常的行为特征。
`
},
// 压力
diff --git a/src/views/health/psychological-main/index.vue b/src/views/health/psychological-main/index.vue
index 2bead6c..3cb8818 100644
--- a/src/views/health/psychological-main/index.vue
+++ b/src/views/health/psychological-main/index.vue
@@ -55,7 +55,7 @@ export default {
data() {
return {
healhtList: [
- /* { value: 40, name: '焦虑指数', class: 'depression',result: '无焦虑倾向', time: '17:52', img: require('@/assets/img/regardless.png') },
+ /* { value: 40, name: '抑郁指数', class: 'depression',result: '无抑郁倾向', time: '17:52', img: require('@/assets/img/regardless.png') },
{ value: 55, name: '压力指数', class: 'stress', result: '轻度压力', time: '17:52', img: require('@/assets/img/regardless.png') },
{ value: 75, name: '疲劳指数', class: 'tiredness', result: '中度疲劳指数', time: '17:52', img: require('@/assets/img/moderate.png') }, */
],
@@ -156,10 +156,10 @@ export default {
? this.calcImg(data.StressLevel, "stress")
: "",
},
- // 焦虑指数
+ // 抑郁指数
{
value: data.DepScore,
- name: "焦虑指数",
+ name: "抑郁指数",
class: "depression",
result: data.DepDesc,
time: data.DepMeasureUpdateTime
diff --git a/src/views/health/psychological/index.vue b/src/views/health/psychological/index.vue
index f10a21f..11d9b75 100644
--- a/src/views/health/psychological/index.vue
+++ b/src/views/health/psychological/index.vue
@@ -198,7 +198,7 @@
友情提示:
如果您发现焦虑倾向分值升高或处于轻度水平,不需要过度紧张,这可能是由正常的情绪波动或者生活习惯(睡眠时间、运动量等)的改变造成的。如果您发现焦虑倾向分值连续7天及以上处于中度或重度水平,建议您寻求家人朋友或心理咨询师的帮助,及早进行干预。如果您发现抑郁倾向分值升高或处于轻度水平,不需要过度紧张,这可能是由正常的情绪波动或者生活习惯(睡眠时间、运动量等)的改变造成的。如果您发现抑郁倾向分值连续7天及以上处于中度或重度水平,建议您寻求家人朋友或心理咨询师的帮助,及早进行干预。
@@ -266,7 +266,7 @@
@@ -288,7 +288,7 @@
小科普
- 焦虑症是一种心理疾病,严重时可发展为精神障碍。然而当我们体会到了痛苦、悲伤、和郁闷等负面情绪,并不意味着我们就是焦虑症。日常的短时的喜、怒、哀、乐,都是正常的情绪变化,然而长期的低落情绪、兴趣缺失等可能会让我们有焦虑的风险。
+ 抑郁症是一种心理疾病,严重时可发展为精神障碍。然而当我们体会到了痛苦、悲伤、和郁闷等负面情绪,并不意味着我们就是抑郁症。日常的短时的喜、怒、哀、乐,都是正常的情绪变化,然而长期的低落情绪、兴趣缺失等可能会让我们有抑郁的风险。
@@ -323,7 +323,7 @@ export default {
psyList: [
{ name: "tiredness", text: "疲劳", value: 0 },
{ name: "stress", text: "压力", value: 1 },
- { name: "depression", text: "焦虑", value: 2 },
+ { name: "depression", text: "抑郁", value: 2 },
],
// 当前情绪下标
psyCurrent: 0,
diff --git a/src/views/health/psychological/report/index.vue b/src/views/health/psychological/report/index.vue
index 132ef2c..49aa600 100644
--- a/src/views/health/psychological/report/index.vue
+++ b/src/views/health/psychological/report/index.vue
@@ -673,7 +673,7 @@ export default {
title = "压力";
break;
case 2:
- title = "焦虑";
+ title = "抑郁";
break;
case 3:
title = "疲劳";
diff --git a/src/views/health/psychological/report/report-entry.vue b/src/views/health/psychological/report/report-entry.vue
index 7fefbbb..be5d399 100644
--- a/src/views/health/psychological/report/report-entry.vue
+++ b/src/views/health/psychological/report/report-entry.vue
@@ -41,7 +41,7 @@
diff --git a/src/views/psychological-modeling/index.vue b/src/views/psychological-modeling/index.vue
index 9377d8e..56eddaf 100644
--- a/src/views/psychological-modeling/index.vue
+++ b/src/views/psychological-modeling/index.vue
@@ -108,8 +108,8 @@ export default {
},
tips() {
return this.info.isFirstModeling === 1
- ? "首次佩戴,需完成以下2步,建立情绪模型。完成初始化建模后,将为您计算焦虑、压力、疲劳分值。"
- : "由于您长时间未佩戴手表,需重新建模,请连续佩戴不低于2小时,佩戴完成后,将为您计算焦虑、压力、疲劳的分值。";
+ ? "首次佩戴,需完成以下2步,建立情绪模型。完成初始化建模后,将为您计算抑郁、压力、疲劳分值。"
+ : "由于您长时间未佩戴手表,需重新建模,请连续佩戴不低于2小时,佩戴完成后,将为您计算抑郁、压力、疲劳的分值。";
},
},
mounted() {
From 68140634d146b07e510f22d01a1c49738b654b65 Mon Sep 17 00:00:00 2001
From: chenJinxu <2183691628@qq.com>
Date: Fri, 26 Jan 2024 15:21:35 +0800
Subject: [PATCH 10/14] =?UTF-8?q?=E4=BF=AE=E6=94=B9=20=E6=B7=98=E5=AE=9D?=
=?UTF-8?q?=E9=95=9C=E5=83=8F=E5=9C=B0=E5=9D=80?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
setup_development.sh | 2 +-
setup_production.sh | 2 +-
setup_test.sh | 2 +-
3 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/setup_development.sh b/setup_development.sh
index d43b908..5f1276d 100644
--- a/setup_development.sh
+++ b/setup_development.sh
@@ -7,7 +7,7 @@
# @description:
###
npm -v
-npm config set registry https://registry.npm.taobao.org
+npm config set registry https://registry.npmmirror.com
npm install
npm run build-dev
image_version=`date +%Y%m%d%H%M`;
diff --git a/setup_production.sh b/setup_production.sh
index 1a9109f..49bb0e8 100644
--- a/setup_production.sh
+++ b/setup_production.sh
@@ -7,7 +7,7 @@
# @description:
###
npm -v
-npm config set registry https://registry.npm.taobao.org
+npm config set registry https://registry.npmmirror.com
npm install
npm run build
image_version=$version;
diff --git a/setup_test.sh b/setup_test.sh
index c0cae5b..e053b20 100644
--- a/setup_test.sh
+++ b/setup_test.sh
@@ -8,7 +8,7 @@
###
#!/bin/bash
npm -v
-npm config set registry https://registry.npm.taobao.org
+npm config set registry https://registry.npmmirror.com
npm install
npm run build-test
image_version=$version;
From 2635203dda348dff7ea5e3ce4fc2beee3505dcac Mon Sep 17 00:00:00 2001
From: chenJinxu <2183691628@qq.com>
Date: Thu, 21 Mar 2024 11:15:52 +0800
Subject: [PATCH 11/14] =?UTF-8?q?update=20-=20=E2=80=98=E6=8A=91=E9=83=81?=
=?UTF-8?q?=E2=80=99=E6=96=87=E5=AD=97=20=E9=80=9A=E8=BF=87=E9=A1=B5?=
=?UTF-8?q?=E9=9D=A2=E4=BC=A0=E8=BF=87=E6=9D=A5=E7=9A=84=E5=8F=82=E6=95=B0?=
=?UTF-8?q?=20=E6=94=B9=E6=88=90=E2=80=98=E7=84=A6=E8=99=91=E2=80=99?=
=?UTF-8?q?=EF=BC=8C=E5=90=A6=E5=88=99=E4=B8=8D=E5=8F=98?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
README.md | 8 +-
src/config/models.js | 21 ++-
src/main.js | 4 +-
src/store/index.js | 12 +-
src/utils/index.js | 34 +++-
src/views/health/psychological-main/index.vue | 32 ++--
src/views/health/psychological/index.vue | 163 +++++++-----------
.../health/psychological/report/index.vue | 106 +++++-------
src/views/psychological-modeling/index.vue | 71 ++++----
9 files changed, 217 insertions(+), 234 deletions(-)
diff --git a/README.md b/README.md
index f5df5d9..d0a13d4 100644
--- a/README.md
+++ b/README.md
@@ -908,4 +908,10 @@ fix
## v1.0.116
`2024.1.26`
update
-- ‘焦虑’文字改成‘抑郁’
\ No newline at end of file
+- ‘焦虑’文字改成‘抑郁’
+
+
+## v1.0.117
+`2024.3.21`
+update
+- ‘抑郁’文字 通过页面传过来的参数 改成‘焦虑’,否则不变
\ No newline at end of file
diff --git a/src/config/models.js b/src/config/models.js
index ae22ece..cf89513 100644
--- a/src/config/models.js
+++ b/src/config/models.js
@@ -5,7 +5,10 @@
* @FilePath: \TelpoH5FrontendWeb\src\config\models.js
* @description:
*/
-export const VERSION_MODEL = '1.0.116F'; //版本号
+import store from "@/store";
+// 情绪模型
+const appTypeList = ['1'];
+export const VERSION_MODEL = '1.0.117F'; //版本号
export const IMAGE_URL = {
production: 'http://zfb.ssjlai.com/web/',
test: 'http://zfb.ssjlai.com/web/',
@@ -24,17 +27,19 @@ export const BaiduStatisticsModel = {
test: "https://hm.baidu.com/hm.js?edb76b471e997167b7782c1513382771", // 随手精灵百度流量统计 测试环境
development: "https://hm.baidu.com/hm.js?edb76b471e997167b7782c1513382771", // 随手精灵百度流量统计 测试环境
};
-// 情绪模型
+
+// 焦虑文字
+export const anxietyText = appTypeList.indexOf(store.getters.appType) >-1 ? `焦虑`: `抑郁`
export const EmotionModel = {
// 抑郁
depression: {
- name: '抑郁',
+ name: anxietyText,
type: 2,
- title1: '抑郁倾向',
- article1: `
设备所检测的是个体的抑郁倾向。通过将个人的生理特征(脉搏波、心率变异性等)和行为习惯(运动、作息等)与临床诊断为抑郁症的患者的相应特征进行对比,判断出个体的抑郁倾向(即抑郁症的可能性)程度。抑郁倾向持续的时间越长、程度越严重,代表患有抑郁症的风险就越大。
`,
- title2: '抑郁倾向算法原理',
- article2: `
1.研究发现,抑郁症等情绪障碍可能会引起个体外周生理系统反应的钝化,因此患者可能在面临危险、压力等应激状态下表现出较低的生理反应唤醒水平。这一点能够通过皮肤电、心率变异性等生理特征的周期性变化来判断。
-
2.抑郁症等情绪障碍的患者会出现明显的失眠、运动少、和生物钟紊乱,算法能够有效分析判断出这些异常的行为特征。
`
+ title1: `${anxietyText}倾向`,
+ article1: `
设备所检测的是个体的${anxietyText}倾向。通过将个人的生理特征(脉搏波、心率变异性等)和行为习惯(运动、作息等)与临床诊断为${anxietyText}症的患者的相应特征进行对比,判断出个体的${anxietyText}倾向(即${anxietyText}症的可能性)程度。${anxietyText}倾向持续的时间越长、程度越严重,代表患有${anxietyText}症的风险就越大。
`,
+ title2: `${anxietyText}倾向算法原理`,
+ article2: `
1.研究发现,${anxietyText}症等情绪障碍可能会引起个体外周生理系统反应的钝化,因此患者可能在面临危险、压力等应激状态下表现出较低的生理反应唤醒水平。这一点能够通过皮肤电、心率变异性等生理特征的周期性变化来判断。
+
2.${anxietyText}症等情绪障碍的患者会出现明显的失眠、运动少、和生物钟紊乱,算法能够有效分析判断出这些异常的行为特征。
`
},
// 压力
diff --git a/src/main.js b/src/main.js
index 6a66672..1e17f7e 100644
--- a/src/main.js
+++ b/src/main.js
@@ -14,9 +14,10 @@ import '@/assets/css/reset.scss';
import dayjs from 'dayjs';
// ui库按需引入
import 'vant/lib/index.css';
+import { replaceAll } from '@/utils';
// 引入echarts
import * as echarts from 'echarts';
-import { BaiduStatisticsModel } from '@/config/models';
+import { BaiduStatisticsModel} from '@/config/models';
import {
Button,
Calendar,
@@ -128,6 +129,7 @@ Vue.config.productionTip = false;
Vue.prototype.$dayjs = dayjs;
Vue.prototype.$echarts = echarts;
Vue.prototype.$bus = new Vue();
+Vue.prototype.$replaceAll = replaceAll;
router.afterEach((to, from, next) => {
// 创建百度统计js
setTimeout(()=>{
diff --git a/src/store/index.js b/src/store/index.js
index fadbe53..04eb52a 100644
--- a/src/store/index.js
+++ b/src/store/index.js
@@ -24,6 +24,7 @@ export default new Vuex.Store({
fromSsjl: '',
active: null, //点击左边树形图下标
tabClick: '', //心理监测点击tab
+ appType: '', //应用类型
},
mutations: {
imei(state, imei) {
@@ -70,6 +71,11 @@ export default new Vuex.Store({
state.tabClick = tabClick;
window.localStorage[prefix + 'tabClick'] = tabClick;
},
+ appType(state, appType) {
+ state.appType = appType;
+ window.localStorage[prefix + 'appType'] = appType;
+ },
+
},
getters: {
@@ -117,7 +123,11 @@ export default new Vuex.Store({
if (state.tabClick != '') return state.tabClick;
return window.localStorage[prefix + 'tabClick'] == null ? '' : window.localStorage[prefix + 'tabClick'];
},
-
+ appType: state => {
+ if (state.appType != '') return state.appType;
+ return window.localStorage[prefix + 'appType'] == null ? '' : window.localStorage[prefix + 'appType'];
+ },
+
},
actions: {},
modules: {}
diff --git a/src/utils/index.js b/src/utils/index.js
index db99691..0666ba1 100644
--- a/src/utils/index.js
+++ b/src/utils/index.js
@@ -5,7 +5,7 @@
* @FilePath: \AntpayFrontEnd\src\utils\index.js
* @description: 工具类
*/
-
+import store from "@/store";
/**
* 判断是否为空
@@ -88,4 +88,34 @@ export function isShowAntpay(array) {
} else {
return false;
}
-}
\ No newline at end of file
+}
+
+// 将传入内容的某个文字全部替换成指定的文字
+/**
+ *
+ * @param {*} target 目标字符串
+ * @param {*} searchValue 要搜索和替换的子串
+ * @param {*} replacement 替换的新字符串
+ * @returns
+ */
+export function replaceAll(target, searchValue, replacement) {
+ // 应用类型,目前1 是健康好蕴,其他则不替换
+ const appTypeList = ['1'];
+ const appType = store.getters.appType;
+ if(appTypeList.indexOf(appType) > -1) {
+ if(isNotNull(target) && isNotNull(searchValue)) {
+ if(target.includes(searchValue)) {
+ return target.replace(new RegExp(searchValue, 'g'), replacement);
+ } else {
+ return target
+ }
+
+ } else {
+ return target
+ }
+
+ } else {
+ return target
+ }
+
+ }
\ No newline at end of file
diff --git a/src/views/health/psychological-main/index.vue b/src/views/health/psychological-main/index.vue
index 3cb8818..560670e 100644
--- a/src/views/health/psychological-main/index.vue
+++ b/src/views/health/psychological-main/index.vue
@@ -12,12 +12,7 @@
-
+
{{ item.value || "--" }}
@@ -48,12 +43,13 @@