|
|
@ -1,5 +1,5 @@
|
|
|
|
<template>
|
|
|
|
<template>
|
|
|
|
<div :class="className" :style="{height:height,width:width}" />
|
|
|
|
<div :class="className" :style="{height:height,width:width}"/>
|
|
|
|
</template>
|
|
|
|
</template>
|
|
|
|
|
|
|
|
|
|
|
|
<script>
|
|
|
|
<script>
|
|
|
@ -30,9 +30,9 @@ export default {
|
|
|
|
data() {
|
|
|
|
data() {
|
|
|
|
return {
|
|
|
|
return {
|
|
|
|
chart: null,
|
|
|
|
chart: null,
|
|
|
|
XData:['高温报警', '低压报警', '电池电量报警', '位置报警'],
|
|
|
|
XData: ['高温报警', '低压报警', '电池电量报警', '位置报警'],
|
|
|
|
dataOne:[1,2,3],
|
|
|
|
dataOne: [1, 2, 3],
|
|
|
|
dataTwo:[3,4,5]
|
|
|
|
dataTwo: [3, 4, 5]
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
},
|
|
|
|
mounted() {
|
|
|
|
mounted() {
|
|
|
@ -50,7 +50,7 @@ export default {
|
|
|
|
methods: {
|
|
|
|
methods: {
|
|
|
|
setData(e) {
|
|
|
|
setData(e) {
|
|
|
|
console.log(e)
|
|
|
|
console.log(e)
|
|
|
|
let item = e.filter(val => !!val )
|
|
|
|
let item = e.filter(val => !!val)
|
|
|
|
this.XData = item.map(val => val.time || '')
|
|
|
|
this.XData = item.map(val => val.time || '')
|
|
|
|
this.dataOne = item.map(val => val.course)
|
|
|
|
this.dataOne = item.map(val => val.course)
|
|
|
|
this.dataTwo = item.map(val => val.textureDepth)
|
|
|
|
this.dataTwo = item.map(val => val.textureDepth)
|
|
|
@ -78,10 +78,10 @@ export default {
|
|
|
|
},
|
|
|
|
},
|
|
|
|
toolbox: {
|
|
|
|
toolbox: {
|
|
|
|
feature: {
|
|
|
|
feature: {
|
|
|
|
dataView: { show: true, readOnly: false },
|
|
|
|
dataView: {show: true, readOnly: false},
|
|
|
|
magicType: { show: true, type: ['line', 'bar'] },
|
|
|
|
magicType: {show: true, type: ['line', 'bar']},
|
|
|
|
restore: { show: true },
|
|
|
|
restore: {show: true},
|
|
|
|
saveAsImage: { show: true }
|
|
|
|
saveAsImage: {show: true}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
},
|
|
|
|
legend: {
|
|
|
|
legend: {
|
|
|
|