Compare commits

...

4 Commits

Author SHA1 Message Date
阿斌
9ac93cd066
Pre Merge pull request !41 from 阿斌/N/A 2025-11-13 09:12:59 +00:00
lin
865ee8cee9 修复矢量瓦片尺寸设置错误 2025-11-13 17:12:42 +08:00
lin
ec7567c2cd 修复切换地图坐标系时未更新矢量瓦片坐标系 2025-11-13 16:17:29 +08:00
阿斌
34d1dbb399
修复两次密码不一致时,任然可以修改密码,且成功提交,密码用*代替
还有以下一处需要修改web\src\layout\components\dialog\changePassword.vue

Signed-off-by: 阿斌 <38912748@qq.com>
2025-08-23 15:03:02 +00:00
4 changed files with 20 additions and 9 deletions

View File

@ -474,7 +474,7 @@ public class RedisCatchStorageImpl implements IRedisCatchStorage {
public void removePushListItem(String app, String stream, String mediaServerId) {
String key = VideoManagerConstants.PUSH_STREAM_LIST + app + "_" + stream;
MediaInfo param = (MediaInfo)redisTemplate.opsForValue().get(key);
if (param != null) {
if (param != null && userSetting.getServerId().equals(param.getServerId())) {
redisTemplate.delete(key);
}
}

View File

@ -97,8 +97,6 @@ export default {
url: this.mapTileList[this.mapTileIndex].tilesUrl
})
})
console.log(4444)
console.log(this.mapTileList[this.mapTileIndex].tilesUrl)
} else {
tileLayer = new Tile({
preload: 4,
@ -150,11 +148,12 @@ export default {
})
},
addVectorTileLayer(tileUrl, clickEvent, errorEvent){
tileUrl += `?geoCoordSys=${this.mapTileList[this.mapTileIndex].coordinateSystem}&accessToken=${this.$store.getters.token}`
let source = new VectorTileSource({
format: new MVT(),
tileSize: 256,
url: tileUrl
})
let layer = new VectorTileLayer({
source: source,
style: function(feature) {
@ -625,6 +624,7 @@ export default {
this.mapTileIndex = index
window.coordinateSystem = this.mapTileList[this.mapTileIndex].coordinateSystem
tileLayer.getSource().setUrl(this.mapTileList[index].tilesUrl)
tileLayer.getSource().refresh()
if (mapTileConfig.coordinateSystem !== this.mapTileList[this.mapTileIndex].coordinateSystem) {
//
this.$emit('coordinateSystemChange', this.mapTileList[this.mapTileIndex].coordinateSystem)

View File

@ -13,10 +13,10 @@
<div id="shared" style="margin-right: 20px;">
<el-form ref="passwordForm" :rules="rules" status-icon label-width="80px">
<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 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>
@ -88,6 +88,14 @@ export default {
}
},
onSubmit: function() {
if (this.newPassword !== this.confirmPassword) {
this.$message({
showClose: true,
message: '两次输入密码不一致!',
type: 'error'
})
return
}
this.$store.dispatch('user/changePasswordForAdmin', {
password: this.newPassword,
userId: this.form.id

View File

@ -293,6 +293,7 @@ export default {
return
}
this.$refs.mapComponent.changeMapTile(index)
this.changeLayerType(this.layerType)
},
clientEvent(data){
this.closeInfoBox()
@ -310,15 +311,17 @@ export default {
this.$refs.mapComponent.removeLayer(channelTileLayer)
return
}
if (channelTileLayer) {
this.$refs.mapComponent.removeLayer(channelTileLayer)
}
let geoCoordSys = this.$refs.mapComponent.getCoordSys()
const baseUrl = window.baseUrl ? window.baseUrl : ''
let baseApi = ((process.env.NODE_ENV === 'development') ? process.env.VUE_APP_BASE_API : baseUrl)
let tileUrl = null
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) {
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)
},