feat: 增加修改关注台站后刷新Focus Data功能

This commit is contained in:
Xu Zhimeng 2024-02-20 17:21:33 +08:00
parent f55ca0eb3b
commit 05c64441a7
2 changed files with 5 additions and 1 deletions

View File

@ -697,6 +697,7 @@ export default {
this.$message.success('Save Success') this.$message.success('Save Success')
await this.getDataRecieveSettings() await this.getDataRecieveSettings()
this.startGetDataReceiveStatusList() this.startGetDataReceiveStatusList()
this.$emit('focusStationChange')
} else { } else {
this.$message.error(message) this.$message.error(message)
} }

View File

@ -156,6 +156,7 @@
@filterMarker="onFilterMarker" @filterMarker="onFilterMarker"
@drawCircle="onDrawCircle" @drawCircle="onDrawCircle"
@mapSourceChange="handleMapSourceChange" @mapSourceChange="handleMapSourceChange"
@focusStationChange="getFollowedStationList"
/> />
</Map> </Map>
</div> </div>
@ -200,6 +201,9 @@ export default {
clearInterval(this.timer) clearInterval(this.timer)
this.timer = null this.timer = null
}, },
activated() {
this.getFollowedStationList()
},
data() { data() {
return { return {
activeKey: '1', activeKey: '1',
@ -240,7 +244,6 @@ export default {
}, },
created() { created() {
this.getStationList() this.getStationList()
this.getFollowedStationList()
this.getStationTypeList() this.getStationTypeList()
this.getStationTree() this.getStationTree()
}, },