Browse Source

根据BMI结果判断是否显示筛查结论弹窗

newMaster
1747191978@qq.com 3 months ago
parent
commit
da9a6c969d
  1. BIN
      acupuncture-前台/src/views/screening/gzh.jpg
  2. 42
      acupuncture-前台/src/views/screening/h5eva.vue

BIN
acupuncture-前台/src/views/screening/gzh.jpg

Binary file not shown.

After

Width:  |  Height:  |  Size: 148 KiB

42
acupuncture-前台/src/views/screening/h5eva.vue

@ -272,6 +272,21 @@
</el-button>
</div>
<div class="hospital1">{{ tenantName || "- - - -" }}</div>
<el-dialog
class="popup"
title="筛查结论"
:visible.sync="open"
width="80%"
append-to-body
>
属于<span :class="`BIMTips${BMIVerdict[form['SCWJ-JL']]}`">{{
form["SCWJ-JL"] || "- - -"
}}</span
>型肥胖请关注南宁市第七人民医院公众号预约体重管理中心做进一步评估
<div>
<img src="./gzh.jpg" style="max-width: 100%" />
</div>
</el-dialog>
</div>
</template>
@ -287,6 +302,7 @@ export default {
name: "Notice",
data() {
return {
open: false,
loading: false,
disabled: true,
@ -343,6 +359,8 @@ export default {
正常: "2",
超重: "3",
肥胖: "4",
中度肥胖: "5",
重度肥胖: "5",
},
tips: "", //
tipsError: false, //
@ -750,15 +768,21 @@ export default {
if (bmi < 18.5) {
tips = "体重过轻";
}
if (bmi >= 18.5 && bmi < 23.9) {
if (bmi >= 18.5 && bmi < 24) {
tips = "正常";
}
if (bmi >= 24 && bmi < 27.9) {
if (bmi >= 24 && bmi < 28) {
tips = "超重";
}
if (bmi >= 28) {
if (bmi >= 28 && bmi < 30) {
tips = "肥胖";
}
if (bmi >= 30 && bmi < 40) {
tips = "中度肥胖";
}
if (bmi >= 40) {
tips = "重度肥胖";
}
this.form["SCWJ-JL"] = tips;
},
// - pdg
@ -873,6 +897,12 @@ export default {
this.disabled = false;
this.$modal.msgSuccess("提交成功");
});
//
//
let flat = this.BMIVerdict[this.form["SCWJ-JL"]];
if (flat >= 3) {
this.open = true;
}
});
}
});
@ -906,6 +936,9 @@ export default {
</script>
<style scoped src="@/assets/styles/common.css"></style>
<style scoped>
>>> .el-dialog__header {
padding-bottom: 0;
}
>>> .el-checkbox {
margin-right: 10px rtant;
}
@ -965,6 +998,9 @@ export default {
.BIMTips4 {
color: #ff9900;
}
.BIMTips5 {
color: red;
}
.item-radio {
display: block;
margin-bottom: 10px;

Loading…
Cancel
Save