From c7d64da312576120b6252f91fea4e0052fd5f8dc Mon Sep 17 00:00:00 2001
From: chenyc <501753378@qq.com>
Date: 星期四, 13 二月 2025 23:42:36 +0800
Subject: [PATCH] 加汇总表
---
src/views/home/components/pingubiao/editDietary4.vue | 26 +++++++++++++++++++++-----
1 files changed, 21 insertions(+), 5 deletions(-)
diff --git a/src/views/home/components/pingubiao/editDietary4.vue b/src/views/home/components/pingubiao/editDietary4.vue
index 8c3fe23..8962cb1 100644
--- a/src/views/home/components/pingubiao/editDietary4.vue
+++ b/src/views/home/components/pingubiao/editDietary4.vue
@@ -114,8 +114,8 @@
根据2008年ISRNM推荐的指标进行诊断,满足以下4条诊断标准(每项中至少1项符合)考虑存在PEW
</td>
- <td colspan="1" style="font-family: 600;color: blue; font-weight: 700;">
- 合计满足 {{sum}} 项
+ <td colspan="1" style="font-family: 600;color: blue; font-weight: 700;" :style="{color:sum?.color}">
+ 合计满足{{sum.value}}项; {{sum.label}}
</td>
</tr>
@@ -190,7 +190,8 @@
肌肉指标:{
type: '',
input1: '',
- }
+ },
+ 结果:''
},
loading: false,
viewInfo:{
@@ -209,13 +210,26 @@
})
const sum = computed(() => {
let x=0
+ const res={
+ value:'',
+ label:'',
+ color:''
+ }
for(let key in state.tableData){
console.log(key+'key=='+state.tableData[key]?.type)
if(Number(state.tableData[key]?.type)){
x+=Number(state.tableData[key]?.type)
}
}
- return x
+ if(x>=4){
+ res.label="考虑存在PEW"
+ res.color='#F56C6C'
+ }else{
+ res.label="正常"
+ res.color='#303133'
+ }
+ res.value=x
+ return res
})
const funhui=()=>{
state.dialogTableVisible=false
@@ -223,6 +237,7 @@
const onSubmit = () => {
console.log('submit!')
console.log(state.tableData)
+ state.tableData.结果=sum.value
const info:tiaochabiaoInfo={
id: state.viewInfo.id,
surveryFormType:1,
@@ -303,7 +318,8 @@
肌肉指标:{
type: '',
input1: '肌肉量丢失(3个月内>5%或半年内>10%),上臂肌围减少(减少>10%参照群体第50个百分位数)',
- }
+ },
+ 结果:''
}
state.viewInfo={
id: 0,
--
Gitblit v1.8.0