历史标注

master
徐景良 2023-09-18 16:57:51 +08:00
parent d7855eee36
commit aa0ab357b4
7 changed files with 38 additions and 19 deletions

View File

@ -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_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_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_IMG_URL = http://123.132.248.154:9224

View File

@ -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_IMG_URL = http://123.132.248.154:9224
#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_API = http://123.132.248.154:9231/api
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_IMG_URL = http://221.2.83.254:7001
#VUE_APP_BASE_API = http://221.2.83.254:7001/api
#VUE_APP_BASE_IMG_URL = http://221.2.83.254:7001

View File

@ -7,7 +7,7 @@
<script>
import { mapGetters } from 'vuex'
import {setToken} from "./utils/auth";
let Socket_Url = process.env.VUE_APP_WEBSOCKET_URL
export default {
name: 'App',
computed: {
@ -49,9 +49,8 @@ export default {
},
initWebSocket() {
// WebSocketwshttpwsshttps
let wsUrl = "ws://123.132.248.154:9225/ws";
// let wsUrl = "ws://221.2.83.254:9002/ws";
window.websocket = new WebSocket(wsUrl);
// let wsUrl = "";
window.websocket = new WebSocket(Socket_Url);
window.websocket.onopen = this.websocketonopen;
window.websocket.onerror = this.websocketonerror;
window.websocket.onmessage = this.setOnmessageMessage;
@ -64,6 +63,7 @@ export default {
//
this.timeoutObj && clearTimeout(this.timeoutObj);
this.serverTimeoutObj && clearTimeout(this.serverTimeoutObj);
this.timeoutObj = setTimeout(() => {
if (window.websocket && window.websocket.readyState == 1) {
//socketonmessage

View File

@ -43,7 +43,9 @@
<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>
@ -297,7 +299,7 @@ export default {
checkNumber:[],
mergeboxShow:false,
mergeSuccessRandom:1,
rightType: 0,
rightType: 5,
setDatas:{},
setVisibleShow: false,
videoCallShow:false,
@ -359,6 +361,11 @@ export default {
window.delTaskPoint = this.delTaskPoint;
},
methods: {
//
showHistoryLabel(){
this.setVisibleShow = true;
this.rightType = 4;
},
//
getNetWorkState() {
if (window.navigator.onLine) {
@ -368,9 +375,11 @@ export default {
}
let _this = this;
window.addEventListener("online", function (e) {
_this.newworkstate = "网络正常";
});
window.addEventListener("offline", function (e) {
_this.newworkstate = "网络断开";
_this.$message({
@ -378,6 +387,7 @@ export default {
message: "网络已断开!",
});
});
},
closeWaterlayer(){
this.waterVisible = false
@ -850,7 +860,6 @@ export default {
{
text: "火点",
callback: (e) => {
console.log('2222222222222')
const mpt = mars3d.LngLatPoint.fromCartesian(e.cartesian)
this.setDatas = {
title: '',
@ -861,7 +870,6 @@ export default {
}
this.rightType = 3
this.setVisibleShow = true
console.log('1111111111111')
}
},
{
@ -1043,7 +1051,7 @@ export default {
},
url:BASE_URL+url,
}).then(data=>{
console.log("data111",data);
if(data.data.code == 200){
data.data.data.forEach((item,index)=>{
$(".popup-container").append("<div class='popup-item'>"+item.username+"&nbsp;&nbsp; <span data-phone='"+item.phone+"' onmouseenter='showReadData(this);' onmouseleave='hiddenReadData(this);'>"+item.phone.replace(/(\d{3})\d*(\d{4})/, '$1****$2')+"</span>&nbsp;&nbsp;"+item.area+"&nbsp;&nbsp;"+item.usertype+"</div>");

View File

@ -146,6 +146,12 @@ export default {
if(newVal == 3){
this.markdialogFormVisible = true
}
if(newVal == 4){
this.firedialogFormVisible = false;
this.taskdialogFormVisible = false;
this.markdialogFormVisible = false;
this.markListDialogFormVisible = true;
}
}
},
clickdata:{
@ -293,9 +299,9 @@ export default {
message: '操作成功',
type: 'success'
});
this.markList = []
this.setUpData = {}
this.markListDialogFormVisible = false
this.markList = [];
this.setUpData = {};
this.markListDialogFormVisible = false;
}
})
},
@ -317,6 +323,8 @@ export default {
if(this.historyMarkGraphicLayer == null){
this.historyMarkGraphicLayer = new mars3d.layer.GraphicLayer();
this.globalmap.addLayer(this.historyMarkGraphicLayer);
}else{
this.historyMarkGraphicLayer.clear();
}
this.historyMarkGraphicLayerArr = []

View File

@ -43,8 +43,7 @@ import { isJson } from "../../../utils/index";
// this.getMonitorList();
},
mounted(){
// this.initWebSocket();
// WebSocket
window.addEventListener("onmessageWS", this.getSocketData);
},
methods:{

View File

@ -263,7 +263,7 @@ import axios from "axios";
const pointArr = []
const pathArr = [];
console.log("nestWaterPoints",nestWaterPoints)
for(let i=0;i<10;i++){
for(let i=0;i<15;i++){
pointArr.push({
name: nestWaterPoints[i].distance+"km",
value: nestWaterPoints[i].lngLat,