Merge remote-tracking branch 'origin/dev' into dev

This commit is contained in:
闫晓茹 2024-08-09 15:57:49 +08:00
commit d620c7274d
2 changed files with 264 additions and 233 deletions

View File

@ -1,8 +1,13 @@
<template> <template>
<div class="header"> <div class="header">
<div class="leftheader"> <div class="leftheader">
<div class="item" v-for="(item, index) in categorylist" :key="item.id" @click="clickcategory(item, index)" <div
:class="index == categoryindex ? 'selectitem' : ''"> class="item"
v-for="(item, index) in categorylist"
:key="item.id"
@click="clickcategory(item, index)"
:class="index == categoryindex ? 'selectitem' : ''"
>
<div class="name"> <div class="name">
{{ item.title }} {{ item.title }}
</div> </div>
@ -10,11 +15,19 @@
</div> </div>
<div class="rightheader"> <div class="rightheader">
<div class="time"> <div class="time">
<el-date-picker v-model="measureTime" type="daterange" range-separator="" start-placeholder="开始日期" <el-date-picker
:clearable="false" value-format="yyyy-MM-dd" :picker-options="pickerOptions" end-placeholder="结束日期"> v-model="measureTime"
type="daterange"
range-separator="至"
start-placeholder="开始日期"
:clearable="false"
value-format="yyyy-MM-dd"
:picker-options="pickerOptions"
end-placeholder="结束日期"
>
</el-date-picker> </el-date-picker>
</div> </div>
<div id="main"></div> <div id="main" style="height:50%"></div>
</div> </div>
</div> </div>
</template> </template>
@ -28,6 +41,7 @@ export default {
name: "indicatorMonitoring", name: "indicatorMonitoring",
data() { data() {
return { return {
MAX:null,
pickerOptions: { pickerOptions: {
disabledDate(time) { disabledDate(time) {
return time.getTime() > Date.now(); // return time.getTime() > Date.now(); //
@ -86,14 +100,19 @@ export default {
}) })
}, },
info(row) { info(row) {
if(Object.keys(row.ylist).length==0){
this.MAX=100
}
// domecharts // domecharts
var chartDom = document.getElementById('main'); var chartDom = document.getElementById('main');
var myChart = echarts.init(chartDom); var myChart = echarts.init(chartDom);
var option; var option;
if (this.query.title == '运动检测') { if (this.query.title == '运动检测') {
option = { option = {
title: { title: {
text: this.query.title text: this.query.title,
subtext: '单位:次/分钟'
}, },
tooltip: { tooltip: {
trigger: 'axis' trigger: 'axis'
@ -103,7 +122,7 @@ export default {
grid: { grid: {
left: '3%', left: '3%',
right: '4%', right: '4%',
bottom: '0%', bottom: '2%',
containLabel: true containLabel: true
}, },
xAxis: { xAxis: {
@ -112,7 +131,9 @@ export default {
data: row.xlist data: row.xlist
}, },
yAxis: { yAxis: {
type: 'value' type: 'value',
min: 0,
max: this.MAX,
}, },
series: [ series: [
{ {
@ -130,7 +151,9 @@ export default {
} else if (this.query.title == '血压测量') { } else if (this.query.title == '血压测量') {
option = { option = {
title: { title: {
text: this.query.title text: this.query.title,
subtext: '单位mmHg'
}, },
tooltip: { tooltip: {
trigger: 'axis' trigger: 'axis'
@ -140,7 +163,7 @@ export default {
grid: { grid: {
left: '3%', left: '3%',
right: '4%', right: '4%',
bottom: '0%', bottom: '2%',
containLabel: true containLabel: true
}, },
xAxis: { xAxis: {
@ -149,7 +172,9 @@ export default {
data: row.xlist data: row.xlist
}, },
yAxis: { yAxis: {
type: 'value' type: 'value',
min: 0,
max: this.MAX,
}, },
series: [ series: [
{ {
@ -167,7 +192,9 @@ export default {
} else if (this.query.title == '血糖测量') { } else if (this.query.title == '血糖测量') {
option = { option = {
title: { title: {
text: this.query.title text: this.query.title,
subtext: '单位mmol/L'
}, },
tooltip: { tooltip: {
trigger: 'axis' trigger: 'axis'
@ -177,7 +204,7 @@ export default {
grid: { grid: {
left: '3%', left: '3%',
right: '4%', right: '4%',
bottom: '0%', bottom: '2%',
containLabel: true containLabel: true
}, },
xAxis: { xAxis: {
@ -186,7 +213,9 @@ export default {
data: row.xlist data: row.xlist
}, },
yAxis: { yAxis: {
type: 'value' type: 'value',
min: 0,
max: this.MAX,
}, },
series: [ series: [
{ {
@ -210,11 +239,10 @@ export default {
display: flex; display: flex;
height: calc(100vh - 84px); height: calc(100vh - 84px);
.rightheader { .rightheader {
width: 75%; width: 75%;
padding-top: 20px; padding-top: 20px;
border-left: 3px solid #DFE4ED; border-left: 3px solid #dfe4ed;
position: relative; position: relative;
.time { .time {
@ -241,7 +269,7 @@ export default {
overflow-x: hidden !important; overflow-x: hidden !important;
.selectitem { .selectitem {
background-color: #D2E9FC; background-color: #d2e9fc;
border-left: 2px solid #1890ff !important; border-left: 2px solid #1890ff !important;
border-bottom: 1px solid #fff !important; border-bottom: 1px solid #fff !important;
} }
@ -250,7 +278,7 @@ export default {
padding: 25px 10px; padding: 25px 10px;
position: relative; position: relative;
border-left: 2px solid #fff; border-left: 2px solid #fff;
border-bottom: 1px solid #E7E7E7; border-bottom: 1px solid #e7e7e7;
.name { .name {
font-size: 18px; font-size: 18px;

View File

@ -7,14 +7,17 @@
src="../../../assets/manage/touxiang.png" src="../../../assets/manage/touxiang.png"
alt="" alt=""
v-if="$route.query.sex == 'MALE'" v-if="$route.query.sex == 'MALE'"
@click="shiftCollapsiable"
/> />
<img <img
class="headsculpture" class="headsculpture"
src="../../../assets/manage/nvtouxiang.png" src="../../../assets/manage/nvtouxiang.png"
alt="" alt=""
v-if="$route.query.sex == 'FEMALE'" v-if="$route.query.sex == 'FEMALE'"
@click="shiftCollapsiable"
/> />
<div class="name"> <div class="name" @click="shiftCollapsiable">
{{ $route.query.patientName }} {{ $route.query.patientName }}
</div> </div>
<div class="gender"> <div class="gender">