|  | @@ -1,5 +1,5 @@
 | 
											
												
													
														|  |  <template>
 |  |  <template>
 | 
											
												
													
														|  | -<div>
 |  | 
 | 
											
												
													
														|  | 
 |  | +<div class="X-echats">
 | 
											
												
													
														|  |   
 |  |   
 | 
											
												
													
														|  |    <div class="x-bar" v-show="container_show">
 |  |    <div class="x-bar" v-show="container_show">
 | 
											
												
													
														|  |      <div id="container"></div>
 |  |      <div id="container"></div>
 | 
											
										
											
												
													
														|  | @@ -13,6 +13,7 @@ import Highcharts from "highcharts"; //必须引入
 | 
											
												
													
														|  |  import { kgReplace, ugread } from "./Util.js";
 |  |  import { kgReplace, ugread } from "./Util.js";
 | 
											
												
													
														|  |  import { options } from 'runjs';
 |  |  import { options } from 'runjs';
 | 
											
												
													
														|  |  import { request } from "@/utils/request";
 |  |  import { request } from "@/utils/request";
 | 
											
												
													
														|  | 
 |  | +import { Message, MessageBox } from "element-ui";
 | 
											
												
													
														|  |  
 |  |  
 | 
											
												
													
														|  |  export default {
 |  |  export default {
 | 
											
												
													
														|  |    data() {
 |  |    data() {
 | 
											
										
											
												
													
														|  | @@ -148,6 +149,7 @@ export default {
 | 
											
												
													
														|  |             request(params)
 |  |             request(params)
 | 
											
												
													
														|  |          .then((res) => {
 |  |          .then((res) => {
 | 
											
												
													
														|  |            console.log(res);
 |  |            console.log(res);
 | 
											
												
													
														|  | 
 |  | +         
 | 
											
												
													
														|  |              })
 |  |              })
 | 
											
												
													
														|  |    },
 |  |    },
 | 
											
												
													
														|  |  
 |  |  
 | 
											
										
											
												
													
														|  | @@ -167,6 +169,7 @@ export default {
 | 
											
												
													
														|  |      // websocket
 |  |      // websocket
 | 
											
												
													
														|  |      getwebsocket() {
 |  |      getwebsocket() {
 | 
											
												
													
														|  |       // 初始化weosocket
 |  |       // 初始化weosocket
 | 
											
												
													
														|  | 
 |  | +      this.$emit('statechange','1');
 | 
											
												
													
														|  |       this.numlist=[];
 |  |       this.numlist=[];
 | 
											
												
													
														|  |       this.option.series=[];
 |  |       this.option.series=[];
 | 
											
												
													
														|  |       this.convergeDate.value=[];
 |  |       this.convergeDate.value=[];
 | 
											
										
											
												
													
														|  | @@ -184,6 +187,7 @@ export default {
 | 
											
												
													
														|  |             this.getlog();
 |  |             this.getlog();
 | 
											
												
													
														|  |             this.historydata()
 |  |             this.historydata()
 | 
											
												
													
														|  |              // }
 |  |              // }
 | 
											
												
													
														|  | 
 |  | +      
 | 
											
												
													
														|  |      },
 |  |      },
 | 
											
												
													
														|  |      websocketonerror() {
 |  |      websocketonerror() {
 | 
											
												
													
														|  |        //连接建立失败重连
 |  |        //连接建立失败重连
 | 
											
										
											
												
													
														|  | @@ -191,11 +195,13 @@ export default {
 | 
											
												
													
														|  |      },
 |  |      },
 | 
											
												
													
														|  |      websocketonmessage(e) {
 |  |      websocketonmessage(e) {
 | 
											
												
													
														|  |        //数据接收
 |  |        //数据接收
 | 
											
												
													
														|  | 
 |  | +
 | 
											
												
													
														|  |     try{
 |  |     try{
 | 
											
												
													
														|  |              const redata = JSON.parse(e.data);
 |  |              const redata = JSON.parse(e.data);
 | 
											
												
													
														|  |              if(typeof redata==='object'&& redata){
 |  |              if(typeof redata==='object'&& redata){
 | 
											
												
													
														|  |              
 |  |              
 | 
											
												
													
														|  |                if(redata.type == "log"){
 |  |                if(redata.type == "log"){
 | 
											
												
													
														|  | 
 |  | +                    // this.$emit('statechange','1');
 | 
											
												
													
														|  |                   this.$emit('getthislog',redata.stats+redata.value);
 |  |                   this.$emit('getthislog',redata.stats+redata.value);
 | 
											
												
													
														|  |                }
 |  |                }
 | 
											
												
													
														|  |              if (redata.type == "iter") {
 |  |              if (redata.type == "iter") {
 | 
											
										
											
												
													
														|  | @@ -330,4 +336,7 @@ export default {
 | 
											
												
													
														|  |  // .x-bar{
 |  |  // .x-bar{
 | 
											
												
													
														|  |  //   margin-top: 120px;
 |  |  //   margin-top: 120px;
 | 
											
												
													
														|  |  // }
 |  |  // }
 | 
											
												
													
														|  | 
 |  | +.x-bar{
 | 
											
												
													
														|  | 
 |  | +    margin-top: 130px;
 | 
											
												
													
														|  | 
 |  | +}
 | 
											
												
													
														|  |  </style>
 |  |  </style>
 |