mirror of
https://gitee.com/pan648540858/wvp-GB28181-pro.git
synced 2026-05-24 22:17:49 +08:00
临时提交
This commit is contained in:
parent
0e331d6b97
commit
6e739dc7d2
@ -6,14 +6,12 @@ import cn.hutool.crypto.SmUtil;
|
|||||||
import cn.hutool.crypto.symmetric.SM4;
|
import cn.hutool.crypto.symmetric.SM4;
|
||||||
import com.alibaba.fastjson2.JSON;
|
import com.alibaba.fastjson2.JSON;
|
||||||
import com.alibaba.fastjson2.JSONObject;
|
import com.alibaba.fastjson2.JSONObject;
|
||||||
import com.genersoft.iot.vmp.conf.UserSetting;
|
|
||||||
import com.genersoft.iot.vmp.vmanager.bean.WVPResult;
|
import com.genersoft.iot.vmp.vmanager.bean.WVPResult;
|
||||||
import jakarta.servlet.FilterChain;
|
import jakarta.servlet.FilterChain;
|
||||||
import jakarta.servlet.ServletException;
|
import jakarta.servlet.ServletException;
|
||||||
import jakarta.servlet.http.HttpServletRequest;
|
import jakarta.servlet.http.HttpServletRequest;
|
||||||
import jakarta.servlet.http.HttpServletResponse;
|
import jakarta.servlet.http.HttpServletResponse;
|
||||||
import lombok.extern.slf4j.Slf4j;
|
import lombok.extern.slf4j.Slf4j;
|
||||||
import org.springframework.beans.factory.annotation.Autowired;
|
|
||||||
import org.springframework.boot.autoconfigure.condition.ConditionalOnProperty;
|
import org.springframework.boot.autoconfigure.condition.ConditionalOnProperty;
|
||||||
import org.springframework.http.MediaType;
|
import org.springframework.http.MediaType;
|
||||||
import org.springframework.stereotype.Component;
|
import org.springframework.stereotype.Component;
|
||||||
@ -36,12 +34,6 @@ import java.util.TreeSet;
|
|||||||
@ConditionalOnProperty(value = "sy.enable", havingValue = "true")
|
@ConditionalOnProperty(value = "sy.enable", havingValue = "true")
|
||||||
public class SignAuthenticationFilter extends OncePerRequestFilter {
|
public class SignAuthenticationFilter extends OncePerRequestFilter {
|
||||||
|
|
||||||
private final static String WSHeader = "sec-websocket-protocol";
|
|
||||||
|
|
||||||
|
|
||||||
@Autowired
|
|
||||||
private UserSetting userSetting;
|
|
||||||
|
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
protected void doFilterInternal(HttpServletRequest servletRequest, HttpServletResponse response, FilterChain chain) throws IOException, ServletException {
|
protected void doFilterInternal(HttpServletRequest servletRequest, HttpServletResponse response, FilterChain chain) throws IOException, ServletException {
|
||||||
|
|||||||
@ -73,7 +73,7 @@
|
|||||||
ref="channelListTable"
|
ref="channelListTable"
|
||||||
size="medium"
|
size="medium"
|
||||||
:data="channelList"
|
:data="channelList"
|
||||||
height="calc(100vh - 190px)"
|
:height="tableHeight"
|
||||||
style="width: 100%"
|
style="width: 100%"
|
||||||
header-row-class-name="table-header"
|
header-row-class-name="table-header"
|
||||||
@selection-change="handleSelectionChange"
|
@selection-change="handleSelectionChange"
|
||||||
@ -130,6 +130,7 @@ export default {
|
|||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
channelList: [],
|
channelList: [],
|
||||||
|
tableHeight: `calc(100vh - ${this.$refs.queryForm.offsetHeight}px)`,
|
||||||
searchStr: '',
|
searchStr: '',
|
||||||
channelType: '',
|
channelType: '',
|
||||||
online: '',
|
online: '',
|
||||||
|
|||||||
@ -251,6 +251,7 @@ export default {
|
|||||||
src: this.getImageByChannel(data)
|
src: this.getImageByChannel(data)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
this.infoBoxTempLayer = this.$refs.mapComponent.addPointLayer([cameraData])
|
this.infoBoxTempLayer = this.$refs.mapComponent.addPointLayer([cameraData])
|
||||||
}
|
}
|
||||||
let position = [data.gbLongitude, data.gbLatitude]
|
let position = [data.gbLongitude, data.gbLatitude]
|
||||||
@ -353,7 +354,9 @@ export default {
|
|||||||
this.channelLayer = this.$refs.mapComponent.updatePointLayer(this.channelLayer, cameraList, true)
|
this.channelLayer = this.$refs.mapComponent.updatePointLayer(this.channelLayer, cameraList, true)
|
||||||
}else {
|
}else {
|
||||||
console.log(cameraList.length)
|
console.log(cameraList.length)
|
||||||
this.channelLayer = this.$refs.mapComponent.addPointLayer(cameraList, clientEvent, null)
|
setTimeout(()=>{
|
||||||
|
this.channelLayer = this.$refs.mapComponent.addPointLayer(cameraList, clientEvent, null)
|
||||||
|
})
|
||||||
}
|
}
|
||||||
break
|
break
|
||||||
case 2:
|
case 2:
|
||||||
@ -361,8 +364,10 @@ export default {
|
|||||||
if (this.channelLayer) {
|
if (this.channelLayer) {
|
||||||
this.channelLayer = this.$refs.mapComponent.updatePointLayer(this.channelLayer, cameraList, true)
|
this.channelLayer = this.$refs.mapComponent.updatePointLayer(this.channelLayer, cameraList, true)
|
||||||
}else {
|
}else {
|
||||||
this.channelLayer = this.$refs.mapComponent.addPointLayer(cameraList, clientEvent, {
|
setTimeout(()=>{
|
||||||
declutter: true
|
this.channelLayer = this.$refs.mapComponent.addPointLayer(cameraList, clientEvent, {
|
||||||
|
declutter: true
|
||||||
|
})
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
break
|
break
|
||||||
@ -371,7 +376,9 @@ export default {
|
|||||||
if (this.channelLayer) {
|
if (this.channelLayer) {
|
||||||
this.channelLayer = this.$refs.mapComponent.updatePointLayerGroup(this.channelLayer, cameraListForLevelMap, true)
|
this.channelLayer = this.$refs.mapComponent.updatePointLayerGroup(this.channelLayer, cameraListForLevelMap, true)
|
||||||
}else {
|
}else {
|
||||||
this.channelLayer = this.$refs.mapComponent.addPointLayerGroup(cameraListForLevelMap, clientEvent)
|
setTimeout(() => {
|
||||||
|
this.channelLayer = this.$refs.mapComponent.addPointLayerGroup(cameraListForLevelMap, clientEvent)
|
||||||
|
})
|
||||||
}
|
}
|
||||||
break
|
break
|
||||||
// case 4:
|
// case 4:
|
||||||
@ -572,26 +579,32 @@ export default {
|
|||||||
let cameraList = cameraListForSource.slice()
|
let cameraList = cameraListForSource.slice()
|
||||||
|
|
||||||
this.quicklyDrawThinLoading = true
|
this.quicklyDrawThinLoading = true
|
||||||
this.drawThin(cameraList).then((layerGroupSource) => {
|
setTimeout(() => {
|
||||||
this.layerGroupSource = layerGroupSource
|
this.drawThin(cameraList).then((layerGroupSource) => {
|
||||||
this.drawThinLayer = this.$refs.mapComponent.addPointLayerGroup(layerGroupSource, data => {
|
this.layerGroupSource = layerGroupSource
|
||||||
this.closeInfoBox()
|
this.drawThinLayer = this.$refs.mapComponent.addPointLayerGroup(layerGroupSource, data => {
|
||||||
this.$nextTick(() => {
|
this.closeInfoBox()
|
||||||
if (data[0].edit) {
|
this.$nextTick(() => {
|
||||||
this.showEditInfo(data[0])
|
if (data[0].edit) {
|
||||||
}else {
|
this.showEditInfo(data[0])
|
||||||
this.showChannelInfo(data[0])
|
}else {
|
||||||
}
|
this.showChannelInfo(data[0])
|
||||||
|
}
|
||||||
|
})
|
||||||
|
})
|
||||||
|
this.quicklyDrawThinLoading = false
|
||||||
|
this.$message.success({
|
||||||
|
showClose: true,
|
||||||
|
message: '抽稀完成,请预览无误后保存抽稀结果'
|
||||||
})
|
})
|
||||||
})
|
|
||||||
this.quicklyDrawThinLoading = false
|
|
||||||
this.$message.success({
|
|
||||||
showClose: true,
|
|
||||||
message: '抽稀完成,请预览无误后保存抽稀结果'
|
|
||||||
})
|
})
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
boxDrawThin: function (){
|
boxDrawThin: function (){
|
||||||
|
this.$message.info({
|
||||||
|
showClose: true,
|
||||||
|
message: '点击地图进行框选'
|
||||||
|
})
|
||||||
// 绘制框
|
// 绘制框
|
||||||
this.$refs.mapComponent.startDrawBox((extent) => {
|
this.$refs.mapComponent.startDrawBox((extent) => {
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user