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",
data() {
return {
Height:'',
MAX:null,
pickerOptions: {
disabledDate(time) {
return time.getTime() > Date.now(); //
@ -100,7 +100,9 @@ export default {
})
},
info(row) {
console.log(row, 'row')
if(Object.keys(row.ylist).length==0){
this.MAX=100
}
// domecharts
var chartDom = document.getElementById('main');
var myChart = echarts.init(chartDom);
@ -109,7 +111,8 @@ export default {
option = {
title: {
text: this.query.title
text: this.query.title,
subtext: '单位:次/分钟'
},
tooltip: {
trigger: 'axis'
@ -130,7 +133,7 @@ export default {
yAxis: {
type: 'value',
min: 0,
max: 100,
max: this.MAX,
},
series: [
{
@ -148,7 +151,9 @@ export default {
} else if (this.query.title == '血压测量') {
option = {
title: {
text: this.query.title
text: this.query.title,
subtext: '单位mmHg'
},
tooltip: {
trigger: 'axis'
@ -169,7 +174,7 @@ export default {
yAxis: {
type: 'value',
min: 0,
max: 100,
max: this.MAX,
},
series: [
{
@ -187,7 +192,9 @@ export default {
} else if (this.query.title == '血糖测量') {
option = {
title: {
text: this.query.title
text: this.query.title,
subtext: '单位mmol/L'
},
tooltip: {
trigger: 'axis'
@ -208,7 +215,7 @@ export default {
yAxis: {
type: 'value',
min: 0,
max: 100,
max: this.MAX,
},
series: [
{