|
@@ -47,20 +47,22 @@ export default {
|
|
|
};
|
|
|
},
|
|
|
created() {
|
|
|
- // this.$nextTick(() => {
|
|
|
- // this.getPHAnalyse();
|
|
|
- // });
|
|
|
+ this.$nextTick(() => {
|
|
|
+ // this.getPHAnalyse();
|
|
|
+ this.get();
|
|
|
+ });
|
|
|
},
|
|
|
methods: {
|
|
|
get() {
|
|
|
// this.getPHAnalyse();
|
|
|
- this.getScatter();
|
|
|
+ this.getScatter();
|
|
|
},
|
|
|
//散点数据
|
|
|
getScatter() {
|
|
|
let that = this;
|
|
|
that.API.requestData({
|
|
|
method: "POST",
|
|
|
+ showLoading: true,
|
|
|
baseURL: "http://192.168.10.5:9002/",
|
|
|
subUrl: "scatter/list",
|
|
|
data: {
|
|
@@ -78,15 +80,17 @@ export default {
|
|
|
];
|
|
|
that.scatterData = scatterArr;
|
|
|
let lineArr = {
|
|
|
- legends: ["实际", "修正"],
|
|
|
- data: [[], []],
|
|
|
+ legends: [],
|
|
|
+ data: [[],[]],
|
|
|
};
|
|
|
+
|
|
|
res.data.lineactual.forEach((ele) => {
|
|
|
lineArr.data[0].push(ele[1]);
|
|
|
});
|
|
|
res.data.lineoptimal.forEach((ele) => {
|
|
|
lineArr.data[1].push(ele[1]);
|
|
|
});
|
|
|
+
|
|
|
that.lineData = lineArr;
|
|
|
}
|
|
|
},
|
|
@@ -343,8 +347,8 @@ export default {
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
-
|
|
|
- console.log(selectedItems);
|
|
|
+
|
|
|
+ console.log(selectedItems);
|
|
|
});
|
|
|
|
|
|
this.resize = function () {
|