sunran 3 роки тому
батько
коміт
0e0f67c488

+ 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'] = 'DabfQ2iZbs6FfphhCFcDTfSB6aEfrnnJ22d33f2f-5f7e-4913-9ca5-a2d18029a2da'
+            config.headers['authToken'] = 'y2pCZGibj836GTdEYnScWiH2Ed8yEeRy23e8127b-7119-49dc-bc10-1c94ce29a99d'
             config.baseURL = process.env.VUE_APP_ZL_HEALTH;
         }
         if (config.type === 'change') {

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

@@ -74,7 +74,7 @@ export default {
     onLoad() {
       this.mandatoryPage()
     },
-    changactive(v) {
+    changactive() {
       this.active = 1
       this.historyform.pageNum = 1
       this.mandatoryPage()

+ 9 - 1
src/views/zhulao/router/router.js

@@ -71,10 +71,18 @@ const routes = [{
         path: '/estimate',
         name: 'estimate',
         meta: {
-            keepAlive: false
+            keepAlive: true
         },
         component: () => import('../views/healthAssessmen/estimate.vue')
     },
+    {
+        path: '/details',
+        name: 'estimate',
+        meta: {
+            keepAlive: false
+        },
+        component: () => import('../views/healthAssessmen/details.vue')
+    },
 
 
 ]

+ 2 - 1
src/views/zhulao/views/classRoom/index.vue

@@ -72,9 +72,10 @@ export default {
       // 获取数据长度大于等于总数据长度 显示 没有更多
       if (this.info.length >= res.total) {
         this.finished = true
+      } else {
+        this.pageNum++
       }
       this.loading = false
-      this.pageNum++
     },
     onLoad() {
       this.getList('')

+ 162 - 0
src/views/zhulao/views/healthAssessmen/details.vue

@@ -0,0 +1,162 @@
+<template>
+  <div style="padding: 0 15px;">
+    <van-nav-bar title="健康评估" @click-left="$router.back()" left-arrow fixed placeholder safe-area-inset-top />
+    <h6 style="text-align:center;">动脉粥样硬化性心血管疾病风险评估报告</h6>
+    <div class="img">
+      <img v-if="ascvd.estimate=='VeryHigh'" src="../../assets/img/ascvd_veryhigh.png" alt="">
+      <img v-if="ascvd.estimate=='High'" src="../../assets/img/ascvd_high.png" alt="">
+      <img v-if="ascvd.estimate=='Medium'" src="../../assets/img/ascvd_medium.png" alt="">
+      <img v-if="ascvd.estimate=='Low'" src="../../assets/img/ascvd_low.png" alt="">
+    </div>
+    <div>
+      <h6>{{estimate?estimate:""}}</h6>
+      <p>{{estimate?("您目前属于动脉粥样硬化性心血管疾病的"+estimate):""}}</p>
+      <p>动脉粥样硬化是进展性、全身性的,动脉粥样硬化性心血管疾病包括:急性冠状动脉综合征(ACS)、稳定性冠心病、缺血性心肌病、缺血性卒中、短暂性脑缺血发作(TIA)和外周动脉粥样硬化病等。</p>
+    </div>
+    <div>
+      <h6>ASCVD主要危险因素检测结果:</h6>
+      <table class="zb_table">
+        <thead>
+          <tr>
+            <th width="40%">主要危险因素</th>
+            <th width="30%">检测结果</th>
+            <th width="30%">理想目标</th>
+          </tr>
+        </thead>
+        <tbody>
+          <tr>
+            <td>低密度脂蛋白胆固醇LDL-C</td>
+            <td name="ldlc">{{ascvd.ldlc?(ascvd.ldlc+"mmol/L"):""}}</td>
+            <td class="riskTarget">&lt;1.8mmol/L</td>
+          </tr>
+          <tr>
+            <td>血压</td>
+            <td name="nibp">{{ascvd.nibpSys?(ascvd.nibpSys+"/"+ascvd.nibpDia+"mmHg"):""}}</td>
+            <td class="riskTarget">&lt;130/80mmHg</td>
+          </tr>
+          <tr>
+            <td>空腹血糖GLU</td>
+            <td name="glu">{{ascvd.glu?(ascvd.glu+"mmol/L"):""}}</td>
+            <td class="riskTarget">4.4-7.0mmol/L</td>
+          </tr>
+          <tr>
+            <td>吸烟状况</td>
+            <td name="smoke">{{ascvd.smoke?"吸烟":""}}</td>
+            <td class="riskTarget">戒烟</td>
+          </tr>
+          <tr>
+            <td>体重指数</td>
+            <td name="bmi">{{ascvd.bmi}}</td>
+            <td class="riskTarget">20.0~23.9kg/m2</td>
+          </tr>
+        </tbody>
+      </table>
+    </div>
+    <div>
+      <h6>超声提示:</h6>
+      <div>
+        <img class="ascvd_img" :src="ultrasonic.filePic" alt="">
+      </div>
+    </div>
+  </div>
+</template>
+<script>
+import { queryaction } from '../../api/index.js'
+export default {
+  data() {
+    return {
+      ultrasonic: '',
+      estimate: '',
+      ascvd: '',
+      id: '',
+    }
+  },
+  created() {
+    this.estimate = this.$route.query.estimate
+    this.id = this.$route.query.id
+    this.queryaction()
+  },
+  methods: {
+    async queryaction() {
+      const res = await queryaction({
+        command: 'gethealthyAscvdUltrasonic',
+        uid: 2121,
+        id: this.id,
+      })
+      console.log(res, '111')
+      this.ascvd = res.ascvd
+      this.ultrasonic = res.ultrasonic
+    },
+  },
+}
+</script>
+<style lang="scss" scoped>
+.zb_table {
+  width: 100%;
+  border-collapse: collapse;
+  border: 3px solid #ffffff;
+}
+
+.zb_table td {
+  background-color: #e5e5e5;
+  height: 80px;
+  border: 3px solid #ffffff;
+  text-align: center;
+  vertical-align: middle;
+}
+
+.zb_table tr.zb_header td {
+  background-color: #65dfe0;
+  height: 60px;
+  text-align: center;
+  vertical-align: middle;
+}
+
+.zb_table span {
+  color: #ffffff;
+  font-size: 30px;
+}
+
+.zb_table tr th {
+  background-color: #d8f0fc;
+  height: 80px;
+  border: 3px solid #ffffff;
+  font-size: 28px;
+  vertical-align: middle;
+}
+
+.zb_table td.zb_count {
+  color: #aa0303;
+  font-weight: bold;
+}
+
+.zb_table td.zb_advice {
+  color: #4b8601;
+  text-align: left;
+  vertical-align: middle;
+  border-left: 0px;
+  padding-top: 10px;
+  padding-bottom: 10px;
+}
+
+.zb_icon {
+  width: 72px;
+  height: 60px;
+  position: absolute;
+}
+
+.zb_table span.zb_title {
+  color: #000000;
+  text-align: center;
+  font-size: 36px;
+}
+.img {
+  padding: 0 30px;
+  img {
+    width: 100%;
+  }
+}
+.ascvd_img {
+  max-width: 90%;
+}
+</style>

+ 17 - 35
src/views/zhulao/views/healthAssessmen/estimate.vue

@@ -16,23 +16,21 @@
         <van-button class="search" :disabled="searchloading" @click="pageNum=1,queryaction()">查询</van-button>
       </div>
       <van-pull-refresh v-model="isLoading" @refresh="onRefresh">
-        <van-list v-model="loading" :immediate-check="false" :finished="finished" finished-text="没有更多了" @load="onLoad">
-          <div class="list" v-for="item in healths" :key="item.id">
+        <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>
-              <img class="listg" :src="require('../../assets/img/listg.png')" alt="">
+              <p class="time">{{item.dateTime}}</p>
+              <p class="num">健康评估:{{showEstimate(item.estimate)}}</p>
             </div>
-            <div class="list_box">
-              <div>
-                <p class="time">{{item.dateTime}}</p>
-                <p class="num">健康评估:{{showEstimate(item.estimate)}}</p>
-              </div>
-              <p>
-                <van-icon name="question-o" />点击查看详情
-              </p>
+            <p @click="$router.push({path:'/details',query:{estimate:showEstimate(item.estimate),id:item.id}})">
+              <van-icon name="question-o" />点击查看详情
+            </p>
 
-            </div>
           </div>
-        </van-list>
+        </div>
       </van-pull-refresh>
     </div>
   </div>
@@ -109,26 +107,8 @@ export default {
         startDate: startTime,
         endDate: endTime,
         extra: 0,
-        pageNum: this.pageNum,
-        pageSize: 20,
       })
-      console.log(this.pageNum)
-      if (this.pageNum == 1) {
-        this.healths = res.healths
-      } else {
-        this.healths = this.healths.concat(res.healths)
-      }
-      if (res.healths.leagth == 0) {
-        this.finished = true
-        this.pageNum--
-      }
-
-      this.loading = false
-      this.pageNum++
-      this.searchloading = false
-    },
-    onLoad() {
-      this.queryaction()
+      this.healths = res.healths
     },
     onRefresh() {
       this.pageNum = 1
@@ -244,12 +224,14 @@ export default {
   height: calc(100% - 110px);
   overflow: hidden;
 }
-.van-list {
-  height: 100%;
-  .list:first-child {
+/deep/.van-pull-refresh__track {
+  .list:nth-child(2) {
     border-top: 1px solid #ddd;
   }
 }
+.van-list {
+  height: 100%;
+}
 .listg {
   height: 196px;
 }

+ 2 - 1
src/views/zhulao/views/home/index.vue

@@ -109,9 +109,10 @@ export default {
         }
         if (this.info.length >= res.total) {
           this.finished = true
+        } else {
+          this.pageNum++
         }
         this.loading = false
-        this.pageNum++
       }
     },
     onLoad() {