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