up
chenyc
2022-07-15 e254a708c892ea9cb45ecae967ac297f63d6a529
up
1个文件已修改
52 ■■■■■ 已修改文件
src/views/home/index.vue 52 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/home/index.vue
@@ -6,6 +6,7 @@
import { reactive,computed, toRefs,onMounted ,ref,watch} from "vue"
import{sendPationCode,sendPationSet} from '../../samples/sockteStomp'
import {formatDate} from '@/utils/formatTime'
import { number } from 'yargs'
 export default {
        setup() {
@@ -58,6 +59,20 @@
                            pureWeight:''
                        })
                        state.clockNum = patientInfoStore().viewNumber
                    sockteStore().setweightSockte({
                        type:'体重秤',
                        deviceName: '',
                        result: '',
                        resultTime: '',
                        state: 2
                    })
                    sockteStore().setweightSockte({
                        type:'血压计',
                        deviceName: '',
                        result: '',
                        resultTime: '',
                        state: 2
                    })
                    }
                }, 1000)
                // 记录定时器
@@ -71,7 +86,7 @@
                Newdate:"",
                clockNum:60,
                timerNum:0,//定时器数
                aimTSL:0,// 目标脱水量,
            aimTSL: '',// 目标脱水量,
                gao_ya:"",//高压
                di_ya:"",//低压
                mai_bu:""//脉搏
@@ -80,8 +95,7 @@
                ()=>patientInfo.value.id,
                ()=>{
                    console.log('患者变化了',patientInfo)
                    if(patientInfo.value.id!==0)
                    {
                if (patientInfo.value.id !== 0) {
                        AudioRef.value.play();
                        sockteStore().setweightSockte({
                            type:"体重秤",
@@ -124,7 +138,7 @@
                        sendPationSet(mode)
                        // 计算目标脱水量
                        if(Number(weightInfo.value.result)>0&&Number(patientInfo.value.pureWeight)!==0){
                            state.aimTSL=Number(weightInfo.value.result)-Number(patientInfo.value.pureWeight)
                        state.aimTSL = (Number(weightInfo.value.result) - Number(patientInfo.value.pureWeight)).toFixed(2)
                        }
                    }
                }
@@ -183,7 +197,8 @@
                    state.Newdate=formatDate(new Date(),"YYYY-mm-dd HH:MM:SS")
                },1000)
            })
            return{ ...toRefs(state),isLink,netLink,weightInfo,patientInfo,xyjInfo,inputRef,AudioRef0,AudioRef,AudioRef2,AudioRef3,inputChabge
        return {
            ...toRefs(state), isLink, netLink, weightInfo, patientInfo, xyjInfo, inputRef, AudioRef0, AudioRef, AudioRef2, AudioRef3, inputChabge
            }
        }
    }
@@ -198,16 +213,10 @@
        <audio src="https://dhcdn.leon056.com/hemo/autoselfsign/step3.mp3" ref="AudioRef2" id="eventAudio"></audio>
        <!-- 血压结果回传成功 -->
        <audio src="https://dhcdn.leon056.com/hemo/autoselfsign/step4.mp3" ref="AudioRef3" id="eventAudio"></audio>
        <el-dialog
            title="提示"
            v-model="netLink"
            width="30%">
        <el-dialog title="提示" v-model="netLink" width="30%">
            <span>无法链接到网络!</span>
        </el-dialog>
        <el-dialog
            title="提示"
            v-model="isLink"
            width="30%">
        <el-dialog title="提示" v-model="isLink" width="30%">
            <span>sockte连接失败正在重连。。。。。。</span>
        </el-dialog>
        <el-row>
@@ -230,12 +239,7 @@
        </el-row>
        <div class="grid-container">
            <div class="grid-item">
                <el-avatar
                    shape="square"
                    :size="100"
                    fit="cover"
                    :src="patientInfo.patientAvatarIcon"
                />
                <el-avatar shape="square" :size="100" fit="cover" :src="patientInfo.patientAvatarIcon" />
                <div class="zsf">{{patientInfo.name}}</div>
            </div>
            <div class="grid-item">
@@ -283,10 +287,12 @@
body {
    background: #f3f7fb;
}
.coldev {
    height: 200px;
    background: #ffff;
}
.grid-container {
    display: grid;
    grid-template-columns: 33% 33% 33%;
@@ -294,6 +300,7 @@
    background: #f3f7fb;
    padding: 10px;
}
.grid-container > div {
    background: #ffffff;
    height: 150px;
@@ -301,6 +308,7 @@
    border-radius: 10px;
    padding: 10px;
}
.lableText {
    text-align: left;
    /* height: 50px; */
@@ -308,6 +316,7 @@
    padding-top: 30px;
    font-size: 13pt;
}
.conText {
    height: 50px;
    line-height: 50px;
@@ -315,23 +324,28 @@
    color: #769aff;
    font-size: 20pt;
}
.imgss {
    height: 30px;
}
.tale {
    height: 30px;
    line-height: 50px;
    /* text-align: center; */
}
.zsf {
    font-size: 18pt;
    margin-top: 15pt;
    color: #769aff;
}
.active{
    background: #c1c2c6;
    color: black;
}
.datess{
    text-align: right;
    padding-right: 20px;