This commit is contained in:
shidongli 2024-08-09 15:38:31 +08:00
parent 3f86ff53e5
commit c8c084f9a1

View File

@ -41,7 +41,7 @@ export default {
name: "indicatorMonitoring", name: "indicatorMonitoring",
data() { data() {
return { return {
Height:'', MAX:null,
pickerOptions: { pickerOptions: {
disabledDate(time) { disabledDate(time) {
return time.getTime() > Date.now(); // return time.getTime() > Date.now(); //
@ -100,7 +100,9 @@ export default {
}) })
}, },
info(row) { info(row) {
console.log(row, '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);
@ -109,7 +111,8 @@ export default {
option = { option = {
title: { title: {
text: this.query.title text: this.query.title,
subtext: '单位:次/分钟'
}, },
tooltip: { tooltip: {
trigger: 'axis' trigger: 'axis'
@ -130,7 +133,7 @@ export default {
yAxis: { yAxis: {
type: 'value', type: 'value',
min: 0, min: 0,
max: 100, max: this.MAX,
}, },
series: [ series: [
{ {
@ -148,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'
@ -169,7 +174,7 @@ export default {
yAxis: { yAxis: {
type: 'value', type: 'value',
min: 0, min: 0,
max: 100, max: this.MAX,
}, },
series: [ series: [
{ {
@ -187,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'
@ -208,7 +215,7 @@ export default {
yAxis: { yAxis: {
type: 'value', type: 'value',
min: 0, min: 0,
max: 100, max: this.MAX,
}, },
series: [ series: [
{ {