联调实时数据页面
This commit is contained in:
@@ -5,10 +5,10 @@
|
||||
<div class="bx" id="wave"></div>
|
||||
</div>
|
||||
</div>
|
||||
<el-button style="position: absolute; right: 10px; top: 0px; z-index: 20000" type="primary" link
|
||||
<!-- <el-button style="position: absolute; right: 10px; top: 0px; z-index: 20000" type="primary" link
|
||||
icon="el-icon-Download" title="生成图片" @click="download">
|
||||
下载
|
||||
</el-button>
|
||||
</el-button> -->
|
||||
</div>
|
||||
</template>
|
||||
<script lang="js">
|
||||
@@ -28,6 +28,10 @@ export default {
|
||||
type: [String, Number, Boolean],
|
||||
default: 3
|
||||
},
|
||||
parentHeight: {
|
||||
type: [String, Number, Boolean],
|
||||
default: 0
|
||||
},
|
||||
DColor: {
|
||||
type: Boolean,
|
||||
default: false
|
||||
@@ -78,6 +82,10 @@ export default {
|
||||
} else {
|
||||
this.vh = mainHeight(165, 2).height
|
||||
}
|
||||
if (this.parentHeight != 0) {
|
||||
this.vh = mainHeight(this.parentHeight, 2).height
|
||||
|
||||
}
|
||||
this.vw = '100%'
|
||||
},
|
||||
watch: {
|
||||
@@ -506,7 +514,7 @@ export default {
|
||||
colors.push('#CC0000')
|
||||
break
|
||||
}
|
||||
|
||||
|
||||
|
||||
if (waveDatas[0].unit === '电压') {
|
||||
if (this.value === 1) {
|
||||
@@ -604,8 +612,8 @@ export default {
|
||||
}
|
||||
},
|
||||
legend: {
|
||||
left: '70px',
|
||||
top: '20',
|
||||
right: 50,
|
||||
top: 25,
|
||||
verticalAlign: 'top',
|
||||
enabled: true,
|
||||
itemDistance: 5,
|
||||
@@ -621,17 +629,22 @@ export default {
|
||||
padding: [0, 0, 0, 0] //[上、右、下、左]
|
||||
}
|
||||
},
|
||||
// toolbox: {
|
||||
// show: step != 1 ? true : false,
|
||||
// feature: {
|
||||
// //restore: {},
|
||||
// saveAsImage: {
|
||||
// iconStyle: {
|
||||
// borderColor: _this.DColor ? "#fff" : echartsColor.WordColor,
|
||||
// },
|
||||
// },
|
||||
// },
|
||||
// },
|
||||
toolbox: {
|
||||
right: 20,
|
||||
top: 15,
|
||||
feature: {
|
||||
// 移除默认的 saveAsImage
|
||||
// saveAsImage: { title: '保存图片' }
|
||||
myCustomDownload: {
|
||||
title: '', // 按钮标题
|
||||
icon: 'path://M892.342857 463.238095l-73.142857-68.266666-258.438095 258.438095V29.257143h-97.52381v624.152381L204.8 394.971429 131.657143 463.238095l380.342857 380.342857zM107.27619 897.219048h804.571429v97.523809H107.27619z', // 自定义图标路径
|
||||
|
||||
onclick: function () {
|
||||
_this.download()
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
xAxis: {
|
||||
type: 'value',
|
||||
name: '时间\n(ms)',
|
||||
@@ -724,7 +737,7 @@ export default {
|
||||
left: '1%',
|
||||
right: '2.8%',
|
||||
bottom: '40px',
|
||||
top: '15%',
|
||||
top: '70px',
|
||||
containLabel: true
|
||||
},
|
||||
dataZoom: [
|
||||
@@ -747,7 +760,7 @@ export default {
|
||||
name: a,
|
||||
type: 'line',
|
||||
large: true,
|
||||
|
||||
|
||||
smooth: true,
|
||||
symbol: 'none',
|
||||
sampling: 'average',
|
||||
@@ -760,7 +773,7 @@ export default {
|
||||
name: b,
|
||||
type: 'line',
|
||||
large: true,
|
||||
|
||||
|
||||
smooth: true,
|
||||
symbol: 'none',
|
||||
sampling: 'average',
|
||||
@@ -773,7 +786,7 @@ export default {
|
||||
name: c,
|
||||
type: 'line',
|
||||
large: true,
|
||||
|
||||
|
||||
smooth: true,
|
||||
symbol: 'none',
|
||||
sampling: 'average',
|
||||
@@ -964,8 +977,8 @@ export default {
|
||||
}
|
||||
},
|
||||
legend: {
|
||||
left: '70px',
|
||||
top: '20',
|
||||
right: 50,
|
||||
top: 25,
|
||||
verticalAlign: 'top',
|
||||
enabled: true,
|
||||
itemDistance: 5,
|
||||
@@ -1086,7 +1099,7 @@ export default {
|
||||
left: '1%',
|
||||
right: '2.8%',
|
||||
bottom: '40px',
|
||||
top: '15%',
|
||||
top: '70px',
|
||||
containLabel: true
|
||||
},
|
||||
dataZoom: [
|
||||
@@ -1109,7 +1122,7 @@ export default {
|
||||
name: a,
|
||||
type: 'line',
|
||||
large: true,
|
||||
|
||||
|
||||
smooth: true,
|
||||
symbol: 'none',
|
||||
sampling: 'average',
|
||||
@@ -1122,7 +1135,7 @@ export default {
|
||||
name: b,
|
||||
type: 'line',
|
||||
large: true,
|
||||
|
||||
|
||||
smooth: true,
|
||||
symbol: 'none',
|
||||
sampling: 'average',
|
||||
@@ -1135,7 +1148,7 @@ export default {
|
||||
name: c,
|
||||
type: 'line',
|
||||
large: true,
|
||||
|
||||
|
||||
smooth: true,
|
||||
symbol: 'none',
|
||||
sampling: 'average',
|
||||
|
||||
Reference in New Issue
Block a user