hd 2 weeks ago
parent
commit
9ade87e3d1

+ 5 - 5
app/rehabilitation/html/device.html

@ -132,16 +132,16 @@
        <div v-if="deviceObj.categoryCode == 2">
          <div class="form-item">
            <div class="form-label">SN码</div>
            <el-input v-model="query.deviceSn" :disabled="dataId" placeholder="请输入设备唯一码"></el-input>
            <el-input v-model="query.deviceSn" :disabled="dataId?true:false" placeholder="请输入设备唯一码"></el-input>
          </div>
          <div class="form-item" v-if="deviceObj.id == 6">
            <div class="form-label">SIM码</div>
            <el-input v-model="query.sim" :disabled="dataId" placeholder="请输入SIM码"></el-input>
            <el-input v-model="query.sim" :disabled="dataId?true:false" placeholder="请输入SIM码"></el-input>
          </div>
          <div v-if="deviceObj.isMultiUser == 1">
            <div class="title">绑定快捷键</div>
            <div v-for="(value, key) in deviceObj.multiUser">
              <el-radio v-model="query.userType" :disabled="dataId" :label="key" class="ml6">{{value}}</el-radio>
              <el-radio v-model="query.userType" :disabled="dataId?true:false" :label="key" class="ml6">{{value}}</el-radio>
            </div>
          </div>
          绑定后,从该快捷键上传的数据将导入您的健康记录中!
@ -149,14 +149,14 @@
        <div v-else-if="deviceObj.categoryCode == 4||deviceObj.categoryCode == 11">
          <div class="form-item">
            <div class="form-label">IMEI码</div>
            <el-input v-model="query.deviceSn" :disabled="dataId" placeholder="请输入设备唯一码"></el-input>
            <el-input v-model="query.deviceSn" :disabled="dataId?true:false" placeholder="请输入设备唯一码"></el-input>
          </div>
          绑定后,智能手表监测的心率数据将自动同步导入您的健康记录中!
        </div>
        <div v-else>
          <div class="form-item">
            <div class="form-label">SN码</div>
            <el-input v-model="query.deviceSn" :disabled="dataId" placeholder="请输入设备唯一码"></el-input>
            <el-input v-model="query.deviceSn" :disabled="dataId?true:false" placeholder="请输入设备唯一码"></el-input>
          </div>
          绑定后,血糖仪测量的数据将自动同步导入您的健康记录中!
        </div>

+ 8 - 5
app/rehabilitation/html/healthBodyRecord.html

@ -53,7 +53,7 @@
                <span class="pl8">脉搏:{{item.value3}} 次/分</span>
              </span>
            </div>
            <div class="lheight2">{{item.date}} {{item.recordMethod}}</div>
            <div class="lheight2">{{formatDate(item.date)}} {{item.recordMethod}}</div>
          </div>
          <el-tag :type="item.tagType" effect="dark">{{item.tagName}}</el-tag>
        </div>
@ -63,7 +63,7 @@
        <div class="item" v-for="(item,i) in bloodSugarList" :key="i">
          <div>
            <div class="lheight2">{{item.text}}</div>
            <div class="lheight2">{{item.time}} {{item.recordMethod}}</div>
            <div class="lheight2">{{formatDate(item.time)}} {{item.recordMethod}}</div>
          </div>
          <div class="flex">
            <el-tag :type="item.tagType" effect="dark">{{item.tagName}}</el-tag>
@ -79,7 +79,7 @@
              身高:{{item.value2}}cm
              <span class="pl8">体重:{{item.value1}}kg</span>
            </div>
            <div class="lheight2">{{item.time}} {{item.recordMethod}}</div>
            <div class="lheight2">{{formatDate(item.time)}} {{item.recordMethod}}</div>
          </div>
          <div class="flex">
            <el-tag :type="item.tagType" effect="dark">{{item.tagName}}</el-tag>
@ -91,7 +91,7 @@
        <div class="item" v-for="(item,i) in waistList" :key="i">
          <div>
            <div class="lheight2">{{item.value1}} cm</div>
            <div class="lheight2">{{item.time}} {{item.recordMethod}}</div>
            <div class="lheight2">{{formatDate(item.time)}} {{item.recordMethod}}</div>
          </div>
        </div>
      </div>
@ -100,7 +100,7 @@
        <div class="item" v-for="(item,i) in heartRateList" :key="i">
          <div>
            <div class="lheight2">{{item.value1}} 次/分</div>
            <div class="lheight2">{{item.time}} {{item.recordMethod}}</div>
            <div class="lheight2">{{formatDate(item.time)}} {{item.recordMethod}}</div>
          </div>
          <el-tag :type="item.tagType" effect="dark">{{item.tagName}}</el-tag>
        </div>
