历史标注
parent
d7855eee36
commit
aa0ab357b4
3
.env.dev
3
.env.dev
|
|
@ -20,9 +20,12 @@ VUE_APP_OIDC_SILENTREDIRECTURI = http://112.233.241.108:1803/silent-renew-oidc.h
|
||||||
|
|
||||||
VUE_APP_BASE_API = http://123.132.248.154:9231/api
|
VUE_APP_BASE_API = http://123.132.248.154:9231/api
|
||||||
VUE_APP_BASE_IMG_URL = http://123.132.248.154:9231
|
VUE_APP_BASE_IMG_URL = http://123.132.248.154:9231
|
||||||
|
VUE_APP_WEBSOCKET_URL = ws://123.132.248.154:9225/ws
|
||||||
|
|
||||||
|
|
||||||
#VUE_APP_BASE_API = http://221.2.83.254:7001/api
|
#VUE_APP_BASE_API = http://221.2.83.254:7001/api
|
||||||
#VUE_APP_BASE_IMG_URL = http://221.2.83.254:7001
|
#VUE_APP_BASE_IMG_URL = http://221.2.83.254:7001
|
||||||
|
#VUE_APP_WEBSOCKET_URL = ws://221.2.83.254:9002/ws
|
||||||
|
|
||||||
#VUE_APP_BASE_API = http://123.132.248.154:9224/api
|
#VUE_APP_BASE_API = http://123.132.248.154:9224/api
|
||||||
#VUE_APP_BASE_IMG_URL = http://123.132.248.154:9224
|
#VUE_APP_BASE_IMG_URL = http://123.132.248.154:9224
|
||||||
|
|
|
||||||
|
|
@ -15,8 +15,9 @@ VUE_APP_OIDC_SILENTREDIRECTURI = http://demo.openauth.me:1803/silent-renew-oidc.
|
||||||
#VUE_APP_BASE_API = http://123.132.248.154:9224/api
|
#VUE_APP_BASE_API = http://123.132.248.154:9224/api
|
||||||
#VUE_APP_BASE_IMG_URL = http://123.132.248.154:9224
|
#VUE_APP_BASE_IMG_URL = http://123.132.248.154:9224
|
||||||
|
|
||||||
#VUE_APP_BASE_API = http://123.132.248.154:9231/api
|
VUE_APP_BASE_API = http://123.132.248.154:9231/api
|
||||||
#VUE_APP_BASE_IMG_URL = http://123.132.248.154:9231
|
VUE_APP_BASE_IMG_URL = http://123.132.248.154:9231
|
||||||
|
VUE_APP_WEBSOCKET_URL = ws://123.132.248.154:9225/ws
|
||||||
|
|
||||||
VUE_APP_BASE_API = http://221.2.83.254:7001/api
|
#VUE_APP_BASE_API = http://221.2.83.254:7001/api
|
||||||
VUE_APP_BASE_IMG_URL = http://221.2.83.254:7001
|
#VUE_APP_BASE_IMG_URL = http://221.2.83.254:7001
|
||||||
|
|
@ -7,7 +7,7 @@
|
||||||
<script>
|
<script>
|
||||||
import { mapGetters } from 'vuex'
|
import { mapGetters } from 'vuex'
|
||||||
import {setToken} from "./utils/auth";
|
import {setToken} from "./utils/auth";
|
||||||
|
let Socket_Url = process.env.VUE_APP_WEBSOCKET_URL
|
||||||
export default {
|
export default {
|
||||||
name: 'App',
|
name: 'App',
|
||||||
computed: {
|
computed: {
|
||||||
|
|
@ -49,9 +49,8 @@ export default {
|
||||||
},
|
},
|
||||||
initWebSocket() {
|
initWebSocket() {
|
||||||
// WebSocket与普通的请求所用协议有所不同,ws等同于http,wss等同于https
|
// WebSocket与普通的请求所用协议有所不同,ws等同于http,wss等同于https
|
||||||
let wsUrl = "ws://123.132.248.154:9225/ws";
|
// let wsUrl = "";
|
||||||
// let wsUrl = "ws://221.2.83.254:9002/ws";
|
window.websocket = new WebSocket(Socket_Url);
|
||||||
window.websocket = new WebSocket(wsUrl);
|
|
||||||
window.websocket.onopen = this.websocketonopen;
|
window.websocket.onopen = this.websocketonopen;
|
||||||
window.websocket.onerror = this.websocketonerror;
|
window.websocket.onerror = this.websocketonerror;
|
||||||
window.websocket.onmessage = this.setOnmessageMessage;
|
window.websocket.onmessage = this.setOnmessageMessage;
|
||||||
|
|
@ -64,6 +63,7 @@ export default {
|
||||||
//清除延时器
|
//清除延时器
|
||||||
this.timeoutObj && clearTimeout(this.timeoutObj);
|
this.timeoutObj && clearTimeout(this.timeoutObj);
|
||||||
this.serverTimeoutObj && clearTimeout(this.serverTimeoutObj);
|
this.serverTimeoutObj && clearTimeout(this.serverTimeoutObj);
|
||||||
|
|
||||||
this.timeoutObj = setTimeout(() => {
|
this.timeoutObj = setTimeout(() => {
|
||||||
if (window.websocket && window.websocket.readyState == 1) {
|
if (window.websocket && window.websocket.readyState == 1) {
|
||||||
//发送消息,服务端返回信息,即表示连接良好,可以在socket的onmessage事件重置心跳机制函数
|
//发送消息,服务端返回信息,即表示连接良好,可以在socket的onmessage事件重置心跳机制函数
|
||||||
|
|
|
||||||
|
|
@ -43,7 +43,9 @@
|
||||||
|
|
||||||
<div class="quick-button" v-if="appTools['reportbox']" @click=" reportlistShow = !reportlistShow">线索上报</div>
|
<div class="quick-button" v-if="appTools['reportbox']" @click=" reportlistShow = !reportlistShow">线索上报</div>
|
||||||
|
|
||||||
<div class="quick-button" @click="socketBoxVisible = !socketBoxVisible">现场人员</div>
|
<!-- <div class="quick-button" @click="socketBoxVisible = !socketBoxVisible">现场人员</div> -->
|
||||||
|
|
||||||
|
<div class="quick-button" @click="showHistoryLabel">历史标注</div>
|
||||||
|
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
|
@ -297,7 +299,7 @@ export default {
|
||||||
checkNumber:[],
|
checkNumber:[],
|
||||||
mergeboxShow:false,
|
mergeboxShow:false,
|
||||||
mergeSuccessRandom:1,
|
mergeSuccessRandom:1,
|
||||||
rightType: 0,
|
rightType: 5,
|
||||||
setDatas:{},
|
setDatas:{},
|
||||||
setVisibleShow: false,
|
setVisibleShow: false,
|
||||||
videoCallShow:false,
|
videoCallShow:false,
|
||||||
|
|
@ -359,6 +361,11 @@ export default {
|
||||||
window.delTaskPoint = this.delTaskPoint;
|
window.delTaskPoint = this.delTaskPoint;
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
|
// 查看历史标注
|
||||||
|
showHistoryLabel(){
|
||||||
|
this.setVisibleShow = true;
|
||||||
|
this.rightType = 4;
|
||||||
|
},
|
||||||
// 获取网络状态
|
// 获取网络状态
|
||||||
getNetWorkState() {
|
getNetWorkState() {
|
||||||
if (window.navigator.onLine) {
|
if (window.navigator.onLine) {
|
||||||
|
|
@ -368,9 +375,11 @@ export default {
|
||||||
}
|
}
|
||||||
|
|
||||||
let _this = this;
|
let _this = this;
|
||||||
|
|
||||||
window.addEventListener("online", function (e) {
|
window.addEventListener("online", function (e) {
|
||||||
_this.newworkstate = "网络正常";
|
_this.newworkstate = "网络正常";
|
||||||
});
|
});
|
||||||
|
|
||||||
window.addEventListener("offline", function (e) {
|
window.addEventListener("offline", function (e) {
|
||||||
_this.newworkstate = "网络断开";
|
_this.newworkstate = "网络断开";
|
||||||
_this.$message({
|
_this.$message({
|
||||||
|
|
@ -378,6 +387,7 @@ export default {
|
||||||
message: "网络已断开!",
|
message: "网络已断开!",
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
},
|
},
|
||||||
closeWaterlayer(){
|
closeWaterlayer(){
|
||||||
this.waterVisible = false
|
this.waterVisible = false
|
||||||
|
|
@ -850,7 +860,6 @@ export default {
|
||||||
{
|
{
|
||||||
text: "火点",
|
text: "火点",
|
||||||
callback: (e) => {
|
callback: (e) => {
|
||||||
console.log('2222222222222')
|
|
||||||
const mpt = mars3d.LngLatPoint.fromCartesian(e.cartesian)
|
const mpt = mars3d.LngLatPoint.fromCartesian(e.cartesian)
|
||||||
this.setDatas = {
|
this.setDatas = {
|
||||||
title: '',
|
title: '',
|
||||||
|
|
@ -861,7 +870,6 @@ export default {
|
||||||
}
|
}
|
||||||
this.rightType = 3
|
this.rightType = 3
|
||||||
this.setVisibleShow = true
|
this.setVisibleShow = true
|
||||||
console.log('1111111111111')
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
|
@ -1043,7 +1051,7 @@ export default {
|
||||||
},
|
},
|
||||||
url:BASE_URL+url,
|
url:BASE_URL+url,
|
||||||
}).then(data=>{
|
}).then(data=>{
|
||||||
console.log("data111",data);
|
|
||||||
if(data.data.code == 200){
|
if(data.data.code == 200){
|
||||||
data.data.data.forEach((item,index)=>{
|
data.data.data.forEach((item,index)=>{
|
||||||
$(".popup-container").append("<div class='popup-item'>"+item.username+" <span data-phone='"+item.phone+"' onmouseenter='showReadData(this);' onmouseleave='hiddenReadData(this);'>"+item.phone.replace(/(\d{3})\d*(\d{4})/, '$1****$2')+"</span> "+item.area+" "+item.usertype+"</div>");
|
$(".popup-container").append("<div class='popup-item'>"+item.username+" <span data-phone='"+item.phone+"' onmouseenter='showReadData(this);' onmouseleave='hiddenReadData(this);'>"+item.phone.replace(/(\d{3})\d*(\d{4})/, '$1****$2')+"</span> "+item.area+" "+item.usertype+"</div>");
|
||||||
|
|
|
||||||
|
|
@ -146,6 +146,12 @@ export default {
|
||||||
if(newVal == 3){
|
if(newVal == 3){
|
||||||
this.markdialogFormVisible = true
|
this.markdialogFormVisible = true
|
||||||
}
|
}
|
||||||
|
if(newVal == 4){
|
||||||
|
this.firedialogFormVisible = false;
|
||||||
|
this.taskdialogFormVisible = false;
|
||||||
|
this.markdialogFormVisible = false;
|
||||||
|
this.markListDialogFormVisible = true;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
clickdata:{
|
clickdata:{
|
||||||
|
|
@ -293,9 +299,9 @@ export default {
|
||||||
message: '操作成功',
|
message: '操作成功',
|
||||||
type: 'success'
|
type: 'success'
|
||||||
});
|
});
|
||||||
this.markList = []
|
this.markList = [];
|
||||||
this.setUpData = {}
|
this.setUpData = {};
|
||||||
this.markListDialogFormVisible = false
|
this.markListDialogFormVisible = false;
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
|
|
@ -317,6 +323,8 @@ export default {
|
||||||
if(this.historyMarkGraphicLayer == null){
|
if(this.historyMarkGraphicLayer == null){
|
||||||
this.historyMarkGraphicLayer = new mars3d.layer.GraphicLayer();
|
this.historyMarkGraphicLayer = new mars3d.layer.GraphicLayer();
|
||||||
this.globalmap.addLayer(this.historyMarkGraphicLayer);
|
this.globalmap.addLayer(this.historyMarkGraphicLayer);
|
||||||
|
}else{
|
||||||
|
this.historyMarkGraphicLayer.clear();
|
||||||
}
|
}
|
||||||
|
|
||||||
this.historyMarkGraphicLayerArr = []
|
this.historyMarkGraphicLayerArr = []
|
||||||
|
|
|
||||||
|
|
@ -43,8 +43,7 @@ import { isJson } from "../../../utils/index";
|
||||||
// this.getMonitorList();
|
// this.getMonitorList();
|
||||||
},
|
},
|
||||||
mounted(){
|
mounted(){
|
||||||
|
// 通过监听WebSocket 获取在新人员信息
|
||||||
// this.initWebSocket();
|
|
||||||
window.addEventListener("onmessageWS", this.getSocketData);
|
window.addEventListener("onmessageWS", this.getSocketData);
|
||||||
},
|
},
|
||||||
methods:{
|
methods:{
|
||||||
|
|
|
||||||
|
|
@ -263,7 +263,7 @@ import axios from "axios";
|
||||||
const pointArr = []
|
const pointArr = []
|
||||||
const pathArr = [];
|
const pathArr = [];
|
||||||
console.log("nestWaterPoints",nestWaterPoints)
|
console.log("nestWaterPoints",nestWaterPoints)
|
||||||
for(let i=0;i<10;i++){
|
for(let i=0;i<15;i++){
|
||||||
pointArr.push({
|
pointArr.push({
|
||||||
name: nestWaterPoints[i].distance+"km",
|
name: nestWaterPoints[i].distance+"km",
|
||||||
value: nestWaterPoints[i].lngLat,
|
value: nestWaterPoints[i].lngLat,
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue