Browse Source

Merge branch 'feat' into develop

master
JinxChen 1 year ago
parent
commit
b277cb396c
1 changed files with 6 additions and 18 deletions
  1. +6
    -18
      src/views/health/psychological/index.vue

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

@@ -519,23 +519,6 @@ export default {
symbol: "circle",
symbolSize: 8, // 拐点圆的大小
areaStyle: {},
itemStyle: {
color: function(params) {
// 动态设置折线图远点颜色
let value = params.data;
let color = '';
if (value <= 40) {
color = "#62BD48";
} else if (value > 40 && value <= 65) {
color = "#FEC350";
} else if (value > 65 && value <= 80) {
color = "#F86825";
} else if (value > 80) {
color = "#EB1D15";
}
return color;
}
}
},
{
name: `轻度${this.emoName}倾向`,
@@ -893,7 +876,12 @@ export default {
this.emotionList.push(SevereDay);
// 图表数据
this.emotionData = data.ChartDatas.map(item => {
return item.Value;
return {
value: item.Value,
itemStyle: {
color: this.calcResultColor(item.Level)
}
};
});
// x轴显示数据
if(this.currentDays === 0) {


Loading…
Cancel
Save