@ -423,6 +423,9 @@
            var month = curDate.getMonth() + 1 < 10 ? '0' + (curDate.getMonth() + 1) : curDate.getMonth() + 1
            var day = curDate.getDate() < 10 ? '0' + curDate.getDate() : curDate.getDate()
            return year + '-' + month + '-' + day
          },
          formatDate(date){
            return date.substring(0,16)
          }
        }
      })

+ 9 - 7
app/rehabilitation/html/healthMonitor.html

@ -94,7 +94,7 @@
            <div class="body-record-item" @click="openBodyRecordDetail(0,bodyData.xy.recordDate)" v-if="bodyData.xy">
              <div class="record-label">
                <div>血压</div>
                <div>{{bodyData.xy.recordDate}} {{getRecordType(bodyData.xy.deviceSn)}}</div>
                <div>{{formatDate(bodyData.xy.recordDate)}} {{getRecordType(bodyData.xy.deviceSn)}}</div>
              </div>
              <div class="record-value flex">
                <div>
@ -107,7 +107,7 @@
            <div class="body-record-item" @click="openBodyRecordDetail(1,bodyData.xt.recordDate)" v-if="bodyData.xt">
              <div class="record-label">
                <div>血糖</div>
                <div>{{bodyData.xt.recordDate}} {{bodyData.xt.during}} {{getRecordType(bodyData.xt.deviceSn)}}</div>
                <div>{{formatDate(bodyData.xt.recordDate)}} {{bodyData.xt.during}} {{getRecordType(bodyData.xt.deviceSn)}}</div>
              </div>
              <div class="record-value flex">
                <el-tag :type="bodyData.xt.tagType" v-if="bodyData.xt.tagName" style="margin-right: 10px">{{bodyData.xt.tagName}}</el-tag>
@ -119,7 +119,7 @@
            <div class="body-record-item" @click="openBodyRecordDetail(2, bodyData.tz.recordDate)" v-if="bodyData.tz">
              <div class="record-label">
                <div>身高体重</div>
                <div>{{bodyData.tz.recordDate}} {{getRecordType(bodyData.tz.deviceSn)}}</div>
                <div>{{formatDate(bodyData.tz.recordDate)}} {{getRecordType(bodyData.tz.deviceSn)}}</div>
              </div>
              <div class="record-value flex">
                <el-tag :type="getTixingType(bodyData.tz.value4)" effect="dark">{{getTixingName(bodyData.tz.value4)}}</el-tag>
@ -129,7 +129,7 @@
            <div class="body-record-item" @click="openBodyRecordDetail(3, bodyData.sg.recordDate)" v-if="bodyData.sg">
              <div class="record-label">
                <div>腰围</div>
                <div>{{bodyData.sg.recordDate}} {{getRecordType(bodyData.sg.deviceSn)}}</div>
                <div>{{formatDate(bodyData.sg.recordDate)}} {{getRecordType(bodyData.sg.deviceSn)}}</div>
              </div>
              <div class="record-value flex">
                <span>{{bodyData.sg.value1}}cm</span>
@ -155,7 +155,7 @@
                <img :src="item.devicePhoto" alt="" style="width: 100px" />
                <div style="margin-left: 16px">
                  <div class="device-info device-title">{{item.deviceName}}</div>
                  <div class="device-info">绑定时间:{{item.czrq}}</div>
                  <div class="device-info">绑定时间:{{formatDate(item.czrq)}}</div>
                  <div class="device-info" v-if="item.categoryCode != 10 && item.categoryCode != 11">绑定人:{{item.people}}</div>
                </div>
              </div>
@ -276,7 +276,7 @@
                    break
                  case 'diet':
                    vm.healthProtectList[2].lastData = healthProtect.diet.diet
                    vm.healthProtectList[2].time = healthProtect.diet.recordDate
                    vm.healthProtectList[2].time = healthProtect.diet.recordDate.substring(0,10)
                    vm.healthProtectList[2].recordMethod = vm.getBJRecordType(healthProtect.diet.source)
                    break
                }
@ -453,7 +453,6 @@
            }
          },
          getLevelClazzName(value, max, min) {
            console.log(5)
            if (!value || (!max && !min)) {
              return ''
@ -476,6 +475,9 @@
              }
              item.people = bindUser
            })
          },
          formatDate(date){
            return date.substring(0,16)
          }
        }
      })