|  | @@ -27,7 +27,8 @@ const currentType = ref('GLU')
 | 
	
		
			
				|  |  |  const typeList = [
 | 
	
		
			
				|  |  |    {code: 'GLU', name: '血糖'},
 | 
	
		
			
				|  |  |    {code: 'UA', name: '尿酸'},
 | 
	
		
			
				|  |  | -  {code: 'KB', name: '血酮'}
 | 
	
		
			
				|  |  | +  {code: 'KB', name: '血酮'},
 | 
	
		
			
				|  |  | +  {code: 'BP', name: '血压'}
 | 
	
		
			
				|  |  |  ]
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |  const sortState = ref<SortState>({
 | 
	
	
		
			
				|  | @@ -57,21 +58,60 @@ const columns = [
 | 
	
		
			
				|  |  |      dataKey: 'resultJson.result',
 | 
	
		
			
				|  |  |      width: '220px'
 | 
	
		
			
				|  |  |    },
 | 
	
		
			
				|  |  | +  {
 | 
	
		
			
				|  |  | +    key: 'resultJson.testNutritionalTime',
 | 
	
		
			
				|  |  | +    title: '备注',
 | 
	
		
			
				|  |  | +    dataKey: 'resultJson.testNutritionalTime',
 | 
	
		
			
				|  |  | +    width: '220px'
 | 
	
		
			
				|  |  | +  },
 | 
	
		
			
				|  |  |    {
 | 
	
		
			
				|  |  |      key: 'createdName',
 | 
	
		
			
				|  |  |      title: '签名',
 | 
	
		
			
				|  |  |      dataKey: 'createdName',
 | 
	
		
			
				|  |  |      width: '220px'
 | 
	
		
			
				|  |  |    }
 | 
	
		
			
				|  |  | -  ,
 | 
	
		
			
				|  |  | +]
 | 
	
		
			
				|  |  | +
 | 
	
		
			
				|  |  | +const columnsBP = [
 | 
	
		
			
				|  |  |    {
 | 
	
		
			
				|  |  | -    key: 'resultJson.testNutritionalTime',
 | 
	
		
			
				|  |  | -    title: '备注',
 | 
	
		
			
				|  |  | -    dataKey: 'resultJson.testNutritionalTime',
 | 
	
		
			
				|  |  | +    key: 'time',
 | 
	
		
			
				|  |  | +    title: '测试时间',
 | 
	
		
			
				|  |  | +    dataKey: 'time',
 | 
	
		
			
				|  |  | +    width: '220px',
 | 
	
		
			
				|  |  | +    sortable: true
 | 
	
		
			
				|  |  | +  },
 | 
	
		
			
				|  |  | +  {
 | 
	
		
			
				|  |  | +    key: 'resultJson.result.bloodMeasureHigh',
 | 
	
		
			
				|  |  | +    title: '高压',
 | 
	
		
			
				|  |  | +    dataKey: 'resultJson.result.bloodMeasureHigh',
 | 
	
		
			
				|  |  | +    width: '220px'
 | 
	
		
			
				|  |  | +  },
 | 
	
		
			
				|  |  | +  {
 | 
	
		
			
				|  |  | +    key: 'resultJson.result.bloodMeasureLow',
 | 
	
		
			
				|  |  | +    title: '低压',
 | 
	
		
			
				|  |  | +    dataKey: 'resultJson.result.bloodMeasureLow',
 | 
	
		
			
				|  |  | +    width: '220px'
 | 
	
		
			
				|  |  | +  },
 | 
	
		
			
				|  |  | +  {
 | 
	
		
			
				|  |  | +    key: 'resultJson.result.checkHeartRate',
 | 
	
		
			
				|  |  | +    title: '心率',
 | 
	
		
			
				|  |  | +    dataKey: 'resultJson.result.checkHeartRate',
 | 
	
		
			
				|  |  | +    width: '220px'
 | 
	
		
			
				|  |  | +  },
 | 
	
		
			
				|  |  | +  {
 | 
	
		
			
				|  |  | +    key: 'createdName',
 | 
	
		
			
				|  |  | +    title: '签名',
 | 
	
		
			
				|  |  | +    dataKey: 'createdName',
 | 
	
		
			
				|  |  |      width: '220px'
 | 
	
		
			
				|  |  |    }
 | 
	
		
			
				|  |  | +
 | 
	
		
			
				|  |  |  ]
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  | +
 | 
	
		
			
				|  |  | +const tempColumns = computed(() => {
 | 
	
		
			
				|  |  | +  return currentType.value === 'BP' ? columnsBP : columns
 | 
	
		
			
				|  |  | +})
 | 
	
		
			
				|  |  | +
 | 
	
		
			
				|  |  |  const tempData = computed(() => {
 | 
	
		
			
				|  |  |    return XEUtils.filter(data.value, (item) => {
 | 
	
		
			
				|  |  |      return item.type === currentType.value
 | 
	
	
		
			
				|  | @@ -82,7 +122,6 @@ onMounted(() => {
 | 
	
		
			
				|  |  |    reportQueryCenterApiByGet("/intergration/sannuo/bloodSugar", {
 | 
	
		
			
				|  |  |      patNo: props.patNo,
 | 
	
		
			
				|  |  |      times: props.times,
 | 
	
		
			
				|  |  | -    type: 'GLU'
 | 
	
		
			
				|  |  |    }).then(res => {
 | 
	
		
			
				|  |  |      data.value = res.data
 | 
	
		
			
				|  |  |      patInfo.value = res.patInfo
 | 
	
	
		
			
				|  | @@ -117,7 +156,7 @@ onMounted(() => {
 | 
	
		
			
				|  |  |                         v-model:sort-state="sortState"
 | 
	
		
			
				|  |  |                         :width="width"
 | 
	
		
			
				|  |  |                         @column-sort="onSort"
 | 
	
		
			
				|  |  | -                       :columns="columns"/>
 | 
	
		
			
				|  |  | +                       :columns="tempColumns"/>
 | 
	
		
			
				|  |  |          </template>
 | 
	
		
			
				|  |  |        </cy-auto-size>
 | 
	
		
			
				|  |  |      </div>
 |