瀏覽代碼

健康管理

sunran 3 年之前
父節點
當前提交
48fd9d2ee2

文件差異過大導致無法顯示
+ 114 - 114
package-lock.json


+ 1 - 0
package.json

@@ -12,6 +12,7 @@
     "@amap/amap-jsapi-loader": "^1.0.1",
     "axios": "^0.27.2",
     "core-js": "^3.6.5",
+    "echarts": "^4.8.0",
     "image-conversion": "^2.1.1",
     "lib-flexible": "^0.3.2",
     "node-sass": "^4.14.1",

+ 0 - 1
src/api/index.js

@@ -1,5 +1,4 @@
 import request from '@/utils/request'
-var qs = require('qs')
 export function loginApp(data) {
     return request({
         url: '/pmadmin/mini/employee/loginApp',

+ 1 - 1
src/utils/zprequest.js

@@ -28,7 +28,7 @@ service.interceptors.request.use(
             // config.headers['Content-Type'] = 'application/x-www-form-urlencoded'
         }
         if (config.requestBase == 'VUE_APP_ZL_HEALTH') {
-            config.headers['authToken'] = 'y2pCZGibj836GTdEYnScWiH2Ed8yEeRy23e8127b-7119-49dc-bc10-1c94ce29a99d'
+            config.headers['authToken'] = 'DXxTtBm3yhBCsmykpDCjW422A8D7epTAd41ef403-8135-4f2e-bb96-1771062d2637'
             config.baseURL = process.env.VUE_APP_ZL_HEALTH;
         }
         if (config.type === 'change') {

+ 1 - 1
src/views/weibao/views/reporting/details.vue

@@ -21,7 +21,7 @@
       <van-row class="cell">
         <van-col span="6">联系电话:</van-col>
         <van-col span="18">
-          <van-field v-model="form.phone" placeholder="请输入详细地址" />
+          <van-field v-model="form.phone" placeholder="请输入联系电话" />
         </van-col>
       </van-row>
       <van-row class="cell">

+ 9 - 0
src/views/zhulao/views/healthAssessmen/term.js

@@ -69,6 +69,7 @@ const healthType = [{
         unit: 'g/L',
         style: 'color:#f84472',
         type: 'hb',
+        command: 'gethealthyHbHistory',
         id: 6
     },
     {
@@ -80,6 +81,7 @@ const healthType = [{
         unit: '',
         style: 'color:#fdcb6b',
         type: 'urine',
+        command: "gethealthsurinehistory",
         id: 7
     },
     {
@@ -91,6 +93,7 @@ const healthType = [{
         unit: '°C',
         style: 'color:#13b8ea',
         type: 'temp',
+        command: 'gethealthstemphistory',
         id: 8
     },
     {
@@ -102,6 +105,7 @@ const healthType = [{
         unit: 'umol/L',
         style: 'color:#b1e531',
         type: 'ua',
+        command: 'gethealthsuahistory',
         id: 9
     },
     {
@@ -113,6 +117,7 @@ const healthType = [{
         unit: 'umol/L',
         style: 'color:#fb5ea2',
         type: 'vc',
+        command: 'gethealthsvchistory',
         id: 10
     },
     {
@@ -124,6 +129,7 @@ const healthType = [{
         unit: '%',
         style: 'color:#fb5ea2',
         type: 'fat',
+        command: 'gethealthsfathistory',
         id: 11
     },
     {
@@ -135,6 +141,7 @@ const healthType = [{
         unit: '',
         style: 'color:#fcd200',
         type: 'ultrasonic',
+        command: 'gethealthsultrasonichistory',
         id: 12
     },
     {
@@ -145,6 +152,7 @@ const healthType = [{
         termNum2: '测量时间:',
         unit: '',
         style: 'color:#fcd200',
+        command: "gethealthsischemiachistory",
         type: 'ischemia',
         id: 13
     },
@@ -157,6 +165,7 @@ const healthType = [{
         unit: '',
         style: 'color:#fcd200',
         type: 'artery',
+        command: 'gethealthsarteryhistory',
         id: 14
     },
 ]

+ 528 - 115
src/views/zhulao/views/healthAssessmen/typeDetails/typemain.vue

@@ -26,9 +26,20 @@
           <div class="list_box">
             <div>
               <p class="time">{{item.dateTime}}</p>
-              <p class="num">血糖值:{{item.glu}}mmol/L</p>
+              <p class="num">血糖值:<span :style="item.glu <= defaultHealthRange.normal_gluMax && item.glu >= defaultHealthRange.normal_gluMin?'color: #50D4C2':'color: #FFC900'">{{item.glu}}</span>mmol/L
+              </p>
             </div>
           </div>
+          <p class="standard" @click="show=true">
+            <van-icon name="question-o" />标准参考
+          </p>
+          <van-popup v-model="show">
+            <h5>【血糖】</h5>
+            <p>参考范围:3.9~11.1 mmol/L</p>
+            <div class="btn">
+              <van-button @click="show=false">知道了!</van-button>
+            </div>
+          </van-popup>
         </div>
       </div>
       <div v-if="name=='血压'">
@@ -44,14 +55,14 @@
               <p class="time">{{item.dateTime}}</p>
               <p class="num" v-if="item.nibpSys.value&&item.nibpDia.value">收缩压/舒张压:
                 <span style="color:#50D4C2"
-                  v-if="item.nibpSys.value <= normal_nibpSysMax && item.nibpSys.value  >= normal_nibpSysMin  && item.nibpDia.value >= normal_nibpDiaMin  && item.nibpDia.value <= normal_nibpDiaMax ">{{item.nibpSys.value}}/{{item.nibpDia.value}}</span>
+                  v-if="item.nibpSys.value <= normal_nibpSysMax && item.nibpSys.value  >= defaultHealthRange.normal_nibpSysMin  && item.nibpDia.value >= defaultHealthRange.normal_nibpDiaMin  && item.nibpDia.value <= defaultHealthRange.normal_nibpDiaMax ">{{item.nibpSys.value}}/{{item.nibpDia.value}}</span>
                 <span
-                  v-if="(item.nibpSys.value > normal_nibpSysMax || item.nibpSys.value  < normal_nibpSysMin)  && item.nibpDia.value >= normal_nibpDiaMin  && item.nibpDia.value <= normal_nibpDiaMax"><small
+                  v-if="(item.nibpSys.value > normal_nibpSysMax || item.nibpSys.value  < defaultHealthRange.normal_nibpSysMin)  && item.nibpDia.value >= defaultHealthRange.normal_nibpDiaMin  && item.nibpDia.value <= defaultHealthRange.normal_nibpDiaMax"><small
                     style="color: #FFC900">{{item.nibpSys.value}}</small>/{{item.nibpDia.value}}</span>
                 <span
-                  v-if="item.nibpSys.value <= normal_nibpSysMax && item.nibpSys.value  >= normal_nibpSysMin  && ( item.nibpDia.value < normal_nibpDiaMin  || item.nibpDia.value > normal_nibpDiaMax )">{{item.nibpSys.value}}/<small>{{item.nibpDia.value}}</small></span>
+                  v-if="item.nibpSys.value <= normal_nibpSysMax && item.nibpSys.value  >= defaultHealthRange.normal_nibpSysMin  && ( item.nibpDia.value < defaultHealthRange.normal_nibpDiaMin  || item.nibpDia.value > defaultHealthRange.normal_nibpDiaMax )">{{item.nibpSys.value}}/<small>{{item.nibpDia.value}}</small></span>
                 <span
-                  v-if="(item.nibpSys.value > normal_nibpSysMax || item.nibpSys.value  < normal_nibpSysMin ) && ( item.nibpDia.value < normal_nibpDiaMin  || item.nibpDia.value > normal_nibpDiaMax )"
+                  v-if="(item.nibpSys.value > normal_nibpSysMax || item.nibpSys.value  < defaultHealthRange.normal_nibpSysMin ) && ( item.nibpDia.value < defaultHealthRange.normal_nibpDiaMin  || item.nibpDia.value > defaultHealthRange.normal_nibpDiaMax )"
                   style="color: #FFC900">{{item.nibpSys.value}}/{{item.nibpDia.value}}</span>
                 mmHg
               </p>
@@ -84,7 +95,7 @@
             <div>
               <p class="time">{{item.dateTime}}</p>
               <p class="num">血氧值:{{item.spo}}
-                <small v-if="item.spo < normal_spo" style="color: #FFC900">%</small>
+                <small v-if="item.spo < defaultHealthRange.normal_spo" style="color: #FFC900">%</small>
                 <small v-else>%</small>
               </p>
             </div>
@@ -110,18 +121,345 @@
           <div class="list_box">
             <div>
               <p class="time">{{item.collectTime}}</p>
-              <p class="num">总胆固醇(TC):<span :style="item.chol <= normal_cholDgcMax && item.chol >= normal_cholDgcMinMin?'color: #50D4C2':'color: #FFC900'">{{item.chol}}</span>mmol/L</p>
-              <p class="num">甘油三酯(TG):<span :style="item.tg <= normal_cholGyszMax && item.tg >= normal_cholGyszMin?'color: #50D4C2':'color: #FFC900'">{{item.tg}}</span>mmol/L</p>
-              <p class="num">高密度脂蛋白胆固醇(HDL-C):<span :style="item.hdlc <= normal_cholGyszMax && item.hdlc >= normal_cholGyszMin?'color: #50D4C2':'color: #FFC900'">{{item.hdlc}}</span>mmol/L</p>
-              <p class="num">低密度脂蛋白胆固醇(LDL-C):<span :style="item.ldlc <= normal_cholGyszMax && item.ldlc >= normal_cholGyszMin?'color: #50D4C2':'color: #FFC900'">{{item.ldlc}}</span>mmol/L</p>
+              <p class="num">总胆固醇(TC):<span
+                  :style="item.chol <= defaultHealthRange.normal_cholDgcMax && item.chol >= defaultHealthRange.normal_cholDgcMinMin?'color: #50D4C2':'color: #FFC900'">{{item.chol}}</span>mmol/L</p>
+              <p class="num">甘油三酯(TG):<span
+                  :style="item.tg <= defaultHealthRange.normal_cholGyszMax && item.tg >= defaultHealthRange.normal_cholGyszMin?'color: #50D4C2':'color: #FFC900'">{{item.tg}}</span>mmol/L</p>
+              <p class="num">高密度脂蛋白胆固醇(HDL-C):<span
+                  :style="item.hdlc <= defaultHealthRange.normal_cholGyszMax && item.hdlc >= defaultHealthRange.normal_cholGyszMin?'color: #50D4C2':'color: #FFC900'">{{item.hdlc}}</span>mmol/L</p>
+              <p class="num">低密度脂蛋白胆固醇(LDL-C):<span
+                  :style="item.ldlc <= defaultHealthRange.normal_cholGyszMax && item.ldlc >= defaultHealthRange.normal_cholGyszMin?'color: #50D4C2':'color: #FFC900'">{{item.ldlc}}</span>mmol/L</p>
             </div>
           </div>
           <p class="standard" @click="show=true">
             <van-icon name="question-o" />标准参考
           </p>
           <van-popup v-model="show">
-            <h5>【血氧】</h5>
-            <p>参考范围:>= 95%</p>
+            <h5>【血脂】</h5>
+            <p>总胆固醇(TC):2.8~5.7 mmol/L</p>
+            <p>甘油三脂范围(TG):0.56~1.7 mmol/L</p>
+            <p>高密度脂蛋白胆固醇(HDL-C):0.9~2.19 mmol/L</p>
+            <p>低密度脂蛋白胆固醇(LDL-C):0~3.1 mmol/L</p>
+            <div class="btn">
+              <van-button @click="show=false">知道了!</van-button>
+            </div>
+          </van-popup>
+        </div>
+      </div>
+      <div v-if="name=='血红蛋白'">
+        <div class="list" v-for="item in healths" :key="item.id">
+          <div>
+            <img class="listg" :src="require('../../../assets/img/listg.png')" alt="">
+          </div>
+          <div class="list_box">
+            <div>
+              <p class="time">{{item.collectTime}}</p>
+              <p class="num">血红蛋白(Hb):<span
+                  :style="item.hb <= defaultHealthRange.normal_hbXhdbMax && item.hb >= defaultHealthRange.normal_hbXhdbMin?'color: #50D4C2':'color: #FFC900'">{{item.hb}}</span>g/L</p>
+              <p class="num">红细胞压积(Hct):<span
+                  :style="item.hct <= defaultHealthRange.normal_hbHxbjyMax && item.hct >= defaultHealthRange.normal_hbHxbjyMin?'color: #50D4C2':'color: #FFC900'">{{item.hct}}</span>%</p>
+            </div>
+          </div>
+          <p class="standard" @click="show=true">
+            <van-icon name="question-o" />标准参考
+          </p>
+          <van-popup v-model="show">
+            <h5>【血红蛋白】</h5>
+            <p>血红蛋白(Hb):110~160 g/L</p>
+            <p>红细胞压积(Hct):36~50 %</p>
+            <div class="btn">
+              <van-button @click="show=false">知道了!</van-button>
+            </div>
+          </van-popup>
+        </div>
+      </div>
+      <div v-if="name=='体温'">
+        <div class="list" v-for="item in healths" :key="item.id">
+          <div>
+            <img class="listg" :src="require('../../../assets/img/listg.png')" alt="">
+          </div>
+          <div class="list_box">
+            <div>
+              <p class="time">{{item.dateTime}}</p>
+              <p class="num">体温:<span :style="item.temp <= defaultHealthRange.normal_tempMax && item.temp >= defaultHealthRange.normal_tempMin?'color: #50D4C2':'color: #FFC900'">{{item.temp}}</span>°C
+              </p>
+            </div>
+          </div>
+          <p class="standard" @click="show=true">
+            <van-icon name="question-o" />标准参考
+          </p>
+          <van-popup v-model="show">
+            <h5>【体温】</h5>
+            <p>参考范围:36.3~37.2 °C</p>
+            <div class="btn">
+              <van-button @click="show=false">知道了!</van-button>
+            </div>
+          </van-popup>
+        </div>
+      </div>
+      <div v-if="name=='尿酸'">
+        <div ref="mainEcharts" class="mainEcharts"></div>
+        <div style="border-top:1px solid #ddd;"></div>
+        <div class="list" v-for="item in healths" :key="item.id">
+          <div>
+            <img class="listg" :src="require('../../../assets/img/listg.png')" alt="">
+          </div>
+          <div class="list_box">
+            <div>
+              <p class="time">{{item.dateTime}}</p>
+              <p class="num">尿酸:{{item.ua}}umol/L</p>
+            </div>
+          </div>
+          <p class="standard" @click="show=true">
+            <van-icon name="question-o" />标准参考
+          </p>
+          <van-popup v-model="show">
+            <h5>【尿酸】</h5>
+            <p>参考范围:89~416 umol/L</p>
+            <div class="btn">
+              <van-button @click="show=false">知道了!</van-button>
+            </div>
+          </van-popup>
+        </div>
+      </div>
+      <div v-if="name=='尿常规'">
+        <div class="list" v-for="item in healths" :key="item.id">
+          <div>
+            <img class="listg" :src="require('../../../assets/img/listg3.png')" alt="">
+          </div>
+          <div class="list_box">
+            <div>
+              <p class="time">{{item.collectTime}}</p>
+              <p class="num">酸碱度(PH):<span :style="item.ph <= defaultHealthRange.normal_phMax && item.ph >= defaultHealthRange.normal_phMin?'color: #50D4C2':'color: #FFC900'">{{item.ph}}</span></p>
+              <p class="num">比重(SG):<span :style="item.sg <= defaultHealthRange.normal_sgMax && item.sg >= defaultHealthRange.normal_sgMin?'color: #50D4C2':'color: #FFC900'">{{item.sg}}</span></p>
+              <p class="num">尿糖(GLU):{{item.glu}}</p>
+              <p class="num">蛋白质(PRO):{{item.pro}}</p>
+              <p class="num">胆红素(BIL):{{item.bil}}</p>
+              <p class="num">尿胆原(UBG):{{item.ubg}}</p>
+              <p class="num">潜血(ERY):{{item.bld}}</p>
+              <p class="num">白细胞(LEU):{{item.leu}}</p>
+              <p class="num">酮体(KET):{{item.ket}}</p>
+              <p class="num">亚硝酸盐(NIT):{{item.nit}}</p>
+              <p class="num">维生素C(VC):<span :style="item.vc <= defaultHealthRange.normal_vc1Max && item.vc >= defaultHealthRange.normal_vc1Min?'color: #50D4C2':'color: #FFC900'">{{item.vc}}</span></p>
+            </div>
+          </div>
+          <p class="standard" @click="show=true">
+            <van-icon name="question-o" />标准参考
+          </p>
+          <van-popup v-model="show">
+            <h5>【血红蛋白】</h5>
+            <p>酸碱度(PH):3~7 </p>
+            <p>比重(SG):0.7~3 </p>
+            <p>尿糖(GLU):阴性</p>
+            <p>蛋白质(PRO):阴性</p>
+            <p>胆红素(BIL):阴性 </p>
+            <p>尿胆原(UBG):阴性</p>
+            <p>潜血(ERY):阴性</p>
+            <p>白细胞(LEU):阴性</p>
+            <p>酮体(KET):阴性</p>
+            <p>亚硝酸盐(NIT):阴性</p>
+            <p>维生素C(VC):1~10</p>
+            <div class="btn">
+              <van-button @click="show=false">知道了!</van-button>
+            </div>
+          </van-popup>
+        </div>
+      </div>
+      <div v-if="name=='肺活量'">
+        <div class="list" v-for="item in healths" :key="item.id">
+          <div>
+            <img class="listg" :src="require('../../../assets/img/listg3.png')" alt="">
+          </div>
+          <div class="list_box">
+            <div>
+              <p class="time">{{item.collectTime}}</p>
+              <p class="num">肺活量:<span :style="item.vc <= defaultHealthRange.normal_vcMax && item.vc >= defaultHealthRange.normal_vcMin?'color: #50D4C2':'color: #FFC900'">{{item.vc}}</span>ml</p>
+              <p class="num">第一秒用力呼气容积(FEV1):<span
+                  :style="item.fev1 <= defaultHealthRange.normal_fev1Max && item.fev1 >= defaultHealthRange.normal_fev1Min?'color: #50D4C2':'color: #FFC900'">{{item.fev1}}</span></p>
+              <p class="num">峰值呼气流速(PEF):<span
+                  :style="item.pef <= defaultHealthRange.normal_pefMax && item.pef >= defaultHealthRange.normal_pefMin?'color: #50D4C2':'color: #FFC900'">{{item.pef}}</span></p>
+              <p class="num">25%肺活量时的用力呼气流速(FEF25):<span
+                  :style="item.pef <= defaultHealthRange.normal_pefMax && item.pef >= defaultHealthRange.normal_pefMin?'color: #50D4C2':'color: #FFC900'">{{item.fef25}}</span></p>
+              <p class="num">75%肺活量时的用力呼气流速(FEF75):<span
+                  :style="item.pef <= defaultHealthRange.normal_pefMax && item.pef >= defaultHealthRange.normal_pefMin?'color: #50D4C2':'color: #FFC900'">{{item.fef75}}</span></p>
+              <p class="num">从25%到75%肺活量之间的平均呼气流速(FEF2575):<span
+                  :style="item.pef <= defaultHealthRange.normal_pefMax && item.pef >= defaultHealthRange.normal_pefMin?'color: #50D4C2':'color: #FFC900'">{{item.fef2575}}</span></p>
+            </div>
+          </div>
+          <p class="standard" @click="show=true">
+            <van-icon name="question-o" />标准参考
+          </p>
+          <van-popup v-model="show">
+            <h5>【肺活量】</h5>
+            <p>肺活量(VC):2500~4000 ml </p>
+            <p>第一秒用力呼气容积(FEV1):200~500 ml</p>
+            <p>峰值呼吸流速(PEF):200~500</p>
+            <p>25%肺活量时的用力呼气流速(FEF25):300~500 </p>
+            <p>75%肺活量时的用力呼气流速(FEF75):300~500 </p>
+            <p>从25%到75%肺活量之间的平均呼气流速(FEF2575):300~500 </p>
+            <div class="btn">
+              <van-button @click="show=false">知道了!</van-button>
+            </div>
+          </van-popup>
+        </div>
+      </div>
+      <div v-if="name=='脂肪'">
+        <div class="list" v-for="item in healths" :key="item.id">
+          <div>
+            <img class="listg" :src="require('../../../assets/img/listg3.png')" alt="">
+          </div>
+          <div class="list_box">
+            <div>
+              <p class="time">{{item.collectTime}}</p>
+              <p class="num">脂肪含量(fat):<span
+                  :style="item.fat <= defaultHealthRange.normal_fatMax && item.fat >= defaultHealthRange.normal_fatMin?'color: #50D4C2':'color: #FFC900'">{{item.fat}}</span>%</p>
+              <p class="num">BMI:<span :style="item.bmi <= defaultHealthRange.normal_bmiMax && item.bmi >= defaultHealthRange.normal_bmiMin?'color: #50D4C2':'color: #FFC900'">{{item.bmi}}</span></p>
+              <p class="num">基础代谢(metabolism):<span :style="item.metabolism >= defaultHealthRange.normal_metabolismMin?'color: #50D4C2':'color: #FFC900'">{{item.metabolism}}</span></p>
+              <p class="num">体质指数:{{item.constitutiontype}}</p>
+              <p class="num">体型指数:{{item.bodytype}}</p>
+              <p class="num">人体水分:{{item.water}}</p>
+              <p class="num">骨骼肌:{{item.mus}}</p>
+              <p class="num">骨骼量:{{item.bone}}</p>
+              <p class="num">去脂体重:{{item.lbw}}</p>
+              <p class="num">细胞内水分:{{item.ecw}}</p>
+              <p class="num">蛋白质:{{item.protein}}</p>
+            </div>
+          </div>
+          <p class="standard" @click="show=true">
+            <van-icon name="question-o" />标准参考
+          </p>
+          <van-popup v-model="show">
+            <h5>【肺活量】</h5>
+            <p>肺活量(VC):2500~4000 ml </p>
+            <p>第一秒用力呼气容积(FEV1):200~500 ml</p>
+            <p>峰值呼吸流速(PEF):200~500</p>
+            <p>25%肺活量时的用力呼气流速(FEF25):300~500 </p>
+            <p>75%肺活量时的用力呼气流速(FEF75):300~500 </p>
+            <p>从25%到75%肺活量之间的平均呼气流速(FEF2575):300~500 </p>
+            <div class="btn">
+              <van-button @click="show=false">知道了!</van-button>
+            </div>
+          </van-popup>
+        </div>
+      </div>
+      <div v-if="name=='B超'">
+        <div class="list" v-for="item in healths" :key="item.id">
+          <div>
+            <img class="listg" :src="require('../../../assets/img/listg.png')" alt="">
+          </div>
+          <div class="list_box">
+            <div>
+              <p class="time">{{item.dateTime}}</p>
+              <p class="num">超声提示:{{item.tip}}</p>
+            </div>
+          </div>
+        </div>
+      </div>
+      <div v-if="name=='缺血适应仪'">
+        <div class="qxDiv">
+          <div class="qxheadDiv">
+            <div class="qxheadnoteDiv">
+              <div>
+                基础训练
+              </div>
+            </div>
+            <div class="qxheadnoteDiv">
+              <div>
+                强化训练
+              </div>
+            </div>
+            <div class="qxheadnoteDiv">
+              <div>
+                深度训练
+              </div>
+            </div>
+            <div class="qxheadnotebDiv">
+              <div>
+                高原旅游训练
+              </div>
+            </div>
+          </div>
+          <div class="qxheadDiv">
+
+            <div class="qxheadnoteDiv">
+              <div>
+                {{train1}}
+              </div>
+            </div>
+            <div class="qxheadnoteDiv">
+              <div>
+                {{train2}}
+              </div>
+            </div>
+            <div class="qxheadnoteDiv">
+              <div>
+                {{train3}}
+              </div>
+            </div>
+            <div class="qxheadnotebDiv">
+              <div>
+                {{train4}}
+              </div>
+            </div>
+          </div>
+        </div>
+        <div class="list mt" v-for="item in healths" :key="item.id">
+          <div>
+            <img class="listg" :src="require('../../../assets/img/listg.png')" alt="">
+          </div>
+          <div class="list_box">
+            <div>
+              <p class="time">{{item.dateTime}}</p>
+              <p class="num">训练模式:<span style="color: #FFC900">{{['','基础训练','强化训练','深度训练','高原旅游训练'][item.trainingMode]}}</span> </p>
+              <p class="num">训练时长:<span style="color: #FFC900">{{item.trainDuration}}</span> </p>
+              <p class="num">结束状态:<span style="color: #FFC900">{{['正常','异常终止'][item.endState]}}</span> </p>
+            </div>
+          </div>
+          <p class="standard" @click="show=true">
+            <van-icon name="question-o" />训练详情
+          </p>
+          <van-popup v-model="show">
+            <h5>【训练详情】</h5>
+            <p>训练时间:{{item.dateTime}}</p>
+            <p>训练时长:{{item.trainDuration}}</p>
+            <p>训练模式:{{['','基础训练','强化训练','深度训练','高原旅游训练'][item.trainingMode]}}</p>
+            <p>数据来源:{{['','一体机','自主体检机'][item.resource]}}</p>
+            <p>压迫时间:{{item.oppressTime}}</p>
+            <p>释放时间:{{item.releaseTime}}</p>
+            <p>循环:{{item.loop}}</p>
+            <p>结束状态:{{['正常','异常终止'][item.endState]}}</p>
+            <div class="btn">
+              <van-button @click="show=false">知道了!</van-button>
+            </div>
+          </van-popup>
+        </div>
+      </div>
+      <div v-if="name=='动脉硬化检测'">
+        <div class="list" v-for="item in healths" :key="item.id">
+          <div>
+            <img class="listg" :src="require('../../../assets/img/listg2.png')" alt="">
+          </div>
+          <div class="list_box">
+            <div>
+              <p class="time">{{item.dateTime}}</p>
+              <p class="num">最高血压:<span
+                  :style="item.sbp <= defaultHealthRange.normal_nibpSysMax && item.sbp >= defaultHealthRange.normal_nibpSysMin?'color: #50D4C2':'color: #FFC900'">{{item.sbp}}</span>mmHg
+              </p>
+              <p class="num">最低血压:<span
+                  :style="item.dbp <= defaultHealthRange.normal_nibpDiaMax && item.dbp >= defaultHealthRange.normal_nibpDiaMin?'color: #50D4C2':'color: #FFC900'">{{item.dbp}}</span>mmHg</p>
+              <p class="num">脉搏:{{item.plus}}</p>
+              <p class="num">AVI:{{item.avi}}</p>
+              <p class="num">API:{{item.api}}</p>
+            </div>
+          </div>
+          <p class="standard" @click="show=true">
+            <van-icon name="question-o" />标准参考
+          </p>
+          <van-popup v-model="show">
+            <h5>【血压】</h5>
+            <p>收缩压参考范围:90~139 mmHg</p>
+            <p>舒张压参考范围:60~89 mmHg</p>
+            <p>脉搏参考范围:60~100 次/分钟</p>
             <div class="btn">
               <van-button @click="show=false">知道了!</van-button>
             </div>
@@ -160,6 +498,11 @@ export default {
       normal_cholGmdMax: '',
       normal_cholDmdMin: '',
       normal_cholDmdMax: '',
+      defaultHealthRange: {},
+      train1: 0,
+      train2: 0,
+      train3: 0,
+      train4: 0,
     }
   },
   created() {
@@ -168,7 +511,7 @@ export default {
     this.unit = this.$route.query.unit
     this.command = this.$route.query.command
     console.log(this.name)
-    this.queryaction()          
+    this.queryaction()
   },
   methods: {
     async queryaction() {
@@ -202,7 +545,7 @@ export default {
         pageSize: 10,
       })
 
-      if (this.name == '血脂') {
+      if (this.name == '血脂' || this.name == '血红蛋白') {
         console.log(res.data, '222')
         this.healths = res.data.list
       } else {
@@ -223,6 +566,16 @@ export default {
         console.log(values)
         this.getEcharts(times, values, 'mmol/L', '血糖')
       }
+      if (this.name == '尿酸') {
+        this.healths.forEach((item) => {
+          console.log(item, '1')
+          var x = item.dateTime.slice(5, 10)
+          times.push(x)
+          values.push(item.ua)
+        })
+        console.log(values)
+        this.getEcharts(times, values, 'umol/L', '尿酸')
+      }
       if (this.name == '血氧') {
         this.healths.forEach((item) => {
           console.log(item, '1')
@@ -232,6 +585,9 @@ export default {
         })
         this.getEcharts(times, values, '%', '血氧')
       }
+      if (this.name == '缺血适应仪') {
+        this.gettrain(this.healths)
+      }
       if (this.name == '血压') {
         this.healths.forEach((item) => {
           var x = item.dateTime.slice(5, 10)
@@ -366,114 +722,136 @@ export default {
       })
       console.log(res, 'defaultHealthRange')
       var defaultHealthRange = res.healthRangeList
-      this.normal_nibpSysMin = defaultHealthRange[1].min //收缩压
-      this.normal_nibpSysMax = defaultHealthRange[1].max
-      this.normal_nibpDiaMin = defaultHealthRange[6].min //舒张压
-      this.normal_nibpDiaMax = defaultHealthRange[6].max
+      //   this.defaultHealthRange = res.healthRangeList
+      this.defaultHealthRange.normal_nibpSysMin = defaultHealthRange[1].min //收缩压
+      this.defaultHealthRange.normal_nibpSysMax = defaultHealthRange[1].max
+      this.defaultHealthRange.normal_nibpDiaMin = defaultHealthRange[6].min //舒张压
+      this.defaultHealthRange.normal_nibpDiaMax = defaultHealthRange[6].max
 
       //   this.normal_prMin = defaultHealthRange[47].min //舒张压
       //   this.normal_prMax = defaultHealthRange[47].max
 
-      //   this.normal_gluMin = defaultHealthRange[2].min //血糖
-      //   this.normal_gluMax = defaultHealthRange[2].max
-      this.normal_spo = defaultHealthRange[3].min //血氧
+      this.defaultHealthRange.normal_gluMin = defaultHealthRange[2].min //血糖
+      this.defaultHealthRange.normal_gluMax = defaultHealthRange[2].max
+      this.defaultHealthRange.normal_spo = defaultHealthRange[3].min //血氧
 
-      this.normal_cholDgcMinMin = defaultHealthRange[7].min //总胆固醇
-      this.normal_cxholDgcMa = defaultHealthRange[7].max
-      this.normal_cholGyszMin = defaultHealthRange[8].min //甘油三脂
-      this.normal_cholGyszMax = defaultHealthRange[8].max
-      this.normal_cholGmdMin = defaultHealthRange[9].min //高密度脂蛋白
-      this.normal_cholGmdMax = defaultHealthRange[9].max
-      this.normal_cholDmdMin = defaultHealthRange[10].min //低密度脂蛋白
-      this.normal_cholDmdMax = defaultHealthRange[10].max
+      this.defaultHealthRange.normal_cholDgcMinMin = defaultHealthRange[7].min //总胆固醇
+      this.defaultHealthRange.normal_cxholDgcMa = defaultHealthRange[7].max
+      this.defaultHealthRange.normal_cholGyszMin = defaultHealthRange[8].min //甘油三脂
+      this.defaultHealthRange.normal_cholGyszMax = defaultHealthRange[8].max
+      this.defaultHealthRange.normal_cholGmdMin = defaultHealthRange[9].min //高密度脂蛋白
+      this.defaultHealthRange.normal_cholGmdMax = defaultHealthRange[9].max
+      this.defaultHealthRange.normal_cholDmdMin = defaultHealthRange[10].min //低密度脂蛋白
+      this.defaultHealthRange.normal_cholDmdMax = defaultHealthRange[10].max
 
-      //   this.normal_hbXhdbMin = defaultHealthRange[13].min //血红蛋白
-      //   this.normal_hbXhdbMax = defaultHealthRange[13].max
-      //   this.normal_hbHxbjyMin = defaultHealthRange[14].min //红细胞压积
-      //   this.normal_hbHxbjyMax = defaultHealthRange[14].max
+      this.defaultHealthRange.normal_hbXhdbMin = defaultHealthRange[13].min //血红蛋白
+      this.defaultHealthRange.normal_hbXhdbMax = defaultHealthRange[13].max
+      this.defaultHealthRange.normal_hbHxbjyMin = defaultHealthRange[14].min //红细胞压积
+      this.defaultHealthRange.normal_hbHxbjyMax = defaultHealthRange[14].max
 
-      //   for (var i = 0; i < defaultHealthRange.length; i++) {
-      //     if (defaultHealthRange[i].healthType == 24) {
-      //       //体温
-      //       this.normal_tempMin = defaultHealthRange[i].min
-      //       this.normal_tempMax = defaultHealthRange[i].max
-      //     } else if (defaultHealthRange[i].healthType == 23) {
-      //       //尿酸
-      //       this.normal_uaMin = defaultHealthRange[i].min
-      //       this.normal_uaMax = defaultHealthRange[i].max
-      //     } else if (defaultHealthRange[i].healthType == 48) {
-      //       //脂肪率
-      //       this.normal_fatMin = defaultHealthRange[i].min
-      //       this.normal_fatMax = defaultHealthRange[i].max
-      //     } else if (defaultHealthRange[i].healthType == 27) {
-      //       // 肺活量
-      //       this.normal_vcMin = defaultHealthRange[i].min
-      //       this.normal_vcMax = defaultHealthRange[i].max
-      //     } else if (defaultHealthRange[i].healthType == 28) {
-      //       // 用力呼气1秒
-      //       this.normal_fev1Min = defaultHealthRange[i].min
-      //       this.normal_fev1Max = defaultHealthRange[i].max
-      //     } else if (defaultHealthRange[i].healthType == 29) {
-      //       //29呼气峰值流速
-      //       this.normal_pefMin = defaultHealthRange[i].min
-      //       this.normal_pefMax = defaultHealthRange[i].max
-      //     } else if (defaultHealthRange[i].healthType == 30) {
-      //       //25%肺活量时
-      //       this.normal_fef25Min = defaultHealthRange[i].min
-      //       this.normal_fef25Max = defaultHealthRange[i].max
-      //     } else if (defaultHealthRange[i].healthType == 31) {
-      //       //75%肺活量时
-      //       this.normal_fef75Min = defaultHealthRange[i].min
-      //       this.normal_fef75Max = defaultHealthRange[i].max
-      //     } else if (defaultHealthRange[i].healthType == 32) {
-      //       //从25%到75%肺活量之间
-      //       this.normal_fef2575Min = defaultHealthRange[i].min
-      //       this.normal_fef2575Max = defaultHealthRange[i].max
-      //     } else if (defaultHealthRange[i].healthType == 37) {
-      //       // ph
-      //       this.normal_phMin = defaultHealthRange[i].min
-      //       this.normal_phMax = defaultHealthRange[i].max
-      //     } else if (defaultHealthRange[i].healthType == 39) {
-      //       // 比重
-      //       this.normal_sgMin = defaultHealthRange[i].min
-      //       this.normal_sgMax = defaultHealthRange[i].max
-      //     } else if (defaultHealthRange[i].healthType == 42) {
-      //       // 尿糖
-      //       this.normal_glu1Min = defaultHealthRange[i].min
-      //     } else if (defaultHealthRange[i].healthType == 36) {
-      //       //蛋白质
-      //       this.normal_proMin = defaultHealthRange[i].min
-      //     } else if (defaultHealthRange[i].healthType == 41) {
-      //       //胆红素
-      //       this.normal_bilMin = defaultHealthRange[i].min
-      //     } else if (defaultHealthRange[i].healthType == 35) {
-      //       //尿胆原
-      //       this.normal_ubgMin = defaultHealthRange[i].min
-      //     } else if (defaultHealthRange[i].healthType == 38) {
-      //       //潜血
-      //       this.normal_eryMin = defaultHealthRange[i].min
-      //     } else if (defaultHealthRange[i].healthType == 33) {
-      //       //白细胞
-      //       this.normal_leuMin = defaultHealthRange[i].min
-      //     } else if (defaultHealthRange[i].healthType == 40) {
-      //       //酮体
-      //       this.normal_ketMin = defaultHealthRange[i].min
-      //     } else if (defaultHealthRange[i].healthType == 34) {
-      //       //亚硝酸盐
-      //       this.normal_nitMin = defaultHealthRange[i].min
-      //     } else if (defaultHealthRange[i].healthType == 43) {
-      //       //维生素C
-      //       this.normal_vc1Min = defaultHealthRange[i].min
-      //       this.normal_vc1Max = defaultHealthRange[i].max
-      //     } else if (defaultHealthRange[i].healthType == 50) {
-      //       //bmi
-      //       this.normal_bmiMin = defaultHealthRange[i].min
-      //       this.normal_bmiMax = defaultHealthRange[i].max
-      //     } else if (defaultHealthRange[i].healthType == 49) {
-      //       //metabolism
-      //       this.normal_metabolismMin = defaultHealthRange[i].min
-      //     }
-      //   }
+      for (var i = 0; i < defaultHealthRange.length; i++) {
+        if (defaultHealthRange[i].healthType == 24) {
+          //体温
+          this.defaultHealthRange.normal_tempMin = defaultHealthRange[i].min
+          this.defaultHealthRange.normal_tempMax = defaultHealthRange[i].max
+        } else if (defaultHealthRange[i].healthType == 23) {
+          //尿酸
+          this.defaultHealthRange.normal_uaMin = defaultHealthRange[i].min
+          this.defaultHealthRange.normal_uaMax = defaultHealthRange[i].max
+        } else if (defaultHealthRange[i].healthType == 48) {
+          //脂肪率
+          this.defaultHealthRange.normal_fatMin = defaultHealthRange[i].min
+          this.defaultHealthRange.normal_fatMax = defaultHealthRange[i].max
+        } else if (defaultHealthRange[i].healthType == 27) {
+          // 肺活量
+          this.defaultHealthRange.normal_vcMin = defaultHealthRange[i].min
+          this.defaultHealthRange.normal_vcMax = defaultHealthRange[i].max
+        } else if (defaultHealthRange[i].healthType == 28) {
+          // 用力呼气1秒
+          this.defaultHealthRange.normal_fev1Min = defaultHealthRange[i].min
+          this.defaultHealthRange.normal_fev1Max = defaultHealthRange[i].max
+        } else if (defaultHealthRange[i].healthType == 29) {
+          //29呼气峰值流速
+          this.defaultHealthRange.normal_pefMin = defaultHealthRange[i].min
+          this.defaultHealthRange.normal_pefMax = defaultHealthRange[i].max
+        } else if (defaultHealthRange[i].healthType == 30) {
+          //25%肺活量时
+          this.defaultHealthRange.normal_fef25Min = defaultHealthRange[i].min
+          this.defaultHealthRange.normal_fef25Max = defaultHealthRange[i].max
+        } else if (defaultHealthRange[i].healthType == 31) {
+          //75%肺活量时
+          this.defaultHealthRange.normal_fef75Min = defaultHealthRange[i].min
+          this.defaultHealthRange.normal_fef75Max = defaultHealthRange[i].max
+        } else if (defaultHealthRange[i].healthType == 32) {
+          //从25%到75%肺活量之间
+          this.defaultHealthRange.normal_fef2575Min = defaultHealthRange[i].min
+          this.defaultHealthRange.normal_fef2575Max = defaultHealthRange[i].max
+        } else if (defaultHealthRange[i].healthType == 37) {
+          // ph
+          this.defaultHealthRange.normal_phMin = defaultHealthRange[i].min
+          this.defaultHealthRange.normal_phMax = defaultHealthRange[i].max
+        } else if (defaultHealthRange[i].healthType == 39) {
+          // 比重
+          this.defaultHealthRange.normal_sgMin = defaultHealthRange[i].min
+          this.defaultHealthRange.normal_sgMax = defaultHealthRange[i].max
+        } else if (defaultHealthRange[i].healthType == 42) {
+          // 尿糖
+          this.defaultHealthRange.normal_glu1Min = defaultHealthRange[i].min
+        } else if (defaultHealthRange[i].healthType == 36) {
+          //蛋白质
+          this.defaultHealthRange.normal_proMin = defaultHealthRange[i].min
+        } else if (defaultHealthRange[i].healthType == 41) {
+          //胆红素
+          this.defaultHealthRange.normal_bilMin = defaultHealthRange[i].min
+        } else if (defaultHealthRange[i].healthType == 35) {
+          //尿胆原
+          this.defaultHealthRange.normal_ubgMin = defaultHealthRange[i].min
+        } else if (defaultHealthRange[i].healthType == 38) {
+          //潜血
+          this.defaultHealthRange.normal_eryMin = defaultHealthRange[i].min
+        } else if (defaultHealthRange[i].healthType == 33) {
+          //白细胞
+          this.defaultHealthRange.normal_leuMin = defaultHealthRange[i].min
+        } else if (defaultHealthRange[i].healthType == 40) {
+          //酮体
+          this.defaultHealthRange.normal_ketMin = defaultHealthRange[i].min
+        } else if (defaultHealthRange[i].healthType == 34) {
+          //亚硝酸盐
+          this.defaultHealthRange.normal_nitMin = defaultHealthRange[i].min
+        } else if (defaultHealthRange[i].healthType == 43) {
+          //维生素C
+          this.defaultHealthRange.normal_vc1Min = defaultHealthRange[i].min
+          this.defaultHealthRange.normal_vc1Max = defaultHealthRange[i].max
+        } else if (defaultHealthRange[i].healthType == 50) {
+          //bmi
+          this.defaultHealthRange.normal_bmiMin = defaultHealthRange[i].min
+          this.defaultHealthRange.normal_bmiMax = defaultHealthRange[i].max
+        } else if (defaultHealthRange[i].healthType == 49) {
+          //metabolism
+          this.defaultHealthRange.normal_metabolismMin =
+            defaultHealthRange[i].min
+        }
+      }
+      console.log(
+        this.defaultHealthRange,
+        'defaultHealthRange.normal_nibpSysMax'
+      )
+    },
+    gettrain(arr) {
+      arr.forEach((item) => {
+        if (item.trainingMode == 1) {
+          this.train1++
+        }
+        if (item.trainingMode == 2) {
+          this.train2++
+        }
+        if (item.trainingMode == 3) {
+          this.train3++
+        }
+        if (item.trainingMode == 4) {
+          this.train4++
+        }
+      })
     },
   },
 }
@@ -575,4 +953,39 @@ export default {
     }
   }
 }
+.qxDiv {
+  width: 100%;
+  height: 100px;
+  display: flex;
+  flex-direction: column;
+}
+
+.qxheadDiv {
+  width: 100%;
+  height: 100px;
+  display: flex;
+  flex-direction: row;
+}
+
+.qxheadnoteDiv {
+  height: 100px;
+  background-color: #91bcf5;
+  flex: 2;
+  display: flex;
+  justify-content: center;
+  align-items: center;
+  font-size: 30px;
+}
+
+.qxheadnotebDiv {
+  height: 100px;
+  background-color: #91bcf5;
+  flex: 3;
+  display: flex;
+  justify-content: center;
+  align-items: center;
+}
+.mt {
+  margin-top: 101px;
+}
 </style>

部分文件因文件數量過多而無法顯示