Pārlūkot izejas kodu

Merge branch 'master' of http://8.210.64.198:30000/sunran/asd-mobild

“hanlingqiang 3 gadi atpakaļ
vecāks
revīzija
b54c91cd9d

Failā izmaiņas netiks attēlotas, jo tās ir par lielu
+ 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/components/newsInformation.vue

@@ -2,7 +2,7 @@
   <div>
     <div class="list" v-for="item in newsList" :key="item.id" @click="$router.push({path:'/text',query:{id:item.id,title:'新闻资讯'}})">
       <div class="img">
-        <van-image fit="fill" :src="item.imgUrl?item.imgUrl:require('../assets/newsbg.png')" alt="" />
+        <van-image lazy-load fit="fill" :src="item.imgUrl?item.imgUrl:require('../assets/newsbg.png')" alt="" />
       </div>
       <div class="text">
         <p class="title">{{item.title}}</p>

+ 13 - 12
src/views/weibao/components/vanUploader.vue

@@ -6,7 +6,7 @@
         <div class="box">
           <van-uploader v-if="text=='图片'" :before-read="beforeRead" v-model="imgUrl" accept="image/png,image/jpeg,image/jpg" :after-read="afterRead" @delete='deleteUploader'>
           </van-uploader>
-          <van-uploader v-else v-model="multiMediaUrl" accept="video/*" :after-read="afterRead" @delete='deleteUploader'>
+          <van-uploader v-else v-model="multiMediaUrl" accept="video/*" :before-read="beforeRead2" :after-read="afterRead" @delete='deleteUploader'>
             <template #preview-cover="{ file }">
               <div v-if="file.type.indexOf('video') !== -1" class="none-box">
                 <img :src="require('../assets/video.png')">
@@ -57,6 +57,12 @@ export default {
       this.imgUrl = []
       this.multiMediaUrl = []
     },
