临时提交

This commit is contained in:
lin
2025-10-23 14:52:59 +08:00
parent 0e331d6b97
commit 6e739dc7d2
3 changed files with 34 additions and 28 deletions

View File

@@ -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 {

View File

@@ -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: '',

View File

@@ -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)
setTimeout(()=>{
this.channelLayer = this.$refs.mapComponent.addPointLayer(cameraList, clientEvent, null) this.channelLayer = this.$refs.mapComponent.addPointLayer(cameraList, clientEvent, null)
})
} }
break break
case 2: case 2:
@@ -361,9 +364,11 @@ 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 {
setTimeout(()=>{
this.channelLayer = this.$refs.mapComponent.addPointLayer(cameraList, clientEvent, { this.channelLayer = this.$refs.mapComponent.addPointLayer(cameraList, clientEvent, {
declutter: true declutter: true
}) })
})
} }
break break
case 3: case 3:
@@ -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 {
setTimeout(() => {
this.channelLayer = this.$refs.mapComponent.addPointLayerGroup(cameraListForLevelMap, clientEvent) this.channelLayer = this.$refs.mapComponent.addPointLayerGroup(cameraListForLevelMap, clientEvent)
})
} }
break break
// case 4: // case 4:
@@ -572,6 +579,7 @@ export default {
let cameraList = cameraListForSource.slice() let cameraList = cameraListForSource.slice()
this.quicklyDrawThinLoading = true this.quicklyDrawThinLoading = true
setTimeout(() => {
this.drawThin(cameraList).then((layerGroupSource) => { this.drawThin(cameraList).then((layerGroupSource) => {
this.layerGroupSource = layerGroupSource this.layerGroupSource = layerGroupSource
this.drawThinLayer = this.$refs.mapComponent.addPointLayerGroup(layerGroupSource, data => { this.drawThinLayer = this.$refs.mapComponent.addPointLayerGroup(layerGroupSource, data => {
@@ -590,8 +598,13 @@ export default {
message: '抽稀完成,请预览无误后保存抽稀结果' message: '抽稀完成,请预览无误后保存抽稀结果'
}) })
}) })
})
}, },
boxDrawThin: function (){ boxDrawThin: function (){
this.$message.info({
showClose: true,
message: '点击地图进行框选'
})
// 绘制框 // 绘制框
this.$refs.mapComponent.startDrawBox((extent) => { this.$refs.mapComponent.startDrawBox((extent) => {