|
@@ -41,10 +41,6 @@ export default {
|
|
|
loading: false,
|
|
|
dataSource: [],
|
|
|
times: [],
|
|
|
- gd02us: [],
|
|
|
- gd03us: [],
|
|
|
- gd05us: [],
|
|
|
- gd06us: [],
|
|
|
myChart: null,
|
|
|
echartsHeight: window.innerHeight - 450,
|
|
|
// 查询参数
|
|
@@ -172,6 +168,7 @@ export default {
|
|
|
_this.equipmentparams = res.result.records || res.result;
|
|
|
getAction(_this.url.list, _this.queryParams).then((res) => {
|
|
|
if (res.success) {
|
|
|
+ _this.mongodbdata = [];
|
|
|
_this.mongodbdata = res.result.records || res.result;
|
|
|
_this.initEcharts();
|
|
|
} else {
|
|
@@ -187,7 +184,6 @@ export default {
|
|
|
// 后端好了需要删掉
|
|
|
getTest() {
|
|
|
var _this = this
|
|
|
- _this.gd02us = []
|
|
|
_this.times = []
|
|
|
this.initEcharts()
|
|
|
},
|
|
@@ -196,8 +192,8 @@ export default {
|
|
|
var chartDom = this.$refs.trendCharts
|
|
|
_this.myChart = echarts.init(chartDom)
|
|
|
_this.echartsHeight = 4 * 300;
|
|
|
-
|
|
|
// 获取time
|
|
|
+ _this.times = [];
|
|
|
_this.mongodbdata.forEach((i) => {
|
|
|
_this.times.push(i.logtime.substring(11, 16))
|
|
|
});
|