|
@@ -92,7 +92,7 @@
|
|
|
</el-dialog>
|
|
|
</template>
|
|
|
<script>
|
|
|
-import BarChart from ".//barChart.vue";
|
|
|
+import BarChart from "./barChart.vue";
|
|
|
import LineChart from "./lineChart.vue";
|
|
|
import ChartDetails from "./chartDetails.vue";
|
|
|
import * as echarts from "echarts";
|
|
@@ -253,7 +253,7 @@ export default {
|
|
|
res.forEach((item) => {
|
|
|
let arr = item.name.split("-");
|
|
|
item.coordinate = JSON.parse(item.coordinate);
|
|
|
- item.showName = arr[0];
|
|
|
+ item.showName = arr[0]+' - '+arr[1]+' - '+arr[2];
|
|
|
item.showTime = new Date(Number(arr[1])).formatDate(
|
|
|
"yyyy-MM-dd hh:mm:ss"
|
|
|
);
|
|
@@ -268,22 +268,21 @@ export default {
|
|
|
let that = this;
|
|
|
this.API.requestData({
|
|
|
method: "GET",
|
|
|
- baseURL: "http://192.168.10.18:8080/",
|
|
|
+ baseURL: "http://10.155.32.14:9090/",
|
|
|
subUrl: "api/supervised/history",
|
|
|
success(res) {
|
|
|
if (res) {
|
|
|
res.forEach((item) => {
|
|
|
let arr = item.name.split("-");
|
|
|
item.coordinate = JSON.parse(item.coordinate);
|
|
|
- item.showName = arr[2];
|
|
|
+ item.showName = arr[0]+' - '+arr[1]+' - '+arr[2];
|
|
|
item.showTime = new Date(Number(arr[3])).formatDate(
|
|
|
"yyyy-MM-dd hh:mm:ss"
|
|
|
);
|
|
|
item.coordinate.bar = JSON.parse(item.coordinate.bar);
|
|
|
});
|
|
|
that.accuracyList.accuracy = res[that.current]?.coordinate.accuracy;
|
|
|
- that.accuracyList.val_accuracy =
|
|
|
- res[that.current]?.coordinate.val_accuracy;
|
|
|
+ that.accuracyList.val_accuracy = res[that.current]?.coordinate.val_accuracy;
|
|
|
res[that.current]?.coordinate.bar?.sort(that.Compare("value"));
|
|
|
that.barList = res[that.current]?.coordinate.bar?.slice(0, 5);
|
|
|
that.recordList = res;
|
|
@@ -365,7 +364,7 @@ export default {
|
|
|
let that = this;
|
|
|
this.API.requestData({
|
|
|
method: "GET",
|
|
|
- baseURL: "http://192.168.10.18:8080/",
|
|
|
+ baseURL: "http://10.155.32.14:9090/",
|
|
|
subUrl: "api/coordinate/history/remove/",
|
|
|
data: {
|
|
|
names: val,
|