教代会意见模块->承办答复 页面初始化查询数据有误

This commit is contained in:
2026-09-03 17:53:59 +08:00
parent 3a192a932f
commit c18579fe40
4 changed files with 90 additions and 77 deletions
@@ -202,21 +202,21 @@ layout("/layouts/platform.html"){
this.doSearch()
},
// 查询开启的教代会
// 默认届次确定后再查询列表,避免无届次请求覆盖带届次的查询结果。
listOpenSession() {
this.$axios.post("/platform/opinion/common/listOpenSession").then((res) => {
return this.$axios.post("/platform/opinion/common/listOpenSession").then((res) => {
if (res.code === 0) {
this.sessionOptions = res.data
if (this.sessionOptions) {
this.$set(this, "sessionOptions", res.data || [])
if (this.sessionOptions.length > 0) {
this.$set(this.pageForm, "sessionId", this.sessionOptions[0].id)
this.pageData()
}
// 无开启届次时仍按当前用户查询,由后端限定为有效的意见任务。
this.pageData()
}
})
},
},
created() {
this.pageData()
this.listOpenSession()
}
})