mirror of
https://gitee.com/pan648540858/wvp-GB28181-pro.git
synced 2026-05-27 15:37:50 +08:00
Compare commits
4 Commits
85af675739
...
9ac93cd066
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
9ac93cd066 | ||
|
|
865ee8cee9 | ||
|
|
ec7567c2cd | ||
|
|
34d1dbb399 |
@ -474,7 +474,7 @@ public class RedisCatchStorageImpl implements IRedisCatchStorage {
|
|||||||
public void removePushListItem(String app, String stream, String mediaServerId) {
|
public void removePushListItem(String app, String stream, String mediaServerId) {
|
||||||
String key = VideoManagerConstants.PUSH_STREAM_LIST + app + "_" + stream;
|
String key = VideoManagerConstants.PUSH_STREAM_LIST + app + "_" + stream;
|
||||||
MediaInfo param = (MediaInfo)redisTemplate.opsForValue().get(key);
|
MediaInfo param = (MediaInfo)redisTemplate.opsForValue().get(key);
|
||||||
if (param != null) {
|
if (param != null && userSetting.getServerId().equals(param.getServerId())) {
|
||||||
redisTemplate.delete(key);
|
redisTemplate.delete(key);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -97,8 +97,6 @@ export default {
|
|||||||
url: this.mapTileList[this.mapTileIndex].tilesUrl
|
url: this.mapTileList[this.mapTileIndex].tilesUrl
|
||||||
})
|
})
|
||||||
})
|
})
|
||||||
console.log(4444)
|
|
||||||
console.log(this.mapTileList[this.mapTileIndex].tilesUrl)
|
|
||||||
} else {
|
} else {
|
||||||
tileLayer = new Tile({
|
tileLayer = new Tile({
|
||||||
preload: 4,
|
preload: 4,
|
||||||
@ -150,11 +148,12 @@ export default {
|
|||||||
})
|
})
|
||||||
},
|
},
|
||||||
addVectorTileLayer(tileUrl, clickEvent, errorEvent){
|
addVectorTileLayer(tileUrl, clickEvent, errorEvent){
|
||||||
|
tileUrl += `?geoCoordSys=${this.mapTileList[this.mapTileIndex].coordinateSystem}&accessToken=${this.$store.getters.token}`
|
||||||
let source = new VectorTileSource({
|
let source = new VectorTileSource({
|
||||||
format: new MVT(),
|
format: new MVT(),
|
||||||
|
tileSize: 256,
|
||||||
url: tileUrl
|
url: tileUrl
|
||||||
})
|
})
|
||||||
|
|
||||||
let layer = new VectorTileLayer({
|
let layer = new VectorTileLayer({
|
||||||
source: source,
|
source: source,
|
||||||
style: function(feature) {
|
style: function(feature) {
|
||||||
@ -625,6 +624,7 @@ export default {
|
|||||||
this.mapTileIndex = index
|
this.mapTileIndex = index
|
||||||
window.coordinateSystem = this.mapTileList[this.mapTileIndex].coordinateSystem
|
window.coordinateSystem = this.mapTileList[this.mapTileIndex].coordinateSystem
|
||||||
tileLayer.getSource().setUrl(this.mapTileList[index].tilesUrl)
|
tileLayer.getSource().setUrl(this.mapTileList[index].tilesUrl)
|
||||||
|
tileLayer.getSource().refresh()
|
||||||
if (mapTileConfig.coordinateSystem !== this.mapTileList[this.mapTileIndex].coordinateSystem) {
|
if (mapTileConfig.coordinateSystem !== this.mapTileList[this.mapTileIndex].coordinateSystem) {
|
||||||
// 发送通知
|
// 发送通知
|
||||||
this.$emit('coordinateSystemChange', this.mapTileList[this.mapTileIndex].coordinateSystem)
|
this.$emit('coordinateSystemChange', this.mapTileList[this.mapTileIndex].coordinateSystem)
|
||||||
|
|||||||
@ -13,10 +13,10 @@
|
|||||||
<div id="shared" style="margin-right: 20px;">
|
<div id="shared" style="margin-right: 20px;">
|
||||||
<el-form ref="passwordForm" :rules="rules" status-icon label-width="80px">
|
<el-form ref="passwordForm" :rules="rules" status-icon label-width="80px">
|
||||||
<el-form-item label="新密码" prop="newPassword">
|
<el-form-item label="新密码" prop="newPassword">
|
||||||
<el-input v-model="newPassword" autocomplete="off" />
|
<el-input v-model="newPassword" autocomplete="off" type="password" />
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item label="确认密码" prop="confirmPassword">
|
<el-form-item label="确认密码" prop="confirmPassword">
|
||||||
<el-input v-model="confirmPassword" autocomplete="off" />
|
<el-input v-model="confirmPassword" autocomplete="off" type="password" />
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
|
|
||||||
<el-form-item>
|
<el-form-item>
|
||||||
@ -88,6 +88,14 @@ export default {
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
onSubmit: function() {
|
onSubmit: function() {
|
||||||
|
if (this.newPassword !== this.confirmPassword) {
|
||||||
|
this.$message({
|
||||||
|
showClose: true,
|
||||||
|
message: '两次输入密码不一致!',
|
||||||
|
type: 'error'
|
||||||
|
})
|
||||||
|
return
|
||||||
|
}
|
||||||
this.$store.dispatch('user/changePasswordForAdmin', {
|
this.$store.dispatch('user/changePasswordForAdmin', {
|
||||||
password: this.newPassword,
|
password: this.newPassword,
|
||||||
userId: this.form.id
|
userId: this.form.id
|
||||||
|
|||||||
@ -293,6 +293,7 @@ export default {
|
|||||||
return
|
return
|
||||||
}
|
}
|
||||||
this.$refs.mapComponent.changeMapTile(index)
|
this.$refs.mapComponent.changeMapTile(index)
|
||||||
|
this.changeLayerType(this.layerType)
|
||||||
},
|
},
|
||||||
clientEvent(data){
|
clientEvent(data){
|
||||||
this.closeInfoBox()
|
this.closeInfoBox()
|
||||||
@ -310,15 +311,17 @@ export default {
|
|||||||
this.$refs.mapComponent.removeLayer(channelTileLayer)
|
this.$refs.mapComponent.removeLayer(channelTileLayer)
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
if (channelTileLayer) {
|
||||||
|
this.$refs.mapComponent.removeLayer(channelTileLayer)
|
||||||
|
}
|
||||||
|
|
||||||
let geoCoordSys = this.$refs.mapComponent.getCoordSys()
|
|
||||||
const baseUrl = window.baseUrl ? window.baseUrl : ''
|
const baseUrl = window.baseUrl ? window.baseUrl : ''
|
||||||
let baseApi = ((process.env.NODE_ENV === 'development') ? process.env.VUE_APP_BASE_API : baseUrl)
|
let baseApi = ((process.env.NODE_ENV === 'development') ? process.env.VUE_APP_BASE_API : baseUrl)
|
||||||
let tileUrl = null
|
let tileUrl = null
|
||||||
if (index === 1) {
|
if (index === 1) {
|
||||||
tileUrl = baseApi + `/api/common/channel/map/tile/{z}/{x}/{y}?geoCoordSys=${geoCoordSys}&accessToken=${this.$store.getters.token}`
|
tileUrl = baseApi + '/api/common/channel/map/tile/{z}/{x}/{y}'
|
||||||
}else if (index === 2) {
|
}else if (index === 2) {
|
||||||
tileUrl = baseApi + `/api/common/channel/map/thin/tile/{z}/{x}/{y}?geoCoordSys=${geoCoordSys}&accessToken=${this.$store.getters.token}`
|
tileUrl = baseApi + '/api/common/channel/map/thin/tile/{z}/{x}/{y}'
|
||||||
}
|
}
|
||||||
channelTileLayer = this.$refs.mapComponent.addVectorTileLayer(tileUrl, this.clientEvent)
|
channelTileLayer = this.$refs.mapComponent.addVectorTileLayer(tileUrl, this.clientEvent)
|
||||||
},
|
},
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user