chenyc
2023-05-18 a5673d5a3fb9291054a98e56ab359431433ee5fa
更新界面显示
4个文件已修改
36 ■■■■ 已修改文件
package.json 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/samples/sockteStomp.ts 4 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/stores/patient.ts 4 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/home/index.vue 26 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
package.json
@@ -1,6 +1,6 @@
{
  "name": "sign-tool",
  "version": "2.6.0",
  "version": "2.6.2",
  "icon": "public/favicon.ico",
  "main": "dist/electron/main/index.js",
  "author": "",
src/samples/sockteStomp.ts
@@ -92,7 +92,9 @@
        datetime:da,
        clothesWeight:resultInfo.clothesWeight===null?0:resultInfo.clothesWeight,
        isScheduled:resultInfo.isScheduled,
        isAfterMed:resultInfo.isAfterMed
        isAfterMed:resultInfo.isAfterMed,
        deviceNo:resultInfo.deviceNo,
        preWeight:resultInfo.preWeight
    }
    // 写入vuex里
    patientInfoStore().setpatientInfo(info)
src/stores/patient.ts
@@ -14,7 +14,9 @@
            datetime:'',
            clothesWeight:0,
            isScheduled:0,
            isAfterMed:0
            isAfterMed:0,
            preWeight:0,
            deviceNo:'',
       })// 初始值
    const viewNumber=ref(150)
src/views/home/index.vue
@@ -270,6 +270,8 @@
            // 计算目标脱水量
            if (Number(weightInfo.value.result) > 0 && Number(patientInfo.value.pureWeight) !== 0&&patientInfo.value.isAfterMed===0) {
              state.aimTSL = (Number(weightInfo.value.result) - Number(patientInfo.value.pureWeight)- Number(patientInfo.value.clothesWeight)).toFixed(2)
            }else if(Number(weightInfo.value.result) > 0 && Number(patientInfo.value.pureWeight) !== 0&&patientInfo.value.isAfterMed===1 && patientInfo.value.preWeight>10){
              state.aimTSL = (Number(weightInfo.value.result) - Number(patientInfo.value.preWeight)- Number(patientInfo.value.clothesWeight)).toFixed(2)
            }
          }
      }
@@ -480,7 +482,7 @@
            <el-col :span="8" class="imgclass">
              <el-image style="width: 100%; height: 85%" :src="patientInfo.patientAvatarIcon" fit="cover" />
            </el-col>
            <el-col :span="15" class="userinfo">
            <el-col :span="15" class="userinfo" style="margin-top: -5%;">
              <el-row>
                <el-col :span="12">
                  <div class="lableclass">
@@ -503,6 +505,18 @@
                <el-col :span="12">
                  <div class="textclass">
                    {{ patientInfo.hemoCode }}
                  </div>
                </el-col>
              </el-row>
              <el-row style="margin-top: 10%;">
                <el-col :span="12">
                  <div class="lableclass">
                    床号:
                  </div>
                </el-col>
                <el-col :span="12">
                  <div class="textclass">
                    {{ patientInfo.deviceNo }}
                  </div>
                </el-col>
              </el-row>
@@ -564,8 +578,11 @@
          </el-row>
          <el-row class="rowdiv">
            <el-col :span="12">
              <div class="lableclass">
              <div v-if="patientInfo.isAfterMed===0" class="lableclass">
                目标脱水量(L):
              </div>
              <div v-else class="lableclass">
                体重减少(kg):
              </div>
            </el-col>
            <el-col :span="12">
@@ -580,9 +597,12 @@
        <div class="divcol" :style="{ height: haodu }">
          <el-row class="titleHand">
            <el-col :span="12">
              <div class="tilaft">
              <div class="tilaft" v-if="patientInfo.isAfterMed===0">
                透前体重(kg):
              </div>
              <div class="tilaft" v-else>
                透后体重(kg):
              </div>
            </el-col>
            <el-col :span="12">
              <div class="tiregth">