|
@@ -1,7 +1,7 @@
|
|
|
<template>
|
|
|
- <view>
|
|
|
+ <view class="m-3 mb-5" ref="ccc">
|
|
|
<view class="position-relative bghead" style="margin-top: -80rpx;">
|
|
|
- <image src="@/static/other/tou.png" mode="widthFix" class="w-100"></image>
|
|
|
+ <image src="@/static/img/other/tou.png" mode="widthFix" class="w-100"></image>
|
|
|
</view>
|
|
|
<view class="p-3">
|
|
|
<view class="centerY mb-3 w-100 font-bold">
|
|
@@ -12,7 +12,7 @@
|
|
|
<view class="px-2 py-1 centerY" style="background: linear-gradient(180deg, #F6FFFF 0%, #EAFEFF 100%);">
|
|
|
<view class="w-15">
|
|
|
<view class="picbox">
|
|
|
- <image class="picimg" src="@/static/other/xy.png" mode="aspectFit"></image>
|
|
|
+ <image class="picimg" src="@/static/img/other/xy.png" mode="aspectFit"></image>
|
|
|
</view>
|
|
|
</view>
|
|
|
<view class=" ml-2">
|
|
@@ -23,28 +23,30 @@
|
|
|
</view>
|
|
|
<view class="ml-auto fs-14">
|
|
|
<view class="font-bold text-right line-height1" style="color: #868687;">
|
|
|
- {{'70/150 mmHg'}}
|
|
|
+ <span v-if="dataArray.gxyList&&dataArray.gxyList[0]">{{dataArray.gxyList&&dataArray.gxyList[0].rbp||'未测量'}}/{{dataArray.gxyList&&dataArray.gxyList[0].sbp||'未测量'}} mmHg</span>
|
|
|
+ <span v-else>未测量</span>
|
|
|
</view>
|
|
|
<view class="fs-12 centerY" style="color: #868687 ;">
|
|
|
<text class="iconfont Clock"></text>
|
|
|
<view class="ml-1">
|
|
|
- {{'2022-11-22 14:20:20'}}
|
|
|
+ <span v-if="dataArray.gxyList&&dataArray.gxyList[0]">{{dataArray.gxyList&&dataArray.gxyList[0].uploadTime}}</span>
|
|
|
+ <span v-else>暂无</span>
|
|
|
</view>
|
|
|
</view>
|
|
|
</view>
|
|
|
<view class="iconfont Chevron-Right fs-24" style="color: #35B79C;"></view>
|
|
|
</view>
|
|
|
- <view class="px-3 py-2">
|
|
|
+ <view class="px-3 py-2" v-if="dataArray.gxyList&&dataArray.gxyList.length">
|
|
|
<view class="fs-14 text-gry mb-1">
|
|
|
近7次测量记录
|
|
|
</view>
|
|
|
<view class="">
|
|
|
<view id="echarts1" class="echarts"></view>
|
|
|
</view>
|
|
|
-
|
|
|
- <view class="mt-3 p-2 mb-2" style="box-shadow: 0px 2px 13px 2px rgba(211,212,214,0.45);border-radius: 8px;">
|
|
|
+ <view class="mt-3 p-2 mb-2"
|
|
|
+ style="box-shadow: 0px 2px 13px 2px rgba(211,212,214,0.45);border-radius: 8px;">
|
|
|
<view class="centerY">
|
|
|
- <image class="w-10" src="@/static/other/xy2.png" mode="widthFix"></image>
|
|
|
+ <image class="w-10" src="@/static/img/other/xy2.png" mode="widthFix"></image>
|
|
|
<view class="fs-14 font-bold ml-2 space-nowrap">
|
|
|
血压标准
|
|
|
</view>
|
|
@@ -58,12 +60,12 @@
|
|
|
</view>
|
|
|
</view>
|
|
|
<view class="centerY mt-2">
|
|
|
- <image class="w-10" src="@/static/other/zjjy.png" mode="widthFix"></image>
|
|
|
+ <image class="w-10" src="@/static/img/other/zjjy.png" mode="widthFix"></image>
|
|
|
<view class="fs-14 font-bold ml-2 space-nowrap">
|
|
|
专家建议
|
|
|
</view>
|
|
|
<view class=" ml-2 fs-12" style="color: #868687;">
|
|
|
- 正常
|
|
|
+ 正常
|
|
|
</view>
|
|
|
</view>
|
|
|
</view>
|
|
@@ -73,7 +75,7 @@
|
|
|
<view class="px-2 py-1 centerY" style="background: linear-gradient(180deg, #ebf6ff 0%, #D4EBFF 100%);">
|
|
|
<view class="w-15 ">
|
|
|
<view class="picbox">
|
|
|
- <image class="picimg" src="@/static/other/xuet.png" mode="aspectFit"></image>
|
|
|
+ <image class="picimg" src="@/static/img/other/xuet.png" mode="aspectFit"></image>
|
|
|
</view>
|
|
|
</view>
|
|
|
<view class=" ml-2">
|
|
@@ -84,54 +86,57 @@
|
|
|
</view>
|
|
|
<view class="ml-auto fs-14">
|
|
|
<view class="font-bold text-right line-height1" style="color: #868687;">
|
|
|
- {{'4.5 mmol/L'}}
|
|
|
+ <span v-if="dataArray.gxyList&&dataArray.tnbList[0]">{{dataArray.tnbList&&dataArray.tnbList[0].glu||'未测量'}} mmol/L</span>
|
|
|
+ <span v-else>未测量</span>
|
|
|
</view>
|
|
|
<view class=" centerY" style="color: #868687 ;">
|
|
|
<text class="iconfont Clock"></text>
|
|
|
<view class="fs-12 ml-1">
|
|
|
- {{'2022-11-22 14:20:20'}}
|
|
|
+ <span v-if="dataArray.tnbList&&dataArray.tnbList[0]">{{dataArray.tnbList&&dataArray.tnbList[0].uploadTime}}</span>
|
|
|
+ <span v-else>暂无</span>
|
|
|
</view>
|
|
|
</view>
|
|
|
</view>
|
|
|
<view class="iconfont Chevron-Right fs-24" style="color: #369FE5;"></view>
|
|
|
</view>
|
|
|
- <view class="px-3 py-2">
|
|
|
+ <view class="px-3 py-2" v-if="dataArray.tnbList&&dataArray.tnbList.length">
|
|
|
<view class="fs-14 text-gry mb-1">
|
|
|
近7次测量记录
|
|
|
</view>
|
|
|
<view class="">
|
|
|
<view id="echarts2" class="echarts"></view>
|
|
|
</view>
|
|
|
- <view class="mt-3 p-2 mb-2" style="box-shadow: 0px 2px 13px 2px rgba(211,212,214,0.45);border-radius: 8px;">
|
|
|
- <view class="centerY">
|
|
|
- <image class="w-10" src="@/static/other/xtfw.png" mode="widthFix"></image>
|
|
|
- <view class="fs-14 font-bold ml-2 space-nowrap">
|
|
|
- 血糖标准
|
|
|
- </view>
|
|
|
- <view class=" ml-2 fs-12" style="color: #868687;">
|
|
|
- <view class="">
|
|
|
- 3.9~6.9 mmol/L
|
|
|
- </view>
|
|
|
- </view>
|
|
|
+ <view class="mt-3 p-2 mb-2"
|
|
|
+ style="box-shadow: 0px 2px 13px 2px rgba(211,212,214,0.45);border-radius: 8px;">
|
|
|
+ <view class="centerY">
|
|
|
+ <image class="w-10" src="@/static/img/other/xtfw.png" mode="widthFix"></image>
|
|
|
+ <view class="fs-14 font-bold ml-2 space-nowrap">
|
|
|
+ 血糖标准
|
|
|
</view>
|
|
|
- <view class="centerY mt-2">
|
|
|
- <image class="w-10" src="@/static/other/zjjy.png" mode="widthFix"></image>
|
|
|
- <view class="fs-14 font-bold ml-2 space-nowrap">
|
|
|
- 专家建议
|
|
|
- </view>
|
|
|
- <view class=" ml-2 fs-12" style="color: #868687;">
|
|
|
- 正常
|
|
|
+ <view class=" ml-2 fs-12" style="color: #868687;">
|
|
|
+ <view class="">
|
|
|
+ 3.9~6.9 mmol/L
|
|
|
</view>
|
|
|
</view>
|
|
|
</view>
|
|
|
-
|
|
|
+ <view class="centerY mt-2">
|
|
|
+ <image class="w-10" src="@/static/img/other/zjjy.png" mode="widthFix"></image>
|
|
|
+ <view class="fs-14 font-bold ml-2 space-nowrap">
|
|
|
+ 专家建议
|
|
|
+ </view>
|
|
|
+ <view class=" ml-2 fs-12" style="color: #868687;">
|
|
|
+ 正常
|
|
|
+ </view>
|
|
|
+ </view>
|
|
|
+ </view>
|
|
|
+
|
|
|
</view>
|
|
|
</view>
|
|
|
<view class="bg-white mt-2" style="border-radius: 16rpx;overflow: hidden;">
|
|
|
<view class="px-2 py-1 centerY" style="background: linear-gradient(180deg, #F6FFFF 0%, #EAFEFF 100%);">
|
|
|
<view class="w-15 ">
|
|
|
<view class="picbox">
|
|
|
- <image class="picimg" src="@/static/other/xinl.png" mode="aspectFit"></image>
|
|
|
+ <image class="picimg" src="@/static/img/other/xinl.png" mode="aspectFit"></image>
|
|
|
</view>
|
|
|
</view>
|
|
|
<view class=" ml-2">
|
|
@@ -142,48 +147,49 @@
|
|
|
</view>
|
|
|
<view class="ml-auto fs-14">
|
|
|
<view class="font-bold text-right line-height1" style="color: #868687;">
|
|
|
- {{'80 次/分钟'}}
|
|
|
+ <span v-if="dataArray.gxyList&&dataArray.gxyList[0]">{{dataArray.gxyList&&dataArray.gxyList[0].pulse||'未测量'}} 次/分钟</span>
|
|
|
+ <span v-else>未测量</span>
|
|
|
</view>
|
|
|
<view class="fs-10 centerY" style="color: #868687 ;">
|
|
|
<text class="iconfont Clock"></text>
|
|
|
<view class="ml-1">
|
|
|
- {{'2022-11-22 14:20:20'}}
|
|
|
+ <span v-if="dataArray.gxyList&&dataArray.gxyList[0]">{{dataArray.gxyList&&dataArray.gxyList[0].uploadTime}}</span>
|
|
|
+ <span v-else>暂无</span>
|
|
|
</view>
|
|
|
</view>
|
|
|
</view>
|
|
|
<view class="iconfont Chevron-Right fs-24" style="color: #35B79C "></view>
|
|
|
</view>
|
|
|
- <view class="px-3 py-2">
|
|
|
+ <view class="px-3 py-2" v-if="dataArray.gxyList&&dataArray.gxyList.length">
|
|
|
<view class="fs-14 text-gry mb-1">
|
|
|
近7次测量记录
|
|
|
</view>
|
|
|
<view class="">
|
|
|
<view id="echarts3" class="echarts"></view>
|
|
|
</view>
|
|
|
- <view class="mt-3 p-2 mb-2" style="box-shadow: 0px 2px 13px 2px rgba(211,212,214,0.45);border-radius: 8px;">
|
|
|
- <view class="centerY">
|
|
|
- <image class="w-10" src="@/static/other/xlfw.png" mode="widthFix"></image>
|
|
|
- <view class="fs-14 font-bold ml-2 space-nowrap">
|
|
|
- 心率标准
|
|
|
- </view>
|
|
|
- <view class=" ml-2 fs-12" style="color: #868687;">
|
|
|
- 60~100 次/分钟
|
|
|
- </view>
|
|
|
+ <view class="mt-3 p-2 mb-2"
|
|
|
+ style="box-shadow: 0px 2px 13px 2px rgba(211,212,214,0.45);border-radius: 8px;">
|
|
|
+ <view class="centerY">
|
|
|
+ <image class="w-10" src="@/static/img/other/xlfw.png" mode="widthFix"></image>
|
|
|
+ <view class="fs-14 font-bold ml-2 space-nowrap">
|
|
|
+ 心率标准
|
|
|
</view>
|
|
|
- <view class="centerY mt-2">
|
|
|
- <image class="w-10" src="@/static/other/zjjy.png" mode="widthFix"></image>
|
|
|
- <view class="fs-14 font-bold ml-2 space-nowrap">
|
|
|
- 专家建议
|
|
|
- </view>
|
|
|
- <view class=" ml-2 fs-12" style="color: #868687;">
|
|
|
- 正常
|
|
|
- </view>
|
|
|
+ <view class=" ml-2 fs-12" style="color: #868687;">
|
|
|
+ 60~100 次/分钟
|
|
|
</view>
|
|
|
</view>
|
|
|
-
|
|
|
+ <view class="centerY mt-2">
|
|
|
+ <image class="w-10" src="@/static/img/other/zjjy.png" mode="widthFix"></image>
|
|
|
+ <view class="fs-14 font-bold ml-2 space-nowrap">
|
|
|
+ 专家建议
|
|
|
+ </view>
|
|
|
+ <view class=" ml-2 fs-12" style="color: #868687;">
|
|
|
+ 正常
|
|
|
+ </view>
|
|
|
+ </view>
|
|
|
+ </view>
|
|
|
</view>
|
|
|
</view>
|
|
|
-
|
|
|
</view>
|
|
|
</view>
|
|
|
</template>
|
|
@@ -192,248 +198,69 @@
|
|
|
export default {
|
|
|
data() {
|
|
|
return {
|
|
|
-
|
|
|
+ dataArray:{}
|
|
|
};
|
|
|
},
|
|
|
- onReady() {},
|
|
|
+ onLoad() {
|
|
|
+ this.find_home_data()
|
|
|
+ },
|
|
|
methods: {
|
|
|
- changeOption() {
|
|
|
- const data = this.option.series[0].data
|
|
|
- // 随机更新示例数据
|
|
|
- data.forEach((item, index) => {
|
|
|
- data.splice(index, 1, Math.random() * 40)
|
|
|
+ async find_home_data() {
|
|
|
+ uni.showLoading({
|
|
|
+ title: '加载中'
|
|
|
+ });
|
|
|
+ let idCard = uni.getStorageSync('idCard')
|
|
|
+ let {
|
|
|
+ data,
|
|
|
+ code
|
|
|
+ } = await this.$api.find_home_data({
|
|
|
+ idCard
|
|
|
})
|
|
|
+ if (code == 0) {
|
|
|
+ this.dataArray = data;
|
|
|
+ if(data&&data.gxyList.length){
|
|
|
+ this.getdom('echarts1',()=>{
|
|
|
+ this.chartOption1(data.gxyList, 'echarts1')
|
|
|
+ })
|
|
|
+ this.getdom('echarts3',()=>{
|
|
|
+ this.chartOption3(data.gxyList, 'echarts3')
|
|
|
+ })
|
|
|
+ }
|
|
|
+ if(data&&data.tnbList.length){
|
|
|
+ this.getdom('echarts2',()=>{
|
|
|
+ this.chartOption2(data.tnbList, 'echarts3')
|
|
|
+ })
|
|
|
+ }
|
|
|
+ uni.hideLoading();
|
|
|
+ uni.stopPullDownRefresh()
|
|
|
+ } else {
|
|
|
+ uni.hideLoading();
|
|
|
+ uni.stopPullDownRefresh()
|
|
|
+ }
|
|
|
+ console.log(this.dataArray)
|
|
|
},
|
|
|
- onViewClick(options) {
|
|
|
- console.log(options)
|
|
|
+ getdom(dom,cb){
|
|
|
+ let timer = setInterval(()=>{
|
|
|
+ if(document.getElementById(dom)){
|
|
|
+ clearInterval(timer)
|
|
|
+ cb&&cb()
|
|
|
+ }
|
|
|
+ },300)
|
|
|
}
|
|
|
},
|
|
|
onPullDownRefresh() {
|
|
|
- setTimeout(()=>{
|
|
|
- uni.stopPullDownRefresh()
|
|
|
- },1000)
|
|
|
+ this.find_home_data()
|
|
|
}
|
|
|
}
|
|
|
</script>
|
|
|
|
|
|
<script module="echarts" lang="renderjs">
|
|
|
import * as echarts from 'echarts';
|
|
|
- let dataList = [{
|
|
|
- "id": 41,
|
|
|
- "idCard": null,
|
|
|
- "checkType": "ExamBloodGlucose",
|
|
|
- "medicalRecordId": null,
|
|
|
- "authorizationCode": null,
|
|
|
- "glu": "5.8",
|
|
|
- "deviceUuid": "355D0003795",
|
|
|
- "sbp": 110,
|
|
|
- "rbp": 80,
|
|
|
- "pulse": 80,
|
|
|
- "uploadTime": "2022-09-26 07:08:00",
|
|
|
- "createTime": "2022-09-26T07:06:54",
|
|
|
- "updateTime": "2022-09-26T07:06:54",
|
|
|
- "isDelete": 0,
|
|
|
- "aorB": null
|
|
|
- }, {
|
|
|
- "id": 39,
|
|
|
- "idCard": null,
|
|
|
- "checkType": "ExamBloodGlucose",
|
|
|
- "medicalRecordId": null,
|
|
|
- "authorizationCode": null,
|
|
|
- "glu": "5.5",
|
|
|
- "deviceUuid": "355D0003795",
|
|
|
- "sbp": 130,
|
|
|
- "rbp": 87,
|
|
|
- "pulse": 82,
|
|
|
- "uploadTime": "2022-09-23 06:20:00",
|
|
|
- "createTime": "2022-09-23T06:19:45",
|
|
|
- "updateTime": "2022-09-23T06:19:45",
|
|
|
- "isDelete": 0,
|
|
|
- "aorB": null
|
|
|
- }, {
|
|
|
- "id": 25,
|
|
|
- "idCard": null,
|
|
|
- "checkType": "ExamBloodGlucose",
|
|
|
- "medicalRecordId": null,
|
|
|
- "authorizationCode": null,
|
|
|
- "glu": "7.3",
|
|
|
- "deviceUuid": "355D0003795",
|
|
|
- "sbp": 125,
|
|
|
- "rbp": 95,
|
|
|
- "pulse": 95,
|
|
|
- "uploadTime": "2022-09-13 06:04:00",
|
|
|
- "createTime": "2022-09-13T06:04:26",
|
|
|
- "updateTime": "2022-09-13T06:04:26",
|
|
|
- "isDelete": 0,
|
|
|
- "aorB": null
|
|
|
- }, {
|
|
|
- "id": 24,
|
|
|
- "idCard": null,
|
|
|
- "checkType": "ExamBloodGlucose",
|
|
|
- "medicalRecordId": null,
|
|
|
- "authorizationCode": null,
|
|
|
- "glu": "9.1",
|
|
|
- "deviceUuid": "355D0003795",
|
|
|
- "sbp": 135,
|
|
|
- "rbp": 84,
|
|
|
- "pulse": 77,
|
|
|
- "uploadTime": "2022-09-12 07:56:00",
|
|
|
- "createTime": "2022-09-12T07:56:53",
|
|
|
- "updateTime": "2022-09-12T07:56:53",
|
|
|
- "isDelete": 0,
|
|
|
- "aorB": null
|
|
|
- }, {
|
|
|
- "id": 23,
|
|
|
- "idCard": null,
|
|
|
- "checkType": "ExamBloodGlucose",
|
|
|
- "medicalRecordId": null,
|
|
|
- "authorizationCode": null,
|
|
|
- "glu": "7.7",
|
|
|
- "deviceUuid": "355D0003795",
|
|
|
- "sbp": 143,
|
|
|
- "rbp": 90,
|
|
|
- "pulse": 89,
|
|
|
- "uploadTime": "2022-09-12 05:38:00",
|
|
|
- "createTime": "2022-09-12T05:38:40",
|
|
|
- "updateTime": "2022-09-12T05:38:40",
|
|
|
- "isDelete": 0,
|
|
|
- "aorB": null
|
|
|
- }, {
|
|
|
- "id": 22,
|
|
|
- "idCard": null,
|
|
|
- "checkType": "ExamBloodGlucose",
|
|
|
- "medicalRecordId": null,
|
|
|
- "authorizationCode": null,
|
|
|
- "glu": "17.8",
|
|
|
- "deviceUuid": "355D0003795",
|
|
|
- "sbp": 133,
|
|
|
- "rbp": 80,
|
|
|
- "pulse": 85,
|
|
|
- "uploadTime": "2022-09-11 15:51:00",
|
|
|
- "createTime": "2022-09-11T15:52:00",
|
|
|
- "updateTime": "2022-09-11T15:52:00",
|
|
|
- "isDelete": 0,
|
|
|
- "aorB": null
|
|
|
- }, {
|
|
|
- "id": 21,
|
|
|
- "idCard": null,
|
|
|
- "checkType": "ExamBloodGlucose",
|
|
|
- "medicalRecordId": null,
|
|
|
- "authorizationCode": null,
|
|
|
- "glu": "6.5",
|
|
|
- "deviceUuid": "355D0003795",
|
|
|
- "sbp": 123,
|
|
|
- "rbp": 75,
|
|
|
- "pulse": 86,
|
|
|
- "uploadTime": "2022-09-08 07:15:00",
|
|
|
- "createTime": "2022-09-08T07:13:21",
|
|
|
- "updateTime": "2022-09-08T07:13:21",
|
|
|
- "isDelete": 0,
|
|
|
- "aorB": null
|
|
|
- }]
|
|
|
- const config = {
|
|
|
- pulse: [60, 100],
|
|
|
- temperature: [36.5, 37.5],
|
|
|
- shrink: [90, 139],
|
|
|
- diastole: [60, 90],
|
|
|
- shrinktop: [90, 149], //大于65
|
|
|
- shrinklow: [90, 139], //小于65
|
|
|
- bmi: [18.50, 23.90],
|
|
|
- urine1: [
|
|
|
- [53, 106],
|
|
|
- [44, 97], "肌酐"
|
|
|
- ],
|
|
|
- urine2: [0, 30, "微量白蛋白"],
|
|
|
- urine3: [8.4, 13.2, "尿微/肌酐"],
|
|
|
- kidney1: [
|
|
|
- [208, 428],
|
|
|
- [155, 357], "血尿酸"
|
|
|
- ],
|
|
|
- kidney2: [
|
|
|
- [54, 133],
|
|
|
- [44, 97], "血肌酐"
|
|
|
- ],
|
|
|
- kidney3: [13.9, 6.1, "尿素氮"],
|
|
|
- bloodFat1: [0.45, 1.7, "甘油三酯"],
|
|
|
- bloodFat2: [2.85, 5.69, "总胆固醇"],
|
|
|
- bloodFat3: [0, 3.4, "低密度脂蛋白"],
|
|
|
- bloodFat4: [1.16, 1.55, "高密度脂蛋白"],
|
|
|
- lvision: [1.0, 5.0, '左视力'],
|
|
|
- rvision: [1.0, 5.0, '右视力'],
|
|
|
- bloodGlucose: [3.9, 6.9, '血糖'],
|
|
|
- chol: [2.85, 5.69, '总胆固醇'],
|
|
|
- ua: [
|
|
|
- [149, 416],
|
|
|
- [89, 357], '尿酸'
|
|
|
- ],
|
|
|
- spo2: [95, 99, '血氧'],
|
|
|
- rxyl: [0, 0],
|
|
|
- ryjl: [0, 0],
|
|
|
- }
|
|
|
- let info = {
|
|
|
- "id": 905,
|
|
|
- "username": "罗桂花",
|
|
|
- "birthday": "1945-12-28",
|
|
|
- "age": 77,
|
|
|
- "sex": 2,
|
|
|
- "idCard": "330222194512283184",
|
|
|
- "socialInsurance": "1111",
|
|
|
- "tod": "[]",
|
|
|
- "phone": "15854712036",
|
|
|
- "nation": "汉族",
|
|
|
- "culture": "高中",
|
|
|
- "occupation": "自由职业",
|
|
|
- "marriage": "已婚",
|
|
|
- "address": "[\"330000\",\"330100\",\"330122\"]",
|
|
|
- "addressDetail": "111",
|
|
|
- "province": "浙江省",
|
|
|
- "city": "杭州市",
|
|
|
- "area": "桐庐县",
|
|
|
- "town": "附海镇",
|
|
|
- "village": "花木村",
|
|
|
- "healthIndex": null,
|
|
|
- "complication": "[]",
|
|
|
- "acutecomplications": null,
|
|
|
- "medicalInsuranceType": 1,
|
|
|
- "chronicDiseaseType": 4,
|
|
|
- "gxyIllTime": null,
|
|
|
- "tnbIllTime": null,
|
|
|
- "diseaseHistory": null,
|
|
|
- "familyHistory": null,
|
|
|
- "saltiness": "",
|
|
|
- "hospitalId": 103,
|
|
|
- "registUserId": 78,
|
|
|
- "nextVisitTime": null,
|
|
|
- "newVisitDate": null,
|
|
|
- "disability": null,
|
|
|
- "povertySituation": null,
|
|
|
- "healthImportance": null,
|
|
|
- "lvhTime": null,
|
|
|
- "lvh": null,
|
|
|
- "carotidPlaque": null,
|
|
|
- "carotidPlaqueTime": null,
|
|
|
- "hyperhomocysteinemia": null,
|
|
|
- "mentalIllness": null,
|
|
|
- "acuteDisease": null,
|
|
|
- "chronicDisease": null,
|
|
|
- "chronicConfirmedTime": null,
|
|
|
- "acuteConfirmedTime": null,
|
|
|
- "hospitalTime": null,
|
|
|
- "acuteRiskLevel": null,
|
|
|
- "chronicRiskLevel": null,
|
|
|
- "andComplication": "[]",
|
|
|
- "project": null,
|
|
|
- "isSend": "0",
|
|
|
- "createTime": "2022-11-23 13:14:24",
|
|
|
- "updateTime": "2022-11-23T13:14:24",
|
|
|
- "isDelete": 0
|
|
|
- }
|
|
|
+ import { config } from '@/static/js/defult_value.js';
|
|
|
export default {
|
|
|
mounted() {
|
|
|
console.log(echarts)
|
|
|
- this.chartOption1(dataList, 'echarts1')
|
|
|
- this.chartOption2(dataList, 'echarts2')
|
|
|
- this.chartOption3(dataList, 'echarts3')
|
|
|
+
|
|
|
// this.initChart('echarts1', this.option)
|
|
|
// this.initChart('echarts2', this.option2)
|
|
|
},
|
|
@@ -448,18 +275,15 @@
|
|
|
// },
|
|
|
onClick(event, ownerInstance) {
|
|
|
// 调用 service 层的方法
|
|
|
- ownerInstance.callMethod('onViewClick', {
|
|
|
- test: 'test'
|
|
|
- })
|
|
|
- },
|
|
|
|
|
|
+ },
|
|
|
check({
|
|
|
type,
|
|
|
value,
|
|
|
age,
|
|
|
sex
|
|
|
}) {
|
|
|
- let msg = info
|
|
|
+ let msg = uni.getStorageSync('userData')
|
|
|
let arr = config
|
|
|
if (type == 'shrink' && age) {
|
|
|
if (msg.age > 65) {
|
|
@@ -491,7 +315,7 @@
|
|
|
if (value > arr[type][1][1]) {
|
|
|
return true
|
|
|
}
|
|
|
- if (value < arr[type][1][0]) {
|
|
|
+ if (value < arr[type][1][0]) {
|
|
|
return true
|
|
|
}
|
|
|
}
|
|
@@ -513,7 +337,10 @@
|
|
|
data3 = [],
|
|
|
time = []
|
|
|
data.map((item) => {
|
|
|
- time.push(this.$mf.timeTrans({time:item.uploadTime,format:'M.D'}))
|
|
|
+ time.push(this.$mf.timeTrans({
|
|
|
+ time: item.uploadTime,
|
|
|
+ format: 'M.D'
|
|
|
+ }))
|
|
|
data1.push(item.sbp)
|
|
|
data2.push(item.rbp)
|
|
|
data3.push(item.pulse)
|
|
@@ -644,7 +471,10 @@
|
|
|
let data1 = [],
|
|
|
time = []
|
|
|
data.map((item) => {
|
|
|
- time.push(this.$mf.timeTrans({time:item.uploadTime,format:'M.D'}))
|
|
|
+ time.push(this.$mf.timeTrans({
|
|
|
+ time: item.uploadTime,
|
|
|
+ format: 'M.D'
|
|
|
+ }))
|
|
|
data1.push(item.glu)
|
|
|
})
|
|
|
|
|
@@ -737,7 +567,10 @@
|
|
|
data3 = [],
|
|
|
time = []
|
|
|
data.map((item) => {
|
|
|
- time.push(this.$mf.timeTrans({time:item.uploadTime,format:'M.D'}))
|
|
|
+ time.push(this.$mf.timeTrans({
|
|
|
+ time: item.uploadTime,
|
|
|
+ format: 'M.D'
|
|
|
+ }))
|
|
|
data3.push(item.pulse)
|
|
|
})
|
|
|
|
|
@@ -804,7 +637,7 @@
|
|
|
x: 0,
|
|
|
y: 0,
|
|
|
x2: 0,
|
|
|
- y2: 1,
|
|
|
+ y2: 1,
|
|
|
global: false,
|
|
|
colorStops: [{
|
|
|
offset: 0,
|