|
@ -92,6 +92,7 @@ import { |
|
|
physiqueEcharts, |
|
|
physiqueEcharts, |
|
|
postureEcharts, |
|
|
postureEcharts, |
|
|
agrypniaEcharts, |
|
|
agrypniaEcharts, |
|
|
|
|
|
anxietyEcharts, |
|
|
} from "./index"; |
|
|
} from "./index"; |
|
|
export default { |
|
|
export default { |
|
|
name: "Post", |
|
|
name: "Post", |
|
@ -112,7 +113,7 @@ export default { |
|
|
physiqueValue: null, // 体质 |
|
|
physiqueValue: null, // 体质 |
|
|
postureValue: null, // 体态 |
|
|
postureValue: null, // 体态 |
|
|
agrypniaValue: null, // 失眠 |
|
|
agrypniaValue: null, // 失眠 |
|
|
|
|
|
anxietyValue: null, // 焦虑 |
|
|
// 体系中文 |
|
|
// 体系中文 |
|
|
systemObj: { |
|
|
systemObj: { |
|
|
yxfpz: "隐形肥胖型", //隐形肥胖型 |
|
|
yxfpz: "隐形肥胖型", //隐形肥胖型 |
|
@ -209,6 +210,12 @@ export default { |
|
|
this.agrypniaValue.push(smfb[key]); |
|
|
this.agrypniaValue.push(smfb[key]); |
|
|
} |
|
|
} |
|
|
this.handleAgrypnia(); |
|
|
this.handleAgrypnia(); |
|
|
|
|
|
// 焦虑度 |
|
|
|
|
|
this.anxietyValue = []; |
|
|
|
|
|
for (let key in jlfb) { |
|
|
|
|
|
this.anxietyValue.push(jlfb[key]); |
|
|
|
|
|
} |
|
|
|
|
|
this.handleAnxiety(); |
|
|
}); |
|
|
}); |
|
|
this.loading = false; |
|
|
this.loading = false; |
|
|
} catch (e) {} |
|
|
} catch (e) {} |
|
@ -285,10 +292,8 @@ export default { |
|
|
endTime: _data[1] + " " + "23:59:59", |
|
|
endTime: _data[1] + " " + "23:59:59", |
|
|
}; |
|
|
}; |
|
|
}, |
|
|
}, |
|
|
// 体质 |
|
|
// 失眠评估 |
|
|
handleAgrypnia() { |
|
|
handleAgrypnia() { |
|
|
console.log("this.agrypniaValue", this.agrypniaValue); |
|
|
|
|
|
|
|
|
|
|
|
agrypniaEcharts.series[0].data = this.agrypniaValue; |
|
|
agrypniaEcharts.series[0].data = this.agrypniaValue; |
|
|
this.$nextTick(() => { |
|
|
this.$nextTick(() => { |
|
|
var myChart = echarts.init(document.getElementById("agrypnia"), null, { |
|
|
var myChart = echarts.init(document.getElementById("agrypnia"), null, { |
|
@ -299,6 +304,18 @@ export default { |
|
|
window.onresize = myChart.resize; |
|
|
window.onresize = myChart.resize; |
|
|
}); |
|
|
}); |
|
|
}, |
|
|
}, |
|
|
|
|
|
// 焦虑评估 |
|
|
|
|
|
handleAnxiety() { |
|
|
|
|
|
anxietyEcharts.series[0].data = this.anxietyValue; |
|
|
|
|
|
this.$nextTick(() => { |
|
|
|
|
|
var myChart = echarts.init(document.getElementById("anxiety"), null, { |
|
|
|
|
|
height: 300, |
|
|
|
|
|
}); |
|
|
|
|
|
myChart.setOption(anxietyEcharts, true); |
|
|
|
|
|
myChart.resize(); |
|
|
|
|
|
window.onresize = myChart.resize; |
|
|
|
|
|
}); |
|
|
|
|
|
}, |
|
|
// 重新渲染图标 |
|
|
// 重新渲染图标 |
|
|
getRenew() { |
|
|
getRenew() { |
|
|
this.Linepatient(); |
|
|
this.Linepatient(); |
|
|