2024-05-29 16:35:45 +08:00
|
|
|
<template>
|
|
|
|
|
<view class="content">
|
|
|
|
|
<!-- -->
|
|
|
|
|
<view class="skiptop">
|
2024-07-22 14:13:19 +08:00
|
|
|
<!-- <view class="status" @click="$Bluetooth.handleDevicesMac(isdevice,acd_id)"><text>设备连接</text></view> -->
|
2024-05-29 16:35:45 +08:00
|
|
|
<view class="item">
|
2025-04-26 13:35:30 +08:00
|
|
|
<view class="item-ite text_c">{{$t("lung.averagelungsuction")}}<text>{{info?info.average:'--'}}</text></view>
|
|
|
|
|
<view class="item-ite ml-10 mr-10 text_c">{{$t("lung.lungsuctionspeed")}}<text>--</text></view>
|
|
|
|
|
<view class="item-ite text_c">{{$t("lung.isMarginal")}}<text>{{info?info.level:'--'}}</text></view>
|
2024-05-29 16:35:45 +08:00
|
|
|
</view>
|
|
|
|
|
</view>
|
|
|
|
|
<!--自由训练 -->
|
2024-06-13 18:03:50 +08:00
|
|
|
<view class="box1">
|
|
|
|
|
<view class="time">{{info?info.time:''}}</view>
|
2024-07-25 16:55:39 +08:00
|
|
|
<!-- <view class="LiuS">吸气速度 <text class="cgreen ml-5">{{info?info.flow_val:'--'}}L/min</text></view> -->
|
2024-05-29 16:35:45 +08:00
|
|
|
<view class="item">
|
|
|
|
|
<view class="image">
|
|
|
|
|
<image src="../../static/bae.png" mode="widthFix"></image>
|
|
|
|
|
</view>
|
2024-06-13 18:03:50 +08:00
|
|
|
<view class="center mt-15">
|
2024-05-29 16:35:45 +08:00
|
|
|
<view class="level"></view>
|
2024-06-13 18:03:50 +08:00
|
|
|
<view class="level level-bg" :style="{'top':info?Number(100 - info.offset)+'%':'100%'}"></view>
|
|
|
|
|
<view class="level-item" v-if="info">
|
2024-08-22 09:48:00 +08:00
|
|
|
<view class="ite" v-for="(ite,ind) in info.list" :style="{'height':100/info.list.length+'%'}">
|
|
|
|
|
{{ite.text}}</view>
|
2024-05-29 16:35:45 +08:00
|
|
|
</view>
|
|
|
|
|
</view>
|
|
|
|
|
</view>
|
2024-06-13 18:03:50 +08:00
|
|
|
<view class="val" v-if="info">
|
2024-05-29 16:35:45 +08:00
|
|
|
<text>{{info.average}}</text>
|
2025-04-26 13:35:30 +08:00
|
|
|
{{$t("lung.averagelungsuction")}}
|
2024-05-29 16:35:45 +08:00
|
|
|
</view>
|
|
|
|
|
</view>
|
|
|
|
|
<!-- -->
|
|
|
|
|
<view class="gridList">
|
|
|
|
|
<view class="data">
|
2024-08-22 09:48:00 +08:00
|
|
|
<view class="item" @click="navTo('/pages/lunging/charts')">
|
2024-05-29 16:35:45 +08:00
|
|
|
<view class="image">
|
|
|
|
|
<image src="../../static/charts.png"></image>
|
|
|
|
|
</view>
|
2025-04-26 13:35:30 +08:00
|
|
|
<view class="name">{{$t("common.titleCharts")}}</view>
|
2024-05-29 16:35:45 +08:00
|
|
|
</view>
|
2024-10-11 10:04:19 +08:00
|
|
|
<view class="item" @click="navTo('/pageTwo/history/history?acd_id='+acd_id)">
|
2024-05-29 16:35:45 +08:00
|
|
|
<view class="image">
|
|
|
|
|
<image src="../../static/add.png"></image>
|
|
|
|
|
</view>
|
2025-04-26 13:35:30 +08:00
|
|
|
<view class="name">{{$t("common.titleHistory")}}</view>
|
2024-05-29 16:35:45 +08:00
|
|
|
</view>
|
2024-10-11 10:04:19 +08:00
|
|
|
<view class="item" @click="navTo('/pageTwo/compk/contrast?acd_id='+acd_id)">
|
2024-05-29 16:35:45 +08:00
|
|
|
<view class="image">
|
|
|
|
|
<image src="../../static/pk.png"></image>
|
|
|
|
|
</view>
|
2025-04-26 13:35:30 +08:00
|
|
|
<view class="name">{{$t("common.titleContrast")}}</view>
|
2024-05-29 16:35:45 +08:00
|
|
|
</view>
|
|
|
|
|
<view class="item" @click="$store.commit('changeRecord',true)">
|
|
|
|
|
<view class="image">
|
|
|
|
|
<image src="../../static/history.png"></image>
|
|
|
|
|
</view>
|
2025-04-26 13:35:30 +08:00
|
|
|
<view class="name">{{$t("common.btnAdd")}}{{$t("common.titleHome")}}</view>
|
2024-05-29 16:35:45 +08:00
|
|
|
</view>
|
|
|
|
|
</view>
|
|
|
|
|
</view>
|
|
|
|
|
<!-- 手动记录 -->
|
2024-11-12 15:38:28 +08:00
|
|
|
<record :rtype="acd_id"></record>
|
2024-05-29 16:35:45 +08:00
|
|
|
</view>
|
|
|
|
|
</template>
|
|
|
|
|
|
|
|
|
|
<script>
|
|
|
|
|
import {
|
|
|
|
|
mapState
|
|
|
|
|
} from "vuex";
|
2024-08-22 09:48:00 +08:00
|
|
|
import record from '@/element/manuallyAdd/record.vue';
|
2024-05-29 16:35:45 +08:00
|
|
|
export default {
|
|
|
|
|
data() {
|
2024-07-08 10:50:07 +08:00
|
|
|
return {
|
2024-07-22 14:13:19 +08:00
|
|
|
LiuS: 0,
|
2024-07-08 10:50:07 +08:00
|
|
|
acd_id: 8,
|
|
|
|
|
isdevice: true,
|
|
|
|
|
}
|
2024-05-29 16:35:45 +08:00
|
|
|
},
|
|
|
|
|
components: {
|
|
|
|
|
record
|
|
|
|
|
},
|
|
|
|
|
computed: {
|
|
|
|
|
...mapState(["MeasureLung"]),
|
|
|
|
|
info() {
|
|
|
|
|
return this.MeasureLung
|
|
|
|
|
}
|
|
|
|
|
},
|
2025-04-26 13:35:30 +08:00
|
|
|
onReady() {
|
|
|
|
|
uni.setNavigationBarTitle({
|
|
|
|
|
title: this.$t('common.titlevVitalcapacity'),
|
|
|
|
|
})
|
|
|
|
|
},
|
2024-05-29 16:35:45 +08:00
|
|
|
onLoad(options) {
|
|
|
|
|
let that = this
|
|
|
|
|
that.acd_id = options.acd_id
|
2024-07-08 10:50:07 +08:00
|
|
|
that.isdevice = options.device
|
2024-05-29 16:35:45 +08:00
|
|
|
that.$store.dispatch("getLungResult", {
|
|
|
|
|
aud_id: uni.getStorageSync('userid')
|
|
|
|
|
})
|
|
|
|
|
},
|
2024-07-26 16:43:31 +08:00
|
|
|
onPullDownRefresh() {
|
|
|
|
|
let that = this
|
|
|
|
|
that.$store.dispatch("getLungResult", {
|
|
|
|
|
aud_id: uni.getStorageSync('userid')
|
|
|
|
|
})
|
|
|
|
|
setTimeout(() => {
|
|
|
|
|
uni.stopPullDownRefresh()
|
|
|
|
|
}, 1000);
|
|
|
|
|
},
|
2024-05-29 16:35:45 +08:00
|
|
|
methods: {
|
2024-07-08 10:50:07 +08:00
|
|
|
// 历史数据删除时重新加载接口
|
|
|
|
|
reload() {
|
|
|
|
|
let that = this
|
|
|
|
|
console.log('重新加载');
|
|
|
|
|
this.$nextTick(() => {
|
|
|
|
|
that.$store.dispatch("getLungResult", {
|
|
|
|
|
aud_id: uni.getStorageSync('userid')
|
|
|
|
|
})
|
|
|
|
|
})
|
|
|
|
|
},
|
2024-05-29 16:35:45 +08:00
|
|
|
navTo(url) {
|
|
|
|
|
uni.navigateTo({
|
|
|
|
|
url: url
|
|
|
|
|
})
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
</script>
|
|
|
|
|
|
|
|
|
|
<style lang="scss" scoped>
|
2024-08-22 09:48:00 +08:00
|
|
|
@import "@/scss/lunging.scss";
|
2024-05-29 16:35:45 +08:00
|
|
|
</style>
|