|
@@ -122,6 +122,7 @@ import scroll from "./scroll.vue"
|
|
|
import {getDeviceType, getIllegalShipStatic, getSo2Time, getStaticDevice} from "@/api/data/staticalData";
|
|
|
import {getdeviceList, queryShipData} from "@/api/data/deviceData";
|
|
|
import mapdiv from '../../../components/map/index.vue'
|
|
|
+import {getThresholdList} from "@/api/data/liuData";
|
|
|
|
|
|
export default {
|
|
|
name: "homeTable",
|
|
@@ -214,6 +215,7 @@ export default {
|
|
|
this.getStaticDevice();
|
|
|
this.getIllegalShipStatic();
|
|
|
this.getshipData();
|
|
|
+ this.getThresholdList();
|
|
|
// this.addDevicePoint();
|
|
|
// this.addAisPoint();
|
|
|
// this.addSo2Point();
|
|
@@ -222,6 +224,17 @@ export default {
|
|
|
// this.getChart();
|
|
|
},
|
|
|
methods: {
|
|
|
+ getThresholdList(){
|
|
|
+ getThresholdList({type: 'bridge'}).then(response => {
|
|
|
+ console.log(response);
|
|
|
+ for(var index in response.rows){
|
|
|
+ var obj = response.rows[index];
|
|
|
+ var points ='['+obj.configValue+']';
|
|
|
+ console.log(JSON.parse(points));
|
|
|
+ this.$refs.mapv.addline(JSON.parse(points));
|
|
|
+ }
|
|
|
+ });
|
|
|
+ },
|
|
|
getdeviceList() {
|
|
|
var dlist = [];
|
|
|
getdeviceList().then(data => {
|