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) {