|
@ -27,6 +27,60 @@ |
|
|
</div> |
|
|
</div> |
|
|
</div> |
|
|
</div> |
|
|
</div> |
|
|
</div> |
|
|
|
|
|
<div class="app-container"> |
|
|
|
|
|
<div class="dis" style="width: 100%"> |
|
|
|
|
|
<div style="flex: 1; margin-right: 20px"> |
|
|
|
|
|
<el-card shadow="always"> |
|
|
|
|
|
<div class="dis title-box"> |
|
|
|
|
|
<span class="header-title">体质分布</span> |
|
|
|
|
|
<div class="dis"></div> |
|
|
|
|
|
</div> |
|
|
|
|
|
<div style="height: 300px" v-loading="loading"> |
|
|
|
|
|
<div id="physique" style="width: 100%"></div> |
|
|
|
|
|
</div> |
|
|
|
|
|
</el-card> |
|
|
|
|
|
</div> |
|
|
|
|
|
<div style="flex: 1"> |
|
|
|
|
|
<el-card shadow="always"> |
|
|
|
|
|
<div class="dis title-box"> |
|
|
|
|
|
<span class="header-title">体态评估(TAPS)</span> |
|
|
|
|
|
<div class="dis"> |
|
|
|
|
|
</div> |
|
|
|
|
|
</div> |
|
|
|
|
|
<div style="height: 300px" v-loading="loading"> |
|
|
|
|
|
<div id="posture" style="width: 100%"></div> |
|
|
|
|
|
</div> |
|
|
|
|
|
</el-card> |
|
|
|
|
|
</div> |
|
|
|
|
|
</div> |
|
|
|
|
|
</div> |
|
|
|
|
|
<div class="app-container"> |
|
|
|
|
|
<div class="dis" style="width: 100%"> |
|
|
|
|
|
<div style="flex: 1; margin-right: 20px"> |
|
|
|
|
|
<el-card shadow="always"> |
|
|
|
|
|
<div class="dis title-box"> |
|
|
|
|
|
<span class="header-title">失眠评估(PHQ-9)</span> |
|
|
|
|
|
<div class="dis"></div> |
|
|
|
|
|
</div> |
|
|
|
|
|
<div style="height: 300px" v-loading="loading"> |
|
|
|
|
|
<div id="agrypnia" style="width: 100%"></div> |
|
|
|
|
|
</div> |
|
|
|
|
|
</el-card> |
|
|
|
|
|
</div> |
|
|
|
|
|
<div style="flex: 1"> |
|
|
|
|
|
<el-card shadow="always"> |
|
|
|
|
|
<div class="dis title-box"> |
|
|
|
|
|
<span class="header-title">焦虑(HAMD-24)</span> |
|
|
|
|
|
<div class="dis"> |
|
|
|
|
|
</div> |
|
|
|
|
|
</div> |
|
|
|
|
|
<div style="height: 300px" v-loading="loading"> |
|
|
|
|
|
<div id="anxiety" style="width: 100%"></div> |
|
|
|
|
|
</div> |
|
|
|
|
|
</el-card> |
|
|
|
|
|
</div> |
|
|
|
|
|
</div> |
|
|
|
|
|
</div> |
|
|
</div> |
|
|
</div> |
|
|
</template> |
|
|
</template> |
|
|
|
|
|
|
|
@ -39,7 +93,9 @@ |
|
|
} from "@/api/indexCom.js"; |
|
|
} from "@/api/indexCom.js"; |
|
|
import { |
|
|
import { |
|
|
diagnoseEcharts, |
|
|
diagnoseEcharts, |
|
|
systemEcharts |
|
|
systemEcharts, |
|
|
|
|
|
physiqueEcharts, |
|
|
|
|
|
postureEcharts |
|
|
} from "./index"; |
|
|
} from "./index"; |
|
|
export default { |
|
|
export default { |
|
|
name: "Post", |
|
|
name: "Post", |
|
@ -47,15 +103,18 @@ |
|
|
mixins: [resize], |
|
|
mixins: [resize], |
|
|
data() { |
|
|
data() { |
|
|
return { |
|
|
return { |
|
|
loading: false, |
|
|
|
|
|
diagnoseValue: null, // 病种 |
|
|
|
|
|
systemValue: null, // 体系 |
|
|
|
|
|
queryParams: { |
|
|
queryParams: { |
|
|
param: { |
|
|
param: { |
|
|
startTime: "", |
|
|
startTime: "", |
|
|
endTime: "", |
|
|
endTime: "", |
|
|
}, |
|
|
}, |
|
|
}, |
|
|
}, |
|
|
|
|
|
loading: false, |
|
|
|
|
|
diagnoseValue: null, // 病种 |
|
|
|
|
|
systemValue: null, // 体系 |
|
|
|
|
|
physiqueValue: null, // 体质 |
|
|
|
|
|
postureValue:null, // 体态 |
|
|
|
|
|
|
|
|
// 体系中文 |
|
|
// 体系中文 |
|
|
systemObj: { |
|
|
systemObj: { |
|
|
"yxfpz": "隐形肥胖型", //隐形肥胖型 |
|
|
"yxfpz": "隐形肥胖型", //隐形肥胖型 |
|
@ -67,7 +126,19 @@ |
|
|
"xsx": "消瘦型", //消瘦型 |
|
|
"xsx": "消瘦型", //消瘦型 |
|
|
"dzfx": "低脂肪型", //低脂肪型 |
|
|
"dzfx": "低脂肪型", //低脂肪型 |
|
|
"ydyx": "运动员型", //运动员型 |
|
|
"ydyx": "运动员型", //运动员型 |
|
|
} |
|
|
}, |
|
|
|
|
|
// 体质 |
|
|
|
|
|
physiqueObj: { |
|
|
|
|
|
"phz": "平和质", //平和质 |
|
|
|
|
|
"qxz": "气虚质", //气虚质 |
|
|
|
|
|
"yangxz": "阳虚质", //阳虚质 |
|
|
|
|
|
"yinxz": "阴虚质", //阴虚质 |
|
|
|
|
|
"tsz": "痰湿质", //痰湿质 |
|
|
|
|
|
"srz": "湿热质", //湿热质 |
|
|
|
|
|
"xyz": "血瘀质", //血瘀质 |
|
|
|
|
|
"qyz": "气郁质", //气郁质 |
|
|
|
|
|
"tlz": "特禀质", //特禀质 |
|
|
|
|
|
}, |
|
|
}; |
|
|
}; |
|
|
}, |
|
|
}, |
|
|
created() { |
|
|
created() { |
|
@ -106,6 +177,35 @@ |
|
|
this.systemValue.push(data) |
|
|
this.systemValue.push(data) |
|
|
} |
|
|
} |
|
|
this.handleSystem() |
|
|
this.handleSystem() |
|
|
|
|
|
// 体质 |
|
|
|
|
|
this.physiqueValue = [] |
|
|
|
|
|
delete zytz.total |
|
|
|
|
|
for (let key in zytz) { |
|
|
|
|
|
let data = { |
|
|
|
|
|
name: this.physiqueObj[key], |
|
|
|
|
|
value: zytz[key], |
|
|
|
|
|
} |
|
|
|
|
|
this.physiqueValue.push(data) |
|
|
|
|
|
} |
|
|
|
|
|
this.handlePhysique() |
|
|
|
|
|
// 体态 |
|
|
|
|
|
this.postureValue = [{ |
|
|
|
|
|
value: ttfb.score1, |
|
|
|
|
|
name: "1分" |
|
|
|
|
|
},{ |
|
|
|
|
|
value: ttfb.score2, |
|
|
|
|
|
name: "2分" |
|
|
|
|
|
},{ |
|
|
|
|
|
value: ttfb.score3, |
|
|
|
|
|
name: "3分" |
|
|
|
|
|
},{ |
|
|
|
|
|
value: ttfb.score4, |
|
|
|
|
|
name: "4分" |
|
|
|
|
|
},{ |
|
|
|
|
|
value: ttfb.score5, |
|
|
|
|
|
name: "5分" |
|
|
|
|
|
}] |
|
|
|
|
|
this.handlePosture() |
|
|
}); |
|
|
}); |
|
|
this.loading = false; |
|
|
this.loading = false; |
|
|
} catch (e) {} |
|
|
} catch (e) {} |
|
@ -144,6 +244,35 @@ |
|
|
window.onresize = myChart.resize; |
|
|
window.onresize = myChart.resize; |
|
|
}); |
|
|
}); |
|
|
}, |
|
|
}, |
|
|
|
|
|
// 体质 |
|
|
|
|
|
handlePhysique() { |
|
|
|
|
|
physiqueEcharts.series[0].data = this.physiqueValue?.map((item) => { |
|
|
|
|
|
return item.value; |
|
|
|
|
|
}); |
|
|
|
|
|
physiqueEcharts.xAxis.data = this.physiqueValue?.map((item) => { |
|
|
|
|
|
return item.name; |
|
|
|
|
|
}); |
|
|
|
|
|
this.$nextTick(() => { |
|
|
|
|
|
var myChart = echarts.init(document.getElementById("physique"), null, { |
|
|
|
|
|
height: 300, |
|
|
|
|
|
}); |
|
|
|
|
|
myChart.setOption(physiqueEcharts, true); |
|
|
|
|
|
myChart.resize(); |
|
|
|
|
|
window.onresize = myChart.resize; |
|
|
|
|
|
}); |
|
|
|
|
|
}, |
|
|
|
|
|
// 体态评估 |
|
|
|
|
|
handlePosture() { |
|
|
|
|
|
postureEcharts.series[0].data = this.postureValue |
|
|
|
|
|
this.$nextTick(() => { |
|
|
|
|
|
var myChart = echarts.init(document.getElementById("posture"), null, { |
|
|
|
|
|
height: 300, |
|
|
|
|
|
}); |
|
|
|
|
|
myChart.setOption(postureEcharts, true); |
|
|
|
|
|
myChart.resize(); |
|
|
|
|
|
window.onresize = myChart.resize; |
|
|
|
|
|
}); |
|
|
|
|
|
}, |
|
|
// 数据处理 查询类型判断参数 |
|
|
// 数据处理 查询类型判断参数 |
|
|
initial(_data, _type) { |
|
|
initial(_data, _type) { |
|
|
_data[0] = this.$moment(_data[0]).format("YYYY-MM-DD"); |
|
|
_data[0] = this.$moment(_data[0]).format("YYYY-MM-DD"); |
|
|