+    beforeRead2(file) {
+      if (file.size > 50 * 1024 * 1024) {
+        this.$toast('视频不能超过50MB')
+        return
+      }
+    },
     // 返回布尔值
     beforeRead(file) {
       if (file.length) {
@@ -67,17 +73,10 @@ export default {
             item.name.indexOf('.jpeg') == -1
           ) {
             this.$toast('请上传 jpg/png 格式图片')
-            throw error
+            return false
           }
         })
       } else {
-        // this.$dialog
-        //   .alert({
-        //     message: file.name,
-        //   })
-        //   .then(() => {
-        //     // on close
-        //   })
         if (
           file.name.indexOf('.png') == -1 &&
           file.name.indexOf('.jpg') == -1 &&
@@ -96,9 +95,6 @@ export default {
         file.forEach(async (item) => {
           item.status = 'uploading'
           item.message = '上传中...'
-          //   const res = await compressAccurately(item.file, 400)
-          //   const obj = {}
-          //   obj.file = res
           //添加入参
           formDate.append('file', item.file)
           this.uploading(formDate, item)
@@ -118,16 +114,21 @@ export default {
           obj.file = res
           //添加入参
           formDate.append('file', obj.file)
+          formDate.append('thumbs', '240x240')
           this.uploading(formDate, file)
         } else {
+          // 视频
+          console.log(file.file.size, 'file.file')
           //添加入参
           formDate.append('file', file.file)
+
           this.uploading(formDate, file)
         }
       }
       console.log(this.multiMediaUrl, 'this.multiMediaUrl')
     },
     async uploading(formDate, file) {
+      console.log(formDate, 'formDate')
       var res = await uploadImage(formDate)
       if (res.code == '0000') {
         file.status = 'success'

+ 7 - 0
src/views/weibao/main.js

@@ -6,7 +6,14 @@ import '../../styles/index.css'
 import Vant from 'vant'
 import 'vant/lib/index.css'
 import 'lib-flexible/flexible'
+
+import {
+    Lazyload
+} from 'vant'
+
 Vue.config.productionTip = false
+
+Vue.use(Lazyload)
 Vue.use(Vant)
 new Vue({
     router,

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

@@ -47,7 +47,7 @@
           <p>照片:</p>
           <div class="boximg">
             <div v-for="(item,index) in pics" :key="index">
-              <van-image fit="contain" :src="item" alt="" @click="showPopup" />
+              <van-image fit="contain" lazy-load :src="item" alt="" @click="showPopup" />
             </div>
           </div>
           <van-image-preview v-model="show" :images="pics"></van-image-preview>

+ 5 - 4
src/views/weibao/views/consultation/index.vue

@@ -11,7 +11,7 @@
             <van-list v-model="loading" :immediate-check="false" :finished="finished" finished-text="没有更多了" @load="onLoad">
               <div class="list" v-for="item in historyList" :key="item.id" @click="$router.push({path:'/consultation/details',query:{id:item.id}})">
                 <div class="img">
-                  <van-image fit="scale-down" :src="getpics(item.pics)" alt="" />
+                  <van-image fit="scale-down" lazy-load :src="getpics(item.pics)" alt="" />
                 </div>
                 <div class="text">
                   <p class="title">会商议题:{{item.name}}</p>
@@ -28,7 +28,7 @@
       <van-list v-model="loading" :immediate-check="false" :finished="finished" finished-text="没有更多了" @load="onLoad">
         <div class="list" v-for="item in historyList" :key="item.id" @click="$router.push({path:'/consultation/details',query:{id:item.id}})">
           <div class="img">
-            <van-image fit="cover" :src="getpics(item.pics)" alt="" />
+            <van-image lazy-load fit="cover" :src="getpics(item.pics)" alt="" />
           </div>
           <div class="text">
             <p class="title">会商议题:{{item.name}}</p>
@@ -98,9 +98,10 @@ export default {
       if (!item) return this.bgimg
       var url = ''
       var arr = item.split(',')
-      arr.forEach((item, index) => {
+      arr.forEach((item) => {
         if (item.indexOf('.jpg') || item.indexOf('.png')) {
-          url = arr[index]
+          url = arr[0].replace('/cgpimage/', '/cgpimage/240x240/')
+
           return
         }
       })

+ 1 - 1
src/views/weibao/views/followUp/addfollow.vue

@@ -223,7 +223,7 @@ export default {
       this.form.followDate = this.timeFormat(v)
       this.show = false
     },
-    async saveFollowUp(values) {
+    async saveFollowUp() {
       if (this.pics.length == 0) {
         this.$toast.fail('请选择至少一张图片')
         return

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

@@ -42,7 +42,7 @@
         <p>照片:</p>
         <div class="boximg">
           <div v-for="(item,index) in pics" :key="index">
-            <van-image fit="contain" :src="item" alt="" @click="showPopup" />
+            <van-image lazy-load fit="contain" :src="item" alt="" @click="showPopup" />
           </div>
         </div>
         <van-image-preview v-model="show" :images="pics"></van-image-preview>

+ 2 - 2
src/views/weibao/views/followUp/history.vue

@@ -28,9 +28,9 @@ export default {
       if (!item) return this.bgimg
       var url = ''
       var arr = item.split(',')
-      arr.forEach((item, index) => {
+      arr.forEach((item) => {
         if (item.indexOf('.jpg') || item.indexOf('.png')) {
-          url = arr[index]
+         url = arr[0].replace('/cgpimage/', '/cgpimage/240x240/')
           return
         }
       })

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

@@ -94,7 +94,7 @@
             <p>照片:</p>
             <div class="boximg">
               <div v-for="(item,index) in pics" :key="index">
-                <van-image fit="contain" :src="item" alt="" @click="showPopup" />
+                <van-image lazy-load fit="contain" :src="item" alt="" @click="showPopup" />
               </div>
             </div>
             <van-image-preview v-model="show" :images="pics"></van-image-preview>

+ 3 - 3
src/views/weibao/views/loveHelp/index.vue

@@ -14,7 +14,7 @@
     <van-list v-model="loading" :finished="finished" :immediate-check="false" finished-text="没有更多了" @load="onLoad">
       <div class="list" v-for="item in dataList" :key="item.id" @click="$router.push({path:'/loveHelp/details',query:{id:item.id,orgId:item.orgId}})">
         <div class="img">
-          <van-image fit="cover" :src="getpics(item.pics)" alt="" />
+          <van-image lazy-load fit="cover" :src="getpics(item.pics)" alt="" />
         </div>
         <div class="text">
           <p class="title">{{item.name}}</p>
@@ -72,9 +72,9 @@ export default {
       if (!item) return this.bgimg
       var url = ''
       var arr = item.split(',')
-      arr.forEach((item, index) => {
+      arr.forEach((item) => {
         if (item.indexOf('.jpg') || item.indexOf('.png')) {
-          url = arr[index]
+          url = arr[0].replace('/cgpimage/', '/cgpimage/240x240/')
           return
         }
       })

+ 2 - 2
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">
@@ -35,7 +35,7 @@
           <p>照片:</p>
           <div class="boximg">
             <div v-for="(item,index) in pics" :key="index">
-              <van-image fit="contain" :src="item" alt="" @click="show=true" />
+              <van-image lazy-load fit="contain" :src="item" alt="" @click="show=true" />
             </div>
           </div>
           <van-image-preview v-model="show" :images="pics"></van-image-preview>

+ 4 - 4
src/views/weibao/views/reporting/index.vue

@@ -11,7 +11,7 @@
             <van-list v-model="loading" :immediate-check="false" :finished="finished" finished-text="没有更多了" @load="onLoad">
               <div class="list" v-for="item in historyList" :key="item.id" @click="$router.push({path:'/reporting/details',query:{id:item.id}})">
                 <div class="img">
-                  <van-image fit="cover" :src="getpics(item.pics)" alt="" />
+                  <van-image lazy-load fit="cover" :src="getpics(item.pics)" alt="" />
                 </div>
                 <div class="text">
                   <p class="title">报告事件:{{item.event}}</p>
@@ -29,7 +29,7 @@
       <van-list v-model="loading" :immediate-check="false" :finished="finished" finished-text="没有更多了" @load="onLoad">
         <div class="list" v-for="item in historyList" :key="item.id" @click="$router.push({path:'/reporting/details',query:{id:item.id}})">
           <div class="img">
-            <van-image fit="cover" :src="getpics(item.appendFile)" alt="" />
+            <van-image lazy-load fit="cover" :src="getpics(item.appendFile)" alt="" />
           </div>
           <div class="text">
             <p class="title">报告事件:{{item.event}}</p>
@@ -98,9 +98,9 @@ export default {
       if (!item) return this.bgimg
       var url = ''
       var arr = item.split(',')
-      arr.forEach((item, index) => {
+      arr.forEach((item) => {
         if (item.indexOf('.jpg') || item.indexOf('.png')) {
-          url = arr[index]
+          url = arr[0].replace('/cgpimage/', '/cgpimage/240x240/')
           return
         }
       })

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

@@ -49,7 +49,7 @@
           <p>照片:</p>
           <div class="boximg">
             <div v-for="(item,index) in imgUrl" :key="index">
-              <van-image fit="contain" :src="item" alt="" @click="showPopup" />
+              <van-image lazy-load fit="contain" :src="item" alt="" @click="showPopup" />
             </div>
           </div>
           <van-image-preview v-model="show" :images="imgUrl"></van-image-preview>

+ 3 - 3
src/views/weibao/views/specialServices/serviceComplete.vue

@@ -2,7 +2,7 @@
   <div :class="roleIdStr==21?'div' :''">
     <div class="list" v-for="item in historyList" :key="item.id" @click="$router.push({path:'/specialServices/details',query:{id:item.historyId}})">
       <div class="img">
-        <van-image fit="cover" :src="getpics(item.imgUrl)" alt="" />
+        <van-image lazy-load fit="cover" :src="getpics(item.imgUrl)" alt="" />
       </div>
       <div class="text">
         <div class="num title">
@@ -36,9 +36,9 @@ export default {
       if (!item) return this.bgimg
       var url = ''
       var arr = item.split(',')
-      arr.forEach((item, index) => {
+      arr.forEach((item) => {
         if (item.indexOf('.jpg') || item.indexOf('.png')) {
-          url = arr[index]
+          url = arr[0].replace('/cgpimage/', '/cgpimage/240x240/')
           return
         }
       })

BIN
src/views/zhulao/assets/images/nav/hea.png


BIN
src/views/zhulao/assets/images/nav/hea1.png


+ 15 - 9
src/views/zhulao/components/Tabbar.vue

@@ -34,16 +34,22 @@ export default {
           router: '/circleHome',
           text: '养老服务圈',
         },
+        // {
+        //   iconPath: require('../assets/images/nav/serve-store-off.png'),
+        //   selectedIconPath: require('../assets/images/nav/serve-store-on.png'),
+        //   router: '/shoppingMall',
+        //   text: '养老商城',
+        // },
+        // {
+        //   iconPath: require('../assets/images/nav/my-off.png'),
+        //   selectedIconPath: require('../assets/images/nav/my-on.png'),
+        //   text: '我的',
+        // },
         {
-          iconPath: require('../assets/images/nav/serve-store-off.png'),
-          selectedIconPath: require('../assets/images/nav/serve-store-on.png'),
-          router: '/shoppingMall',
-          text: '养老商城',
-        },
-        {
-          iconPath: require('../assets/images/nav/my-off.png'),
-          selectedIconPath: require('../assets/images/nav/my-on.png'),
-          text: '我的',
+          iconPath: require('../assets/images/nav/hea.png'),
+          selectedIconPath: require('../assets/images/nav/hea1.png'),
+          router: '/healthAssessmen',
+          text: '健康管理',
         },
       ],
     }

+ 6 - 1
src/views/zhulao/main.js

@@ -4,11 +4,16 @@ import router from './router/router'
 import store from './store/index'
 import '../../styles/index.css'
 import './styles/index.css'
-import Vant from 'vant'
+import Vant, {
+    Lazyload
+} from 'vant'
 import 'vant/lib/index.css'
 import 'lib-flexible/flexible'
+import echarts from 'echarts'
 Vue.config.productionTip = false
 Vue.use(Vant)
+Vue.use(Lazyload)
+Vue.prototype.$echarts = echarts
 new Vue({
     router,
     store,

+ 8 - 2
src/views/zhulao/router/router.js

@@ -91,8 +91,14 @@ const routes = [{
         },
         component: () => import('../views/healthAssessmen/details.vue')
     },
-
-
+    {
+        path: '/typemain',
+        name: 'estimate',
+        meta: {
+            keepAlive: false
+        },
+        component: () => import('../views/healthAssessmen/typeDetails/typemain.vue')
+    },
 ]
 const router = new VueRouter({
     routes

+ 1 - 0
src/views/zhulao/views/healthAssessmen/estimate.vue

@@ -174,6 +174,7 @@ export default {
 }
 .search {
   width: 120px;
+  height: 80px;
   color: #fff;
   border-radius: 5px;
   background-color: #ffc900;

+ 4 - 1
src/views/zhulao/views/healthAssessmen/index.vue

@@ -16,7 +16,7 @@
         </div>
       </div>
     </div>
-    <div class="list" v-for="item in healthType" :key="item.id">
+    <div class="list" v-for="item in healthType" :key="item.id" @click="$router.push({path:'/typemain',query:{id:item.id,name:item.name,command:item.command,unit:item.unit}})">
       <div class="icon">
         <van-image :src="item.icon"></van-image>
       </div>
@@ -29,12 +29,15 @@
         </div>
       </div>
     </div>
+    <Tabbar />
   </div>
 </template>
 <script>
 import { healthType } from './term.js'
 import { userApi, queryaction } from '../../api/index.js'
+import Tabbar from '../../components/Tabbar.vue'
 export default {
+  components: { Tabbar },
   data() {
     return {
       healthType: healthType,

+ 15 - 1
src/views/zhulao/views/healthAssessmen/term.js

@@ -9,7 +9,8 @@ const healthType = [{
         dateTime: '',
         id: 1,
         type: 'weight',
-        num: ''
+        num: '',
+        command: 'getHealthsWeightHistory'
     },
     {
         name: '血糖',
@@ -20,6 +21,7 @@ const healthType = [{
         unit: 'mmol/L',
         style: 'color:#92cdee',
         type: 'glu',
+        command: 'getHealthsGluHistory',
         id: 2
     },
     {
@@ -31,6 +33,7 @@ const healthType = [{
         unit: 'mmHg',
         style: 'color:#41b98c',
         type: 'nibp',
+        command: 'getHealthsNibpHistory',
         id: 3
     },
     {
@@ -42,6 +45,7 @@ const healthType = [{
         unit: '%',
         style: 'color:#da262c',
         type: 'spo',
+        command: 'getHealthsSpoHistory',
         id: 4
     },
     {
@@ -53,6 +57,7 @@ const healthType = [{
         unit: 'mmol/L',
         style: 'color:#a8a0f1',
         type: 'chol',
+        command: 'gethealthyCholHistory',
         id: 5
     },
     {
@@ -64,6 +69,7 @@ const healthType = [{
         unit: 'g/L',
         style: 'color:#f84472',
         type: 'hb',
+        command: 'gethealthyHbHistory',
         id: 6
     },
     {
@@ -75,6 +81,7 @@ const healthType = [{
         unit: '',
         style: 'color:#fdcb6b',
         type: 'urine',
+        command: "gethealthsurinehistory",
         id: 7
     },
     {
@@ -86,6 +93,7 @@ const healthType = [{
         unit: '°C',
         style: 'color:#13b8ea',
         type: 'temp',
+        command: 'gethealthstemphistory',
         id: 8
     },
     {
@@ -97,6 +105,7 @@ const healthType = [{
         unit: 'umol/L',
         style: 'color:#b1e531',
         type: 'ua',
+        command: 'gethealthsuahistory',
         id: 9
     },
     {
@@ -108,6 +117,7 @@ const healthType = [{
         unit: 'umol/L',
         style: 'color:#fb5ea2',
         type: 'vc',
+        command: 'gethealthsvchistory',
         id: 10
     },
     {
@@ -119,6 +129,7 @@ const healthType = [{
         unit: '%',
         style: 'color:#fb5ea2',
         type: 'fat',
+        command: 'gethealthsfathistory',
         id: 11
     },
     {
@@ -130,6 +141,7 @@ const healthType = [{
         unit: '',
         style: 'color:#fcd200',
         type: 'ultrasonic',
+        command: 'gethealthsultrasonichistory',
         id: 12
     },
     {
@@ -140,6 +152,7 @@ const healthType = [{
         termNum2: '测量时间:',
         unit: '',
         style: 'color:#fcd200',
+        command: "gethealthsischemiachistory",
         type: 'ischemia',
         id: 13
     },
@@ -152,6 +165,7 @@ const healthType = [{
         unit: '',
         style: 'color:#fcd200',
         type: 'artery',
+        command: 'gethealthsarteryhistory',
         id: 14
     },
 ]

+ 123 - 0
src/views/zhulao/views/healthAssessmen/typeDetails/header.vue

@@ -0,0 +1,123 @@
+<template>
+  <div class="header">
+    <div>
+      <div class="selectBox">
+        <div class="content" @click="select=!select">{{selectValue}}</div>
+        <div :class="select? 'select':'select selectOut'">
+          <div @click="selectValue='近半年',select=!select">近半年</div>
+          <div @click="selectValue='近一年',select=!select">近一年</div>
+          <div @click="selectValue='近两年',select=!select">近两年</div>
+        </div>
+      </div>
+    </div>
+    <div>
+      <div class="selectBox">
+        <div class="content" @click="selectType=!selectType">{{healthTypeValue||name}}</div>
+        <div :class="selectType? 'select':'select selectOutType'">
+          <div v-for="(item,index) in healthType" :key="index" @click="getselectvlaue(item)">{{item.name}}</div>
+        </div>
+      </div>
+    </div>
+    <van-button class="search" :disabled="searchloading" @click="search()">查询</van-button>
+  </div>
+</template>
+<script>
+import { healthType } from '.././term.js'
+export default {
+  props: ['name'],
+  data() {
+    return {
+      searchloading: false,
+      select: true,
+      selectType: true,
+      selectValue: '近半年',
+      healthType: healthType,
+      healthTypeValue: '',
+      command: '',
+      unit: '',
+    }
+  },
+  created() {
+    console.log(this.name)
+  },
+  methods: {
+    search() {
+      console.log('w')
+      this.$emit('onSerach', {
+        selectValue: this.selectValue,
+        healthTypeValue: this.healthTypeValue,
+        command: this.command,
+      })
+    },
+    getselectvlaue(item) {
+      this.unit = item.unit
+      this.command = item.command
+      this.healthTypeValue = item.name
+      this.selectType = !this.selectType
+    },
+  },
+}
+</script>
+<style lang="scss" scoped>
+.content {
+  font-size: 28px;
+  width: 240px;
+  height: 80px;
+  text-align: center;
+  color: #fff;
+  border-radius: 5px;
+  background-color: #00cccb;
+  line-height: 80px;
+}
+.selectBox {
+  position: relative;
+}
+.select {
+  position: absolute;
+  width: 100%;
+  top: 80px;
+  right: 0;
+  transition: all 0.5s;
+  height: 0;
+  overflow: hidden;
+  z-index: 900;
+  background-color: #eee;
+  //   background-color: #000;
+  font-size: 28px;
+  div {
+    height: 60px;
+    line-height: 60px;
+    text-align: center;
+  }
+}
+.selectOut {
+  height: 180px;
+}
+.selectOutType {
+  height: 840px;
+}
+.header {
+  position: fixed;
+  top: 0;
+  display: flex;
+  padding: 0 30px;
+  justify-content: space-between;
+  //   border-bottom: 1px solid #ddd;
+  padding-bottom: 16px;
+  margin-top: 100px;
+  width: calc(100% - 60px);
+  background-color: #fff;
+  z-index: 99999999;
+}
+.search {
+  width: 120px;
+  height: 80px;
+  color: #fff;
+  border-radius: 5px;
+  background-color: #ffc900;
+  line-height: 80px;
+  text-align: center;
+  font-size: 30px;
+  padding: 0;
+}
+</style>

+ 991 - 0
src/views/zhulao/views/healthAssessmen/typeDetails/typemain.vue

@@ -0,0 +1,991 @@
+<template>
+  <div>
+    <van-nav-bar title="健康评估" @click-left="$router.back()" left-arrow fixed placeholder safe-area-inset-top />
+    <Header :name="name" @onSerach="onSerach" />
+    <van-pull-refresh v-model="isLoading" @refresh="onRefresh">
+      <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.weight.date}}</p>
+              <p class="num">{{name}}:{{item.weight.value}}Kg</p>
+            </div>
+          </div>
+        </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">血糖值:<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=='血压'">
+        <div ref="mainEcharts2" class="mainEcharts"></div>
+        <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" v-if="item.nibpSys.value&&item.nibpDia.value">收缩压/舒张压:
+                <span style="color:#50D4C2"
+                  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  < 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  >= 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  < 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>
+              <p class="num">脉搏:{{item.pr}}次/分钟</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>
+          </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.spo}}
+                <small v-if="item.spo < defaultHealthRange.normal_spo" style="color: #FFC900">%</small>
+                <small v-else>%</small>
+              </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>
+            <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">总胆固醇(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>总胆固醇(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>
+          </van-popup>
+        </div>
+      </div>
+    </van-pull-refresh>
+  </div>
+</template>
+<script>
+import { queryaction, userApi } from '../../../api/index.js'
+import Header from './header.vue'
+export default {
+  components: { Header },
+  data() {
+    return {
+      selectValue: '近半年',
+      name: '',
+      command: '',
+      healths: '',
+      isLoading: false,
+      finished: false,
+      show: false,
+      unit: '',
+      healthRangeList: '',
+      normal_nibpSysMin: '',
+      normal_nibpSysMax: '',
+      normal_nibpDiaMin: '',
+      normal_nibpDiaMax: '',
+
+      normal_cholDgcMinMin: '',
+      normal_cxholDgcMax: '',
+      normal_cholGyszMin: '',
+      normal_cholGyszMax: '',
+      normal_cholGmdMin: '',
+      normal_cholGmdMax: '',
+      normal_cholDmdMin: '',
+      normal_cholDmdMax: '',
+      defaultHealthRange: {},
+      train1: 0,
+      train2: 0,
+      train3: 0,
+      train4: 0,
+    }
+  },
+  created() {
+    this.userApi()
+    this.name = this.$route.query.name
+    this.unit = this.$route.query.unit
+    this.command = this.$route.query.command
+    console.log(this.name)
+    this.queryaction()
+  },
+  methods: {
+    async queryaction() {
+      if (this.$refs['mainEcharts2']) {
+        this.$echarts.init(this.$refs['mainEcharts2']).dispose()
+        this.$echarts.init(this.$refs['mainEcharts']).dispose()
+      }
+
+      this.healths = [] // 切换查询时,数据未拿到,页面先更新 造成数据拿不到报错
+      var startTime = ''
+      var endTime = this.getStartTimeStr(-1)
+      switch (this.selectValue) {
+        case '近半年':
+          startTime = this.getStartTimeStr(186)
+          break
+        case '近一年':
+          startTime = this.getStartTimeStr(365)
+          break
+        case '近两年':
+          startTime = this.getStartTimeStr(730)
+          break
+      }
+      const res = await queryaction({
+        command: this.command,
+        uid: 2121,
+        startDate: startTime,
+        endDate: endTime,
+        extra: 0,
+        terminalType: 3,
+        pageNum: 1,
+        pageSize: 10,
+      })
+
+      if (this.name == '血脂' || this.name == '血红蛋白') {
+        console.log(res.data, '222')
+        this.healths = res.data.list
+      } else {
+        this.healths = res.healths
+      }
+
+      console.log(this.healths, 'this.healths')
+      var times = []
+      var values = []
+      var allValues = []
+      if (this.name == '血糖') {
+        this.healths.forEach((item) => {
+          console.log(item, '1')
+          var x = item.dateTime.slice(5, 10)
+          times.push(x)
+          values.push(item.glu)
+        })
+        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')
+          var x = item.dateTime.slice(5, 10)
+          times.push(x)
+          values.push(item.spo)
+        })
+        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)
+          times.push(x)
+          values.push(item.pr)
+          allValues[0] = [item.nibpSys]
+          allValues[1] = [item.nibpDia]
+        })
+        this.getEcharts(times, values, '次/分钟', '脉搏')
+        this.getEcharts2(times, allValues, 'mmHg', ['高压', '低压'])
+      }
+    },
+    onSerach(e) {
+      console.log(e, '搜索')
+      console.log(this.command, '搜索')
+      console.log(e.command || this.command, '搜索')
+      this.command = e.command || this.command
+      this.name = e.healthTypeValue || this.name
+      this.selectValue = e.selectValue || this.selectValue
+      this.queryaction()
+    },
+    onRefresh() {
+      this.queryaction()
+      this.isLoading = false
+    },
+    getStartTimeStr: function (day) {
+      var today = new Date()
+      var beforMilliseconds = today.getTime() - 1000 * 3600 * 24 * day
+      var beforday = new Date()
+      beforday.setTime(beforMilliseconds)
+      var strYear = beforday.getFullYear()
+      var strDay = beforday.getDate()
+      var strMonth = beforday.getMonth() + 1
+      if (strMonth < 10) {
+        strMonth = '0' + strMonth
+      }
+      if (strDay < 10) {
+        strDay = '0' + strDay
+      }
+
+      return strYear + '-' + strMonth + '-' + strDay
+    },
+    getEcharts(times, values, unit, legend) {
+      var option = {
+        tooltip: {
+          trigger: 'axis',
+        },
+        legend: {
+          x: 'right',
+          data: [legend],
+        },
+        grid: {
+          left: '3%',
+          right: '4%',
+          bottom: '3%',
+          containLabel: true,
+        },
+        xAxis: {
+          type: 'category',
+          boundaryGap: false,
+          data: times,
+        },
+        yAxis: {
+          type: 'value',
+          name: unit,
+          splitLine: {
+            show: false,
+          },
+        },
+        series: [
+          {
+            name: legend,
+            type: 'line',
+            data: values,
+          },
+        ],
+        color: ['#FF9900'],
+      }
+      var echarts = this.$echarts.init(this.$refs['mainEcharts'])
+      echarts.setOption(option)
+    },
+    getEcharts2(times, values, unit, legend) {
+      console.log(values, 'values')
+      console.log(legend, 'legend')
+      var option = {
+        tooltip: {
+          trigger: 'axis',
+        },
+        legend: {
+          x: 'right',
+          data: legend,
+        },
+        grid: {
+          left: '3%',
+          right: '4%',
+          bottom: '3%',
+          containLabel: true,
+        },
+        xAxis: {
+          type: 'category',
+          boundaryGap: false,
+          data: times,
+        },
+        yAxis: {
+          type: 'value',
+          name: unit,
+          splitLine: {
+            show: false,
+          },
+        },
+        series: [
+          {
+            name: legend[0],
+            type: 'line',
+            data: values[0],
+          },
+          {
+            name: legend[1],
+            type: 'line',
+            data: values[1],
+          },
+        ],
+        color: ['#FF9900', '#339999'],
+      }
+      var echarts = this.$echarts.init(this.$refs['mainEcharts2'])
+      echarts.setOption(option)
+    },
+    async userApi() {
+      const res = await userApi({
+        command: 'getDefaultHealthRange',
+        terminalType: 1,
+      })
+      console.log(res, 'defaultHealthRange')
+      var defaultHealthRange = res.healthRangeList
+      //   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.defaultHealthRange.normal_gluMin = defaultHealthRange[2].min //血糖
+      this.defaultHealthRange.normal_gluMax = defaultHealthRange[2].max
+      this.defaultHealthRange.normal_spo = defaultHealthRange[3].min //血氧
+
+      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.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.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++
+        }
+      })
+    },
+  },
+}
+</script>
+<style lang="scss" scoped>
+.list {
+  min-height: 196px;
+  position: relative;
+  border-bottom: 1px solid #ddd;
+  padding-left: 30px;
+  display: flex;
+  width: 100%;
+  .list_box {
+    margin-top: 52px;
+    width: calc(100% - 100px);
+    display: flex;
+    justify-content: space-between;
+    padding-bottom: 20px;
+    p {
+      margin: 0;
+    }
+    > div {
+      font-size: 30px;
+      margin-left: 26px;
+      .time {
+        color: #adadad;
+      }
+      .num {
+        margin-top: 10px;
+        color: #50d4c2;
+      }
+    }
+    > p {
+      font-size: 30px;
+      color: #50d4c2;
+      height: 60px;
+      background-color: #f8f8f8;
+      padding: 0 20px;
+      line-height: 60px;
+    }
+  }
+  .listg {
+    height: 100%;
+  }
+}
+.van-pull-refresh {
+  margin-top: 116px;
+  z-index: 1;
+  height: 100%;
+  padding-bottom: 40px;
+  overflow: hidden;
+}
+::v-deep .van-pull-refresh__track {
+  > div {
+    .list:nth-child(1) {
+      border-top: 1px solid #ddd;
+    }
+  }
+}
+.mainEcharts {
+  width: 100%;
+  height: 500px;
+}
+.standard {
+  font-size: 30px;
+  color: #50d4c2;
+  height: 60px;
+  background-color: #f8f8f8;
+  padding: 0 20px;
+  line-height: 60px;
+  position: absolute;
+  right: 60px;
+  top: 10px;
+}
+::v-deep .van-overlay {
+  z-index: 999999991 !important;
+}
+::v-deep .van-popup--center {
+  z-index: 999999992 !important;
+  padding: 0 20px;
+  width: 500px;
+  p {
+    font-size: 30px;
+    margin: 16px 0;
+  }
+  h5 {
+    margin: 30px 0;
+    font-size: 30px;
+    text-align: center;
+  }
+  .btn {
+    text-align: center;
+    padding: 20px 0;
+    .van-button {
+      width: 480px;
+      border-color: transparent;
+      background-color: #00cccb;
+      color: #fff;
+    }
+  }
+}
+.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>

Daži faili netika attēloti, jo izmaiņu fails ir pārāk liels