73 lines
2.2 KiB
Plaintext
73 lines
2.2 KiB
Plaintext
<!-- 体征详情 - uts-android 兼容版 -->
|
|
<template>
|
|
<view class="vital-detail">
|
|
<view class="header">
|
|
<text class="header-title">体征详情</text>
|
|
</view>
|
|
<view class="detail-group">
|
|
<text class="detail-label">患者</text>
|
|
<text class="detail-value">{{ vital.elder_name }}</text>
|
|
</view>
|
|
<view class="detail-group"><text class="detail-label">血压</text><text
|
|
class="detail-value">{{ vital.blood_pressure }}</text></view>
|
|
<view class="detail-group"><text class="detail-label">心率</text><text
|
|
class="detail-value">{{ vital.heart_rate }}</text></view>
|
|
<view class="detail-group"><text class="detail-label">体温</text><text
|
|
class="detail-value">{{ vital.temperature }}</text></view>
|
|
<view class="detail-group"><text class="detail-label">血糖</text><text
|
|
class="detail-value">{{ vital.blood_sugar }}</text></view>
|
|
<view class="detail-group"><text class="detail-label">血氧</text><text
|
|
class="detail-value">{{ vital.oxygen_saturation }}</text></view>
|
|
<view class="detail-group"><text class="detail-label">记录者</text><text
|
|
class="detail-value">{{ vital.recorded_by }}</text></view>
|
|
<view class="detail-group"><text class="detail-label">备注</text><text
|
|
class="detail-value">{{ vital.notes }}</text></view>
|
|
<view class="detail-group"><text class="detail-label">记录时间</text><text
|
|
class="detail-value">{{ vital.recorded_at }}</text></view>
|
|
</view>
|
|
</template>
|
|
<script setup lang="uts">
|
|
import { ref, onMounted } from 'vue'
|
|
import supa from '@/components/supadb/aksupainstance.uts'
|
|
const vital = ref<any>({})
|
|
onMounted(async () => {
|
|
const id = uni.getCurrentPages().pop()?.options?.id
|
|
if (!id) return
|
|
const result = await supa.from('ec_vital_signs').select('*').eq('id', id).single().execute()
|
|
if (result.data) vital.value = result.data
|
|
})
|
|
</script>
|
|
<style lang="scss">
|
|
.vital-detail {
|
|
padding: 20px;
|
|
background: #f5f5f5;
|
|
min-height: 100vh;
|
|
}
|
|
|
|
.header {
|
|
padding: 20px 0 10px 0;
|
|
text-align: center;
|
|
}
|
|
|
|
.header-title {
|
|
font-size: 22px;
|
|
font-weight: bold;
|
|
}
|
|
|
|
.detail-group {
|
|
margin-bottom: 16px;
|
|
}
|
|
|
|
.detail-label {
|
|
font-size: 15px;
|
|
color: #666;
|
|
margin-bottom: 2px;
|
|
display: block;
|
|
}
|
|
|
|
.detail-value {
|
|
font-size: 16px;
|
|
color: #222;
|
|
font-weight: 500;
|
|
}
|
|
</style> |