|
|
@@ -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(() => { }) |
|
|
|