修改
This commit is contained in:
parent
3f86ff53e5
commit
c8c084f9a1
@ -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
|
||||
}
|
||||
// 基于准备好的dom,初始化echarts实例
|
||||
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: [
|
||||
{
|
||||
|
||||
Loading…
Reference in New Issue
Block a user