从班次信息管理的排课按钮进排课窗口,刷新页面信息

This commit is contained in:
2026-09-24 11:49:22 +08:00
parent 836995a794
commit d9f8bf705d
@@ -794,6 +794,15 @@ export default {
return this.candidateTeams.filter(t => !used.includes(t.xydbh)) return this.candidateTeams.filter(t => !used.includes(t.xydbh))
} }
}, },
watch: {
// 页面已被缓存/已打开时,路由 query 仍会更新——同步到当前班次学期并重新加载视图
'$route.query.xydxqbh'(val) {
if (val && val !== this.xydxqbh) {
this.xydxqbh = val
this.loadView()
}
}
},
created() { created() {
if (this.$route.query && this.$route.query.xydxqbh) { if (this.$route.query && this.$route.query.xydxqbh) {
this.xydxqbh = this.$route.query.xydxqbh this.xydxqbh = this.$route.query.xydxqbh