diff --git a/src/views/wpm_bx/monitor_detail.vue b/src/views/wpm_bx/monitor_detail.vue
index 45189607..087f0b3d 100644
--- a/src/views/wpm_bx/monitor_detail.vue
+++ b/src/views/wpm_bx/monitor_detail.vue
@@ -9,7 +9,7 @@
>
-
+
{
if(res.length>0){
that.mpointList = res;
- that.activeName = res[0].name;
+ that.activeName = res[0].nickname;
that.params.mpoint = res[0].id;
that.apiObj = that.$API.enm.mplogx;
that.handleClick();
@@ -116,7 +116,7 @@ export default {
console.log('handleClick',val)
let that = this;
that.mpointList.forEach(item=>{
- if(item.name == that.activeName){
+ if(item.nickname == that.activeName){
that.query.mpoint = item.id;
that.query.page = 1;
that.option.title.text = that.activeName;
@@ -129,9 +129,9 @@ export default {
params.page = 0;
that.$API.enm.mplogx.req(params).then((res) => {
res.forEach(item=>{
- that.option.xAxis.data.push(item.timex);
+ that.option.xAxis.data.unshift(item.timex);
let value = Number(item.val_float).toFixed(3);
- that.option.series.data.push(value);
+ that.option.series.data.unshift(value);
})
})
}