From 8a386eba5b6da6e02e1670473347660b78ea1f43 Mon Sep 17 00:00:00 2001 From: xf Date: Thu, 10 Jul 2025 13:42:16 +0800 Subject: [PATCH] =?UTF-8?q?update:=20=E5=A4=A7=E5=B1=8F=E6=8E=A5=E5=8F=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/indexSun/indexSun.ts | 48 +++++++++++++++++++++++++++------- 1 file changed, 38 insertions(+), 10 deletions(-) diff --git a/src/views/indexSun/indexSun.ts b/src/views/indexSun/indexSun.ts index 8e1010b..c80776a 100644 --- a/src/views/indexSun/indexSun.ts +++ b/src/views/indexSun/indexSun.ts @@ -388,6 +388,13 @@ const towRcolumn1 = [ title: 'BMI是否异常', dataIndex: 'bmiFlag', key: 'bmiFlag', + customRender: ({ text }) => { + if (text == '1') { + return '是'; + } else { + return '否'; + } + }, }, { title: '腰围(cm)', @@ -430,6 +437,13 @@ const towRcolumn2 = [ title: '血糖是否异常', dataIndex: 'bmiFlag', key: 'bmiFlag', + customRender: ({ text }) => { + if (text == '1') { + return '是'; + } else { + return '否'; + } + }, }, { title: '腰围(cm)', @@ -465,28 +479,42 @@ const towRcolumn3 = [ }, { title: '收缩压(mmHg)', - dataIndex: 'height', - key: 'height', + dataIndex: 'sbp', + key: 'sbp', }, { title: '收缩压是否异常', - dataIndex: 'weight', - key: 'weight', + dataIndex: 'sbpFlag', + key: 'sbpFlag', + customRender: ({ text }) => { + if (text == '1') { + return '是'; + } else { + return '否'; + } + }, }, { title: '舒张压(mmHg)', - dataIndex: 'bmi', - key: 'bmi', + dataIndex: 'dbp', + key: 'dbp', }, { title: '舒张压是否异常', - dataIndex: 'bmiException', - key: 'bmiException', + dataIndex: 'dbpFlag', + key: 'dbpFlag', + customRender: ({ text }) => { + if (text == '1') { + return '是'; + } else { + return '否'; + } + }, }, { title: '填报日期', - dataIndex: 'createTime', - key: 'createTime', + dataIndex: 'inputDate', + key: 'inputDate', }, ]; export function twoRform(type) {